(function (_, $module$react, $module$react_router_h6p15h, com_ustadmobile_core_wrappers_compressorjs_default_j4zdfk, $module$libphonenumber_js_s63wkw, $module$react_router_dom_s6xi74, $module$uuid, kotlin_kotlin, kotlin_dev_icerock_moko_resources, kotlin_com_ustadmobile_app_lib_database, kotlin_org_kodein_di_kodein_di, kotlin_org_kodein_type_kaverit, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_com_github_UstadMobile_door_door_runtime, kotlin_io_ktor_ktor_client_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_github_aakira_napier, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_github_pdvrieze_xmlutil_serialization, kotlin_io_github_pdvrieze_xmlutil_core, kotlin_com_benasher44_uuid, kotlin_com_ustadmobile_app_lib_util, kotlin_org_jetbrains_kotlinx_kotlinx_datetime, kotlin_net_thauvin_erik_urlencoder_urlencoder_lib, kotlin_com_github_UstadMobile_xmlpullparserkmp, kotlin_io_ktor_ktor_utils, kotlin_UstadMobile_lib_xxhashkmp_core, kotlin_app_cash_paging_paging_common, kotlin_moe_tlaster_precompose_viewmodel, kotlin_UstadMobile_lib_centralappconfigdb_common, kotlin_com_russhwolf_multiplatform_settings, kotlin_org_jetbrains_kotlin_wrappers_kotlin_react_core, kotlin_org_jetbrains_kotlin_wrappers_kotlin_react, kotlin_org_jetbrains_kotlin_wrappers_kotlin_web, kotlin_org_jetbrains_kotlin_wrappers_kotlin_js) { 'use strict'; //region block: imports var imul = Math.imul; var createContext = $module$react.createContext; var useState = $module$react.useState; var useNavigate = $module$react_router_h6p15h.useNavigate; var useLocation = $module$react_router_h6p15h.useLocation; var useMemo = $module$react.useMemo; var useState_0 = $module$react.useState; var parsePhoneNumber = $module$libphonenumber_js_s63wkw.parsePhoneNumber; var useSearchParams = $module$react_router_dom_s6xi74.useSearchParams; var v4 = $module$uuid.v4; var THROW_CCE = kotlin_kotlin.$_$.ci; var SupportedLocale = kotlin_dev_icerock_moko_resources.$_$.b; var listOf = kotlin_kotlin.$_$.j8; 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.$_$.uc; var objectMeta = kotlin_kotlin.$_$.tc; var setMetadataFor = kotlin_kotlin.$_$.vc; var PluralsResource = kotlin_dev_icerock_moko_resources.$_$.e; var VOID = kotlin_kotlin.$_$.f; var getBooleanHashCode = kotlin_kotlin.$_$.pb; var equals = kotlin_kotlin.$_$.mb; var classMeta = kotlin_kotlin.$_$.jb; var IllegalStateException = kotlin_kotlin.$_$.th; var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.b2; var captureStack = kotlin_kotlin.$_$.db; var CoroutineImpl = kotlin_kotlin.$_$.ta; var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.fa; var PersonAuth2 = kotlin_com_ustadmobile_app_lib_database.$_$.j4; var Companion_instance = kotlin_com_ustadmobile_app_lib_database.$_$.s7; 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.$_$.ri; 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.$_$.ec; var On = kotlin_org_kodein_di_kodein_di.$_$.n; var UmAppDataLayer = kotlin_com_ustadmobile_app_lib_database.$_$.i; 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.$_$.td; var getPropertyCallableRef = kotlin_kotlin.$_$.sb; 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.$_$.zi; var objectCreate = kotlin_kotlin.$_$.sc; var Url = kotlin_io_ktor_ktor_http.$_$.v; var endsWith = kotlin_kotlin.$_$.ve; var getStringHashCode = kotlin_kotlin.$_$.tb; 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.$_$.q7; var $serializer_getInstance_0 = kotlin_com_ustadmobile_app_lib_database.$_$.u7; var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a1; var $serializer_getInstance_1 = kotlin_com_ustadmobile_app_lib_database.$_$.g8; var $serializer_getInstance_2 = kotlin_com_ustadmobile_app_lib_database.$_$.x7; var removePrefix = kotlin_kotlin.$_$.of; var removeSuffix = kotlin_kotlin.$_$.pf; var hashCode = kotlin_kotlin.$_$.ub; var compareValues = kotlin_kotlin.$_$.da; 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.$_$.a5; var Person = kotlin_com_ustadmobile_app_lib_database.$_$.p4; var sortedWith = kotlin_kotlin.$_$.m9; var plus = kotlin_kotlin.$_$.x8; 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.$_$.a3; var UmAppDatabase = kotlin_com_ustadmobile_app_lib_database.$_$.j; 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.$_$.g1; var shallowCopy = kotlin_com_ustadmobile_app_lib_database.$_$.u1; var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.p; var Pair = kotlin_kotlin.$_$.zh; 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.$_$.zc; var get_doorPrimaryKeyManager = kotlin_com_github_UstadMobile_door_door_runtime.$_$.l; var Companion_instance_2 = kotlin_com_ustadmobile_app_lib_database.$_$.h8; var get_doorWrapperNodeId = kotlin_com_github_UstadMobile_door_door_runtime.$_$.m; var systemTimeInMillis = kotlin_com_github_UstadMobile_door_door_runtime.$_$.c2; var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2; var listOf_0 = kotlin_kotlin.$_$.i8; 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.$_$.y9; var toList = kotlin_kotlin.$_$.r9; var Long = kotlin_kotlin.$_$.vh; var Comparator = kotlin_kotlin.$_$.mh; var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1; var Exception = kotlin_kotlin.$_$.rh; var withDoorTransactionAsync = kotlin_com_github_UstadMobile_door_door_runtime.$_$.v2; 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 Exception_init_$Create$ = kotlin_kotlin.$_$.n1; var NodeIdAndAuth = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b; var toHexString = kotlin_kotlin.$_$.ng; var to = kotlin_kotlin.$_$.ij; var decodeToString = kotlin_kotlin.$_$.qe; var substringAfter = kotlin_kotlin.$_$.ag; var parameter = kotlin_io_ktor_ktor_client_core.$_$.m; var Napier_getInstance = kotlin_io_github_aakira_napier.$_$.g; var UmAccount = kotlin_com_ustadmobile_app_lib_database.$_$.z4; var ensureNotNull = kotlin_kotlin.$_$.ui; var DoorDatabaseRepository = kotlin_com_github_UstadMobile_door_door_runtime.$_$.f2; 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.$_$.r7; var Companion_instance_4 = kotlin_com_ustadmobile_app_lib_database.$_$.t7; var MutableSharedFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1; 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.$_$.u; 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.$_$.d1; var asStateFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1; var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k; var isCharSequence = kotlin_kotlin.$_$.ac; var trim = kotlin_kotlin.$_$.eh; 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.$_$.oe; var firstOrNull = kotlin_kotlin.$_$.n7; var LinkedHashMapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s2; var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u; var LongSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v; var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r; var IllegalArgumentException = kotlin_kotlin.$_$.sh; var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.v1; var $serializer_getInstance_3 = kotlin_com_ustadmobile_app_lib_database.$_$.z6; var $serializer_getInstance_4 = kotlin_com_ustadmobile_app_lib_database.$_$.w6; var mapOf = kotlin_kotlin.$_$.m8; var Companion_instance_5 = kotlin_com_ustadmobile_app_lib_database.$_$.k6; var Companion_getInstance_1 = kotlin_com_ustadmobile_app_lib_database.$_$.a7; var charSequenceLength = kotlin_kotlin.$_$.hb; var toCharArray = kotlin_kotlin.$_$.kg; var isUpperCase = kotlin_kotlin.$_$.hf; var interfaceMeta = kotlin_kotlin.$_$.vb; var Exception_init_$Init$ = kotlin_kotlin.$_$.m1; var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.u1; var shallowCopy_0 = kotlin_com_ustadmobile_app_lib_database.$_$.r1; 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.$_$.r8; var XapiSessionEntity = kotlin_com_ustadmobile_app_lib_database.$_$.s2; var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.f2; var compareTo = kotlin_kotlin.$_$.kb; var mapOf_0 = kotlin_kotlin.$_$.l8; var shallowCopy_1 = kotlin_com_ustadmobile_app_lib_database.$_$.x1; var PersonNames = kotlin_com_ustadmobile_app_lib_database.$_$.h1; var first = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e; var toLong = kotlin_kotlin.$_$.xc; var toString_0 = kotlin_kotlin.$_$.hj; var CancellationException = kotlin_kotlin.$_$.ea; var Enum = kotlin_kotlin.$_$.ph; var Companion_instance_6 = kotlin_com_ustadmobile_app_lib_database.$_$.b7; var Companion_instance_7 = kotlin_com_ustadmobile_app_lib_database.$_$.y7; var Companion_instance_8 = kotlin_com_ustadmobile_app_lib_database.$_$.i7; var Companion_instance_9 = kotlin_com_ustadmobile_app_lib_database.$_$.d7; var Companion_instance_10 = kotlin_com_ustadmobile_app_lib_database.$_$.x6; var Companion_getInstance_3 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d3; var get_isActive = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k2; var delay = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j; var TransferJobItemStatus_COMPLETE_getInstance = kotlin_com_ustadmobile_app_lib_database.$_$.b5; var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e; var plus_1 = kotlin_kotlin.$_$.y8; var Companion_instance_11 = kotlin_com_ustadmobile_app_lib_database.$_$.y6; var Companion_getInstance_4 = kotlin_com_ustadmobile_app_lib_database.$_$.j6; var randomString = kotlin_com_ustadmobile_app_lib_util.$_$.c; var Companion_instance_12 = kotlin_com_ustadmobile_app_lib_database.$_$.l6; var Companion_getInstance_5 = kotlin_com_ustadmobile_app_lib_database.$_$.h7; var CoursePermission = kotlin_com_ustadmobile_app_lib_database.$_$.v3; 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.$_$.n7; var ClazzEnrolment_init_$Create$ = kotlin_com_ustadmobile_app_lib_database.$_$.h5; 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.$_$.z3; 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.$_$.xa; 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.$_$.k8; var coerceAtLeast = kotlin_kotlin.$_$.hd; 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.$_$.t6; var setInputString = kotlin_com_github_UstadMobile_xmlpullparserkmp.$_$.c; var substringBeforeLast = kotlin_kotlin.$_$.bg; var Collection = kotlin_kotlin.$_$.p5; var ContentEntryParentChildJoin = kotlin_com_ustadmobile_app_lib_database.$_$.h3; var toMutableList = kotlin_kotlin.$_$.v9; var checkIndexOverflow = kotlin_kotlin.$_$.l6; var Companion_instance_14 = kotlin_com_ustadmobile_app_lib_database.$_$.c7; var getOrNull = kotlin_kotlin.$_$.s7; var Companion_instance_15 = kotlin_com_ustadmobile_app_lib_database.$_$.l7; var Companion_instance_16 = kotlin_com_ustadmobile_app_lib_database.$_$.v6; var plus_2 = kotlin_kotlin.$_$.v8; var startsWith = kotlin_kotlin.$_$.wf; var emptySet = kotlin_kotlin.$_$.k7; var first_0 = kotlin_kotlin.$_$.p7; var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.f; var Companion_instance_17 = kotlin_com_ustadmobile_app_lib_database.$_$.n6; var split = kotlin_kotlin.$_$.vf; var distinct = kotlin_kotlin.$_$.f7; var emptyMap = kotlin_kotlin.$_$.j7; var PersonPasskey = kotlin_com_ustadmobile_app_lib_database.$_$.n4; var until = kotlin_kotlin.$_$.pd; var PeerReviewerAllocation = kotlin_com_ustadmobile_app_lib_database.$_$.h4; var Companion_instance_18 = kotlin_com_ustadmobile_app_lib_database.$_$.p7; var toMap = kotlin_kotlin.$_$.u9; var checkCountOverflow = kotlin_kotlin.$_$.k6; var shuffled = kotlin_kotlin.$_$.j9; var shallowCopy_2 = kotlin_com_ustadmobile_app_lib_database.$_$.d2; var SystemPermission = kotlin_com_ustadmobile_app_lib_database.$_$.v4; var Companion_instance_19 = kotlin_com_ustadmobile_app_lib_database.$_$.v7; var PersonParentJoin = kotlin_com_ustadmobile_app_lib_database.$_$.m4; var Companion_getInstance_7 = kotlin_com_ustadmobile_app_lib_database.$_$.e8; var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.t1; var filterNotNull = kotlin_kotlin.$_$.m7; var Iterator = kotlin_kotlin.$_$.t5; var numberToLong = kotlin_kotlin.$_$.rc; var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.u2; var indexOf = kotlin_kotlin.$_$.af; var charSequenceGet = kotlin_kotlin.$_$.gb; var isWhitespace = kotlin_kotlin.$_$.if; var Companion_instance_20 = kotlin_com_ustadmobile_app_lib_database.$_$.z5; 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.$_$.f6; var plus_3 = kotlin_kotlin.$_$.u8; 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 JsonElementSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c; var Companion_instance_21 = kotlin_com_ustadmobile_app_lib_database.$_$.a6; var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.c5; var createInvariantKTypeProjection = kotlin_kotlin.$_$.a; var ActivityEntity = kotlin_com_ustadmobile_app_lib_database.$_$.h2; var Companion_instance_22 = kotlin_com_ustadmobile_app_lib_database.$_$.b6; var Companion_instance_23 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b; var ActivityExtensionEntity = kotlin_com_ustadmobile_app_lib_database.$_$.i2; var ActivityLangMapEntry = kotlin_com_ustadmobile_app_lib_database.$_$.k2; var ActivityInteractionEntity = kotlin_com_ustadmobile_app_lib_database.$_$.j2; 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.$_$.bj; var ActorEntity = kotlin_com_ustadmobile_app_lib_database.$_$.l2; 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.$_$.d6; var StatementContextActivityJoin = kotlin_com_ustadmobile_app_lib_database.$_$.n2; var Companion_instance_25 = kotlin_com_ustadmobile_app_lib_database.$_$.c6; var GroupMemberActorJoin = kotlin_com_ustadmobile_app_lib_database.$_$.m2; var serializer_2 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s3; var THROW_IAE = kotlin_kotlin.$_$.di; var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t; var getNumberHashCode = kotlin_kotlin.$_$.rb; var StatementEntity = kotlin_com_ustadmobile_app_lib_database.$_$.p2; var StatementEntityJson = kotlin_com_ustadmobile_app_lib_database.$_$.o2; var JsonNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i; var VerbEntity = kotlin_com_ustadmobile_app_lib_database.$_$.q2; var VerbLangMapEntry = kotlin_com_ustadmobile_app_lib_database.$_$.r2; var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g; var toDuration = kotlin_kotlin.$_$.hh; 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.$_$.g6; var values = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.j; var isBlank = kotlin_kotlin.$_$.bf; var toInt = kotlin_kotlin.$_$.pg; var sorted = kotlin_kotlin.$_$.n9; var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a; var XXStringHasher = kotlin_UstadMobile_lib_xxhashkmp_core.$_$.d; var ImplWithScope = kotlin_org_kodein_di_kodein_di.$_$.h; var Provider = kotlin_org_kodein_di_kodein_di.$_$.d; var Singleton = kotlin_org_kodein_di_kodein_di.$_$.f; var Companion_instance_26 = kotlin_com_ustadmobile_app_lib_database.$_$.z7; var Companion_instance_27 = kotlin_com_ustadmobile_app_lib_database.$_$.e6; var Companion_instance_28 = kotlin_com_ustadmobile_app_lib_database.$_$.s6; var Companion_instance_29 = kotlin_com_ustadmobile_app_lib_database.$_$.b8; var BufferOverflow_DROP_OLDEST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a; var asSharedFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1; 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.$_$.o; var _ChannelResult___get_isSuccess__impl__odq1z9 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p; var Channel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y; var fillArrayVal = kotlin_kotlin.$_$.ob; var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1; var indexOf_0 = kotlin_kotlin.$_$.ze; var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.w2; var lastIndexOf = kotlin_kotlin.$_$.kf; var HashMap_init_$Create$ = kotlin_kotlin.$_$.p; var round = kotlin_kotlin.$_$.dd; var lazy_0 = kotlin_kotlin.$_$.aj; var roundToInt = kotlin_kotlin.$_$.cd; var substringBefore = kotlin_kotlin.$_$.eg; var Companion_instance_30 = kotlin_com_ustadmobile_app_lib_database.$_$.u6; var timeout = kotlin_io_ktor_ktor_client_core.$_$.i; var Companion_instance_31 = kotlin_com_ustadmobile_app_lib_database.$_$.c8; 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 joinToString = kotlin_kotlin.$_$.z7; var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k1; var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.v; var Companion_getInstance_10 = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.d; var minus = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.l; var mutableMapOf = kotlin_kotlin.$_$.p8; var toMap_0 = kotlin_kotlin.$_$.t9; var substringBefore_0 = kotlin_kotlin.$_$.dg; var toMutableSet = kotlin_kotlin.$_$.x9; var toString_1 = kotlin_kotlin.$_$.c3; var titlecase = kotlin_kotlin.$_$.gg; var isLowerCase = kotlin_kotlin.$_$.ff; var Char = kotlin_kotlin.$_$.kh; var offsetAt = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.m; var PersonGroup = kotlin_com_ustadmobile_app_lib_database.$_$.k4; var PersonGroupMember_init_$Create$ = kotlin_com_ustadmobile_app_lib_database.$_$.i5; var ScopedGrant = kotlin_com_ustadmobile_app_lib_database.$_$.r4; var abs = kotlin_kotlin.$_$.ad; var padStart = kotlin_kotlin.$_$.nf; var equals_0 = kotlin_kotlin.$_$.we; var SerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p1; var toLong_0 = kotlin_kotlin.$_$.sg; var LanguageDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.p5; var LeavingReason = kotlin_com_ustadmobile_app_lib_database.$_$.f4; var Companion_getInstance_11 = kotlin_com_ustadmobile_app_lib_database.$_$.o7; var lastOrNull = kotlin_kotlin.$_$.f8; var KProperty0 = kotlin_kotlin.$_$.sd; var THROW_ISE = kotlin_kotlin.$_$.ei; var getLocalDelegateReference = kotlin_kotlin.$_$.qb; 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.$_$.w9; var Companion_instance_32 = kotlin_com_ustadmobile_app_lib_database.$_$.h6; var InstanceOrNull = kotlin_org_kodein_di_kodein_di.$_$.l; var toBoolean = kotlin_kotlin.$_$.ig; var PermissionFlags_getInstance = kotlin_com_ustadmobile_app_lib_database.$_$.r5; var ClazzAndDetailPermissions = kotlin_com_ustadmobile_app_lib_database.$_$.m; var mutableListOf = kotlin_kotlin.$_$.o8; var PermissionTriple = kotlin_com_ustadmobile_app_lib_database.$_$.d1; var ClazzAndDisplayDetails = kotlin_com_ustadmobile_app_lib_database.$_$.n; var combine = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1; var Companion_getInstance_12 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r; var shareIn = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p1; var CoursePicture = kotlin_com_ustadmobile_app_lib_database.$_$.w3; var shallowCopy_3 = kotlin_com_ustadmobile_app_lib_database.$_$.f2; var ClazzWithHolidayCalendarAndAndTerminology = kotlin_com_ustadmobile_app_lib_database.$_$.c3; var getDefaultTimeZoneId = kotlin_com_ustadmobile_app_lib_util.$_$.a; var CourseBlockPicture = kotlin_com_ustadmobile_app_lib_database.$_$.q3; var CourseBlockAndEditEntities = kotlin_com_ustadmobile_app_lib_database.$_$.w; var Schedule = kotlin_com_ustadmobile_app_lib_database.$_$.q4; var CourseTerminology = kotlin_com_ustadmobile_app_lib_database.$_$.x3; var Companion_instance_33 = kotlin_com_ustadmobile_app_lib_database.$_$.r6; var Companion_getInstance_13 = kotlin_com_ustadmobile_app_lib_database.$_$.w5; var shallowCopy_4 = kotlin_com_ustadmobile_app_lib_database.$_$.a2; var deactivateByUids = kotlin_com_ustadmobile_app_lib_database.$_$.e5; var deactivateByUids_0 = kotlin_com_ustadmobile_app_lib_database.$_$.f5; var deactivateByUids_1 = kotlin_com_ustadmobile_app_lib_database.$_$.g5; var async = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f2; var awaitAll = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f; var Companion_instance_34 = kotlin_com_ustadmobile_app_lib_database.$_$.k7; var $serializer_getInstance_7 = kotlin_com_ustadmobile_app_lib_database.$_$.a8; var $serializer_getInstance_8 = kotlin_com_ustadmobile_app_lib_database.$_$.v5; var $serializer_getInstance_9 = kotlin_com_ustadmobile_app_lib_database.$_$.q6; var BlockStatus = kotlin_com_ustadmobile_app_lib_database.$_$.l; 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.$_$.j1; var PagingSourceWithHttpLoader = kotlin_com_github_UstadMobile_door_door_runtime.$_$.r1; var DelegatedInvalidationPagingSource = kotlin_com_github_UstadMobile_door_door_runtime.$_$.l1; var ClazzEnrolmentDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.l5; var ClazzInviteAndClazz = kotlin_com_ustadmobile_app_lib_database.$_$.o; var last = kotlin_kotlin.$_$.g8; var ClazzDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.k5; var PermissionPair = kotlin_com_ustadmobile_app_lib_database.$_$.c1; var first_1 = kotlin_kotlin.$_$.q7; var eachCount = kotlin_kotlin.$_$.h7; var AverageCourseAssignmentMark = kotlin_com_ustadmobile_app_lib_database.$_$.w2; var CourseAssignmentMarkAndMarkerName = kotlin_com_ustadmobile_app_lib_database.$_$.u; var SubmissionAndFiles = kotlin_com_ustadmobile_app_lib_database.$_$.k1; var ClazzAssignment = kotlin_com_ustadmobile_app_lib_database.$_$.y2; var AssignmentProgressSummary = kotlin_com_ustadmobile_app_lib_database.$_$.t2; var ClazzAssignmentDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.j5; var ClazzAssignmentCourseBlockAndSubmitterUid = kotlin_com_ustadmobile_app_lib_database.$_$.x2; var throwKotlinNothingValueException = kotlin_kotlin.$_$.ej; var CourseAssignmentSubmission = kotlin_com_ustadmobile_app_lib_database.$_$.p3; var Comments = kotlin_com_ustadmobile_app_lib_database.$_$.e3; var CourseAssignmentSubmissionFile = kotlin_com_ustadmobile_app_lib_database.$_$.o3; var CourseAssignmentMarkDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.n5; var CourseGroupSet = kotlin_com_ustadmobile_app_lib_database.$_$.u3; var shallowCopy_5 = kotlin_com_ustadmobile_app_lib_database.$_$.b2; var CourseBlock = kotlin_com_ustadmobile_app_lib_database.$_$.r3; var $serializer_getInstance_10 = kotlin_com_ustadmobile_app_lib_database.$_$.j7; var AssignmentSubmitterSummary = kotlin_com_ustadmobile_app_lib_database.$_$.v2; var AssignmentSubmitterAndAllocations = kotlin_com_ustadmobile_app_lib_database.$_$.u2; var Companion_getInstance_14 = kotlin_com_ustadmobile_app_lib_database.$_$.i6; var CourseBlockAndAssignment = kotlin_com_ustadmobile_app_lib_database.$_$.v; var AssignmentPermissionAndActiveUserSubmitterUid = kotlin_com_ustadmobile_app_lib_database.$_$.k; var CourseAssignmentMark = kotlin_com_ustadmobile_app_lib_database.$_$.n3; var ClazzNameAndTerminology = kotlin_com_ustadmobile_app_lib_database.$_$.p; var ClazzEnrolmentWithLeavingReason = kotlin_com_ustadmobile_app_lib_database.$_$.z2; var Companion_instance_35 = kotlin_com_ustadmobile_app_lib_database.$_$.m6; var flowOf = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m1; var Clazz = kotlin_com_ustadmobile_app_lib_database.$_$.d3; var Companion_instance_36 = kotlin_com_ustadmobile_app_lib_database.$_$.o6; var ClazzLog = kotlin_com_ustadmobile_app_lib_database.$_$.b3; var shallowCopy_6 = kotlin_com_ustadmobile_app_lib_database.$_$.z1; var Companion_instance_37 = kotlin_com_ustadmobile_app_lib_database.$_$.p6; var Companion_instance_38 = kotlin_com_ustadmobile_app_lib_database.$_$.x5; var ClazzLogAttendanceRecord = kotlin_com_ustadmobile_app_lib_database.$_$.a3; var PersonAndClazzLogAttendanceRecord = kotlin_com_ustadmobile_app_lib_database.$_$.e1; var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1; var shallowCopy_7 = kotlin_com_ustadmobile_app_lib_database.$_$.p1; var ContentEntryAndDetail = kotlin_com_ustadmobile_app_lib_database.$_$.s; var ContentEntryVersion = kotlin_com_ustadmobile_app_lib_database.$_$.l3; var OfflineItemAndState = kotlin_com_ustadmobile_app_lib_database.$_$.b1; var distinctUntilChangedBy = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1; var Companion_instance_39 = kotlin_com_ustadmobile_app_lib_database.$_$.f8; var Companion_instance_40 = kotlin_com_ustadmobile_app_lib_database.$_$.u5; var shallowCopy_8 = kotlin_com_ustadmobile_app_lib_database.$_$.y1; var ContentEntryPicture2 = kotlin_com_ustadmobile_app_lib_database.$_$.i3; var ContentEntryAndContentJob = kotlin_com_ustadmobile_app_lib_database.$_$.r; var ContentEntry = kotlin_com_ustadmobile_app_lib_database.$_$.m3; var ContentEntryImportJob = kotlin_com_ustadmobile_app_lib_database.$_$.g3; var Companion_instance_41 = kotlin_com_ustadmobile_app_lib_database.$_$.t5; var setOf = kotlin_kotlin.$_$.h9; var ContentEntryDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.m5; var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w2; var CourseBlockAndPicture = kotlin_com_ustadmobile_app_lib_database.$_$.x; var CourseGroupMemberAndName = kotlin_com_ustadmobile_app_lib_database.$_$.s3; var CourseGroupMember = kotlin_com_ustadmobile_app_lib_database.$_$.t3; var Companion_instance_42 = kotlin_com_ustadmobile_app_lib_database.$_$.e7; var Companion_instance_43 = kotlin_com_ustadmobile_app_lib_database.$_$.f7; var Companion_instance_44 = kotlin_com_ustadmobile_app_lib_database.$_$.g7; var shallowCopy_9 = kotlin_com_ustadmobile_app_lib_database.$_$.t1; var CourseGroupSetDaoConstants_instance = kotlin_com_ustadmobile_app_lib_database.$_$.o5; var shallowCopy_10 = kotlin_com_ustadmobile_app_lib_database.$_$.q1; var DiscussionPost = kotlin_com_ustadmobile_app_lib_database.$_$.y3; var Companion_instance_45 = kotlin_com_ustadmobile_app_lib_database.$_$.m7; var printStackTrace = kotlin_kotlin.$_$.dj; 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.$_$.u4; var daysUntil = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.k; var Message = kotlin_com_ustadmobile_app_lib_database.$_$.g4; var NotImplementedError = kotlin_kotlin.$_$.xh; var shallowCopy_11 = kotlin_com_ustadmobile_app_lib_database.$_$.w1; var Companion_instance_46 = kotlin_com_ustadmobile_app_lib_database.$_$.w7; var PersonAndDisplayDetail = kotlin_com_ustadmobile_app_lib_database.$_$.i4; var EditAndViewPermission = kotlin_com_ustadmobile_app_lib_database.$_$.z; var replace = kotlin_kotlin.$_$.rf; var PersonPicture = kotlin_com_ustadmobile_app_lib_database.$_$.o4; 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.$_$.q5; var Settings = kotlin_com_russhwolf_multiplatform_settings.$_$.a; var println = kotlin_kotlin.$_$.za; var get_lastIndex = kotlin_kotlin.$_$.d8; var SiteTermsAndLangName = kotlin_com_ustadmobile_app_lib_database.$_$.i1; var contains_0 = kotlin_kotlin.$_$.o6; var SiteTerms = kotlin_com_ustadmobile_app_lib_database.$_$.t4; var Companion_instance_47 = kotlin_com_ustadmobile_app_lib_database.$_$.d8; var shallowCopy_12 = kotlin_com_ustadmobile_app_lib_database.$_$.c2; 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.$_$.jc; var KMutableProperty0 = kotlin_kotlin.$_$.rd; 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.$_$.c5; var TransferJob = kotlin_com_ustadmobile_app_lib_database.$_$.x4; var await_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h; var TransferJobItem = kotlin_com_ustadmobile_app_lib_database.$_$.w4; var TransferJobItemStatus_IN_PROGRESS_getInstance = kotlin_com_ustadmobile_app_lib_database.$_$.d5; var NonCancellable_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x; var coroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i; var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u1; var randomUuid = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b2; 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(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(UnauthorizedException, 'UnauthorizedException', classMeta, IllegalStateException, VOID, UnauthorizedException); setMetadataFor(Companion_2, 'Companion', objectMeta); setMetadataFor($serializer_1, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(UserSessionWithPersonAndLearningSpace, 'UserSessionWithPersonAndLearningSpace', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_13}); setMetadataFor(UstadAccountManager$slambda$slambda$slambda$slambda$slambda, 'UstadAccountManager$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$slambda$slambda$slambda$slambda, 'UstadAccountManager$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$slambda$slambda$slambda, 'UstadAccountManager$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$slambda$slambda, 'UstadAccountManager$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(UstadAccountManager$slambda$slambda$slambda$slambda_1, 'UstadAccountManager$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$slambda$slambda$slambda_1, 'UstadAccountManager$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$slambda$slambda_1, 'UstadAccountManager$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(UstadAccountManager$registerWithPasskey$slambda$slambda, 'UstadAccountManager$registerWithPasskey$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$register$slambda$slambda, 'UstadAccountManager$register$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$register$slambda$slambda_1, 'UstadAccountManager$register$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_3, 'Companion', objectMeta); setMetadataFor(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', classMeta, VOID, [Comparator]); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0, 'sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0', classMeta); setMetadataFor(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_0, 'sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0', classMeta); setMetadataFor(UstadAccountManager$slambda, 'UstadAccountManager$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$slambda_1, 'UstadAccountManager$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$makeNewTempGuestSession$slambda, 'UstadAccountManager$makeNewTempGuestSession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$registerWithPasskey$slambda, 'UstadAccountManager$registerWithPasskey$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$register$slambda, 'UstadAccountManager$register$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$addSession$slambda, 'UstadAccountManager$addSession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$loginWithPasskey$slambda, 'UstadAccountManager$loginWithPasskey$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$login$slambda, 'UstadAccountManager$login$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($activeSessionsListCOROUTINE$2, '$activeSessionsListCOROUTINE$2', classMeta, CoroutineImpl); setMetadataFor($activeSessionCountCOROUTINE$3, '$activeSessionCountCOROUTINE$3', classMeta, CoroutineImpl); setMetadataFor($addSessionCOROUTINE$4, '$addSessionCOROUTINE$4', classMeta, CoroutineImpl); setMetadataFor($endSessionCOROUTINE$6, '$endSessionCOROUTINE$6', classMeta, CoroutineImpl); setMetadataFor($getSiteFromDbOrLoadFromHttpCOROUTINE$7, '$getSiteFromDbOrLoadFromHttpCOROUTINE$7', classMeta, CoroutineImpl); setMetadataFor($startGuestSessionCOROUTINE$9, '$startGuestSessionCOROUTINE$9', classMeta, CoroutineImpl); setMetadataFor(UstadAccountManager, 'UstadAccountManager', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 5, 4, 3, 0]); setMetadataFor(Companion_4, 'Companion', objectMeta); setMetadataFor(Companion_5, 'Companion', objectMeta); setMetadataFor(Anchor, 'Anchor', classMeta, VOID, VOID, Anchor, VOID, {0: AnchorSerializer_getInstance}); setMetadataFor(AnchorSerializer, 'AnchorSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_6, 'Companion', objectMeta); setMetadataFor(Body, 'Body', classMeta, VOID, VOID, VOID, VOID, {0: BodySerializer_getInstance}); setMetadataFor(BodySerializer, 'BodySerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_7, 'Companion', objectMeta); setMetadataFor($serializer_2, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ListItem, 'ListItem', classMeta, VOID, VOID, ListItem, VOID, {0: $serializer_getInstance_14}); setMetadataFor(Companion_8, 'Companion', objectMeta); setMetadataFor($serializer_3, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NavElement, 'NavElement', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_15}); setMetadataFor(Companion_9, 'Companion', objectMeta); setMetadataFor($serializer_4, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NavigationDocument, 'NavigationDocument', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_16}); setMetadataFor(Companion_10, 'Companion', objectMeta); setMetadataFor($serializer_5, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(OrderedList, 'OrderedList', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_17}); setMetadataFor(Companion_11, 'Companion', objectMeta); setMetadataFor(Span, 'Span', classMeta, VOID, VOID, Span, VOID, {0: SpanSerializer_getInstance}); setMetadataFor(SpanSerializer, 'SpanSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor($serializer_6, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Content, 'Content', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_18}); setMetadataFor(Companion_12, 'Companion', objectMeta); setMetadataFor($serializer_7, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DocTitle, 'DocTitle', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_19}); setMetadataFor(Companion_13, 'Companion', objectMeta); setMetadataFor($serializer_8, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Head, 'Head', classMeta, VOID, VOID, Head, VOID, {0: $serializer_getInstance_20}); setMetadataFor($serializer_9, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NavLabel, 'NavLabel', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_21}); setMetadataFor(Companion_14, 'Companion', objectMeta); setMetadataFor($serializer_10, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NavMap, 'NavMap', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_22}); setMetadataFor(Companion_15, 'Companion', objectMeta); setMetadataFor($serializer_11, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NavPoint, 'NavPoint', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_23}); setMetadataFor(Companion_16, 'Companion', objectMeta); setMetadataFor($serializer_12, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NcxDocument, 'NcxDocument', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_24}); setMetadataFor(Companion_17, 'Companion', objectMeta); setMetadataFor($serializer_13, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Text, 'Text', classMeta, VOID, VOID, Text, VOID, {0: $serializer_getInstance_25}); setMetadataFor(Companion_18, 'Companion', objectMeta); setMetadataFor($serializer_14, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DcCreator, 'DcCreator', classMeta, VOID, VOID, DcCreator, VOID, {0: $serializer_getInstance_26}); setMetadataFor(Companion_19, 'Companion', objectMeta); setMetadataFor($serializer_15, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DcDescription, 'DcDescription', classMeta, VOID, VOID, DcDescription, VOID, {0: $serializer_getInstance_27}); setMetadataFor(Companion_20, 'Companion', objectMeta); setMetadataFor($serializer_16, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DcIdentifier, 'DcIdentifier', classMeta, VOID, VOID, DcIdentifier, VOID, {0: $serializer_getInstance_28}); setMetadataFor($serializer_17, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DcLanguage, 'DcLanguage', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_29}); setMetadataFor(Companion_21, 'Companion', objectMeta); setMetadataFor($serializer_18, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DcTitle, 'DcTitle', classMeta, VOID, VOID, DcTitle, VOID, {0: $serializer_getInstance_30}); setMetadataFor($serializer_19, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Item, 'Item', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_31}); setMetadataFor(Companion_22, 'Companion', objectMeta); setMetadataFor($serializer_20, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ItemRef, 'ItemRef', classMeta, VOID, VOID, ItemRef, VOID, {0: $serializer_getInstance_32}); setMetadataFor(Companion_23, 'Companion', objectMeta); setMetadataFor($serializer_21, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Manifest, 'Manifest', classMeta, VOID, VOID, Manifest, VOID, {0: $serializer_getInstance_33}); setMetadataFor(Companion_24, 'Companion', objectMeta); setMetadataFor($serializer_22, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Meta, 'Meta', classMeta, VOID, VOID, Meta, VOID, {0: $serializer_getInstance_34}); setMetadataFor(Companion_25, 'Companion', objectMeta); setMetadataFor($serializer_23, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Metadata, 'Metadata', classMeta, VOID, VOID, Metadata, VOID, {0: $serializer_getInstance_35}); setMetadataFor(Companion_26, 'Companion', objectMeta); setMetadataFor($serializer_24, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PackageDocument, 'PackageDocument', classMeta, VOID, VOID, PackageDocument, VOID, {0: $serializer_getInstance_36}); setMetadataFor(Companion_27, 'Companion', objectMeta); setMetadataFor($serializer_25, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Spine, 'Spine', classMeta, VOID, VOID, Spine, VOID, {0: $serializer_getInstance_37}); setMetadataFor(Companion_28, 'Companion', objectMeta); setMetadataFor($serializer_26, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentManifest, 'ContentManifest', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_38}); setMetadataFor(Companion_29, 'Companion', objectMeta); setMetadataFor($serializer_27, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentManifestEntry, 'ContentManifestEntry', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_39}); setMetadataFor(Companion_30, 'Companion', objectMeta); setMetadataFor($serializer_28, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(MediaContentInfo, 'MediaContentInfo', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_40}); setMetadataFor($serializer_29, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(MediaSource, 'MediaSource', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_41}); setMetadataFor(Companion_31, 'Companion', objectMeta); setMetadataFor($serializer_30, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SubtitleTrack, 'SubtitleTrack', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_42}); setMetadataFor(InvalidContentException, 'InvalidContentException', classMeta, IllegalArgumentException); setMetadataFor(Companion_32, 'Companion', objectMeta); setMetadataFor($serializer_31, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(MetadataResult, 'MetadataResult', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_43}); setMetadataFor(PersonConstants, 'PersonConstants', objectMeta); setMetadataFor(SubmissionConstants, 'SubmissionConstants', objectMeta); setMetadataFor(TerminologyKeys, 'TerminologyKeys', objectMeta); setMetadataFor(ValidateUsernameUseCase, 'ValidateUsernameUseCase', classMeta, VOID, VOID, ValidateUsernameUseCase); setMetadataFor(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$10, '$invokeCOROUTINE$10', 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$11, '$invokeCOROUTINE$11', 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$13, '$collectCOROUTINE$13', 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$12, '$invokeCOROUTINE$12', 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(GetContentManifestUseCase, 'GetContentManifestUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(OpenBlobItem, 'OpenBlobItem', classMeta); setMetadataFor($invokeCOROUTINE$16, '$invokeCOROUTINE$16', classMeta, CoroutineImpl); setMetadataFor(OpenBlobUiUseCase, 'OpenBlobUiUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(OpenBlobIntent, 'OpenBlobIntent', classMeta, Enum); setMetadataFor(OpenBlobUseCase, 'OpenBlobUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(OpeningBlobState, 'OpeningBlobState', classMeta); setMetadataFor(SaveAndUploadLocalUrisUseCase$updateUris$slambda, 'SaveAndUploadLocalUrisUseCase$updateUris$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$17, '$invokeCOROUTINE$17', classMeta, CoroutineImpl); setMetadataFor(SaveAndUploadLocalUrisUseCase, 'SaveAndUploadLocalUrisUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_33, 'Companion', objectMeta); setMetadataFor($serializer_32, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SaveLocalUriAsBlobItem, 'SaveLocalUriAsBlobItem', classMeta); setMetadataFor(SavedBlob, 'SavedBlob', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_44}); function invoke$default(localUrisToSave, onTransferJobItemCreated, $completion, $super) { var tmp; if (onTransferJobItemCreated === VOID) { tmp = SaveLocalUrisAsBlobsUseCase$invoke$lambda; } else { tmp = onTransferJobItemCreated; } onTransferJobItemCreated = tmp; return $super === VOID ? this.oo1(localUrisToSave, onTransferJobItemCreated, $completion) : $super.oo1.call(this, localUrisToSave, onTransferJobItemCreated, $completion); } setMetadataFor(SaveLocalUrisAsBlobsUseCase, 'SaveLocalUrisAsBlobsUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(EnqueueSavePictureUseCase, 'EnqueueSavePictureUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(Companion_34, 'Companion', objectMeta); setMetadataFor($invokeCOROUTINE$18, '$invokeCOROUTINE$18', classMeta, CoroutineImpl); setMetadataFor(SavePictureUseCase, 'SavePictureUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(TransferJobItemStatusUpdater$updateJob$slambda, 'TransferJobItemStatusUpdater$updateJob$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TransferJobItemStatusUpdater$commit$slambda, 'TransferJobItemStatusUpdater$commit$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($commitCOROUTINE$19, '$commitCOROUTINE$19', classMeta, CoroutineImpl); setMetadataFor($onFinishedCOROUTINE$20, '$onFinishedCOROUTINE$20', classMeta, CoroutineImpl); setMetadataFor(TransferJobItemStatusUpdater, 'TransferJobItemStatusUpdater', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$21, '$invokeCOROUTINE$21', classMeta, CoroutineImpl); setMetadataFor(UpdateTransferJobItemEtagUseCase, 'UpdateTransferJobItemEtagUseCase', classMeta, VOID, VOID, UpdateTransferJobItemEtagUseCase, VOID, VOID, [4]); setMetadataFor(Companion_35, 'Companion', objectMeta); setMetadataFor(CancelBlobUploadClientUseCase, 'CancelBlobUploadClientUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EnqueueBlobUploadItem, 'EnqueueBlobUploadItem', classMeta); function invoke$default_0(items, batchUuid, chunkSize, tableId, entityUid, $completion, $super) { var tmp; if (chunkSize === VOID) { tmp = 524288; } else { tmp = chunkSize; } chunkSize = tmp; tableId = tableId === VOID ? 0 : tableId; entityUid = entityUid === VOID ? new Long(0, 0) : entityUid; return $super === VOID ? this.ho7(items, batchUuid, chunkSize, tableId, entityUid, $completion) : $super.ho7.call(this, items, batchUuid, chunkSize, tableId, entityUid, $completion); } setMetadataFor(EnqueueBlobUploadClientUseCase, 'EnqueueBlobUploadClientUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [5]); setMetadataFor($getLocalUriIfRemoteCOROUTINE$22, '$getLocalUriIfRemoteCOROUTINE$22', classMeta, CoroutineImpl); function invoke$default_1(url, progressInterval, onStateChange, inflateToTmpFileIfCompressed, $completion, $super) { progressInterval = progressInterval === VOID ? 500 : progressInterval; var tmp; if (onStateChange === VOID) { tmp = GetStoragePathForUrlUseCase$invoke$lambda; } else { tmp = onStateChange; } onStateChange = tmp; inflateToTmpFileIfCompressed = inflateToTmpFileIfCompressed === VOID ? false : inflateToTmpFileIfCompressed; return $super === VOID ? this.xo7(url, progressInterval, onStateChange, inflateToTmpFileIfCompressed, $completion) : $super.xo7.call(this, url, progressInterval, onStateChange, inflateToTmpFileIfCompressed, $completion); } setMetadataFor(GetStoragePathForUrlUseCase, 'GetStoragePathForUrlUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [4]); setMetadataFor(CreateNewClazzUseCase$invoke$slambda, 'CreateNewClazzUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CreateNewClazzUseCase, 'CreateNewClazzUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AlreadyEnroledInClassException, 'AlreadyEnroledInClassException', classMeta, Exception, VOID, AlreadyEnroledInClassException); setMetadataFor(AlreadyHasPendingRequestException, 'AlreadyHasPendingRequestException', classMeta, IllegalStateException, VOID, AlreadyHasPendingRequestException); setMetadataFor(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda, 'ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$23, '$invokeCOROUTINE$23', classMeta, CoroutineImpl); setMetadataFor(IApproveOrDeclinePendingEnrolmentRequestUseCase, 'IApproveOrDeclinePendingEnrolmentRequestUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(ApproveOrDeclinePendingEnrolmentUseCase, 'ApproveOrDeclinePendingEnrolmentUseCase', classMeta, VOID, [IApproveOrDeclinePendingEnrolmentRequestUseCase], VOID, VOID, VOID, [2]); setMetadataFor(EnrolIntoCourseUseCase$invoke$slambda, 'EnrolIntoCourseUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$24, '$invokeCOROUTINE$24', classMeta, CoroutineImpl); setMetadataFor(EnrolIntoCourseUseCase, 'EnrolIntoCourseUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor($invokeCOROUTINE$25, '$invokeCOROUTINE$25', classMeta, CoroutineImpl); setMetadataFor(RequestEnrolmentUseCase, 'RequestEnrolmentUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(SetClipboardStringUseCase, 'SetClipboardStringUseCase', interfaceMeta); setMetadataFor(Companion_36, 'Companion', objectMeta); setMetadataFor($serializer_33, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CompressParams, 'CompressParams', classMeta, VOID, VOID, CompressParams, VOID, {0: $serializer_getInstance_45}); setMetadataFor(CompressResult, 'CompressResult', classMeta); function invoke$default_2(fromUri, toUri, params, onProgress, $completion, $super) { toUri = toUri === VOID ? null : toUri; params = params === VOID ? new CompressParams() : params; onProgress = onProgress === VOID ? null : onProgress; return $super === VOID ? this.qob(fromUri, toUri, params, onProgress, $completion) : $super.qob.call(this, fromUri, toUri, params, onProgress, $completion); } setMetadataFor(CompressUseCase, 'CompressUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [4]); setMetadataFor(Companion_37, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(CompressionLevel, 'CompressionLevel', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_54}); setMetadataFor(CompressionLevelSerializer, 'CompressionLevelSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(ContentManifestMap, 'ContentManifestMap', classMeta); setMetadataFor(DeleteContentEntryParentChildJoinUseCase$invoke$slambda, 'DeleteContentEntryParentChildJoinUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DeleteContentEntryParentChildJoinUseCase, 'DeleteContentEntryParentChildJoinUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(Companion_38, 'Companion', objectMeta); setMetadataFor(ContentEntryGetMetaDataFromUriUseCase, 'ContentEntryGetMetaDataFromUriUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [4]); setMetadataFor(ContentEntryGetMetadataStatus, 'ContentEntryGetMetadataStatus', classMeta, VOID, VOID, ContentEntryGetMetadataStatus); setMetadataFor(UnsupportedContentException, 'UnsupportedContentException', classMeta, Exception); setMetadataFor(Companion_39, 'Companion', objectMeta); function invoke$default_3(subtitleTrackUri, filename, locale, $completion, $super) { locale = locale === VOID ? null : locale; return $super === VOID ? this.lod(subtitleTrackUri, filename, locale, $completion) : $super.lod.call(this, subtitleTrackUri, filename, locale, $completion); } setMetadataFor(GetSubtitleTrackFromUriUseCase, 'GetSubtitleTrackFromUriUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(CancelImportContentEntryUseCase, 'CancelImportContentEntryUseCase', interfaceMeta); setMetadataFor($invokeCOROUTINE$26, '$invokeCOROUTINE$26', classMeta, CoroutineImpl); setMetadataFor(CancelRemoteContentEntryImportUseCase, 'CancelRemoteContentEntryImportUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor($invokeCOROUTINE$27, '$invokeCOROUTINE$27', classMeta, CoroutineImpl); setMetadataFor(DismissRemoteContentEntryImportErrorUseCase, 'DismissRemoteContentEntryImportErrorUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(EnqueueContentEntryImportUseCase, 'EnqueueContentEntryImportUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$28, '$invokeCOROUTINE$28', classMeta, CoroutineImpl); setMetadataFor(EnqueueImportContentEntryUseCaseRemote, 'EnqueueImportContentEntryUseCaseRemote', classMeta, VOID, [EnqueueContentEntryImportUseCase], VOID, VOID, VOID, [1]); setMetadataFor(Companion_40, 'Companion', objectMeta); setMetadataFor($serializer_34, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ImportRequest, 'ImportRequest', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_46}); setMetadataFor(LaunchContentEntryVersionUseCase, 'LaunchContentEntryVersionUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [5]); setMetadataFor(DefaultLaunchContentEntryVersionUseCase, 'DefaultLaunchContentEntryVersionUseCase', classMeta, VOID, [LaunchContentEntryVersionUseCase], DefaultLaunchContentEntryVersionUseCase, VOID, VOID, [5]); setMetadataFor(LaunchResult, 'LaunchResult', classMeta, VOID, VOID, LaunchResult); setMetadataFor(LaunchEpubUseCase, 'LaunchEpubUseCase', interfaceMeta, VOID, [LaunchContentEntryVersionUseCase], VOID, VOID, VOID, [5]); setMetadataFor(LaunchXapiUseCase, 'LaunchXapiUseCase', interfaceMeta, VOID, [LaunchContentEntryVersionUseCase], VOID, VOID, VOID, [5]); setMetadataFor(XapiLaunchHrefResult, 'XapiLaunchHrefResult', classMeta); setMetadataFor(ResolveXapiLaunchHrefUseCase$invoke$slambda, 'ResolveXapiLaunchHrefUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$29, '$invokeCOROUTINE$29', classMeta, CoroutineImpl); setMetadataFor(ResolveXapiLaunchHrefUseCase, 'ResolveXapiLaunchHrefUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(MoveContentEntriesUseCase, 'MoveContentEntriesUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(SaveContentEntryUseCase$invoke$slambda, 'SaveContentEntryUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$30, '$invokeCOROUTINE$30', classMeta, CoroutineImpl); setMetadataFor(SaveContentEntryUseCase, 'SaveContentEntryUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [4]); setMetadataFor(AddOrUpdateCourseBlockUseCase, 'AddOrUpdateCourseBlockUseCase', classMeta, VOID, VOID, AddOrUpdateCourseBlockUseCase); setMetadataFor(UpdateCourseBlocksOnReorderOrCommitUseCase, 'UpdateCourseBlocksOnReorderOrCommitUseCase', classMeta, VOID, VOID, UpdateCourseBlocksOnReorderOrCommitUseCase); setMetadataFor(DeletePermanentlyUseCase, 'DeletePermanentlyUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(RestoreDeletedItemUseCase$invoke$slambda, 'RestoreDeletedItemUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(RestoreDeletedItemUseCase, 'RestoreDeletedItemUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$31, '$invokeCOROUTINE$31', classMeta, CoroutineImpl); setMetadataFor(GetEpubTableOfContentsUseCase, 'GetEpubTableOfContentsUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(GetApiUrlUseCase, 'GetApiUrlUseCase', interfaceMeta); setMetadataFor(GetApiUrlUseCaseDirect, 'GetApiUrlUseCaseDirect', classMeta, VOID, [GetApiUrlUseCase]); setMetadataFor(VersionInfo, 'VersionInfo', classMeta); setMetadataFor(GetVersionUseCase, 'GetVersionUseCase', interfaceMeta); setMetadataFor(GetHtmlContentDisplayEngineOptionsUseCase, 'GetHtmlContentDisplayEngineOptionsUseCase', classMeta); setMetadataFor(GetHtmlContentDisplayEngineUseCase, 'GetHtmlContentDisplayEngineUseCase', classMeta); setMetadataFor(Companion_41, 'Companion', objectMeta); setMetadataFor(SetHtmlContentDisplayEngineUseCase, 'SetHtmlContentDisplayEngineUseCase', classMeta); setMetadataFor(ExceptionWithStringResource, 'ExceptionWithStringResource', interfaceMeta); setMetadataFor(ClazzInviteRedeemException, 'ClazzInviteRedeemException', classMeta, Exception, [Exception, ExceptionWithStringResource]); setMetadataFor(ClazzInviteRedeemUseCase$invoke$slambda, 'ClazzInviteRedeemUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$32, '$invokeCOROUTINE$32', classMeta, CoroutineImpl); setMetadataFor(ClazzInviteRedeemUseCase, 'ClazzInviteRedeemUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(ClazzRedeemResult, 'ClazzRedeemResult', classMeta); setMetadataFor($invokeCOROUTINE$33, '$invokeCOROUTINE$33', classMeta, CoroutineImpl); setMetadataFor(ContactToServerUseCase, 'ContactToServerUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [4]); setMetadataFor(Companion_42, 'Companion', objectMeta); setMetadataFor($serializer_35, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContactUploadRequest, 'ContactUploadRequest', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_47}); setMetadataFor(ParseInviteUseCase, 'ParseInviteUseCase', classMeta); setMetadataFor(SetLangResult, 'SetLangResult', classMeta); function invoke$default_4(uiLang, currentDestination, navController, navArgs, $super) { navArgs = navArgs === VOID ? emptyMap() : navArgs; return $super === VOID ? this.aoq(uiLang, currentDestination, navController, navArgs) : $super.aoq.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(CheckContentLocalAvailabilityUseCase, 'CheckContentLocalAvailabilityUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_43, 'Companion', objectMeta); setMetadataFor(SetLocalSharingEnabledUseCase, 'SetLocalSharingEnabledUseCase', classMeta); setMetadataFor(MakeLinkUseCase, 'MakeLinkUseCase', classMeta); setMetadataFor(OnClickLinkUseCase, 'OnClickLinkUseCase', classMeta); setMetadataFor(Companion_44, 'Companion', objectMeta); setMetadataFor(LinkTarget, 'LinkTarget', classMeta, Enum); setMetadataFor(OpenExternalLinkUseCase, 'OpenExternalLinkUseCase', interfaceMeta); setMetadataFor(CreatePasskeyParams, 'CreatePasskeyParams', 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(GetCredentialUseCase, 'GetCredentialUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PasskeyRequestJsonUseCase, 'PasskeyRequestJsonUseCase', classMeta); setMetadataFor(Companion_45, '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, [2]); setMetadataFor($invokeCOROUTINE$34, '$invokeCOROUTINE$34', 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_37, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(BulkAddPersonsDataError, 'BulkAddPersonsDataError', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_49}); setMetadataFor(BulkAddPersonsFromLocalUriUseCase, 'BulkAddPersonsFromLocalUriUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(Companion_46, 'Companion', objectMeta); setMetadataFor($serializer_38, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(BulkAddUsersResult, 'BulkAddUsersResult', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_50}); 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_47, 'Companion', objectMeta); setMetadataFor($invokeCOROUTINE$35, '$invokeCOROUTINE$35', classMeta, CoroutineImpl); setMetadataFor(GetLocaleForSiteTermsUseCase, 'GetLocaleForSiteTermsUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [0]); setMetadataFor(OnClickSendSmsUseCase, 'OnClickSendSmsUseCase', interfaceMeta); setMetadataFor(Companion_48, 'Companion', objectMeta); setMetadataFor(DismissSocialWarningUseCase, 'DismissSocialWarningUseCase', classMeta); setMetadataFor(Companion_49, 'Companion', objectMeta); setMetadataFor(ShowSocialWarningUseCase, 'ShowSocialWarningUseCase', 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.xov(uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion) : $super.xov.call(this, uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion); } setMetadataFor(ChunkedUploadClientLocalUriUseCase, 'ChunkedUploadClientLocalUriUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [8]); setMetadataFor(Companion_50, 'Companion', objectMeta); setMetadataFor(StartUserSessionUseCase, 'StartUserSessionUseCase', classMeta); setMetadataFor(ValidateEmailUseCase, 'ValidateEmailUseCase', classMeta, VOID, VOID, ValidateEmailUseCase); setMetadataFor(StoreActivitiesUseCase$invoke$slambda, 'StoreActivitiesUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$39, '$invokeCOROUTINE$39', 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$40, '$storeStatementsCOROUTINE$40', classMeta, CoroutineImpl); setMetadataFor($postCOROUTINE$42, '$postCOROUTINE$42', classMeta, CoroutineImpl); setMetadataFor(XapiStatementResource, 'XapiStatementResource', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 3]); setMetadataFor(XapiGroupAndPersonUidMap, 'XapiGroupAndPersonUidMap', classMeta); setMetadataFor($invokeCOROUTINE$44, '$invokeCOROUTINE$44', classMeta, CoroutineImpl); setMetadataFor(CreateXapiGroupForCourseGroupUseCase, 'CreateXapiGroupForCourseGroupUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [5]); setMetadataFor($insertOrUpdateActorsIfNameChangedCOROUTINE$45, '$insertOrUpdateActorsIfNameChangedCOROUTINE$45', classMeta, CoroutineImpl); setMetadataFor($insertOrUpdateIfLastModChangedCOROUTINE$46, '$insertOrUpdateIfLastModChangedCOROUTINE$46', classMeta, CoroutineImpl); setMetadataFor(Companion_51, 'Companion', objectMeta); setMetadataFor($serializer_39, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Attachment, 'Attachment', classMeta, VOID, VOID, Attachment, VOID, {0: $serializer_getInstance_51}); setMetadataFor(Companion_52, 'Companion', objectMeta); setMetadataFor($serializer_40, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiAccount, 'XapiAccount', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_52}); setMetadataFor(Companion_53, 'Companion', objectMeta); setMetadataFor($serializer_41, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Interaction, 'Interaction', classMeta, VOID, VOID, Interaction, VOID, {0: $serializer_getInstance_53}); setMetadataFor(Companion_54, 'Companion', objectMeta); setMetadataFor($serializer_42, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiActivity, 'XapiActivity', classMeta, VOID, VOID, XapiActivity, VOID, {0: $serializer_getInstance_54}); setMetadataFor(ActivityEntities, 'ActivityEntities', classMeta); setMetadataFor(Companion_55, '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_56, 'Companion', objectMeta); setMetadataFor($serializer_43, '$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_55}); setMetadataFor(Companion_57, 'Companion', objectMeta); setMetadataFor($serializer_44, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiContext, 'XapiContext', classMeta, VOID, VOID, XapiContext, VOID, {0: $serializer_getInstance_56}); setMetadataFor(Companion_58, 'Companion', objectMeta); setMetadataFor(XapiContextActivities, 'XapiContextActivities', classMeta, VOID, VOID, XapiContextActivities, VOID, {0: XapiContextActivitiesSerializer_getInstance}); setMetadataFor(XapiContextActivitiesSerializer, 'XapiContextActivitiesSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_59, 'Companion', objectMeta); setMetadataFor($serializer_45, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiContextActivitiesSurrogate, 'XapiContextActivitiesSurrogate', classMeta, VOID, VOID, XapiContextActivitiesSurrogate, VOID, {0: $serializer_getInstance_57}); setMetadataFor(Companion_60, 'Companion', objectMeta); setMetadataFor($serializer_46, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiGroup, 'XapiGroup', classMeta, VOID, [XapiActor, XapiStatementObject], XapiGroup, VOID, {0: $serializer_getInstance_58}); setMetadataFor(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', classMeta, VOID, [Comparator]); setMetadataFor(Companion_61, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(XapiInteractionType, 'XapiInteractionType', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_78}); setMetadataFor(XapiInteractionTypeSerializer, 'XapiInteractionTypeSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_62, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(XapiObjectType, 'XapiObjectType', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_79}); setMetadataFor(XapiObjectTypeSerializer, 'XapiObjectTypeSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_63, 'Companion', objectMeta); setMetadataFor($serializer_47, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Score, 'Score', classMeta, VOID, VOID, Score, VOID, {0: $serializer_getInstance_59}); setMetadataFor(Companion_64, 'Companion', objectMeta); setMetadataFor($serializer_48, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiResult, 'XapiResult', classMeta, VOID, VOID, XapiResult, VOID, {0: $serializer_getInstance_60}); setMetadataFor(Companion_65, 'Companion', objectMeta); setMetadataFor($serializer_49, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiStatement, 'XapiStatement', classMeta, VOID, [XapiStatementObject], VOID, VOID, {0: $serializer_getInstance_61}); setMetadataFor(StatementEntities, 'StatementEntities', classMeta, VOID, VOID, StatementEntities); setMetadataFor(XapiStatementObjectSerializer, 'XapiStatementObjectSerializer', objectMeta, JsonContentPolymorphicSerializer); setMetadataFor(Companion_66, 'Companion', objectMeta); setMetadataFor($serializer_50, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiActivityStatementObject, 'XapiActivityStatementObject', classMeta, VOID, [XapiStatementObject], VOID, VOID, {0: $serializer_getInstance_62}); setMetadataFor(Companion_67, 'Companion', objectMeta); setMetadataFor($serializer_51, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiStatementRef, 'XapiStatementRef', classMeta, VOID, [XapiStatementObject], VOID, VOID, {0: $serializer_getInstance_63}); setMetadataFor(Companion_68, 'Companion', objectMeta); setMetadataFor($serializer_52, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiVerb, 'XapiVerb', classMeta, VOID, VOID, XapiVerb, VOID, {0: $serializer_getInstance_64}); 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_69, 'Companion', objectMeta); setMetadataFor($serializer_53, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiStatementsAndSession, 'XapiStatementsAndSession', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_65}); setMetadataFor(ResumeOrStartXapiSessionUseCase, 'ResumeOrStartXapiSessionUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [7]); setMetadataFor(UstadMobileConstants, 'UstadMobileConstants', objectMeta); setMetadataFor(Companion_70, 'Companion', objectMeta); setMetadataFor(UstadGoOptions, 'UstadGoOptions', classMeta, VOID, VOID, UstadGoOptions); setMetadataFor(UiLanguage, 'UiLanguage', classMeta); setMetadataFor(Companion_71, '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_72, '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_73, 'Companion', objectMeta); setMetadataFor(GenderConfig, 'GenderConfig', classMeta, VOID, VOID, GenderConfig); setMetadataFor(SettingsLocaleSettingDelegate, 'SettingsLocaleSettingDelegate', classMeta); setMetadataFor(Companion_74, 'Companion', objectMeta); setMetadataFor(SupportedLanguagesConfig, 'SupportedLanguagesConfig', classMeta); setMetadataFor(Companion_75, 'Companion', objectMeta); setMetadataFor(SystemUrlConfig, 'SystemUrlConfig', classMeta); setMetadataFor(Companion_76, 'Companion', objectMeta); setMetadataFor(Companion_77, '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_87().dpa_1 : goOptions; var tmp; if ($super === VOID) { this.npf(viewName, args, goOptions); tmp = Unit_instance; } else { tmp = $super.npf.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$47, '$collectCOROUTINE$47', 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_78, '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_79, 'Companion', objectMeta); setMetadataFor(MessageIdOption2, 'MessageIdOption2', classMeta); setMetadataFor(SortOrderOption, 'SortOrderOption', classMeta); setMetadataFor(UMFileUtil, 'UMFileUtil', objectMeta); setMetadataFor(Companion_80, 'Companion', objectMeta); setMetadataFor(UstadUrlComponents, 'UstadUrlComponents', classMeta); setMetadataFor($verifySiteCOROUTINE$48, '$verifySiteCOROUTINE$48', 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$49, '$collectCOROUTINE$49', 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$50, '$insertPersonAndGroupCOROUTINE$50', classMeta, CoroutineImpl); setMetadataFor($localFirstThenRepoIfFalseCOROUTINE$51, '$localFirstThenRepoIfFalseCOROUTINE$51', classMeta, CoroutineImpl); setMetadataFor($grantScopedPermissionCOROUTINE$52, '$grantScopedPermissionCOROUTINE$52', classMeta, CoroutineImpl); setMetadataFor($localFirstThenRepoIfNullCOROUTINE$53, '$localFirstThenRepoIfNullCOROUTINE$53', classMeta, CoroutineImpl); setMetadataFor(Companion_81, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(IStringValues, 'IStringValues', interfaceMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_98}); setMetadataFor(MapStringValues, 'MapStringValues', classMeta, VOID, [IStringValues]); setMetadataFor(StringValuesSerializer, 'StringValuesSerializer', classMeta, VOID, [KSerializer], StringValuesSerializer); setMetadataFor(Companion_82, 'Companion', objectMeta); setMetadataFor(Companion_83, 'Companion', objectMeta); setMetadataFor(Companion_84, 'Companion', objectMeta); setMetadataFor(Companion_85, 'Companion', objectMeta); setMetadataFor(Companion_86, 'Companion', objectMeta); setMetadataFor(Companion_87, 'Companion', objectMeta); setMetadataFor(Companion_88, 'Companion', objectMeta); setMetadataFor(Companion_89, 'Companion', objectMeta); setMetadataFor(Companion_90, 'Companion', objectMeta); setMetadataFor(ListViewMode, 'ListViewMode', classMeta, Enum); setMetadataFor(Companion_91, 'Companion', objectMeta); setMetadataFor(Companion_92, 'Companion', objectMeta); setMetadataFor(UstadViewModel, 'UstadViewModel', classMeta, ViewModel, [ViewModel, DIAware], VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(AddAccountSelectNewOrExistingUserTypeViewModel, 'AddAccountSelectNewOrExistingUserTypeViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(AddAccountSelectNewOrExistingUserTypeUiState, 'AddAccountSelectNewOrExistingUserTypeUiState', classMeta, VOID, VOID, AddAccountSelectNewOrExistingUserTypeUiState); setMetadataFor(Companion_93, 'Companion', objectMeta); setMetadataFor(AddAccountSelectNewOrExistingViewModel, 'AddAccountSelectNewOrExistingViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(AddAccountSelectNewOrExistingUiState, 'AddAccountSelectNewOrExistingUiState', classMeta, VOID, VOID, AddAccountSelectNewOrExistingUiState); 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_94, 'Companion', objectMeta); setMetadataFor(HolidayCalendarEditUiState, 'HolidayCalendarEditUiState', classMeta, VOID, VOID, HolidayCalendarEditUiState); setMetadataFor(Companion_95, '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_96, '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_97, '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_98, 'Companion', objectMeta); setMetadataFor(ReportFilterEditUiState, 'ReportFilterEditUiState', classMeta, VOID, VOID, ReportFilterEditUiState); setMetadataFor(ScopedGrantDetailUiState, 'ScopedGrantDetailUiState', classMeta, VOID, VOID, ScopedGrantDetailUiState); setMetadataFor(Companion_99, 'Companion', objectMeta); setMetadataFor(ScopedGrantEditUiState, 'ScopedGrantEditUiState', classMeta, VOID, VOID, ScopedGrantEditUiState); setMetadataFor(Companion_100, 'Companion', objectMeta); setMetadataFor(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda, 'UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_101, '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$57, '$collectCOROUTINE$57', classMeta, CoroutineImpl); setMetadataFor(Companion_102, '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$54, '$getJsonCOROUTINE$54', classMeta, CoroutineImpl); setMetadataFor($setJsonCOROUTINE$55, '$setJsonCOROUTINE$55', classMeta, CoroutineImpl); setMetadataFor($loadEntityCOROUTINE$56, '$loadEntityCOROUTINE$56', classMeta, CoroutineImpl); setMetadataFor(Companion_103, 'Companion', objectMeta); setMetadataFor(OpenLicensesViewModel, 'OpenLicensesViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); 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_104, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_5, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_0, 'sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0', classMeta, VOID, [OpenExternalLinkUseCase]); setMetadataFor(AccountListViewModel$slambda, 'AccountListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$slambda_1, 'AccountListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$onClickLogout$slambda, 'AccountListViewModel$onClickLogout$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$onClickAddAccount$slambda, 'AccountListViewModel$onClickAddAccount$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$onClickDeleteAccount$slambda, 'AccountListViewModel$onClickDeleteAccount$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$onClickOpenLicenses$slambda, 'AccountListViewModel$onClickOpenLicenses$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel, 'AccountListViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(AccountListUiState, 'AccountListUiState', classMeta, VOID, VOID, AccountListUiState); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_6, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(launchSetTitleFromClazzUid$slambda$slambda, 'launchSetTitleFromClazzUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(launchSetTitleFromClazzUid$slambda, 'launchSetTitleFromClazzUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_7, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(collectClazzNameAndUpdateTitle$slambda, 'collectClazzNameAndUpdateTitle$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionConstants, 'CoursePermissionConstants', objectMeta); setMetadataFor(getTitleForCoursePermission$slambda, 'getTitleForCoursePermission$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(getTitleForCoursePermission$slambda_1, 'getTitleForCoursePermission$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($getTitleForCoursePermissionCOROUTINE$58, '$getTitleForCoursePermissionCOROUTINE$58', 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_105, '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$59, '$collectCOROUTINE$59', 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$60, '$collectCOROUTINE$60', 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$61, '$collectCOROUTINE$61', 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_106, '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_107, '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$62, '$updateCourseBlockListCOROUTINE$62', classMeta, CoroutineImpl); setMetadataFor(ClazzEditViewModel, 'ClazzEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [1, 2, 3, 6]); setMetadataFor(CourseBlockUiState, 'CourseBlockUiState', classMeta); setMetadataFor(Companion_108, 'Companion', objectMeta); setMetadataFor($serializer_54, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzEditUiState, 'ClazzEditUiState', classMeta, VOID, VOID, ClazzEditUiState, VOID, {0: $serializer_getInstance_66}); setMetadataFor($loadCOROUTINE$63, '$loadCOROUTINE$63', classMeta, CoroutineImpl); setMetadataFor($loadHttpCOROUTINE$64, '$loadHttpCOROUTINE$64', 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_109, '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_110, '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_111, 'Companion', objectMeta); setMetadataFor($serializer_55, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Companion_112, 'Companion', objectMeta); setMetadataFor(InviteResult, 'InviteResult', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_67}); setMetadataFor(InviteViaContactViewModel$OnClickSend$slambda, 'InviteViaContactViewModel$OnClickSend$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($sendContactsToServerCOROUTINE$65, '$sendContactsToServerCOROUTINE$65', classMeta, CoroutineImpl); setMetadataFor(InviteViaContactViewModel, 'InviteViaContactViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [1, 2, 3, 6]); setMetadataFor(InviteViaContactUiState, 'InviteViaContactUiState', classMeta, VOID, VOID, InviteViaContactUiState); setMetadataFor(InviteViaContactChip, 'InviteViaContactChip', classMeta); setMetadataFor(Companion_113, 'Companion', objectMeta); setMetadataFor(InviteViaLinkViewModel, 'InviteViaLinkViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(InviteViaLinkUiState, 'InviteViaLinkUiState', classMeta, VOID, VOID, InviteViaLinkUiState); setMetadataFor(Companion_114, '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_115, '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_116, '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_117, '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_118, '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_119, '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_120, '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_121, '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_122, '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_123, '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$66, '$collectCOROUTINE$66', 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_124, '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_125, '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_126, 'Companion', objectMeta); setMetadataFor($serializer_56, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzAssignmentEditUiState, 'ClazzAssignmentEditUiState', classMeta, VOID, VOID, ClazzAssignmentEditUiState, VOID, {0: $serializer_getInstance_68}); 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_127, '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_128, '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_129, '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, '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_130, '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$67, '$collectCOROUTINE$67', 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$68, '$collectCOROUTINE$68', 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_131, '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_132, '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_133, '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_134, '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$69, '$savePersonAndAttendanceRecordsCOROUTINE$69', classMeta, CoroutineImpl); setMetadataFor($commitAttendanceRecordsToStateCOROUTINE$70, '$commitAttendanceRecordsToStateCOROUTINE$70', classMeta, CoroutineImpl); setMetadataFor(ClazzLogEditAttendanceViewModel, 'ClazzLogEditAttendanceViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 0, 3, 6]); setMetadataFor(ClazzLogEditAttendanceUiState, 'ClazzLogEditAttendanceUiState', classMeta, VOID, VOID, ClazzLogEditAttendanceUiState); setMetadataFor(Companion_135, 'Companion', objectMeta); setMetadataFor(ContentEntryDetailViewModel, 'ContentEntryDetailViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ContentEntryDetailUiState, 'ContentEntryDetailUiState', classMeta, VOID, VOID, ContentEntryDetailUiState); 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_136, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_22, '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_137, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_23, '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_138, '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_139, '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_140, '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_141, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_24, '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_142, 'Companion', objectMeta); setMetadataFor(ContentEntryListUiState, 'ContentEntryListUiState', classMeta, VOID, VOID, ContentEntryListUiState); setMetadataFor(Companion_143, 'Companion', objectMeta); setMetadataFor($serializer_57, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryListSelectedItem, 'ContentEntryListSelectedItem', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_69}); 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_144, '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_145, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(CompletionCriteria, 'CompletionCriteria', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_162}); 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_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(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_147, 'Companion', objectMeta); setMetadataFor($serializer_58, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockEditUiState, 'CourseBlockEditUiState', classMeta, VOID, VOID, CourseBlockEditUiState, VOID, {0: $serializer_getInstance_70}); 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_148, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_26, '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_149, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_27, '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_150, '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_151, '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_152, '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_153, '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_154, '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_155, '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_156, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_28, '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_157, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_29, '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$71, '$submitReplyCOROUTINE$71', 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_158, '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_159, '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_160, 'Companion', objectMeta); setMetadataFor(Companion_161, '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_162, '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_163, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_30, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(MessageListViewModel$slambda, 'MessageListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageListViewModel$onWarningDismiss$slambda, 'MessageListViewModel$onWarningDismiss$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageListViewModel$onClickSend$slambda, 'MessageListViewModel$onClickSend$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageListViewModel, 'MessageListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(MessageListUiState, 'MessageListUiState', classMeta, VOID, VOID, MessageListUiState); setMetadataFor(TitleAndLangCode, 'TitleAndLangCode', classMeta); setMetadataFor(ParentalConsentManagementViewModel$lambda$slambda$slambda, 'ParentalConsentManagementViewModel$lambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ParentalConsentManagementViewModel$lambda$slambda$slambda_1, 'ParentalConsentManagementViewModel$lambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_164, '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_165, '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_166, '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_167, 'Companion', objectMeta); setMetadataFor($serializer_59, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonUsernameAndPasswordModel, 'PersonUsernameAndPasswordModel', classMeta, VOID, VOID, PersonUsernameAndPasswordModel, VOID, {0: $serializer_getInstance_71}); setMetadataFor(Companion_168, '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_169, 'Companion', objectMeta); setMetadataFor($serializer_60, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(BulkAddPersonRunImportUiState, 'BulkAddPersonRunImportUiState', classMeta, VOID, VOID, BulkAddPersonRunImportUiState, VOID, {0: $serializer_getInstance_72}); setMetadataFor(Companion_170, 'Companion', objectMeta); setMetadataFor(BulkAddPersonSelectFileViewModel$slambda, 'BulkAddPersonSelectFileViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(BulkAddPersonSelectFileViewModel$slambda_1, 'BulkAddPersonSelectFileViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda, 'BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(BulkAddPersonSelectFileViewModel, 'BulkAddPersonSelectFileViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(BulkAddPersonSelectFileUiState, 'BulkAddPersonSelectFileUiState', classMeta, VOID, VOID, BulkAddPersonSelectFileUiState); setMetadataFor(AddChildProfilesViewModel$slambda$slambda$slambda, 'AddChildProfilesViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AddChildProfilesViewModel$slambda$slambda$slambda_1, 'AddChildProfilesViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(AddChildProfilesViewModel$slambda$slambda$slambda_3, 'AddChildProfilesViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AddChildProfilesViewModel$slambda$slambda, 'AddChildProfilesViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_171, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_31, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(AddChildProfilesViewModel$slambda, 'AddChildProfilesViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AddChildProfilesViewModel$slambda_1, 'AddChildProfilesViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AddChildProfilesViewModel$updateChildProfileList$slambda, 'AddChildProfilesViewModel$updateChildProfileList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AddChildProfilesViewModel$onClickDeleteChildProfile$slambda, 'AddChildProfilesViewModel$onClickDeleteChildProfile$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AddChildProfilesViewModel$onProfileSelected$slambda, 'AddChildProfilesViewModel$onProfileSelected$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($updateChildProfileListCOROUTINE$72, '$updateChildProfileListCOROUTINE$72', classMeta, CoroutineImpl); setMetadataFor(AddChildProfilesViewModel, 'AddChildProfilesViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [1, 2, 3, 6]); setMetadataFor(AddChildProfilesUiState, 'AddChildProfilesUiState', classMeta, VOID, VOID, AddChildProfilesUiState); setMetadataFor(EditChildProfileViewModel$slambda$slambda, 'EditChildProfileViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EditChildProfileViewModel$slambda$slambda_1, 'EditChildProfileViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_172, '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_173, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_32, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(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_174, '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_175, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_33, '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_176, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_34, '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_177, 'Companion', objectMeta); setMetadataFor(RegisterAgeRedirectViewModel, 'RegisterAgeRedirectViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(RegisterAgeRedirectUiState, 'RegisterAgeRedirectUiState', classMeta, VOID, VOID, RegisterAgeRedirectUiState); setMetadataFor(Companion_178, 'Companion', objectMeta); setMetadataFor(RegisterMinorWaitForParentViewModel, 'RegisterMinorWaitForParentViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(RegisterMinorWaitForParentUiState, 'RegisterMinorWaitForParentUiState', classMeta, VOID, VOID, RegisterMinorWaitForParentUiState); setMetadataFor(Companion_179, '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_180, '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_181, 'Companion', objectMeta); setMetadataFor(SettingsViewModel$slambda$slambda, 'SettingsViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_182, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_35, '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, 'SettingsViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(SettingsUiState, 'SettingsUiState', classMeta, VOID, VOID, SettingsUiState); setMetadataFor(Companion_183, 'Companion', objectMeta); setMetadataFor(Companion_184, 'Companion', objectMeta); setMetadataFor(SignUpViewModel$slambda, 'SignUpViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignUpViewModel$onEntityChanged$slambda, 'SignUpViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignUpViewModel$onPersonPictureChanged$slambda, 'SignUpViewModel$onPersonPictureChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignUpViewModel$onClickedSignup$slambda, 'SignUpViewModel$onClickedSignup$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignUpViewModel, 'SignUpViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(SignUpUiState, 'SignUpUiState', classMeta, VOID, VOID, SignUpUiState); setMetadataFor(Companion_185, 'Companion', objectMeta); setMetadataFor(SignupEnterUsernamePasswordViewModel$slambda, 'SignupEnterUsernamePasswordViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda, 'SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda, 'SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignupEnterUsernamePasswordViewModel, 'SignupEnterUsernamePasswordViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(SignupEnterUsernamePasswordUiState, 'SignupEnterUsernamePasswordUiState', classMeta, VOID, VOID, SignupEnterUsernamePasswordUiState); setMetadataFor(SiteDetailViewModel$slambda$slambda$slambda$slambda, 'SiteDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]); setMetadataFor(SiteDetailViewModel$slambda$slambda$slambda$slambda_1, 'SiteDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDetailViewModel$slambda$slambda$slambda$slambda_3, 'SiteDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDetailViewModel$slambda$slambda$slambda, 'SiteDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDetailViewModel$slambda$slambda$slambda_1, 'SiteDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDetailViewModel$slambda$slambda, 'SiteDetailViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_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(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_187, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_37, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(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_188, '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_189, '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_190, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_38, '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_191, '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_192, '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_193, '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_194, '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$73, '$encryptPbkdf2COROUTINE$73', classMeta, CoroutineImpl); setMetadataFor($doublePbkdf2HashAsBase64COROUTINE$75, '$doublePbkdf2HashAsBase64COROUTINE$75', 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$76, '$invokeCOROUTINE$76', 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$77, '$invokeCOROUTINE$77', 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$78, '$invokeCOROUTINE$78', classMeta, CoroutineImpl); setMetadataFor(CompressImageUseCaseJs, 'CompressImageUseCaseJs', classMeta, VOID, [CompressUseCase], CompressImageUseCaseJs, VOID, VOID, [4]); setMetadataFor(Companion_195, 'Companion', objectMeta); setMetadataFor($invokeCOROUTINE$79, '$invokeCOROUTINE$79', classMeta, CoroutineImpl); setMetadataFor(ContentEntryGetMetaDataFromUriUseCaseJs, 'ContentEntryGetMetaDataFromUriUseCaseJs', classMeta, VOID, [ContentEntryGetMetaDataFromUriUseCase], VOID, VOID, VOID, [4]); setMetadataFor($invokeCOROUTINE$80, '$invokeCOROUTINE$80', classMeta, CoroutineImpl); setMetadataFor(GetSubtitleTrackFromUriUseCaseJs, 'GetSubtitleTrackFromUriUseCaseJs', classMeta, VOID, [GetSubtitleTrackFromUriUseCase], VOID, VOID, VOID, [3]); setMetadataFor($invokeCOROUTINE$81, '$invokeCOROUTINE$81', 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$82, '$invokeCOROUTINE$82', 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$83, '$invokeCOROUTINE$83', 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$84, '$invokeCOROUTINE$84', classMeta, CoroutineImpl); setMetadataFor(ResumeOrStartXapiSessionUseCaseJs, 'ResumeOrStartXapiSessionUseCaseJs', classMeta, VOID, [ResumeOrStartXapiSessionUseCase], VOID, VOID, VOID, [7]); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_39, '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_40, '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_196, 'Companion', objectMeta); setMetadataFor(UstadMobileSystemImpl, 'UstadMobileSystemImpl', classMeta, UstadMobileSystemCommon, VOID, VOID, VOID, VOID, [2]); setMetadataFor(StringProviderJs, 'StringProviderJs', classMeta); setMetadataFor(Companion_197, 'Companion', objectMeta); setMetadataFor(SavedStateHandle2, 'SavedStateHandle2', classMeta); setMetadataFor(UrlKmpJs, 'UrlKmpJs', classMeta); setMetadataFor(Companion_198, '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.ilt_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.jlt_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.klt_1 = new Impl(this.jlt_1, this.ilt_1); this.llt_1 = new StringResource('app_name', this.klt_1); this.mlt_1 = new StringResource('blank', this.klt_1); this.nlt_1 = new StringResource('login', this.klt_1); this.olt_1 = new StringResource('got_it', this.klt_1); this.plt_1 = new StringResource('learn_more', this.klt_1); this.qlt_1 = new StringResource('be_careful_interacting_online', this.klt_1); this.rlt_1 = new StringResource('be_careful_not_to_share', this.klt_1); this.slt_1 = new StringResource('share_app', this.klt_1); this.tlt_1 = new StringResource('send_apk_file', this.klt_1); this.ult_1 = new StringResource('send_app_link', this.klt_1); this.vlt_1 = new StringResource('error', this.klt_1); this.wlt_1 = new StringResource('create_backup', this.klt_1); this.xlt_1 = new StringResource('create_backup_description', this.klt_1); this.ylt_1 = new StringResource('err_registering_new_user', this.klt_1); this.zlt_1 = new StringResource('register_empty_fields', this.klt_1); this.alu_1 = new StringResource('register_incorrect_email', this.klt_1); this.blu_1 = new StringResource('group_activity', this.klt_1); this.clu_1 = new StringResource('select_group_members', this.klt_1); this.dlu_1 = new StringResource('confirm_delete_message', this.klt_1); this.elu_1 = new StringResource('wrong_user_pass_combo', this.klt_1); this.flu_1 = new StringResource('login_network_error', this.klt_1); this.glu_1 = new StringResource('download', this.klt_1); this.hlu_1 = new StringResource('downloaded', this.klt_1); this.ilu_1 = new StringResource('recycled', this.klt_1); this.jlu_1 = new StringResource('libraries', this.klt_1); this.klu_1 = new StringResource('pause_download', this.klt_1); this.llu_1 = new StringResource('ok', this.klt_1); this.mlu_1 = new StringResource('confirm', this.klt_1); this.nlu_1 = new StringResource('cancel', this.klt_1); this.olu_1 = new StringResource('canceled', this.klt_1); this.plu_1 = new StringResource('delete', this.klt_1); this.qlu_1 = new StringResource('deleted', this.klt_1); this.rlu_1 = new StringResource('new_tab', this.klt_1); this.slu_1 = new StringResource('loading', this.klt_1); this.tlu_1 = new StringResource('deleting', this.klt_1); this.ulu_1 = new StringResource('processing', this.klt_1); this.vlu_1 = new StringResource('uploading', this.klt_1); this.wlu_1 = new StringResource('error_opening_file', this.klt_1); this.xlu_1 = new StringResource('logout', this.klt_1); this.ylu_1 = new StringResource('about', this.klt_1); this.zlu_1 = new StringResource('download_all', this.klt_1); this.alv_1 = new StringResource('next', this.klt_1); this.blv_1 = new StringResource('previous', this.klt_1); this.clv_1 = new StringResource('back', this.klt_1); this.dlv_1 = new StringResource('username', this.klt_1); this.elv_1 = new StringResource('password', this.klt_1); this.flv_1 = new StringResource('confirm_password', this.klt_1); this.glv_1 = new StringResource('last_name', this.klt_1); this.hlv_1 = new StringResource('first_name', this.klt_1); this.ilv_1 = new StringResource('register_now', this.klt_1); this.jlv_1 = new StringResource('new_password', this.klt_1); this.klv_1 = new StringResource('phone_memory', this.klt_1); this.llv_1 = new StringResource('memory_card', this.klt_1); this.mlv_1 = new StringResource('device', this.klt_1); this.nlv_1 = new StringResource('register', this.klt_1); this.olv_1 = new StringResource('phone_number', this.klt_1); this.plv_1 = new StringResource('name_key', this.klt_1); this.qlv_1 = new StringResource('description', this.klt_1); this.rlv_1 = new StringResource('male', this.klt_1); this.slv_1 = new StringResource('female', this.klt_1); this.tlv_1 = new StringResource('other', this.klt_1); this.ulv_1 = new StringResource('unset', this.klt_1); this.vlv_1 = new StringResource('settings', this.klt_1); this.wlv_1 = new StringResource('language', this.klt_1); this.xlv_1 = new StringResource('add_a_new_language', this.klt_1); this.ylv_1 = new StringResource('add_new_language', this.klt_1); this.zlv_1 = new StringResource('select_language', this.klt_1); this.alw_1 = new StringResource('languages', this.klt_1); this.blw_1 = new StringResource('edit_language', this.klt_1); this.clw_1 = new StringResource('two_letter_code', this.klt_1); this.dlw_1 = new StringResource('three_letter_code', this.klt_1); this.elw_1 = new StringResource('languages_description', this.klt_1); this.flw_1 = new StringResource('advanced', this.klt_1); this.glw_1 = new StringResource('optional', this.klt_1); this.hlw_1 = new StringResource('email', this.klt_1); this.ilw_1 = new StringResource('regcode', this.klt_1); this.jlw_1 = new StringResource('home', this.klt_1); this.klw_1 = new StringResource('phone', this.klt_1); this.llw_1 = new StringResource('attendance', this.klt_1); this.mlw_1 = new StringResource('classes', this.klt_1); this.nlw_1 = new StringResource('exams', this.klt_1); this.olw_1 = new StringResource('reports', this.klt_1); this.plw_1 = new StringResource('choose_template', this.klt_1); this.qlw_1 = new StringResource('save_as_template', this.klt_1); this.rlw_1 = new StringResource('contents', this.klt_1); this.slw_1 = new StringResource('students', this.klt_1); this.tlw_1 = new StringResource('add_a_student', this.klt_1); this.ulw_1 = new StringResource('forgot_password', this.klt_1); this.vlw_1 = new StringResource('notifications', this.klt_1); this.wlw_1 = new StringResource('account', this.klt_1); this.xlw_1 = new StringResource('accounts', this.klt_1); this.ylw_1 = new StringResource('share', this.klt_1); this.zlw_1 = new StringResource('send', this.klt_1); this.alx_1 = new StringResource('open', this.klt_1); this.blx_1 = new StringResource('downloading', this.klt_1); this.clx_1 = new StringResource('waiting', this.klt_1); this.dlx_1 = new StringResource('waiting_for_connection', this.klt_1); this.elx_1 = new StringResource('queued', this.klt_1); this.flx_1 = new StringResource('failed', this.klt_1); this.glx_1 = new StringResource('passed', this.klt_1); this.hlx_1 = new StringResource('success', this.klt_1); this.ilx_1 = new StringResource('incomplete', this.klt_1); this.jlx_1 = new StringResource('completed', this.klt_1); this.klx_1 = new StringResource('select_subtitle_video', this.klt_1); this.llx_1 = new StringResource('no_subtitle', this.klt_1); this.mlx_1 = new StringResource('no_video_file_found', this.klt_1); this.nlx_1 = new StringResource('content_from_file', this.klt_1); this.olx_1 = new StringResource('content_from_link', this.klt_1); this.plx_1 = new StringResource('import_from_file', this.klt_1); this.qlx_1 = new StringResource('import_from_link', this.klt_1); this.rlx_1 = new StringResource('import_content', this.klt_1); this.slx_1 = new StringResource('update_content', this.klt_1); this.tlx_1 = new StringResource('publicly_accessible', this.klt_1); this.ulx_1 = new StringResource('title', this.klt_1); this.vlx_1 = new StringResource('licence', this.klt_1); this.wlx_1 = new StringResource('ebook', this.klt_1); this.xlx_1 = new StringResource('interactive', this.klt_1); this.ylx_1 = new StringResource('collection', this.klt_1); this.zlx_1 = new StringResource('document', this.klt_1); this.aly_1 = new StringResource('article', this.klt_1); this.bly_1 = new StringResource('audio', this.klt_1); this.cly_1 = new StringResource('move', this.klt_1); this.dly_1 = new StringResource('hide', this.klt_1); this.ely_1 = new StringResource('unhide', this.klt_1); this.fly_1 = new StringResource('compress', this.klt_1); this.gly_1 = new StringResource('and_key', this.klt_1); this.hly_1 = new StringResource('added', this.klt_1); this.ily_1 = new StringResource('attempts', this.klt_1); this.jly_1 = new StringResource('add_link_description', this.klt_1); this.kly_1 = new StringResource('add_gallery_description', this.klt_1); this.lly_1 = new StringResource('add_file_description', this.klt_1); this.mly_1 = new StringResource('error_this_device_doesnt_support_bluetooth_sharing', this.klt_1); this.nly_1 = new StringResource('share_offline_zip_checkbox_label', this.klt_1); this.oly_1 = new StringResource('share_offline_dialog_message', this.klt_1); this.ply_1 = new StringResource('preparing', this.klt_1); this.qly_1 = new StringResource('fixed_date', this.klt_1); this.rly_1 = new StringResource('relative_date', this.klt_1); this.sly_1 = new StringResource('field_required_prompt', this.klt_1); this.tly_1 = new StringResource('field_password_error_min', this.klt_1); this.uly_1 = new StringResource('filed_password_no_match', this.klt_1); this.vly_1 = new StringResource('update', this.klt_1); this.wly_1 = new StringResource('profile', this.klt_1); this.xly_1 = new StringResource('dialog_download_from_playstore_message', this.klt_1); this.yly_1 = new StringResource('dialog_download_from_playstore_ok', this.klt_1); this.zly_1 = new StringResource('dialog_download_from_playstore_cancel', this.klt_1); this.alz_1 = new StringResource('accept', this.klt_1); this.blz_1 = new StringResource('also_available_in', this.klt_1); this.clz_1 = new StringResource('created_partnership', this.klt_1); this.dlz_1 = new StringResource('onboarding_get_started_label', this.klt_1); this.elz_1 = new StringResource('lets_get_started_label', this.klt_1); this.flz_1 = new StringResource('onboarding_headline1', this.klt_1); this.glz_1 = new StringResource('onboarding_subheadline1', this.klt_1); this.hlz_1 = new StringResource('onboarding_headline2', this.klt_1); this.ilz_1 = new StringResource('onboarding_subheadline2', this.klt_1); this.jlz_1 = new StringResource('onboarding_headline3', this.klt_1); this.klz_1 = new StringResource('onboarding_subheadline3', this.klt_1); this.llz_1 = new StringResource('download_continue_stacked_label', this.klt_1); this.mlz_1 = new StringResource('im_an_individual_learner', this.klt_1); this.nlz_1 = new StringResource('im_an_individual_learner_description', this.klt_1); this.olz_1 = new StringResource('i_want_to_join_my_organization_school', this.klt_1); this.plz_1 = new StringResource('i_want_to_join_my_organization_school_description', this.klt_1); this.qlz_1 = new StringResource('i_want_to_add_my_organization_school', this.klt_1); this.rlz_1 = new StringResource('i_want_to_add_my_organization_school_description', this.klt_1); this.slz_1 = new StringResource('individual_action_title', this.klt_1); this.tlz_1 = new StringResource('create_new_local_account_title', this.klt_1); this.ulz_1 = new StringResource('create_new_local_account_description', this.klt_1); this.vlz_1 = new StringResource('restore_local_account_title', this.klt_1); this.wlz_1 = new StringResource('restore_local_account_description', this.klt_1); this.xlz_1 = new StringResource('download_continue_btn_label', this.klt_1); this.ylz_1 = new StringResource('download_wifi_only', this.klt_1); this.zlz_1 = new StringResource('download_calculating', this.klt_1); this.am0_1 = new StringResource('download_downloading_placeholder', this.klt_1); this.bm0_1 = new StringResource('download_summary_title', this.klt_1); this.cm0_1 = new StringResource('download_cancel_label', this.klt_1); this.dm0_1 = new StringResource('download_pause_download', this.klt_1); this.em0_1 = new StringResource('download_storage_option_device', this.klt_1); this.fm0_1 = new StringResource('download_locally_availability', this.klt_1); this.gm0_1 = new StringResource('download_cloud_availability', this.klt_1); this.hm0_1 = new StringResource('insufficient_space', this.klt_1); this.im0_1 = new StringResource('download_entry_state_paused', this.klt_1); this.jm0_1 = new StringResource('get_app', this.klt_1); this.km0_1 = new StringResource('no_app_found', this.klt_1); this.lm0_1 = new StringResource('entry_details_author', this.klt_1); this.mm0_1 = new StringResource('entry_details_publisher', this.klt_1); this.nm0_1 = new StringResource('entry_details_license', this.klt_1); this.om0_1 = new StringResource('file_not_found', this.klt_1); this.pm0_1 = new StringResource('multiple_choice', this.klt_1); this.qm0_1 = new StringResource('preview', this.klt_1); this.rm0_1 = new StringResource('content_creation_storage_option_title', this.klt_1); this.sm0_1 = new StringResource('file_required_prompt', this.klt_1); this.tm0_1 = new StringResource('content_creation_folder_new_message', this.klt_1); this.um0_1 = new StringResource('content_creation_folder_update_message', this.klt_1); this.vm0_1 = new StringResource('error_message_load_page', this.klt_1); this.wm0_1 = new StringResource('error_message_update_document', this.klt_1); this.xm0_1 = new StringResource('supported_files', this.klt_1); this.ym0_1 = new StringResource('content_editor_save_error', this.klt_1); this.zm0_1 = new StringResource('content_entry_export_inprogress', this.klt_1); this.am1_1 = new StringResource('content_entry_export_message', this.klt_1); this.bm1_1 = new StringResource('show_hidden_items', this.klt_1); this.cm1_1 = new StringResource('open_folder', this.klt_1); this.dm1_1 = new StringResource('action_hidden', this.klt_1); this.em1_1 = new StringResource('invalid', this.klt_1); this.fm1_1 = new StringResource('enter_register_code', this.klt_1); this.gm1_1 = new StringResource('bar_chart', this.klt_1); this.hm1_1 = new StringResource('line_chart', this.klt_1); this.im1_1 = new StringResource('score', this.klt_1); this.jm1_1 = new StringResource('content_total_duration', this.klt_1); this.km1_1 = new StringResource('content_average_duration', this.klt_1); this.lm1_1 = new StringResource('count_session', this.klt_1); this.mm1_1 = new StringResource('interaction_recorded', this.klt_1); this.nm1_1 = new StringResource('number_active_users', this.klt_1); this.om1_1 = new StringResource('average_usage_time_per_user', this.klt_1); this.pm1_1 = new StringResource('number_students_completed', this.klt_1); this.qm1_1 = new StringResource('percent_students_completed', this.klt_1); this.rm1_1 = new StringResource('total_attendances', this.klt_1); this.sm1_1 = new StringResource('total_absences', this.klt_1); this.tm1_1 = new StringResource('total_lates', this.klt_1); this.um1_1 = new StringResource('percent_students_attended', this.klt_1); this.vm1_1 = new StringResource('percent_students_attended_or_late', this.klt_1); this.wm1_1 = new StringResource('total_number_of_classes', this.klt_1); this.xm1_1 = new StringResource('number_unique_students_attending', this.klt_1); this.ym1_1 = new StringResource('xapi_day', this.klt_1); this.zm1_1 = new StringResource('xapi_week', this.klt_1); this.am2_1 = new StringResource('xapi_month', this.klt_1); this.bm2_1 = new StringResource('xapi_custom_date', this.klt_1); this.cm2_1 = new StringResource('xapi_content_entry', this.klt_1); this.dm2_1 = new StringResource('xapi_clear', this.klt_1); this.em2_1 = new StringResource('last_week_date_range', this.klt_1); this.fm2_1 = new StringResource('last_two_week_date_range', this.klt_1); this.gm2_1 = new StringResource('last_month_date_range', this.klt_1); this.hm2_1 = new StringResource('last_three_months_date_range', this.klt_1); this.im2_1 = new StringResource('new_custom_date_range', this.klt_1); this.jm2_1 = new StringResource('selected_custom_range', this.klt_1); this.km2_1 = new StringResource('time_range', this.klt_1); this.lm2_1 = new StringResource('year', this.klt_1); this.mm2_1 = new StringResource('from', this.klt_1); this.nm2_1 = new StringResource('done', this.klt_1); this.om2_1 = new StringResource('xapi_options_general', this.klt_1); this.pm2_1 = new StringResource('xapi_options_report_title', this.klt_1); this.qm2_1 = new StringResource('xapi_options_visual_type', this.klt_1); this.rm2_1 = new StringResource('xapi_options_data_set', this.klt_1); this.sm2_1 = new StringResource('xapi_options_series', this.klt_1); this.tm2_1 = new StringResource('xapi_options_axes', this.klt_1); this.um2_1 = new StringResource('xapi_options_y_axes', this.klt_1); this.vm2_1 = new StringResource('xapi_options_x_axes', this.klt_1); this.wm2_1 = new StringResource('xapi_options_subgroup', this.klt_1); this.xm2_1 = new StringResource('xapi_options_filters', this.klt_1); this.ym2_1 = new StringResource('xapi_options_who', this.klt_1); this.zm2_1 = new StringResource('xapi_options_did', this.klt_1); this.am3_1 = new StringResource('xapi_options_what', this.klt_1); this.bm3_1 = new StringResource('xapi_options_when', this.klt_1); this.cm3_1 = new StringResource('xapi_options_where', this.klt_1); this.dm3_1 = new StringResource('time_range_all', this.klt_1); this.em3_1 = new StringResource('report_filter_edit_field', this.klt_1); this.fm3_1 = new StringResource('report_filter_edit_condition', this.klt_1); this.gm3_1 = new StringResource('report_filter_edit_values', this.klt_1); this.hm3_1 = new StringResource('report', this.klt_1); this.im3_1 = new StringResource('create_a_new_report', this.klt_1); this.jm3_1 = new StringResource('edit_report', this.klt_1); this.km3_1 = new StringResource('verb', this.klt_1); this.lm3_1 = new StringResource('add_a_new_verb', this.klt_1); this.mm3_1 = new StringResource('id_verbentity_urlid', this.klt_1); this.nm3_1 = new StringResource('edit_filters', this.klt_1); this.om3_1 = new StringResource('field_person_gender', this.klt_1); this.pm3_1 = new StringResource('field_person_age', this.klt_1); this.qm3_1 = new StringResource('field_content_completion', this.klt_1); this.rm3_1 = new StringResource('field_content_entry', this.klt_1); this.sm3_1 = new StringResource('field_content_progress', this.klt_1); this.tm3_1 = new StringResource('field_attendance_percentage', this.klt_1); this.um3_1 = new StringResource('condition_is', this.klt_1); this.vm3_1 = new StringResource('condition_is_not', this.klt_1); this.wm3_1 = new StringResource('condition_greater_than', this.klt_1); this.xm3_1 = new StringResource('condition_less_than', this.klt_1); this.ym3_1 = new StringResource('condition_in_list', this.klt_1); this.zm3_1 = new StringResource('condition_not_in_list', this.klt_1); this.am4_1 = new StringResource('condition_between', this.klt_1); this.bm4_1 = new StringResource('add_person_filter', this.klt_1); this.cm4_1 = new StringResource('add_verb_filter', this.klt_1); this.dm4_1 = new StringResource('add_content_filter', this.klt_1); this.em4_1 = new StringResource('dashboard', this.klt_1); this.fm4_1 = new StringResource('activity_import_link', this.klt_1); this.gm4_1 = new StringResource('xapi_hours', this.klt_1); this.hm4_1 = new StringResource('xapi_minutes', this.klt_1); this.im4_1 = new StringResource('xapi_seconds', this.klt_1); this.jm4_1 = new StringResource('xapi_verb_header', this.klt_1); this.km4_1 = new StringResource('xapi_result_header', this.klt_1); this.lm4_1 = new StringResource('xapi_score', this.klt_1); this.mm4_1 = new StringResource('import_title_not_entered', this.klt_1); this.nm4_1 = new StringResource('no_account', this.klt_1); this.om4_1 = new StringResource('enter_url', this.klt_1); this.pm4_1 = new StringResource('invalid_link', this.klt_1); this.qm4_1 = new StringResource('invalid_file', this.klt_1); this.rm4_1 = new StringResource('import_link_content_not_supported', this.klt_1); this.sm4_1 = new StringResource('unsupported_file_type', this.klt_1); this.tm4_1 = new StringResource('import_link_big_size', this.klt_1); this.um4_1 = new StringResource('import_link_error', this.klt_1); this.vm4_1 = new StringResource('supported_link', this.klt_1); this.wm4_1 = new StringResource('offline_sharing_enable_bluetooth_prompt', this.klt_1); this.xm4_1 = new StringResource('offline_sharing_enable_wifi_promot', this.klt_1); this.ym4_1 = new StringResource('enable', this.klt_1); this.zm4_1 = new StringResource('repo_loading_status_loading_cloud', this.klt_1); this.am5_1 = new StringResource('repo_loading_status_loading_mirror', this.klt_1); this.bm5_1 = new StringResource('repo_loading_status_failed_noconnection', this.klt_1); this.cm5_1 = new StringResource('repo_loading_status_failed_connection_error', this.klt_1); this.dm5_1 = new StringResource('licence_type_cc_by', this.klt_1); this.em5_1 = new StringResource('licence_type_cc_by_sa', this.klt_1); this.fm5_1 = new StringResource('licence_type_cc_by_sa_nc', this.klt_1); this.gm5_1 = new StringResource('licence_type_cc_by_nc', this.klt_1); this.hm5_1 = new StringResource('licence_type_cc_by_nc_sa', this.klt_1); this.im5_1 = new StringResource('licence_type_public_domain', this.klt_1); this.jm5_1 = new StringResource('licence_type_all_rights', this.klt_1); this.km5_1 = new StringResource('license_type_cc_0', this.klt_1); this.lm5_1 = new StringResource('syncing', this.klt_1); this.mm5_1 = new StringResource('feed', this.klt_1); this.nm5_1 = new StringResource('people', this.klt_1); this.om5_1 = new StringResource('record_attendance', this.klt_1); this.pm5_1 = new StringResource('today', this.klt_1); this.qm5_1 = new StringResource('sort_by', this.klt_1); this.rm5_1 = new StringResource('log', this.klt_1); this.sm5_1 = new StringResource('schedule', this.klt_1); this.tm5_1 = new StringResource('add_a_schedule', this.klt_1); this.um5_1 = new StringResource('edit_schedule', this.klt_1); this.vm5_1 = new StringResource('first_key', this.klt_1); this.wm5_1 = new StringResource('last_key', this.klt_1); this.xm5_1 = new StringResource('last_week', this.klt_1); this.ym5_1 = new StringResource('mark_all', this.klt_1); this.zm5_1 = new StringResource('mark_all_present', this.klt_1); this.am6_1 = new StringResource('mark_all_absent', this.klt_1); this.bm6_1 = new StringResource('present', this.klt_1); this.cm6_1 = new StringResource('absent', this.klt_1); this.dm6_1 = new StringResource('attendance_report', this.klt_1); this.em6_1 = new StringResource('father', this.klt_1); this.fm6_1 = new StringResource('mother', this.klt_1); this.gm6_1 = new StringResource('birthday', this.klt_1); this.hm6_1 = new StringResource('first_names', this.klt_1); this.im6_1 = new StringResource('basic_details', this.klt_1); this.jm6_1 = new StringResource('address', this.klt_1); this.km6_1 = new StringResource('add_person_to_class', this.klt_1); this.lm6_1 = new StringResource('edit', this.klt_1); this.mm6_1 = new StringResource('clazz', this.klt_1); this.nm6_1 = new StringResource('add_a_new_class', this.klt_1); this.om6_1 = new StringResource('edit_clazz', this.klt_1); this.pm6_1 = new StringResource('add_a_class', this.klt_1); this.qm6_1 = new StringResource('join_existing_class', this.klt_1); this.rm6_1 = new StringResource('student_image', this.klt_1); this.sm6_1 = new StringResource('question_key', this.klt_1); this.tm6_1 = new StringResource('add_question', this.klt_1); this.um6_1 = new StringResource('edit_question', this.klt_1); this.vm6_1 = new StringResource('questions', this.klt_1); this.wm6_1 = new StringResource('add_person', this.klt_1); this.xm6_1 = new StringResource('add_class', this.klt_1); this.ym6_1 = new StringResource('class_name', this.klt_1); this.zm6_1 = new StringResource('class_description', this.klt_1); this.am7_1 = new StringResource('to_key', this.klt_1); this.bm7_1 = new StringResource('holiday', this.klt_1); this.cm7_1 = new StringResource('add_a_holiday', this.klt_1); this.dm7_1 = new StringResource('edit_holiday', this.klt_1); this.em7_1 = new StringResource('holidays', this.klt_1); this.fm7_1 = new StringResource('holiday_calendar', this.klt_1); this.gm7_1 = new StringResource('add_a_new_holiday_calendar', this.klt_1); this.hm7_1 = new StringResource('edit_holiday_calendar', this.klt_1); this.im7_1 = new StringResource('features_enabled', this.klt_1); this.jm7_1 = new StringResource('weekly', this.klt_1); this.km7_1 = new StringResource('once', this.klt_1); this.lm7_1 = new StringResource('daily', this.klt_1); this.mm7_1 = new StringResource('monthly', this.klt_1); this.nm7_1 = new StringResource('yearly', this.klt_1); this.om7_1 = new StringResource('sunday', this.klt_1); this.pm7_1 = new StringResource('monday', this.klt_1); this.qm7_1 = new StringResource('tuesday', this.klt_1); this.rm7_1 = new StringResource('wednesday', this.klt_1); this.sm7_1 = new StringResource('thursday', this.klt_1); this.tm7_1 = new StringResource('friday', this.klt_1); this.um7_1 = new StringResource('saturday', this.klt_1); this.vm7_1 = new StringResource('day', this.klt_1); this.wm7_1 = new StringResource('toC', this.klt_1); this.xm7_1 = new StringResource('last_month', this.klt_1); this.ym7_1 = new StringResource('activity_change', this.klt_1); this.zm7_1 = new StringResource('change_implemented_if_any', this.klt_1); this.am8_1 = new StringResource('duration', this.klt_1); this.bm8_1 = new StringResource('how_did_it_go', this.klt_1); this.cm8_1 = new StringResource('notes', this.klt_1); this.dm8_1 = new StringResource('activity', this.klt_1); this.em8_1 = new StringResource('sort_by_name', this.klt_1); this.fm8_1 = new StringResource('sort_by_name_asc', this.klt_1); this.gm8_1 = new StringResource('sort_by_name_desc', this.klt_1); this.hm8_1 = new StringResource('date_enroll', this.klt_1); this.im8_1 = new StringResource('date_left', this.klt_1); this.jm8_1 = new StringResource('enroled', this.klt_1); this.km8_1 = new StringResource('class_enrolment', this.klt_1); this.lm8_1 = new StringResource('graduated', this.klt_1); this.mm8_1 = new StringResource('dropped_out', this.klt_1); this.nm8_1 = new StringResource('moved', this.klt_1); this.om8_1 = new StringResource('new_leaving_reason', this.klt_1); this.pm8_1 = new StringResource('edit_leaving_reason', this.klt_1); this.qm8_1 = new StringResource('edit_enrolment', this.klt_1); this.rm8_1 = new StringResource('new_enrolment', this.klt_1); this.sm8_1 = new StringResource('select_leaving_reason', this.klt_1); this.tm8_1 = new StringResource('add_leaving_reason', this.klt_1); this.um8_1 = new StringResource('leaving_reason', this.klt_1); this.vm8_1 = new StringResource('leaving_reasons', this.klt_1); this.wm8_1 = new StringResource('leaving_reason_manage', this.klt_1); this.xm8_1 = new StringResource('view_profile', this.klt_1); this.ym8_1 = new StringResource('class_enrolment_outcome', this.klt_1); this.zm8_1 = new StringResource('class_enrolment_leaving', this.klt_1); this.am9_1 = new StringResource('in_progress', this.klt_1); this.bm9_1 = new StringResource('outcome', this.klt_1); this.cm9_1 = new StringResource('person_enrolment_in_class', this.klt_1); this.dm9_1 = new StringResource('enrolment', this.klt_1); this.em9_1 = new StringResource('error_start_date_before_clazz_date', this.klt_1); this.fm9_1 = new StringResource('error_start_date_before_previous_enrolment_date', this.klt_1); this.gm9_1 = new StringResource('time_present', this.klt_1); this.hm9_1 = new StringResource('ascending', this.klt_1); this.im9_1 = new StringResource('descending', this.klt_1); this.jm9_1 = new StringResource('sort_by_text', this.klt_1); this.km9_1 = new StringResource('attendance_high_to_low', this.klt_1); this.lm9_1 = new StringResource('attendance_low_to_high', this.klt_1); this.mm9_1 = new StringResource('teacher', this.klt_1); this.nm9_1 = new StringResource('add_a_teacher', this.klt_1); this.om9_1 = new StringResource('partial', this.klt_1); this.pm9_1 = new StringResource('teachers_literal', this.klt_1); this.qm9_1 = new StringResource('participant', this.klt_1); this.rm9_1 = new StringResource('primary_user', this.klt_1); this.sm9_1 = new StringResource('up_key', this.klt_1); this.tm9_1 = new StringResource('down_key', this.klt_1); this.um9_1 = new StringResource('activity_went_good', this.klt_1); this.vm9_1 = new StringResource('activity_went_bad', this.klt_1); this.wm9_1 = new StringResource('activity_enter_any_notes', this.klt_1); this.xm9_1 = new StringResource('uom_frequency_title', this.klt_1); this.ym9_1 = new StringResource('uom_duration_title', this.klt_1); this.zm9_1 = new StringResource('uom_boolean_title', this.klt_1); this.ama_1 = new StringResource('uom_default_title', this.klt_1); this.bma_1 = new StringResource('add_activity', this.klt_1); this.cma_1 = new StringResource('add_activity_literal', this.klt_1); this.dma_1 = new StringResource('select_one', this.klt_1); this.ema_1 = new StringResource('measurement_type', this.klt_1); this.fma_1 = new StringResource('frequency', this.klt_1); this.gma_1 = new StringResource('yes_no', this.klt_1); this.hma_1 = new StringResource('time_period', this.klt_1); this.ima_1 = new StringResource('location', this.klt_1); this.jma_1 = new StringResource('last_three_months', this.klt_1); this.kma_1 = new StringResource('export', this.klt_1); this.lma_1 = new StringResource('date', this.klt_1); this.mma_1 = new StringResource('average', this.klt_1); this.nma_1 = new StringResource('age', this.klt_1); this.oma_1 = new StringResource('days', this.klt_1); this.pma_1 = new StringResource('apply', this.klt_1); this.qma_1 = new StringResource('file_selected', this.klt_1); this.rma_1 = new StringResource('all', this.klt_1); this.sma_1 = new StringResource('holiday_calendars', this.klt_1); this.tma_1 = new StringResource('holiday_calendars_desc', this.klt_1); this.uma_1 = new StringResource('sel_question_set', this.klt_1); this.vma_1 = new StringResource('sel_question_set_desc', this.klt_1); this.wma_1 = new StringResource('users', this.klt_1); this.xma_1 = new StringResource('nomination', this.klt_1); this.yma_1 = new StringResource('active', this.klt_1); this.zma_1 = new StringResource('class_id', this.klt_1); this.amb_1 = new StringResource('gender_literal', this.klt_1); this.bmb_1 = new StringResource('country', this.klt_1); this.cmb_1 = new StringResource('connectivity', this.klt_1); this.dmb_1 = new StringResource('home_internet_access', this.klt_1); this.emb_1 = new StringResource('mobile_internet_access', this.klt_1); this.fmb_1 = new StringResource('connectivity_limited', this.klt_1); this.gmb_1 = new StringResource('connectivity_full', this.klt_1); this.hmb_1 = new StringResource('prefer_not_to_say', this.klt_1); this.imb_1 = new StringResource('sel_question_set_to_use', this.klt_1); this.jmb_1 = new StringResource('search', this.klt_1); this.kmb_1 = new StringResource('attendance_percentage', this.klt_1); this.lmb_1 = new StringResource('filter', this.klt_1); this.mmb_1 = new StringResource('over_key', this.klt_1); this.nmb_1 = new StringResource('sync', this.klt_1); this.omb_1 = new StringResource('not_recorded', this.klt_1); this.pmb_1 = new StringResource('groups', this.klt_1); this.qmb_1 = new StringResource('group_setting_desc', this.klt_1); this.rmb_1 = new StringResource('roles', this.klt_1); this.smb_1 = new StringResource('role', this.klt_1); this.tmb_1 = new StringResource('add_a_new_role', this.klt_1); this.umb_1 = new StringResource('edit_role', this.klt_1); this.vmb_1 = new StringResource('rols_assignment', this.klt_1); this.wmb_1 = new StringResource('role_assignment_setting_desc', this.klt_1); this.xmb_1 = new StringResource('locations', this.klt_1); this.ymb_1 = new StringResource('locations_setting_desc', this.klt_1); this.zmb_1 = new StringResource('audit_log', this.klt_1); this.amc_1 = new StringResource('audit_log_setting_desc', this.klt_1); this.bmc_1 = new StringResource('entry_key', this.klt_1); this.cmc_1 = new StringResource('permission_key', this.klt_1); this.dmc_1 = new StringResource('permissions', this.klt_1); this.emc_1 = new StringResource('role_name', this.klt_1); this.fmc_1 = new StringResource('members_key', this.klt_1); this.gmc_1 = new StringResource('member_key', this.klt_1); this.hmc_1 = new StringResource('role_assignment', this.klt_1); this.imc_1 = new StringResource('scope_by', this.klt_1); this.jmc_1 = new StringResource('assign_to', this.klt_1); this.kmc_1 = new StringResource('person', this.klt_1); this.lmc_1 = new StringResource('add_a_new_person', this.klt_1); this.mmc_1 = new StringResource('edit_person', this.klt_1); this.nmc_1 = new StringResource('permission_person_select', this.klt_1); this.omc_1 = new StringResource('permission_person_insert', this.klt_1); this.pmc_1 = new StringResource('permission_person_update', this.klt_1); this.qmc_1 = new StringResource('permission_person_picture_select', this.klt_1); this.rmc_1 = new StringResource('permission_person_picture_insert', this.klt_1); this.smc_1 = new StringResource('permission_person_picture_update', this.klt_1); this.tmc_1 = new StringResource('permission_clazz_select', this.klt_1); this.umc_1 = new StringResource('permission_clazz_insert', this.klt_1); this.vmc_1 = new StringResource('permission_clazz_update', this.klt_1); this.wmc_1 = new StringResource('permission_clazz_add_teacher', this.klt_1); this.xmc_1 = new StringResource('permission_clazz_add_student', this.klt_1); this.ymc_1 = new StringResource('permission_attendance_select', this.klt_1); this.zmc_1 = new StringResource('permission_attendance_insert', this.klt_1); this.amd_1 = new StringResource('permission_attendance_update', this.klt_1); this.bmd_1 = new StringResource('permission_activity_select', this.klt_1); this.cmd_1 = new StringResource('permission_activity_insert', this.klt_1); this.dmd_1 = new StringResource('permission_activity_update', this.klt_1); this.emd_1 = new StringResource('permission_sel_question_select', this.klt_1); this.fmd_1 = new StringResource('permission_sel_question_insert', this.klt_1); this.gmd_1 = new StringResource('permission_sel_question_update', this.klt_1); this.hmd_1 = new StringResource('permission_sel_select', this.klt_1); this.imd_1 = new StringResource('permission_sel_update', this.klt_1); this.jmd_1 = new StringResource('custom_fields', this.klt_1); this.kmd_1 = new StringResource('custom_field', this.klt_1); this.lmd_1 = new StringResource('custom_fields_desc', this.klt_1); this.mmd_1 = new StringResource('field_type', this.klt_1); this.nmd_1 = new StringResource('text', this.klt_1); this.omd_1 = new StringResource('dropdown', this.klt_1); this.pmd_1 = new StringResource('options', this.klt_1); this.qmd_1 = new StringResource('option_value', this.klt_1); this.rmd_1 = new StringResource('errors', this.klt_1); this.smd_1 = new StringResource('shake_feedback', this.klt_1); this.tmd_1 = new StringResource('feedback_hint', this.klt_1); this.umd_1 = new StringResource('send_feedback', this.klt_1); this.vmd_1 = new StringResource('feedback_thanks', this.klt_1); this.wmd_1 = new StringResource('start_date', this.klt_1); this.xmd_1 = new StringResource('end_date', this.klt_1); this.ymd_1 = new StringResource('last_active', this.klt_1); this.zmd_1 = new StringResource('save', this.klt_1); this.ame_1 = new StringResource('change_password', this.klt_1); this.bme_1 = new StringResource('current_password', this.klt_1); this.cme_1 = new StringResource('password_unchanged', this.klt_1); this.dme_1 = new StringResource('timezone', this.klt_1); this.eme_1 = new StringResource('users_settings_desc', this.klt_1); this.fme_1 = new StringResource('add', this.klt_1); this.gme_1 = new StringResource('refresh', this.klt_1); this.hme_1 = new StringResource('school', this.klt_1); this.ime_1 = new StringResource('add_a_new_school', this.klt_1); this.jme_1 = new StringResource('edit_school', this.klt_1); this.kme_1 = new StringResource('join_existing_school', this.klt_1); this.lme_1 = new StringResource('schools', this.klt_1); this.mme_1 = new StringResource('assignments', this.klt_1); this.nme_1 = new StringResource('assignment', this.klt_1); this.ome_1 = new StringResource('none_key', this.klt_1); this.pme_1 = new StringResource('instructions_for_students', this.klt_1); this.qme_1 = new StringResource('not_started', this.klt_1); this.rme_1 = new StringResource('percentage_complete', this.klt_1); this.sme_1 = new StringResource('percentage_score', this.klt_1); this.tme_1 = new StringResource('started_date', this.klt_1); this.ume_1 = new StringResource('started', this.klt_1); this.vme_1 = new StringResource('mixed', this.klt_1); this.wme_1 = new StringResource('store_title', this.klt_1); this.xme_1 = new StringResource('store_description_short', this.klt_1); this.yme_1 = new StringResource('store_description_full', this.klt_1); this.zme_1 = new StringResource('due_date', this.klt_1); this.amf_1 = new StringResource('content', this.klt_1); this.bmf_1 = new StringResource('add_new_content', this.klt_1); this.cmf_1 = new StringResource('add_content', this.klt_1); this.dmf_1 = new StringResource('student_progress', this.klt_1); this.emf_1 = new StringResource('status', this.klt_1); this.fmf_1 = new StringResource('use_device_language', this.klt_1); this.gmf_1 = new StringResource('select_item', this.klt_1); this.hmf_1 = new StringResource('from_to_date', this.klt_1); this.imf_1 = new StringResource('num_items_with_name', this.klt_1); this.jmf_1 = new StringResource('num_items_with_name_with_comma', this.klt_1); this.kmf_1 = new StringResource('add_to', this.klt_1); this.lmf_1 = new StringResource('remove_from', this.klt_1); this.mmf_1 = new StringResource('change_photo', this.klt_1); this.nmf_1 = new StringResource('remove_picture', this.klt_1); this.omf_1 = new StringResource('take_new_photo_from_camera', this.klt_1); this.pmf_1 = new StringResource('select_picture_from_gallery', this.klt_1); this.qmf_1 = new StringResource('select_file', this.klt_1); this.rmf_1 = new StringResource('permission_clazz_assignment_view', this.klt_1); this.smf_1 = new StringResource('permission_clazz_asignment_edit', this.klt_1); this.tmf_1 = new StringResource('overview', this.klt_1); this.umf_1 = new StringResource('add_new', this.klt_1); this.vmf_1 = new StringResource('staff', this.klt_1); this.wmf_1 = new StringResource('x_teachers_y_students', this.klt_1); this.xmf_1 = new StringResource('call', this.klt_1); this.ymf_1 = new StringResource('organization_id', this.klt_1); this.zmf_1 = new StringResource('student', this.klt_1); this.amg_1 = new StringResource('contact_details', this.klt_1); this.bmg_1 = new StringResource('untitled', this.klt_1); this.cmg_1 = new StringResource('present_late_absent', this.klt_1); this.dmg_1 = new StringResource('marked_cap', this.klt_1); this.emg_1 = new StringResource('submitted_cap', this.klt_1); this.fmg_1 = new StringResource('not_submitted_cap', this.klt_1); this.gmg_1 = new StringResource('submitliteral', this.klt_1); this.hmg_1 = new StringResource('x_percent_attended', this.klt_1); this.img_1 = new StringResource('answer', this.klt_1); this.jmg_1 = new StringResource('of_content', this.klt_1); this.kmg_1 = new StringResource('nothing_here', this.klt_1); this.lmg_1 = new StringResource('not_answered', this.klt_1); this.mmg_1 = new StringResource('clazz_work', this.klt_1); this.nmg_1 = new StringResource('add_a_new_clazzwork', this.klt_1); this.omg_1 = new StringResource('edit_clazzwork', this.klt_1); this.pmg_1 = new StringResource('clazz_assignment', this.klt_1); this.qmg_1 = new StringResource('new_assignment', this.klt_1); this.rmg_1 = new StringResource('edit_assignment', this.klt_1); this.smg_1 = new StringResource('total_score', this.klt_1); this.tmg_1 = new StringResource('late_submission', this.klt_1); this.umg_1 = new StringResource('mark_penalty', this.klt_1); this.vmg_1 = new StringResource('late_submission_penalty', this.klt_1); this.wmg_1 = new StringResource('end_of_grace_period', this.klt_1); this.xmg_1 = new StringResource('allow_class_comments', this.klt_1); this.ymg_1 = new StringResource('after_deadline_date_error', this.klt_1); this.zmg_1 = new StringResource('points', this.klt_1); this.amh_1 = new StringResource('minimum_score', this.klt_1); this.bmh_1 = new StringResource('automatic', this.klt_1); this.cmh_1 = new StringResource('student_marks_content', this.klt_1); this.dmh_1 = new StringResource('completion_criteria', this.klt_1); this.emh_1 = new StringResource('mark_complete', this.klt_1); this.fmh_1 = new StringResource('late_penalty', this.klt_1); this.gmh_1 = new StringResource('marked_key', this.klt_1); this.hmh_1 = new StringResource('submitted_key', this.klt_1); this.imh_1 = new StringResource('not_submitted', this.klt_1); this.jmh_1 = new StringResource('visible_from_date', this.klt_1); this.kmh_1 = new StringResource('submission_type', this.klt_1); this.lmh_1 = new StringResource('no_submission_required', this.klt_1); this.mmh_1 = new StringResource('short_text', this.klt_1); this.nmh_1 = new StringResource('attachment', this.klt_1); this.omh_1 = new StringResource('quiz', this.klt_1); this.pmh_1 = new StringResource('allow_private_comments_from_students', this.klt_1); this.qmh_1 = new StringResource('deadline', this.klt_1); this.rmh_1 = new StringResource('class_timezone', this.klt_1); this.smh_1 = new StringResource('maximum_score', this.klt_1); this.tmh_1 = new StringResource('quiz_questions', this.klt_1); this.umh_1 = new StringResource('time', this.klt_1); this.vmh_1 = new StringResource('submission', this.klt_1); this.wmh_1 = new StringResource('public_comments', this.klt_1); this.xmh_1 = new StringResource('private_comments', this.klt_1); this.ymh_1 = new StringResource('submit_your_answer', this.klt_1); this.zmh_1 = new StringResource('add_class_comment', this.klt_1); this.ami_1 = new StringResource('add_private_comment', this.klt_1); this.bmi_1 = new StringResource('class_comments', this.klt_1); this.cmi_1 = new StringResource('submit', this.klt_1); this.dmi_1 = new StringResource('three_num_items_with_name_with_comma', this.klt_1); this.emi_1 = new StringResource('marking', this.klt_1); this.fmi_1 = new StringResource('return_and_mark_next', this.klt_1); this.gmi_1 = new StringResource('return_only', this.klt_1); this.hmi_1 = new StringResource('workspace', this.klt_1); this.imi_1 = new StringResource('organisation', this.klt_1); this.jmi_1 = new StringResource('use_public_library_site', this.klt_1); this.kmi_1 = new StringResource('create_site', this.klt_1); this.lmi_1 = new StringResource('connect_as_guest', this.klt_1); this.mmi_1 = new StringResource('create_account', this.klt_1); this.nmi_1 = new StringResource('my', this.klt_1); this.omi_1 = new StringResource('add_another', this.klt_1); this.pmi_1 = new StringResource('logged_in_as', this.klt_1); this.qmi_1 = new StringResource('person_exists', this.klt_1); this.rmi_1 = new StringResource('incorrect_current_password', this.klt_1); this.smi_1 = new StringResource('sel_question_type_free_text', this.klt_1); this.tmi_1 = new StringResource('sel_question_type_multiple_choice', this.klt_1); this.umi_1 = new StringResource('question_text', this.klt_1); this.vmi_1 = new StringResource('question_type', this.klt_1); this.wmi_1 = new StringResource('add_option', this.klt_1); this.xmi_1 = new StringResource('roles_and_permissions', this.klt_1); this.ymi_1 = new StringResource('add_role_permission', this.klt_1); this.zmi_1 = new StringResource('scope', this.klt_1); this.amj_1 = new StringResource('scope_description', this.klt_1); this.bmj_1 = new StringResource('role_description', this.klt_1); this.cmj_1 = new StringResource('assign_role', this.klt_1); this.dmj_1 = new StringResource('more_information', this.klt_1); this.emj_1 = new StringResource('pending_requests', this.klt_1); this.fmj_1 = new StringResource('pending', this.klt_1); this.gmj_1 = new StringResource('please_wait_for_approval', this.klt_1); this.hmj_1 = new StringResource('reject', this.klt_1); this.imj_1 = new StringResource('ask_your_teacher_for_code', this.klt_1); this.jmj_1 = new StringResource('copied_to_clipboard', this.klt_1); this.kmj_1 = new StringResource('invite_link_desc', this.klt_1); this.lmj_1 = new StringResource('copy_link', this.klt_1); this.mmj_1 = new StringResource('copy_code', this.klt_1); this.nmj_1 = new StringResource('share_link', this.klt_1); this.omj_1 = new StringResource('invite_with_link', this.klt_1); this.pmj_1 = new StringResource('role_not_selected_error', this.klt_1); this.qmj_1 = new StringResource('permission_person_delegate', this.klt_1); this.rmj_1 = new StringResource('this_field_is_mandatory', this.klt_1); this.smj_1 = new StringResource('permission_role_select', this.klt_1); this.tmj_1 = new StringResource('permission_role_insert', this.klt_1); this.umj_1 = new StringResource('permission_school_select', this.klt_1); this.vmj_1 = new StringResource('permission_school_insert', this.klt_1); this.wmj_1 = new StringResource('permission_school_update', this.klt_1); this.xmj_1 = new StringResource('add_student_to_school', this.klt_1); this.ymj_1 = new StringResource('add_staff_to_school', this.klt_1); this.zmj_1 = new StringResource('permission_password_reset', this.klt_1); this.amk_1 = new StringResource('school_code', this.klt_1); this.bmk_1 = new StringResource('invite_code', this.klt_1); this.cmk_1 = new StringResource('entity_code', this.klt_1); this.dmk_1 = new StringResource('join_code_instructions', this.klt_1); this.emk_1 = new StringResource('record_for_student', this.klt_1); this.fmk_1 = new StringResource('moved_x_entries', this.klt_1); this.gmk_1 = new StringResource('end_is_before_start_error', this.klt_1); this.hmk_1 = new StringResource('record_attendance_for_most_recent_occurrence', this.klt_1); this.imk_1 = new StringResource('add_a_new_occurrence', this.klt_1); this.jmk_1 = new StringResource('active_classes', this.klt_1); this.kmk_1 = new StringResource('terms_and_policies', this.klt_1); this.lmk_1 = new StringResource('manage_site_settings', this.klt_1); this.mmk_1 = new StringResource('guest_login_enabled', this.klt_1); this.nmk_1 = new StringResource('registration_allowed', this.klt_1); this.omk_1 = new StringResource('yes', this.klt_1); this.pmk_1 = new StringResource('no', this.klt_1); this.qmk_1 = new StringResource('edit_site', this.klt_1); this.rmk_1 = new StringResource('site', this.klt_1); this.smk_1 = new StringResource('site_link', this.klt_1); this.tmk_1 = new StringResource('please_enter_the_linK', this.klt_1); this.umk_1 = new StringResource('or', this.klt_1); this.vmk_1 = new StringResource('connect', this.klt_1); this.wmk_1 = new StringResource('terms_and_policies_text', this.klt_1); this.xmk_1 = new StringResource('edit_terms_and_policies', this.klt_1); this.ymk_1 = new StringResource('strings_not_allowed', this.klt_1); this.zmk_1 = new StringResource('undo', this.klt_1); this.aml_1 = new StringResource('video', this.klt_1); this.bml_1 = new StringResource('content_editor_create_new_category', this.klt_1); this.cml_1 = new StringResource('content_pieces_completed', this.klt_1); this.dml_1 = new StringResource('content_usage_duration', this.klt_1); this.eml_1 = new StringResource('manage_download', this.klt_1); this.fml_1 = new StringResource('powered_by', this.klt_1); this.gml_1 = new StringResource('invalid_email', this.klt_1); this.hml_1 = new StringResource('select_account', this.klt_1); this.iml_1 = new StringResource('opening_link', this.klt_1); this.jml_1 = new StringResource('select_account_to_continue', this.klt_1); this.kml_1 = new StringResource('you_are_already_in_class', this.klt_1); this.lml_1 = new StringResource('you_are_already_in_school', this.klt_1); this.mml_1 = new StringResource('join_class', this.klt_1); this.nml_1 = new StringResource('join_school', this.klt_1); this.oml_1 = new StringResource('what_is_your_date_of_birth', this.klt_1); this.pml_1 = new StringResource('parents_email_address', this.klt_1); this.qml_1 = new StringResource('we_sent_a_message_to_your_parent', this.klt_1); this.rml_1 = new StringResource('toggle_visibility', this.klt_1); this.sml_1 = new StringResource('parental_consent', this.klt_1); this.tml_1 = new StringResource('parent_child_register_message_subject', this.klt_1); this.uml_1 = new StringResource('parent_child_register_message', this.klt_1); this.vml_1 = new StringResource('parent_consent_explanation', this.klt_1); this.wml_1 = new StringResource('relationship', this.klt_1); this.xml_1 = new StringResource('i_consent', this.klt_1); this.yml_1 = new StringResource('i_do_not_consent', this.klt_1); this.zml_1 = new StringResource('revoke_consent', this.klt_1); this.amm_1 = new StringResource('restore_consent', this.klt_1); this.bmm_1 = new StringResource('status_consent_granted', this.klt_1); this.cmm_1 = new StringResource('status_consent_denied', this.klt_1); this.dmm_1 = new StringResource('other_legal_guardian', this.klt_1); this.emm_1 = new StringResource('manage_parental_consent', this.klt_1); this.fmm_1 = new StringResource('view_class_content', this.klt_1); this.gmm_1 = new StringResource('edit_class_content', this.klt_1); this.hmm_1 = new StringResource('view_class_learning_records', this.klt_1); this.imm_1 = new StringResource('view_contact_details_of_members', this.klt_1); this.jmm_1 = new StringResource('edit_contact_details_of_members', this.klt_1); this.kmm_1 = new StringResource('view_socioeconomic_details_of_members', this.klt_1); this.lmm_1 = new StringResource('edit_socioeconomic_details_of_members', this.klt_1); this.mmm_1 = new StringResource('add_person_or_group', this.klt_1); this.nmm_1 = new StringResource('lets_get_started', this.klt_1); this.omm_1 = new StringResource('looks_like_installed_app_from_link', this.klt_1); this.pmm_1 = new StringResource('continue_using_link_recommended', this.klt_1); this.qmm_1 = new StringResource('continue_using_the_link', this.klt_1); this.rmm_1 = new StringResource('start_from_scratch', this.klt_1); this.smm_1 = new StringResource('ignore_the_link', this.klt_1); this.tmm_1 = new StringResource('add_permission_for_a_person', this.klt_1); this.umm_1 = new StringResource('add_permission_for_a_group', this.klt_1); this.vmm_1 = new StringResource('add_using_link', this.klt_1); this.wmm_1 = new StringResource('add_using_a_web_link_then', this.klt_1); this.xmm_1 = new StringResource('add_from_gallery', this.klt_1); this.ymm_1 = new StringResource('add_video_or_audio_from_the_device_gallery', this.klt_1); this.zmm_1 = new StringResource('add_file', this.klt_1); this.amn_1 = new StringResource('add_folder', this.klt_1); this.bmn_1 = new StringResource('importing', this.klt_1); this.cmn_1 = new StringResource('downloading_content', this.klt_1); this.dmn_1 = new StringResource('deleting_content', this.klt_1); this.emn_1 = new StringResource('add_folder_description', this.klt_1); this.fmn_1 = new StringResource('add_educational_content_using_supported_formats_eg_pdf_xapi_h5p', this.klt_1); this.gmn_1 = new StringResource('current_status_consent_granted', this.klt_1); this.hmn_1 = new StringResource('select_country', this.klt_1); this.imn_1 = new StringResource('enter_link', this.klt_1); this.jmn_1 = new StringResource('add_subject', this.klt_1); this.kmn_1 = new StringResource('share_via', this.klt_1); this.lmn_1 = new StringResource('share_apk_file', this.klt_1); this.mmn_1 = new StringResource('recommended_for_advanced_users', this.klt_1); this.nmn_1 = new StringResource('nearby_share', this.klt_1); this.omn_1 = new StringResource('recommended_for_offline_installation', this.klt_1); this.pmn_1 = new StringResource('app_store_link', this.klt_1); this.qmn_1 = new StringResource('everything_works_offline', this.klt_1); this.rmn_1 = new StringResource('swipe_to_next', this.klt_1); this.smn_1 = new StringResource('content_entries_completed', this.klt_1); this.tmn_1 = new StringResource('content_usage_time', this.klt_1); this.umn_1 = new StringResource('all_permissions', this.klt_1); this.vmn_1 = new StringResource('folder', this.klt_1); this.wmn_1 = new StringResource('create_a_new_learning_env', this.klt_1); this.xmn_1 = new StringResource('add_educational_content_to_new_learning_env', this.klt_1); this.ymn_1 = new StringResource('connect_to_an_existing_learning_environment', this.klt_1); this.zmn_1 = new StringResource('does_your_class_already_have_learning_env', this.klt_1); this.amo_1 = new StringResource('use_the_public_lib_env', this.klt_1); this.bmo_1 = new StringResource('just_want_to_browse', this.klt_1); this.cmo_1 = new StringResource('revoking_consent_will', this.klt_1); this.dmo_1 = new StringResource('you_must_comply_with_license', this.klt_1); this.emo_1 = new StringResource('you_can_copypaste_a_link', this.klt_1); this.fmo_1 = new StringResource('see_supported_sites', this.klt_1); this.gmo_1 = new StringResource('class_setup', this.klt_1); this.hmo_1 = new StringResource('anyone_with_this_can_join_school', this.klt_1); this.imo_1 = new StringResource('this_class', this.klt_1); this.jmo_1 = new StringResource('from_my_classes', this.klt_1); this.kmo_1 = new StringResource('my_content', this.klt_1); this.lmo_1 = new StringResource('learning_environment', this.klt_1); this.mmo_1 = new StringResource('grades_class_age', this.klt_1); this.nmo_1 = new StringResource('add_remove_and_modify_grades', this.klt_1); this.omo_1 = new StringResource('subjects', this.klt_1); this.pmo_1 = new StringResource('add_remove_and_modify_subjects', this.klt_1); this.qmo_1 = new StringResource('create_my_account', this.klt_1); this.rmo_1 = new StringResource('recommend_it', this.klt_1); this.smo_1 = new StringResource('edit_permissions', this.klt_1); this.tmo_1 = new StringResource('add_from_contacts', this.klt_1); this.umo_1 = new StringResource('almost_done', this.klt_1); this.vmo_1 = new StringResource('your_username', this.klt_1); this.wmo_1 = new StringResource('select_content', this.klt_1); this.xmo_1 = new StringResource('search_in', this.klt_1); this.ymo_1 = new StringResource('type', this.klt_1); this.zmo_1 = new StringResource('please_download_the_app', this.klt_1); this.amp_1 = new StringResource('alternatively_you_can_download_the_apk', this.klt_1); this.bmp_1 = new StringResource('full_i_can_download_as_much_as_i_like', this.klt_1); this.cmp_1 = new StringResource('limited_i_avoid_downloading_too_much', this.klt_1); this.dmp_1 = new StringResource('oops', this.klt_1); this.emp_1 = new StringResource('sorry_something_went_wrong', this.klt_1); this.fmp_1 = new StringResource('incident_id', this.klt_1); this.gmp_1 = new StringResource('error_code', this.klt_1); this.hmp_1 = new StringResource('take_me_home', this.klt_1); this.imp_1 = new StringResource('view_clazz', this.klt_1); this.jmp_1 = new StringResource('view_clazzes', this.klt_1); this.kmp_1 = new StringResource('enrol_and_unenrol_students', this.klt_1); this.lmp_1 = new StringResource('enrol_and_unenrol_teachers', this.klt_1); this.mmp_1 = new StringResource('view_assignments', this.klt_1); this.nmp_1 = new StringResource('add_or_edit_assignment', this.klt_1); this.omp_1 = new StringResource('view_basic_profile_of_members', this.klt_1); this.pmp_1 = new StringResource('edit_basic_profile_of_members', this.klt_1); this.qmp_1 = new StringResource('view_school', this.klt_1); this.rmp_1 = new StringResource('edit_clazzes', this.klt_1); this.smp_1 = new StringResource('add_new_clazz_to_school', this.klt_1); this.tmp_1 = new StringResource('added_to_class_content', this.klt_1); this.ump_1 = new StringResource('content_already_added_to_class', this.klt_1); this.vmp_1 = new StringResource('your_account_needs_approved', this.klt_1); this.wmp_1 = new StringResource('adult_account_required', this.klt_1); this.xmp_1 = new StringResource('blank_report', this.klt_1); this.ymp_1 = new StringResource('attendance_over_time_by_class', this.klt_1); this.zmp_1 = new StringResource('percentage_of_students_attending_over_time', this.klt_1); this.amq_1 = new StringResource('content_completion', this.klt_1); this.bmq_1 = new StringResource('number_of_students_completed_time', this.klt_1); this.cmq_1 = new StringResource('content_usage_by_class', this.klt_1); this.dmq_1 = new StringResource('total_content_usage_duration_class', this.klt_1); this.emq_1 = new StringResource('content_usage_over_time', this.klt_1); this.fmq_1 = new StringResource('total_content_duration_gender', this.klt_1); this.gmq_1 = new StringResource('unique_content_users_over_time', this.klt_1); this.hmq_1 = new StringResource('number_of_active_users_over_time', this.klt_1); this.imq_1 = new StringResource('parent', this.klt_1); this.jmq_1 = new StringResource('upload', this.klt_1); this.kmq_1 = new StringResource('selected_file_summary', this.klt_1); this.lmq_1 = new StringResource('drag_and_drop_or_click_to_add_file', this.klt_1); this.mmq_1 = new StringResource('extra_active_tab_warning', this.klt_1); this.nmq_1 = new StringResource('saved', this.klt_1); this.omq_1 = new StringResource('individual', this.klt_1); this.pmq_1 = new StringResource('group', this.klt_1); this.qmq_1 = new StringResource('dont_show_before', this.klt_1); this.rmq_1 = new StringResource('group_submission', this.klt_1); this.smq_1 = new StringResource('require_file_submission', this.klt_1); this.tmq_1 = new StringResource('require_text_submission', this.klt_1); this.umq_1 = new StringResource('maximum', this.klt_1); this.vmq_1 = new StringResource('size_limit', this.klt_1); this.wmq_1 = new StringResource('size_limit_error', this.klt_1); this.xmq_1 = new StringResource('limit', this.klt_1); this.ymq_1 = new StringResource('number_of_files', this.klt_1); this.zmq_1 = new StringResource('edit_after_submission', this.klt_1); this.amr_1 = new StringResource('allowed_till_deadline', this.klt_1); this.bmr_1 = new StringResource('allowed_till_grace', this.klt_1); this.cmr_1 = new StringResource('not_allowed', this.klt_1); this.dmr_1 = new StringResource('marked_by', this.klt_1); this.emr_1 = new StringResource('peers', this.klt_1); this.fmr_1 = new StringResource('peers_to_review', this.klt_1); this.gmr_1 = new StringResource('file_type', this.klt_1); this.hmr_1 = new StringResource('file_type_chosen', this.klt_1); this.imr_1 = new StringResource('file_type_any', this.klt_1); this.jmr_1 = new StringResource('file_document', this.klt_1); this.kmr_1 = new StringResource('file_image', this.klt_1); this.lmr_1 = new StringResource('submit_grade', this.klt_1); this.mmr_1 = new StringResource('submit_grade_and_mark_next', this.klt_1); this.nmr_1 = new StringResource('graded', this.klt_1); this.omr_1 = new StringResource('score_greater_than_zero', this.klt_1); this.pmr_1 = new StringResource('words', this.klt_1); this.qmr_1 = new StringResource('characters', this.klt_1); this.rmr_1 = new StringResource('class_timezone_set', this.klt_1); this.smr_1 = new StringResource('maximum_points', this.klt_1); this.tmr_1 = new StringResource('penalty_label', this.klt_1); this.umr_1 = new StringResource('submissions', this.klt_1); this.vmr_1 = new StringResource('add_text', this.klt_1); this.wmr_1 = new StringResource('course_blocks', this.klt_1); this.xmr_1 = new StringResource('add_block', this.klt_1); this.ymr_1 = new StringResource('edit_block', this.klt_1); this.zmr_1 = new StringResource('module', this.klt_1); this.ams_1 = new StringResource('course_module', this.klt_1); this.bms_1 = new StringResource('formatted_text_to_show_to_course_participants', this.klt_1); this.cms_1 = new StringResource('add_course_block_content_desc', this.klt_1); this.dms_1 = new StringResource('add_assignment_block_content_desc', this.klt_1); this.ems_1 = new StringResource('discussion_board', this.klt_1); this.fms_1 = new StringResource('add_discussion_board_desc', this.klt_1); this.gms_1 = new StringResource('new_module', this.klt_1); this.hms_1 = new StringResource('edit_module', this.klt_1); this.ims_1 = new StringResource('indent', this.klt_1); this.jms_1 = new StringResource('unindent', this.klt_1); this.kms_1 = new StringResource('institution', this.klt_1); this.lms_1 = new StringResource('student_enrolment_policy', this.klt_1); this.mms_1 = new StringResource('teacher_enrolment_policy', this.klt_1); this.nms_1 = new StringResource('open_enrolment', this.klt_1); this.oms_1 = new StringResource('enrolment_requests_must_be_approved', this.klt_1); this.pms_1 = new StringResource('accept_enrolment_requests_automatically', this.klt_1); this.qms_1 = new StringResource('visibility', this.klt_1); this.rms_1 = new StringResource('hidden_enrolment_via_links_code_or_invitation', this.klt_1); this.sms_1 = new StringResource('visible_for_all', this.klt_1); this.tms_1 = new StringResource('terminology', this.klt_1); this.ums_1 = new StringResource('select_terminology', this.klt_1); this.vms_1 = new StringResource('add_new_terminology', this.klt_1); this.wms_1 = new StringResource('edit_terminology', this.klt_1); this.xms_1 = new StringResource('your_words_for', this.klt_1); this.yms_1 = new StringResource('course_setup', this.klt_1); this.zms_1 = new StringResource('number_of_groups', this.klt_1); this.amt_1 = new StringResource('assign_to_random_groups', this.klt_1); this.bmt_1 = new StringResource('add_new_groups', this.klt_1); this.cmt_1 = new StringResource('edit_groups', this.klt_1); this.dmt_1 = new StringResource('num_replies', this.klt_1); this.emt_1 = new StringResource('topics', this.klt_1); this.fmt_1 = new StringResource('add_topic', this.klt_1); this.gmt_1 = new StringResource('add_a_reply', this.klt_1); this.hmt_1 = new StringResource('messages', this.klt_1); this.imt_1 = new StringResource('message', this.klt_1); this.jmt_1 = new StringResource('library', this.klt_1); this.kmt_1 = new StringResource('courses', this.klt_1); this.lmt_1 = new StringResource('course', this.klt_1); this.mmt_1 = new StringResource('reports_and_analytics', this.klt_1); this.nmt_1 = new StringResource('course_comments', this.klt_1); this.omt_1 = new StringResource('currently_enroled', this.klt_1); this.pmt_1 = new StringResource('past_enrolments', this.klt_1); this.qmt_1 = new StringResource('standard', this.klt_1); this.rmt_1 = new StringResource('group_number', this.klt_1); this.smt_1 = new StringResource('add_group', this.klt_1); this.tmt_1 = new StringResource('edit_group', this.klt_1); this.umt_1 = new StringResource('new_group_set', this.klt_1); this.vmt_1 = new StringResource('edit_text', this.klt_1); this.wmt_1 = new StringResource('add_module', this.klt_1); this.xmt_1 = new StringResource('add_a_new_course', this.klt_1); this.ymt_1 = new StringResource('join_existing_course', this.klt_1); this.zmt_1 = new StringResource('edit_course', this.klt_1); this.amu_1 = new StringResource('currently_enrolled', this.klt_1); this.bmu_1 = new StringResource('past_enrollments', this.klt_1); this.cmu_1 = new StringResource('unread', this.klt_1); this.dmu_1 = new StringResource('new_chat', this.klt_1); this.emu_1 = new StringResource('new_group', this.klt_1); this.fmu_1 = new StringResource('chat', this.klt_1); this.gmu_1 = new StringResource('you', this.klt_1); this.hmu_1 = new StringResource('edit_topic', this.klt_1); this.imu_1 = new StringResource('posts', this.klt_1); this.jmu_1 = new StringResource('post', this.klt_1); this.kmu_1 = new StringResource('individual_submission', this.klt_1); this.lmu_1 = new StringResource('unassigned', this.klt_1); this.mmu_1 = new StringResource('error_too_long_text', this.klt_1); this.nmu_1 = new StringResource('managed_enrolment', this.klt_1); this.omu_1 = new StringResource('text_file_submission_error', this.klt_1); this.pmu_1 = new StringResource('submit_all_at_once_submission_policy', this.klt_1); this.qmu_1 = new StringResource('multiple_submission_allowed_submission_policy', this.klt_1); this.rmu_1 = new StringResource('enrolment_policy', this.klt_1); this.smu_1 = new StringResource('submission_policy', this.klt_1); this.tmu_1 = new StringResource('submission_already_made', this.klt_1); this.umu_1 = new StringResource('grade_out_of_range', this.klt_1); this.vmu_1 = new StringResource('update_grade', this.klt_1); this.wmu_1 = new StringResource('update_grade_and_mark_next', this.klt_1); this.xmu_1 = new StringResource('add_discussion', this.klt_1); this.ymu_1 = new StringResource('edit_discussion', this.klt_1); this.zmu_1 = new StringResource('type_here', this.klt_1); this.amv_1 = new StringResource('deadline_has_passed', this.klt_1); this.bmv_1 = new StringResource('already_submitted', this.klt_1); this.cmv_1 = new StringResource('exceeds_word_limit', this.klt_1); this.dmv_1 = new StringResource('exceeds_char_limit', this.klt_1); this.emv_1 = new StringResource('unassigned_error', this.klt_1); this.fmv_1 = new StringResource('enabled', this.klt_1); this.gmv_1 = new StringResource('disabled', this.klt_1); this.hmv_1 = new StringResource('from_my_courses', this.klt_1); this.imv_1 = new StringResource('assign_reviewers', this.klt_1); this.jmv_1 = new StringResource('reviews_per_user_group', this.klt_1); this.kmv_1 = new StringResource('assign_random_reviewers', this.klt_1); this.lmv_1 = new StringResource('reviewer', this.klt_1); this.mmv_1 = new StringResource('app_language', this.klt_1); this.nmv_1 = new StringResource('pdf', this.klt_1); this.omv_1 = new StringResource('panic_button_app', this.klt_1); this.pmv_1 = new StringResource('actions_to_be_taken_in_case_of_emergency', this.klt_1); this.qmv_1 = new StringResource('exit_app', this.klt_1); this.rmv_1 = new StringResource('delete_app_data_from_device', this.klt_1); this.smv_1 = new StringResource('more_options', this.klt_1); this.tmv_1 = new StringResource('num_holidays', this.klt_1); this.umv_1 = new StringResource('hide_app', this.klt_1); this.vmv_1 = new StringResource('panic_button_explanation', this.klt_1); this.wmv_1 = new StringResource('hide_app_explanation', this.klt_1); this.xmv_1 = new StringResource('most_recent', this.klt_1); this.ymv_1 = new StringResource('comment', this.klt_1); this.zmv_1 = new StringResource('grant_app_permission', this.klt_1); this.amw_1 = new StringResource('this_app_will_receive', this.klt_1); this.bmw_1 = new StringResource('my_profile', this.klt_1); this.cmw_1 = new StringResource('add_another_account', this.klt_1); this.dmw_1 = new StringResource('end_is_before_start', this.klt_1); this.emw_1 = new StringResource('select_person', this.klt_1); this.fmw_1 = new StringResource('your_submission', this.klt_1); this.gmw_1 = new StringResource('edit_content', this.klt_1); this.hmw_1 = new StringResource('edit_folder', this.klt_1); this.imw_1 = new StringResource('add_new_post', this.klt_1); this.jmw_1 = new StringResource('grades_scoring', this.klt_1); this.kmw_1 = new StringResource('mark_comment', this.klt_1); this.lmw_1 = new StringResource('mark', this.klt_1); this.mmw_1 = new StringResource('too_high', this.klt_1); this.nmw_1 = new StringResource('required', this.klt_1); this.omw_1 = new StringResource('expand', this.klt_1); this.pmw_1 = new StringResource('collapse', this.klt_1); this.qmw_1 = new StringResource('remove', this.klt_1); this.rmw_1 = new StringResource('table_of_contents', this.klt_1); this.smw_1 = new StringResource('select_date', this.klt_1); this.tmw_1 = new StringResource('link', this.klt_1); this.umw_1 = new StringResource('time_submitted', this.klt_1); this.vmw_1 = new StringResource('group_assignment', this.klt_1); this.wmw_1 = new StringResource('menu', this.klt_1); this.xmw_1 = new StringResource('restarting', this.klt_1); this.ymw_1 = new StringResource('terms_required_if_registration_enabled', this.klt_1); this.zmw_1 = new StringResource('drop_files_to_import', this.klt_1); this.amx_1 = new StringResource('compose_post', this.klt_1); this.bmx_1 = new StringResource('password_updated', this.klt_1); this.cmx_1 = new StringResource('html5_content_display_engine', this.klt_1); this.dmx_1 = new StringResource('chrome_recommended', this.klt_1); this.emx_1 = new StringResource('chrome_recommended_info', this.klt_1); this.fmx_1 = new StringResource('internal_webview', this.klt_1); this.gmx_1 = new StringResource('internal_webview_info', this.klt_1); this.hmx_1 = new StringResource('content_not_ready_try_later', this.klt_1); this.imx_1 = new StringResource('version', this.klt_1); this.jmx_1 = new StringResource('licenses', this.klt_1); this.kmx_1 = new StringResource('cannot_record_attendance_for_future_date_time', this.klt_1); this.lmx_1 = new StringResource('could_not_load_vlc', this.klt_1); this.mmx_1 = new StringResource('selected', this.klt_1); this.nmx_1 = new StringResource('clear_selection', this.klt_1); this.omx_1 = new StringResource('move_entries_to_this_folder', this.klt_1); this.pmx_1 = new StringResource('cannot_move_to_subfolder_of_self', this.klt_1); this.qmx_1 = new StringResource('cannot_move_already_in_same_folder', this.klt_1); this.rmx_1 = new StringResource('move_to', this.klt_1); this.smx_1 = new StringResource('restore', this.klt_1); this.tmx_1 = new StringResource('delete_permanently', this.klt_1); this.umx_1 = new StringResource('deleted_items', this.klt_1); this.vmx_1 = new StringResource('delete_or_restore_items', this.klt_1); this.wmx_1 = new StringResource('yesterday', this.klt_1); this.xmx_1 = new StringResource('request_to_enrol_already_pending', this.klt_1); this.ymx_1 = new StringResource('request_submitted', this.klt_1); this.zmx_1 = new StringResource('canceled_enrolment_request', this.klt_1); this.amy_1 = new StringResource('enroled_into_name', this.klt_1); this.bmy_1 = new StringResource('declined_request_from_name', this.klt_1); this.cmy_1 = new StringResource('view_course', this.klt_1); this.dmy_1 = new StringResource('moderate', this.klt_1); this.emy_1 = new StringResource('manage_student_enrolments', this.klt_1); this.fmy_1 = new StringResource('manage_teacher_enrolments', this.klt_1); this.gmy_1 = new StringResource('view_learning_records', this.klt_1); this.hmy_1 = new StringResource('edit_learning_records', this.klt_1); this.imy_1 = new StringResource('view_members', this.klt_1); this.jmy_1 = new StringResource('copy_invite_code', this.klt_1); this.kmy_1 = new StringResource('direct_enrol_users_onto_courses', this.klt_1); this.lmy_1 = new StringResource('could_not_restart', this.klt_1); this.mmy_1 = new StringResource('close_now', this.klt_1); this.nmy_1 = new StringResource('view_all_courses', this.klt_1); this.omy_1 = new StringResource('edit_all_courses', this.klt_1); this.pmy_1 = new StringResource('moderate_all_courses', this.klt_1); this.qmy_1 = new StringResource('manage_student_enrolments_for_all_courses', this.klt_1); this.rmy_1 = new StringResource('manage_teacher_enrolments_for_all_courses', this.klt_1); this.smy_1 = new StringResource('view_attendance_records_for_all_courses', this.klt_1); this.tmy_1 = new StringResource('edit_attendance_records_for_all_courses', this.klt_1); this.umy_1 = new StringResource('add_new_users', this.klt_1); this.vmy_1 = new StringResource('view_all_users', this.klt_1); this.wmy_1 = new StringResource('edit_all_users', this.klt_1); this.xmy_1 = new StringResource('view_learning_records_for_all_courses', this.klt_1); this.ymy_1 = new StringResource('edit_learning_records_for_all_courses', this.klt_1); this.zmy_1 = new StringResource('add_new_courses', this.klt_1); this.amz_1 = new StringResource('manage_user_permissions', this.klt_1); this.bmz_1 = new StringResource('reset_passwords', this.klt_1); this.cmz_1 = new StringResource('upload_failed', this.klt_1); this.dmz_1 = new StringResource('opening_name', this.klt_1); this.emz_1 = new StringResource('invalid_invite_code', this.klt_1); this.fmz_1 = new StringResource('bulk_import', this.klt_1); this.gmz_1 = new StringResource('import_key', this.klt_1); this.hmz_1 = new StringResource('imported', this.klt_1); this.imz_1 = new StringResource('you_can_import_users_using_a_csv_file', this.klt_1); this.jmz_1 = new StringResource('get_template', this.klt_1); this.kmz_1 = new StringResource('line_number', this.klt_1); this.lmz_1 = new StringResource('selected_content', this.klt_1); this.mmz_1 = new StringResource('edit_content_block', this.klt_1); this.nmz_1 = new StringResource('compression', this.klt_1); this.omz_1 = new StringResource('compression_highest', this.klt_1); this.pmz_1 = new StringResource('compression_high', this.klt_1); this.qmz_1 = new StringResource('compression_medium', this.klt_1); this.rmz_1 = new StringResource('compression_low', this.klt_1); this.smz_1 = new StringResource('compression_lowest', this.klt_1); this.tmz_1 = new StringResource('compression_none', this.klt_1); this.umz_1 = new StringResource('size_compressed_was', this.klt_1); this.vmz_1 = new StringResource('size', this.klt_1); this.wmz_1 = new StringResource('import_error', this.klt_1); this.xmz_1 = new StringResource('upload_error', this.klt_1); this.ymz_1 = new StringResource('offline_items_storage', this.klt_1); this.zmz_1 = new StringResource('space_available', this.klt_1); this.an0_1 = new StringResource('grant_permission', this.klt_1); this.bn0_1 = new StringResource('gradebook', this.klt_1); this.cn0_1 = new StringResource('full_screen', this.klt_1); this.dn0_1 = new StringResource('exit_full_screen', this.klt_1); this.en0_1 = new StringResource('increase_text_size', this.klt_1); this.fn0_1 = new StringResource('decrease_text_size', this.klt_1); this.gn0_1 = new StringResource('nothing_here_yet', this.klt_1); this.hn0_1 = new StringResource('signup_with_passkey', this.klt_1); this.in0_1 = new StringResource('other_options', this.klt_1); this.jn0_1 = new StringResource('i_am_teacher', this.klt_1); this.kn0_1 = new StringResource('i_am_parent', this.klt_1); this.ln0_1 = new StringResource('select_picture_from_files', this.klt_1); this.mn0_1 = new StringResource('your_date_of_birth', this.klt_1); this.nn0_1 = new StringResource('add_child_profiles', this.klt_1); this.on0_1 = new StringResource('child_profile', this.klt_1); this.pn0_1 = new StringResource('finish', this.klt_1); this.qn0_1 = new StringResource('scan_badge_qr_code', this.klt_1); this.rn0_1 = new StringResource('new_user', this.klt_1); this.sn0_1 = new StringResource('existing_user', this.klt_1); this.tn0_1 = new StringResource('personal_account', this.klt_1); this.un0_1 = new StringResource('signup', this.klt_1); this.vn0_1 = new StringResource('access_educational_content_download_offline', this.klt_1); this.wn0_1 = new StringResource('join_learning_space', this.klt_1); this.xn0_1 = new StringResource('learning_space', this.klt_1); this.yn0_1 = new StringResource('eg_for_your_school_organization', this.klt_1); this.zn0_1 = new StringResource('new_learning_space', this.klt_1); this.an1_1 = new StringResource('full_name', this.klt_1); this.bn1_1 = new StringResource('which_profile_do_you_want_to_start', this.klt_1); this.cn1_1 = new StringResource('create_passkey_for_faster_and_easier_signin', this.klt_1); this.dn1_1 = new StringResource('create_username_and_password', this.klt_1); this.en1_1 = new StringResource('create_local_account', this.klt_1); this.fn1_1 = new StringResource('with_passkeys_no_complex_passwords_needed', this.klt_1); this.gn1_1 = new StringResource('enter_link_manually', this.klt_1); this.hn1_1 = new StringResource('registration_not_allowed', this.klt_1); this.in1_1 = new StringResource('add_subtitles', this.klt_1); this.jn1_1 = new StringResource('edit_subtitles', this.klt_1); this.kn1_1 = new StringResource('subtitles', this.klt_1); this.ln1_1 = new StringResource('invite_via_contact', this.klt_1); this.mn1_1 = new StringResource('invite_to_course', this.klt_1); this.nn1_1 = new StringResource('use_email', this.klt_1); this.on1_1 = new StringResource('use_phone_number', this.klt_1); this.pn1_1 = new StringResource('add_username_email_phone', this.klt_1); this.qn1_1 = new StringResource('no_valid_contact_found', this.klt_1); this.rn1_1 = new StringResource('no_contact_found', this.klt_1); this.sn1_1 = new StringResource('decline', this.klt_1); this.tn1_1 = new StringResource('do_you_want_to_join_this_course', this.klt_1); this.un1_1 = new StringResource('invite_has_been_used', this.klt_1); this.vn1_1 = new StringResource('storage_and_data', this.klt_1); this.wn1_1 = new StringResource('storage_and_data_subtitle', this.klt_1); this.xn1_1 = new StringResource('local_sharing', this.klt_1); this.yn1_1 = new StringResource('local_sharing_subtitle', this.klt_1); this.zn1_1 = new StringResource('available_neighbors', this.klt_1); this.an2_1 = new StringResource('device_name', this.klt_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.bn2_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.cn2_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.dn2_1 = new Impl(this.cn2_1, this.bn2_1); this.en2_1 = new PluralsResource('number_of_attempts', this.dn2_1); this.fn2_1 = new PluralsResource('duration_hours', this.dn2_1); this.gn2_1 = new PluralsResource('duration_minutes', this.dn2_1); this.hn2_1 = new PluralsResource('duration_seconds', this.dn2_1); this.in2_1 = new PluralsResource('items_selected', this.dn2_1); this.jn2_1 = new PluralsResource('items_deleted', this.dn2_1); this.kn2_1 = new PluralsResource('items_restored', this.dn2_1); this.ln2_1 = new PluralsResource('are_you_sure_you_want_to_permanently_delete', this.dn2_1); } var plurals_instance; function plurals_getInstance() { if (plurals_instance == null) new plurals(); return plurals_instance; } function MR() { MR_instance = this; this.mn2_1 = 'dad59c1619452360fcb6b9ba864d2035'; this.nn2_1 = strings_getInstance().klt_1.slo(plurals_getInstance().dn2_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.on2_1 = makeAccountActive; this.pn2_1 = parentJoin; } protoOf(AccountRegisterOptions).toString = function () { return 'AccountRegisterOptions(makeAccountActive=' + this.on2_1 + ', parentJoin=' + this.pn2_1 + ')'; }; protoOf(AccountRegisterOptions).hashCode = function () { var result = getBooleanHashCode(this.on2_1); result = imul(result, 31) + (this.pn2_1 == null ? 0 : this.pn2_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.on2_1 === tmp0_other_with_cast.on2_1)) return false; if (!equals(this.pn2_1, tmp0_other_with_cast.pn2_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.sn2_1; dataLayer$factory_0(); return this_0.t2(); } function $setAuthCOROUTINE$1(_this__u8e3s4, personUid, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bn3_1 = _this__u8e3s4; this.cn3_1 = personUid; this.dn3_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.bn3_1, this.dn3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.en3_1 = suspendResult; this.hd_1 = 2; var tmp_0 = _get_dataLayer__43yv12(this.bn3_1).ijf().n7e(); var this_0 = new PersonAuth2(); this_0.ufu_1 = this.cn3_1; var tmp_1 = this_0; tmp_1.vfu_1 = 'PBKDF2x2'; this_0.wfu_1 = this.en3_1; suspendResult = tmp_0.rfu(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.qn2_1 = learningSpace; this.rn2_1 = di; var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.qn2_1; var trigger = this.q56(); // 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.u56(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.sn2_1 = Instance(this_0, tmp$ret$3, null).n5c(this, dataLayer$factory()); } protoOf(AuthManager).n56 = function () { return this.rn2_1; }; protoOf(AuthManager).fn3 = function (personUid, password, $completion) { var tmp = new $setAuthCOROUTINE$1(this, personUid, password, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function dataLayer$factory() { return getPropertyCallableRef('dataLayer', 1, KProperty1, function (receiver) { return _get_dataLayer__43yv12(receiver); }, null); } function dataLayer$factory_0() { return getPropertyCallableRef('dataLayer', 1, KProperty1, function (receiver) { return _get_dataLayer__43yv12(receiver); }, null); } function ConsentNotGrantedException(message, cause) { message = message === VOID ? null : message; cause = cause === VOID ? null : cause; IllegalStateException_init_$Init$(message, cause, this); captureStack(this, ConsentNotGrantedException); } function Companion() { } var Companion_instance_48; function Companion_getInstance_16() { return Companion_instance_48; } function $serializer() { $serializer_instance = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.account.LearningSpace', this, 1); tmp0_serialDesc.g4f('url', false); this.gn3_1 = tmp0_serialDesc; } protoOf($serializer).d44 = function () { return this.gn3_1; }; protoOf($serializer).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer).f44 = function (decoder) { var tmp0_desc = this.gn3_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp6_input = decoder.v47(tmp0_desc); if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return LearningSpace_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer).hn3 = function (encoder, value) { var tmp0_desc = this.gn3_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.j49(tmp0_desc, 0, value.in3_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer).e44 = function (encoder, value) { return this.hn3(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().gn3_1); } $this.in3_1 = url; var tmp = $this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.jn3_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.in3_1).l30_1, '.local'); }; } function LearningSpace$_init_$lambda_beny7x(this$0) { return function () { return endsWith(Url(this$0.in3_1).l30_1, '.local'); }; } function LearningSpace(url) { this.in3_1 = url; var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.jn3_1 = lazy(tmp_0, LearningSpace$isLocal$delegate$lambda(this)); } protoOf(LearningSpace).toString = function () { return 'LearningSpace(url=' + this.in3_1 + ')'; }; protoOf(LearningSpace).hashCode = function () { return getStringHashCode(this.in3_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.in3_1 === tmp0_other_with_cast.in3_1)) return false; return true; }; function Companion_0() { Companion_instance_49 = this; this.kn3_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.ln3_1 = LinkedHashMap_init_$Create$(); } protoOf(LearningSpaceScope).mn3 = function (context) { // Inline function 'kotlin.collections.getOrPut' call var this_0 = this.ln3_1; var key = context.in3_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).u58 = function (context) { return this.mn3(context instanceof LearningSpace ? context : THROW_CCE()); }; function PassKeyPromptData(username, personUid, doorNodeId, usStartTime, serverUrl) { this.nn3_1 = username; this.on3_1 = personUid; this.pn3_1 = doorNodeId; this.qn3_1 = usStartTime; this.rn3_1 = serverUrl; } protoOf(PassKeyPromptData).toString = function () { return 'PassKeyPromptData(username=' + this.nn3_1 + ', personUid=' + this.on3_1.toString() + ', doorNodeId=' + this.pn3_1 + ', usStartTime=' + this.qn3_1.toString() + ', serverUrl=' + this.rn3_1 + ')'; }; protoOf(PassKeyPromptData).hashCode = function () { var result = getStringHashCode(this.nn3_1); result = imul(result, 31) + this.on3_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.pn3_1) | 0; result = imul(result, 31) + this.qn3_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.rn3_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.nn3_1 === tmp0_other_with_cast.nn3_1)) return false; if (!this.on3_1.equals(tmp0_other_with_cast.on3_1)) return false; if (!(this.pn3_1 === tmp0_other_with_cast.pn3_1)) return false; if (!this.qn3_1.equals(tmp0_other_with_cast.qn3_1)) return false; if (!(this.rn3_1 === tmp0_other_with_cast.rn3_1)) return false; return true; }; function Pbkdf2Params(iterations, keyLength) { iterations = iterations === VOID ? 10000 : iterations; keyLength = keyLength === VOID ? 512 : keyLength; this.sn3_1 = iterations; this.tn3_1 = keyLength; } protoOf(Pbkdf2Params).toString = function () { return 'Pbkdf2Params(iterations=' + this.sn3_1 + ', keyLength=' + this.tn3_1 + ')'; }; protoOf(Pbkdf2Params).hashCode = function () { var result = this.sn3_1; result = imul(result, 31) + this.tn3_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.sn3_1 === tmp0_other_with_cast.sn3_1)) return false; if (!(this.tn3_1 === tmp0_other_with_cast.tn3_1)) return false; return true; }; function Companion_1() { } protoOf(Companion_1).a4r = 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.g4f('person', false); tmp0_serialDesc.g4f('newPassword', false); tmp0_serialDesc.g4f('parent', false); tmp0_serialDesc.g4f('learningSpaceUrl', false); tmp0_serialDesc.g4f('langCode', true); this.un3_1 = tmp0_serialDesc; } protoOf($serializer_0).d44 = function () { return this.un3_1; }; protoOf($serializer_0).x4f = 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).f44 = function (decoder) { var tmp0_desc = this.un3_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.v47(tmp0_desc); if (tmp9_input.k48()) { tmp4_local0 = tmp9_input.h48(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.j48(tmp0_desc, 2, $serializer_getInstance_0(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.f48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.f48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.h48(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.j48(tmp0_desc, 2, $serializer_getInstance_0(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.f48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.f48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.w47(tmp0_desc); return RegisterRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_0).vn3 = function (encoder, value) { var tmp0_desc = this.un3_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.l49(tmp0_desc, 0, $serializer_getInstance(), value.wn3_1); tmp1_output.j49(tmp0_desc, 1, value.xn3_1); tmp1_output.n49(tmp0_desc, 2, $serializer_getInstance_0(), value.yn3_1); tmp1_output.j49(tmp0_desc, 3, value.zn3_1); if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.an4_1 === 'en')) { tmp1_output.j49(tmp0_desc, 4, value.an4_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_0).e44 = function (encoder, value) { return this.vn3(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().un3_1); } $this.wn3_1 = person; $this.xn3_1 = newPassword; $this.yn3_1 = parent; $this.zn3_1 = learningSpaceUrl; if (0 === (seen1 & 16)) $this.an4_1 = 'en'; else $this.an4_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.wn3_1 = person; this.xn3_1 = newPassword; this.yn3_1 = parent; this.zn3_1 = learningSpaceUrl; this.an4_1 = langCode; } protoOf(RegisterRequest).toString = function () { return 'RegisterRequest(person=' + this.wn3_1 + ', newPassword=' + this.xn3_1 + ', parent=' + this.yn3_1 + ', learningSpaceUrl=' + this.zn3_1 + ', langCode=' + this.an4_1 + ')'; }; protoOf(RegisterRequest).hashCode = function () { var result = this.wn3_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.xn3_1) | 0; result = imul(result, 31) + (this.yn3_1 == null ? 0 : this.yn3_1.hashCode()) | 0; result = imul(result, 31) + getStringHashCode(this.zn3_1) | 0; result = imul(result, 31) + getStringHashCode(this.an4_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.wn3_1.equals(tmp0_other_with_cast.wn3_1)) return false; if (!(this.xn3_1 === tmp0_other_with_cast.xn3_1)) return false; if (!equals(this.yn3_1, tmp0_other_with_cast.yn3_1)) return false; if (!(this.zn3_1 === tmp0_other_with_cast.zn3_1)) return false; if (!(this.an4_1 === tmp0_other_with_cast.an4_1)) return false; return true; }; function UnauthorizedException(message, cause) { message = message === VOID ? null : message; cause = cause === VOID ? null : cause; IllegalStateException_init_$Init$(message, cause, this); captureStack(this, UnauthorizedException); } function Companion_2() { } var Companion_instance_51; function Companion_getInstance_19() { return Companion_instance_51; } function $serializer_1() { $serializer_instance_1 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.account.UserSessionWithPersonAndLearningSpace', this, 4); tmp0_serialDesc.g4f('userSession', false); tmp0_serialDesc.g4f('person', false); tmp0_serialDesc.g4f('learningSpace', false); tmp0_serialDesc.g4f('personPicture', true); this.bn4_1 = tmp0_serialDesc; } protoOf($serializer_1).d44 = function () { return this.bn4_1; }; protoOf($serializer_1).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_1(), $serializer_getInstance(), $serializer_getInstance_11(), get_nullable($serializer_getInstance_2())]; }; protoOf($serializer_1).f44 = function (decoder) { var tmp0_desc = this.bn4_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.v47(tmp0_desc); if (tmp8_input.k48()) { tmp4_local0 = tmp8_input.h48(tmp0_desc, 0, $serializer_getInstance_1(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.h48(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.h48(tmp0_desc, 2, $serializer_getInstance_11(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, $serializer_getInstance_2(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.h48(tmp0_desc, 0, $serializer_getInstance_1(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.h48(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.h48(tmp0_desc, 2, $serializer_getInstance_11(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, $serializer_getInstance_2(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.w47(tmp0_desc); return UserSessionWithPersonAndLearningSpace_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_1).cn4 = function (encoder, value) { var tmp0_desc = this.bn4_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.l49(tmp0_desc, 0, $serializer_getInstance_1(), value.dn4_1); tmp1_output.l49(tmp0_desc, 1, $serializer_getInstance(), value.en4_1); tmp1_output.l49(tmp0_desc, 2, $serializer_getInstance_11(), value.fn4_1); if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.gn4_1 == null)) { tmp1_output.n49(tmp0_desc, 3, $serializer_getInstance_2(), value.gn4_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_1).e44 = function (encoder, value) { return this.cn4(encoder, value instanceof UserSessionWithPersonAndLearningSpace ? value : THROW_CCE()); }; var $serializer_instance_1; function $serializer_getInstance_13() { if ($serializer_instance_1 == null) new $serializer_1(); return $serializer_instance_1; } function UserSessionWithPersonAndLearningSpace_init_$Init$(seen1, userSession, person, learningSpace, personPicture, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_13().bn4_1); } $this.dn4_1 = userSession; $this.en4_1 = person; $this.fn4_1 = learningSpace; if (0 === (seen1 & 8)) $this.gn4_1 = null; else $this.gn4_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.dn4_1 = userSession; this.en4_1 = person; this.fn4_1 = learningSpace; this.gn4_1 = personPicture; } protoOf(UserSessionWithPersonAndLearningSpace).hn4 = function () { var displayUrl = removeSuffix(removePrefix(removePrefix(this.fn4_1.in3_1, 'http://'), 'https://'), '/'); return '' + this.en4_1.t95_1 + '@' + displayUrl; }; protoOf(UserSessionWithPersonAndLearningSpace).in4 = function () { return toUmAccount(this.en4_1, this.fn4_1.in3_1); }; protoOf(UserSessionWithPersonAndLearningSpace).jn4 = function () { var tmp0_elvis_lhs = this.en4_1.t95_1; return new XapiAgent(VOID, VOID, VOID, VOID, VOID, new XapiAccount(this.fn4_1.in3_1, tmp0_elvis_lhs == null ? 'anonymous' : tmp0_elvis_lhs)); }; protoOf(UserSessionWithPersonAndLearningSpace).kn4 = function (userSession, person, learningSpace, personPicture) { return new UserSessionWithPersonAndLearningSpace(userSession, person, learningSpace, personPicture); }; protoOf(UserSessionWithPersonAndLearningSpace).ln4 = function (userSession, person, learningSpace, personPicture, $super) { userSession = userSession === VOID ? this.dn4_1 : userSession; person = person === VOID ? this.en4_1 : person; learningSpace = learningSpace === VOID ? this.fn4_1 : learningSpace; personPicture = personPicture === VOID ? this.gn4_1 : personPicture; return $super === VOID ? this.kn4(userSession, person, learningSpace, personPicture) : $super.kn4.call(this, userSession, person, learningSpace, personPicture); }; protoOf(UserSessionWithPersonAndLearningSpace).toString = function () { return 'UserSessionWithPersonAndLearningSpace(userSession=' + this.dn4_1 + ', person=' + this.en4_1 + ', learningSpace=' + this.fn4_1 + ', personPicture=' + this.gn4_1 + ')'; }; protoOf(UserSessionWithPersonAndLearningSpace).hashCode = function () { var result = hashCode(this.dn4_1); result = imul(result, 31) + this.en4_1.hashCode() | 0; result = imul(result, 31) + this.fn4_1.hashCode() | 0; result = imul(result, 31) + (this.gn4_1 == null ? 0 : this.gn4_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.dn4_1, tmp0_other_with_cast.dn4_1)) return false; if (!this.en4_1.equals(tmp0_other_with_cast.en4_1)) return false; if (!this.fn4_1.equals(tmp0_other_with_cast.fn4_1)) return false; if (!equals(this.gn4_1, tmp0_other_with_cast.gn4_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.hn4(); // Inline function 'com.ustadmobile.core.account.UstadAccountManager........' call var tmp$ret$1 = b.hn4(); return compareValues(tmp, tmp$ret$1); } function UstadAccountManager$slambda$slambda$slambda$slambda$slambda(this$0, $learningSpace, resultContinuation) { this.un4_1 = this$0; this.vn4_1 = $learningSpace; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda$slambda$slambda).xn4 = function (learningSpaceSessions, $completion) { var tmp = this.yn4(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.xn4((!(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.un4_1.dn5_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.fn4_1.equals(this.vn4_1)) { destination.i1(element); } } var this_1 = this.wn4_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.yia_1; var tmp_0 = tmp0_elvis_lhs == null ? new UserSession() : tmp0_elvis_lhs; var tmp1_elvis_lhs = item.wia_1; destination_0.i1(new UserSessionWithPersonAndLearningSpace(tmp_0, tmp1_elvis_lhs == null ? new Person() : tmp1_elvis_lhs, this.vn4_1, item.xia_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).yn4 = function (learningSpaceSessions, completion) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda$slambda(this.un4_1, this.vn4_1, completion); i.wn4_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.xn4(learningSpaceSessions, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda$slambda$slambda(this$0, $learningSpace, resultContinuation) { this.tn5_1 = this$0; this.un5_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.tn5_1.an5_1; var context = this.un5_1; var trigger = this_0.q56(); 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.u56(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).s57(); var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_0.wn5_1 = tmp_3.q57(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), 1); this.hd_1 = 1; var tmp_5 = this.wn5_1.o7e().ri9(); var tmp_6 = UstadAccountManager$slambda$slambda$slambda$slambda$slambda_0(this.tn5_1, this.un5_1, null); suspendResult = tmp_5.z1b(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.tn5_1, this.un5_1, completion); i.vn5_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.fn6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda).hn6 = function (learningSpacesWithSessions, $completion) { var tmp = this.in6(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.hn6((!(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.gn6_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); launch(this.fn6_1.kn5_1, VOID, VOID, UstadAccountManager$slambda$slambda$slambda$slambda_0(this.fn6_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).in6 = function (learningSpacesWithSessions, completion) { var i = new UstadAccountManager$slambda$slambda$slambda(this.fn6_1, completion); i.gn6_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.hn6(learningSpacesWithSessions, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda(this$0, resultContinuation) { this.rn6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda$slambda).z77 = function ($completion) { return this.w86($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.rn6_1.cn5_1, UstadAccountManager$slambda$slambda$slambda_0(this.rn6_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).y77 = function (completion) { return new UstadAccountManager$slambda$slambda(this.rn6_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.w86($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.cfz_1; tmp.u95_1 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u95_1; var tmp_0 = $this$shallowCopy; var tmp2_safe_receiver = $personAndPictureFromDb; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.cfz_1; tmp_0.v95_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.v95_1; return Unit_instance; }; } function UstadAccountManager$slambda$slambda$slambda$slambda_1($session, this$0, resultContinuation) { this.an7_1 = $session; this.bn7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda$slambda_1).dn7 = function (personAndPictureFromDb, $completion) { var tmp = this.en7(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.dn7((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.cn7_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cfz_1; var nameChanged = !((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.hk2()) === this.an7_1.en4_1.hk2()); var tmp2_safe_receiver = this.cn7_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.dfz_1; var tmp_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.u96_1; var tmp4_safe_receiver = this.an7_1.gn4_1; var pictureUriChanged = !(tmp_0 == (tmp4_safe_receiver == null ? null : tmp4_safe_receiver.u96_1)); if (nameChanged ? true : pictureUriChanged) { var tmp_1; if (nameChanged) { tmp_1 = shallowCopy(this.an7_1.en4_1, UstadAccountManager$slambda$slambda$slambda$slambda$lambda(this.cn7_1)); } else { tmp_1 = this.an7_1.en4_1; } var tmp_2 = tmp_1; var tmp_3; if (pictureUriChanged) { var tmp5_safe_receiver = this.cn7_1; tmp_3 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.dfz_1; } else { tmp_3 = this.an7_1.gn4_1; } this.bn7_1.fn7(this.an7_1.ln4(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).en7 = function (personAndPictureFromDb, completion) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda_1(this.an7_1, this.bn7_1, completion); i.cn7_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.dn7(personAndPictureFromDb, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda$slambda_1(this$0, resultContinuation) { this.on7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda_1).rn7 = function (session, $completion) { var tmp = this.sn7(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.rn7(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.on7_1.an5_1; var context = this.pn7_1.fn4_1; var trigger = this_0.q56(); 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.u56(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).s57(); var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_0.qn7_1 = tmp_3.q57(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), 1); this.hd_1 = 1; var tmp_5 = this.qn7_1.a7d().zcf(this.pn7_1.dn4_1.oia_1); var tmp_6 = UstadAccountManager$slambda$slambda$slambda$slambda_2(this.pn7_1, this.on7_1, null); suspendResult = tmp_5.z1b(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).sn7 = function (session, completion) { var i = new UstadAccountManager$slambda$slambda$slambda_1(this.on7_1, completion); i.pn7_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.rn7(session, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda_1(this$0, resultContinuation) { this.bn8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda_1).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda$slambda_1).z77 = function ($completion) { return this.w86($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.bn8_1.bn5_1, UstadAccountManager$slambda$slambda$slambda_2(this.bn8_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).y77 = function (completion) { return new UstadAccountManager$slambda$slambda_1(this.bn8_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.w86($completion); }; l.$arity = 0; return l; } function UstadAccountManager$registerWithPasskey$slambda$slambda($repo, $person, resultContinuation) { this.kn8_1 = $repo; this.ln8_1 = $person; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$registerWithPasskey$slambda$slambda).on8 = function (it, $completion) { var tmp = this.pn8(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.on8(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.kn8_1.a7d().pfx(this.ln8_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.nn8_1 = suspendResult; if (this.nn8_1 == null) { this.hd_1 = 2; suspendResult = this.kn8_1.a7d().insertAsync(this.ln8_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).pn8 = function (it, completion) { var i = new UstadAccountManager$registerWithPasskey$slambda$slambda(this.kn8_1, this.ln8_1, completion); i.mn8_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.on8(it, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$register$slambda$slambda(this$0, resultContinuation) { this.yn8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$register$slambda$slambda).cn9 = function (response, $completion) { var tmp = this.p3h(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.cn9(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.zn8_1.w3a().s2z_1 === 200) { var tmp_0 = this; tmp_0.bn9_1 = _get_json__d8whur(this.yn8_1); this.hd_1 = 1; suspendResult = bodyAsText(this.zn8_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this; tmp_1.an9_1 = new Pair(null, this.zn8_1.w3a().s2z_1); this.hd_1 = 2; continue $sm; } case 1: var string = suspendResult; var this_0 = this.bn9_1.g45(); var this_1 = serializer(this_0, createKType(getKClass(Person), arrayOf([]), false)); var ARGUMENT = this.bn9_1.f45(isInterface(this_1, KSerializer) ? this_1 : THROW_CCE(), string); this.an9_1 = new Pair(ARGUMENT, 200); this.hd_1 = 2; continue $sm; case 2: return this.an9_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).p3h = function (response, completion) { var i = new UstadAccountManager$register$slambda$slambda(this.yn8_1, completion); i.zn8_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.cn9(response, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$register$slambda$slambda_1($db, $registeredPerson, resultContinuation) { this.ln9_1 = $db; this.mn9_1 = $registeredPerson; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$register$slambda$slambda_1).on8 = function (it, $completion) { var tmp = this.pn8(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.on8(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.ln9_1.a7d().pfx(this.mn9_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.on9_1 = suspendResult; if (this.on9_1 == null) { this.hd_1 = 2; suspendResult = this.ln9_1.a7d().insertAsync(this.mn9_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).pn8 = function (it, completion) { var i = new UstadAccountManager$register$slambda$slambda_1(this.ln9_1, this.mn9_1, completion); i.nn9_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.on8(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.fn5_1; createNewLocalAccountUseCase$factory_0(); return this_0.t2(); } function _get_httpClient__2ty1zc($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.gn5_1; httpClient$factory_0(); return this_0.t2(); } function _get_json__d8whur($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hn5_1; json$factory_0(); return this_0.t2(); } function _get_apiUrlConfig__mldllg($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.in5_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.jia_1 = tmp_0.a62(679); this_0.pia_1 = get_doorWrapperNodeId(currentDb); this_0.qia_1 = systemTimeInMillis(); var tmp_1 = this_0; tmp_1.via_1 = 8 | 4; var tmp_2 = this_0; tmp_2.sia_1 = 1; var this_1 = new UserSessionWithPersonAndLearningSpace(this_0, Companion_getInstance_20().pn9_1, new LearningSpace(learningSpaceUrl)); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.account.UstadAccountManager.makeNewTempGuestSession.' call launch($this.kn5_1, VOID, VOID, UstadAccountManager$makeNewTempGuestSession$slambda_0(currentDb, this_1, null)); return this_1; } function assertNotClosed($this) { if ($this.jn5_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.cn5_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.cn5_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.cn5_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.in3_1; destination.i1(tmp$ret$0); } var json = tmp.e45(tmp_0, toList(destination)); // Inline function 'com.russhwolf.settings.set' call var this_1 = $this.zn4_1; var key = 'accountmgr.endpointswithsessions'; this_1.clj(key, json); } function getSiteFromDbOrLoadFromHttp($this, repo, $completion) { var tmp = new $getSiteFromDbOrLoadFromHttpCOROUTINE$7($this, repo, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_3() { Companion_instance_52 = this; var tmp = this; // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.account.Companion.GUEST_PERSON.' call this_0.s95_1 = new Long(0, 0); this_0.u95_1 = 'Guest'; this_0.v95_1 = 'User'; tmp.pn9_1 = this_0; this.qn9_1 = 'accountmgr.activesession'; this.rn9_1 = 'accountmgr.activeendpoint'; this.sn9_1 = 'accountmgr.endpointswithsessions'; this.tn9_1 = 'http://localhost/'; this.un9_1 = 'com.ustadmobile'; this.vn9_1 = 'com.ustadmobile.AUTH_GET_TOKEN'; } var Companion_instance_52; function Companion_getInstance_20() { if (Companion_instance_52 == null) new Companion_3(); return Companion_instance_52; } function sam$kotlin_Comparator$0(function_0) { this.ina_1 = function_0; } protoOf(sam$kotlin_Comparator$0).pa = function (a, b) { return this.ina_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.jna_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).t1d = function (value, $completion) { return this.jna_1(value, $completion); }; function sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0(function_0) { this.kna_1 = function_0; } protoOf(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0).lna = function (endpointUrl) { return this.kna_1(endpointUrl); }; function sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_0(function_0) { this.mna_1 = function_0; } protoOf(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_0).lna = function (endpointUrl) { return this.mna_1(endpointUrl); }; function UstadAccountManager$slambda(this$0, resultContinuation) { this.vna_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.vna_1.dn5_1, UstadAccountManager$slambda$slambda_0(this.vna_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.vna_1, completion); i.wna_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.fnb_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.fnb_1.bn5_1, UstadAccountManager$slambda$slambda_2(this.fnb_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.fnb_1, completion); i.gnb_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.pnb_1 = $currentDb; this.qnb_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.pnb_1.o7e().qi9(this.qnb_1.dn4_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.pnb_1, this.qnb_1, completion); i.rnb_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.anc_1 = $learningSpaceUrl; this.bnc_1 = this$0; this.cnc_1 = $passkeyResult; this.dnc_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.fnc_1 = new LearningSpace(this.anc_1); var tmp_0 = this; var this_0 = this.bnc_1.an5_1; var context = this.fnc_1; var trigger = this_0.q56(); 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.u56(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).s57(); var tmp_4 = typeToken(createKType(getKClass(SavePersonPasskeyUseCase), arrayOf([]), false)); tmp_0.gnc_1 = tmp_3.q57(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); this.hd_1 = 1; suspendResult = this.gnc_1.mnc(this.cnc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_5 = this; var this_1 = this.bnc_1.an5_1; var context_0 = this.fnc_1; var trigger_0 = this_1.q56(); 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.u56(isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(), context_0), trigger_0)).s57(); var tmp_9 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_5.hnc_1 = tmp_8.q57(isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(), null).hjf(); this.id_1 = 3; this.hd_1 = 2; suspendResult = getSiteFromDbOrLoadFromHttp(this.bnc_1, this.hnc_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.inc_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.bnc_1.nnc(this.dnc_1, this.anc_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.jnc_1 = suspendResult; this.hd_1 = 6; suspendResult = withDoorTransactionAsync(this.hnc_1, VOID, UstadAccountManager$registerWithPasskey$slambda$slambda_0(this.hnc_1, this.dnc_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: var this_2 = this.bnc_1.an5_1; var context_1 = this.fnc_1; var trigger_1 = this_2.q56(); 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.u56(isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(), context_1), trigger_1)).s57(); var tmp_14 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var db = tmp_13.q57(isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(), 1); this.bnc_1.fn7(this.jnc_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.anc_1, this.bnc_1, this.cnc_1, this.dnc_1, completion); i.enc_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.wnc_1 = this$0; this.xnc_1 = $learningSpaceUrl; this.ync_1 = $accountRegisterOptions; this.znc_1 = $person; this.and_1 = $password; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$register$slambda).mnd = 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.mnd((!(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.wnc_1); this.cnd_1 = new LearningSpace(this.xnc_1); this.dnd_1 = this.ync_1.pn2_1; var tmp_0 = this; var this_0 = _get_httpClient__2ty1zc(this.wnc_1); var this_1 = new HttpRequestBuilder(); url(this_1, removeSuffix(this.xnc_1, '/') + '/auth/register'); contentType(this_1, Application_getInstance().i2r_1); setBodyJson(this_1, _get_json__d8whur(this.wnc_1), Companion_instance_50.a4r(), new RegisterRequest(this.znc_1, this.and_1, this.dnd_1, this.xnc_1)); this_1.j38_1 = Companion_getInstance().z2w_1; tmp_0.end_1 = new HttpStatement(this_1, this_0); this.hd_1 = 1; suspendResult = this.end_1.t3y(UstadAccountManager$register$slambda$slambda_0(this.wnc_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.fnd_1 = suspendResult; this.gnd_1 = this.fnd_1.y6(); this.hnd_1 = this.fnd_1.z6(); if (this.hnd_1 === 200 ? !(this.gnd_1 == null) : false) { var tmp_1 = this; var this_2 = this.wnc_1.an5_1; var context = this.cnd_1; var trigger = this_2.q56(); 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.u56(isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(), context), trigger)).s57(); var tmp_5 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_1.jnd_1 = tmp_4.q57(isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(), null).hjf(); this.hd_1 = 2; suspendResult = getSiteFromDbOrLoadFromHttp(this.wnc_1, this.jnd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { if (this.hnd_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.hnd_1); } } case 2: this.hd_1 = 3; suspendResult = this.wnc_1.nnc(this.gnd_1, this.xnc_1, this.and_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.knd_1 = suspendResult; var tmp_8 = this; var this_3 = this.wnc_1.an5_1; var context_0 = this.cnd_1; var trigger_0 = this_3.q56(); 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.u56(isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(), context_0), trigger_0)).s57(); var tmp_12 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_8.lnd_1 = tmp_11.q57(isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(), 1); this.hd_1 = 4; suspendResult = withDoorTransactionAsync(this.lnd_1, VOID, UstadAccountManager$register$slambda$slambda_2(this.lnd_1, this.gnd_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: if (this.ync_1.on2_1) { this.wnc_1.fn7(this.knd_1); } this.ind_1 = this.gnd_1; this.hd_1 = 5; continue $sm; case 5: return this.ind_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.wnc_1, this.xnc_1, this.ync_1, this.znc_1, this.and_1, completion); i.bnd_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.mnd($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$addSession$slambda(this$0, $learningSpace, $person, $password, $authManager, $dataLayer, resultContinuation) { this.vnd_1 = this$0; this.wnd_1 = $learningSpace; this.xnd_1 = $person; this.ynd_1 = $password; this.znd_1 = $authManager; this.ane_1 = $dataLayer; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$addSession$slambda).nne = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$addSession$slambda).he = function (p1, $completion) { return this.nne(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.vnd_1.an5_1; var context = this.wnd_1; var trigger = this_0.q56(); 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.u56(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).s57(); var tmp_4 = typeToken(createKType(getKClass(NodeIdAndAuth), arrayOf([]), false)); tmp_0.cne_1 = tmp_3.q57(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null).d64_1; var tmp_5 = this; tmp_5.dne_1 = new UserSession(); var tmp_6 = this; tmp_6.ene_1 = this.dne_1; this.ene_1.pia_1 = this.cne_1; this.ene_1.oia_1 = this.xnd_1.s95_1; this.ene_1.qia_1 = systemTimeInMillis(); var tmp_7 = this.ene_1; tmp_7.via_1 = 1; var tmp_8 = this.ene_1; tmp_8.sia_1 = 1; this.fne_1 = this.ynd_1; if (this.fne_1 == null) { this.gne_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_9 = this; tmp_9.hne_1 = this.fne_1; var tmp_10 = this; tmp_10.ine_1 = this.hne_1; this.hd_1 = 1; suspendResult = encryptPbkdf2(this.znd_1, this.ine_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.jne_1 = suspendResult; this.gne_1 = toHexString(this.jne_1); this.hd_1 = 2; continue $sm; case 2: this.kne_1 = this.gne_1; this.ene_1.uia_1 = this.kne_1; this.hd_1 = 3; suspendResult = this.ane_1.ijf().o7e().qi9(this.ene_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.lne_1 = suspendResult; this.ene_1.jia_1 = this.lne_1; this.mne_1 = this.dne_1; this.hd_1 = 4; suspendResult = this.ane_1.ejf_1.s7d().mgv(this.xnd_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var personPicture = suspendResult; return to(this.mne_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).pn8 = function (it, completion) { var i = new UstadAccountManager$addSession$slambda(this.vnd_1, this.wnd_1, this.xnd_1, this.ynd_1, this.znd_1, this.ane_1, completion); i.bne_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.nne(it, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$endSession$lambda($session) { return function (it) { return it === $session.fn4_1.in3_1; }; } function UstadAccountManager$loginWithPasskey$slambda(this$0, $passKeySignInData, $currentServerUrl, resultContinuation) { this.wne_1 = this$0; this.xne_1 = $passKeySignInData; this.yne_1 = $currentServerUrl; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$loginWithPasskey$slambda).pnf = 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.pnf((!(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.wne_1); this.anf_1 = base64StringToByteArray(this.xne_1.rnf_1); this.bnf_1 = substringAfter(decodeToString(this.anf_1), '@'); var tmp_0 = this; tmp_0.cnf_1 = _get_httpClient__2ty1zc(this.wne_1); var tmp_1 = this; tmp_1.dnf_1 = this.cnf_1; var tmp_2 = this; var this_0 = new HttpRequestBuilder(); url(this_0, removeSuffix(this.bnf_1, '/') + '/api/passkey/verifypasskey'); parameter(this_0, 'id', this.xne_1.qnf_1); parameter(this_0, 'userHandle', this.xne_1.rnf_1); parameter(this_0, 'authenticatorData', this.xne_1.snf_1); parameter(this_0, 'clientDataJSON', this.xne_1.tnf_1); parameter(this_0, 'signature', this.xne_1.unf_1); parameter(this_0, 'origin', this.xne_1.vnf_1); parameter(this_0, 'rpId', this.xne_1.wnf_1); parameter(this_0, 'challenge', this.xne_1.xnf_1); tmp_2.enf_1 = this_0; this.enf_1.j38_1 = Companion_getInstance().z2w_1; var tmp_3 = this; tmp_3.fnf_1 = this.dnf_1; var tmp_4 = this; tmp_4.gnf_1 = this.enf_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.gnf_1, this.fnf_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hnf_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.hnf_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.inf_1 = suspendResult; var tmp_5 = Napier_getInstance(); tmp_5.x5d(VOID, VOID, UstadAccountManager$loginWithPasskey$slambda$lambda(this.inf_1)); var tmp_6 = this; var this_1 = Default_getInstance(); var string = this.inf_1; var this_2 = this_1.g45(); var this_3 = serializer(this_2, createKType(getKClass(PasskeyVerifyResult), arrayOf([]), false)); tmp_6.jnf_1 = this_1.f45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), string); if (!this.jnf_1.ynf_1) { throw new UnauthorizedException('Account not found'); } this.knf_1 = new UmAccount(this.jnf_1.znf_1); this.knf_1.bka_1 = this.yne_1; var tmp_7 = this; var this_4 = this.wne_1.an5_1; var context = new LearningSpace(this.bnf_1); var trigger = this_4.q56(); 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.u56(isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(), context), trigger)).s57(); var tmp_11 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_7.lnf_1 = tmp_10.q57(isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(), null).hjf(); this.hd_1 = 3; suspendResult = this.lnf_1.a7d().ofx(this.jnf_1.znf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.mnf_1 = suspendResult; var tmp_12 = this; var tmp_13; if (this.mnf_1 == null) { throw IllegalStateException_init_$Create$('Cannot find person in repo/db'); } else { tmp_13 = this.mnf_1; } tmp_12.nnf_1 = tmp_13; this.onf_1 = ensureNotNull(this.nnf_1.cfz_1); this.knf_1.fka_1 = this.onf_1.a96_1; this.hd_1 = 4; suspendResult = getSiteFromDbOrLoadFromHttp(this.wne_1, this.lnf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.hd_1 = 5; suspendResult = this.wne_1.nnc(this.onf_1, this.yne_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var newSession = suspendResult; this.wne_1.fn7(newSession); return this.knf_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.wne_1, this.xne_1, this.yne_1, completion); i.zne_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.pnf($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$login$slambda(this$0, $endpointUrl, $username, $password, $maxDateOfBirth, $dontSetCurrentSession, resultContinuation) { this.kng_1 = this$0; this.lng_1 = $endpointUrl; this.mng_1 = $username; this.nng_1 = $password; this.ong_1 = $maxDateOfBirth; this.png_1 = $dontSetCurrentSession; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$login$slambda).pnf = 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.pnf((!(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.kng_1); var tmp_0 = this; var this_0 = get_direct(this.kng_1.an5_1); var context = new LearningSpace(this.lng_1); var tmp_1 = this_0.s57(); var tmp_2 = Companion_instance_0; var tmp_3 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_4 = tmp_1.p57(tmp_2.u56(isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(), context)).s57(); var tmp_5 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.rng_1 = tmp_4.q57(isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(), null); var tmp_6 = this; var tmp_7 = this.rng_1.fjf_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.w38(); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.i65_1; var tmp_8; if (tmp2_elvis_lhs == null) { throw IllegalStateException_init_$Create$('Could not open repo for endpoint ' + this.lng_1); } else { tmp_8 = tmp2_elvis_lhs; } tmp_6.sng_1 = tmp_8; var tmp_9 = this; tmp_9.tng_1 = _get_httpClient__2ty1zc(this.kng_1); var tmp_10 = this; tmp_10.ung_1 = this.tng_1; var tmp_11 = this; var this_1 = new HttpRequestBuilder(); url(this_1, removeSuffix(this.lng_1, '/') + '/auth/login'); parameter(this_1, 'username', this.mng_1); parameter(this_1, 'password', this.nng_1); parameter(this_1, 'maxDateOfBirth', this.ong_1); header(this_1, 'X-nid', this.sng_1); set_expectSuccess(this_1, false); tmp_11.vng_1 = this_1; this.vng_1.j38_1 = Companion_getInstance().z2w_1; var tmp_12 = this; tmp_12.wng_1 = this.ung_1; var tmp_13 = this; tmp_13.xng_1 = this.vng_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.xng_1, this.wng_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.yng_1 = suspendResult; if (this.yng_1.w3a().s2z_1 === 403) { throw new UnauthorizedException('Access denied'); } else if (this.yng_1.w3a().equals(Companion_getInstance_0().d2z_1)) { throw new ConsentNotGrantedException('Parental consent required but not granted'); } else if (this.yng_1.w3a().equals(Companion_getInstance_0().s2y_1)) { throw new AdultAccountRequiredException('Adult account required, credentials for child account'); } else if (!(this.yng_1.w3a().s2z_1 === 200)) { throw IllegalStateException_init_$Create$('Server error - response ' + this.yng_1.w3a().s2z_1); } var tmp_14 = this; tmp_14.zng_1 = _get_json__d8whur(this.kng_1); this.hd_1 = 2; suspendResult = bodyAsText(this.yng_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.anh_1 = suspendResult; var tmp_15 = this; var this_2 = this.zng_1.g45(); var this_3 = serializer(this_2, createKType(getKClass(UmAccount), arrayOf([]), false)); tmp_15.bnh_1 = this.zng_1.f45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), this.anh_1); this.bnh_1.bka_1 = this.lng_1; this.hd_1 = 3; suspendResult = this.rng_1.ijf().a7d().ofx(this.bnh_1.yk9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.cnh_1 = suspendResult; var tmp_16 = this; var tmp_17; if (this.cnh_1 == null) { throw IllegalStateException_init_$Create$('Cannot find person in repo/db'); } else { tmp_17 = this.cnh_1; } tmp_16.dnh_1 = tmp_17; this.enh_1 = ensureNotNull(this.dnh_1.cfz_1); this.bnh_1.fka_1 = this.enh_1.a96_1; this.hd_1 = 4; suspendResult = getSiteFromDbOrLoadFromHttp(this.kng_1, this.rng_1.ijf(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.hd_1 = 5; suspendResult = this.kng_1.nnc(this.enh_1, this.lng_1, this.nng_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var newSession = suspendResult; if (!this.png_1) { this.kng_1.fn7(newSession); } return this.bnh_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.kng_1, this.lng_1, this.mng_1, this.nng_1, this.ong_1, this.png_1, completion); i.qng_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.pnf($this$withContext, $completion); }; l.$arity = 1; return l; } function $activeSessionsListCOROUTINE$2(_this__u8e3s4, endpointFilter, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nnh_1 = _this__u8e3s4; this.onh_1 = endpointFilter; } protoOf($activeSessionsListCOROUTINE$2).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var this_0 = this.nnh_1.cn5_1.t2(); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (this.onh_1.lna(element.in3_1)) { destination.i1(element); } } tmp_0.pnh_1 = destination; var tmp_1 = this; tmp_1.qnh_1 = this.pnh_1; var tmp_2 = this; tmp_2.rnh_1 = ArrayList_init_$Create$(); this.snh_1 = this.qnh_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.snh_1.f()) { this.hd_1 = 3; continue $sm; } this.tnh_1 = this.snh_1.e(); var tmp_3 = this; tmp_3.unh_1 = this.tnh_1; var tmp_4 = this; var this_1 = this.nnh_1.an5_1; var context = this.unh_1; var trigger = this_1.q56(); 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.u56(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context), trigger)).s57(); var tmp_8 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_4.vnh_1 = tmp_7.q57(isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(), 1); this.hd_1 = 2; suspendResult = this.vnh_1.o7e().si9(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.unh_1)); } var list = destination_0; addAll(this.rnh_1, list); this.hd_1 = 1; continue $sm; case 3: return this.rnh_1; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $activeSessionCountCOROUTINE$3(_this__u8e3s4, maxDateOfBirth, endpointFilter, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.eni_1 = _this__u8e3s4; this.fni_1 = maxDateOfBirth; this.gni_1 = endpointFilter; } protoOf($activeSessionCountCOROUTINE$3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var this_0 = this.eni_1.cn5_1.t2(); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (this.gni_1.lna(element.in3_1)) { destination.i1(element); } } tmp_0.hni_1 = destination; var tmp_1 = this; tmp_1.ini_1 = 0; this.jni_1 = this.ini_1; this.kni_1 = this.hni_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.kni_1.f()) { this.hd_1 = 3; continue $sm; } this.lni_1 = this.kni_1.e(); var tmp_2 = this; tmp_2.mni_1 = this.jni_1; var tmp_3 = this; tmp_3.nni_1 = this.lni_1; var tmp_4 = this; var this_1 = this.eni_1.an5_1; var context = this.nni_1; var trigger = this_1.q56(); 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.u56(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context), trigger)).s57(); var tmp_8 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_4.oni_1 = tmp_7.q57(isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(), 1); this.hd_1 = 2; suspendResult = this.oni_1.o7e().ti9(this.fni_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var ARGUMENT = suspendResult; this.jni_1 = this.mni_1 + ARGUMENT | 0; this.hd_1 = 1; continue $sm; case 3: return this.jni_1; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $addSessionCOROUTINE$4(_this__u8e3s4, person, learningSpaceUrl, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xni_1 = _this__u8e3s4; this.yni_1 = person; this.zni_1 = learningSpaceUrl; this.anj_1 = password; } protoOf($addSessionCOROUTINE$4).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; assertNotClosed(this.xni_1); this.bnj_1 = new LearningSpace(this.zni_1); var tmp_0 = this; var this_0 = this.xni_1.an5_1; var context = this.bnj_1; var trigger = this_0.q56(); 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.u56(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).s57(); var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.cnj_1 = tmp_3.q57(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); if (!this.xni_1.cn5_1.t2().a1(this.bnj_1)) { this.hd_1 = 1; suspendResult = addActiveLearningSpace(this.xni_1, this.bnj_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; continue $sm; } case 1: commitActiveEndpointsToPref(this.xni_1); this.hd_1 = 2; continue $sm; case 2: var tmp_5 = this; var this_1 = this.xni_1.an5_1; var context_0 = this.bnj_1; var trigger_0 = this_1.q56(); 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.u56(isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(), context_0), trigger_0)).s57(); var tmp_9 = typeToken(createKType(getKClass(AuthManager), arrayOf([]), false)); tmp_5.dnj_1 = tmp_8.q57(isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(), null); this.hd_1 = 3; var tmp_10 = this.cnj_1.ijf(); suspendResult = withDoorTransactionAsync(tmp_10, VOID, UstadAccountManager$addSession$slambda_0(this.xni_1, this.bnj_1, this.yni_1, this.anj_1, this.dnj_1, this.cnj_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.yni_1, this.bnj_1, personPicture); case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $endSessionCOROUTINE$6(_this__u8e3s4, session, endStatus, endReason, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mnj_1 = _this__u8e3s4; this.nnj_1 = session; this.onj_1 = endStatus; this.pnj_1 = endReason; } protoOf($endSessionCOROUTINE$6).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var this_0 = this.mnj_1.an5_1; var context = this.nnj_1.fn4_1; var trigger = this_0.q56(); 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.u56(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).s57(); var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.qnj_1 = tmp_3.q57(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); this.hd_1 = 1; suspendResult = this.qnj_1.ijf().o7e().ui9(this.nnj_1.dn4_1.jia_1, this.onj_1, this.pnj_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (this.mnj_1.rnj().dn4_1.jia_1.equals(this.nnj_1.dn4_1.jia_1) ? this.mnj_1.rnj().fn4_1.equals(this.nnj_1.fn4_1) : false) { this.mnj_1.fn7(makeNewTempGuestSession(this.mnj_1, this.nnj_1.fn4_1.in3_1, this.qnj_1.ijf())); } this.hd_1 = 2; var tmp_5 = UstadAccountManager$endSession$lambda(this.nnj_1); suspendResult = this.mnj_1.snj(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.mnj_1, this.nnj_1.fn4_1); this.hd_1 = 3; continue $sm; } else { this.hd_1 = 3; continue $sm; } case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $getSiteFromDbOrLoadFromHttpCOROUTINE$7(_this__u8e3s4, repo, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ena_1 = _this__u8e3s4; this.fna_1 = repo; } protoOf($getSiteFromDbOrLoadFromHttpCOROUTINE$7).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var tmp_1 = this.fna_1; var tmp_2 = (isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : THROW_CCE()).k5i(); tmp_0.gna_1 = tmp_2 instanceof UmAppDatabase ? tmp_2 : THROW_CCE(); this.hd_1 = 1; suspendResult = this.gna_1.i7e().dhe(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hna_1 = suspendResult; if (this.hna_1 == null) { this.hd_1 = 2; suspendResult = this.fna_1.i7e().dhe(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: if (suspendResult == null) throw IllegalStateException_init_$Create$('Internal error: no Site in database and could not fetch it from server'); this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $startGuestSessionCOROUTINE$9(_this__u8e3s4, learningSpaceUrl, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bnk_1 = _this__u8e3s4; this.cnk_1 = learningSpaceUrl; } protoOf($startGuestSessionCOROUTINE$9).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var this_0 = this.bnk_1.an5_1; var context = new LearningSpace(this.cnk_1); var trigger = this_0.q56(); 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.u56(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).s57(); var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.dnk_1 = tmp_3.q57(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); this.hd_1 = 1; var tmp_5 = this.dnk_1.ijf(); var this_1 = new Person(); this_1.t95_1 = null; this_1.u95_1 = 'Guest'; this_1.v95_1 = 'User'; var tmp_6 = this_1; tmp_6.h96_1 = 2; suspendResult = insertPersonAndGroup(tmp_5, this_1, 1 | 16, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.enk_1 = suspendResult; this.hd_1 = 2; suspendResult = getSiteFromDbOrLoadFromHttp(this.bnk_1, this.dnk_1.ijf(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.hd_1 = 3; suspendResult = this.bnk_1.nnc(this.enk_1, this.cnk_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var guestSession = suspendResult; this.bnk_1.fn7(guestSession); return guestSession; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function UstadAccountManager(settings, di) { Companion_getInstance_20(); this.zn4_1 = settings; this.an5_1 = di; this.en5_1 = MutableSharedFlow(); var tmp = this; // Inline function 'org.kodein.di.instance' call var this_0 = this.an5_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.fn5_1 = Instance(this_0, tmp$ret$0, null).n5c(this, createNewLocalAccountUseCase$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call var this_1 = this.an5_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.gn5_1 = Instance(this_1, tmp$ret$2, null).n5c(this, httpClient$factory()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call var this_2 = this.an5_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.hn5_1 = Instance(this_2, tmp$ret$4, null).n5c(this, json$factory()); var tmp_5 = this; // Inline function 'org.kodein.di.instance' call var this_3 = this.an5_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.in5_1 = Instance(this_3, tmp$ret$6, null).n5c(this, apiUrlConfig$factory()); this.jn5_1 = atomic$boolean$1(false); this.kn5_1 = CoroutineScope_0(Dispatchers_getInstance().t12().lj(Job())); var tmp0_elvis_lhs = this.zn4_1.dlj('accountmgr.activeendpoint'); var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? _get_apiUrlConfig__mldllg(this).hnk_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.an5_1); var context = new LearningSpace(currentEndpointStr); var tmp_7 = this_4.s57(); // 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.u56(tmp$ret$8, context); var tmp_10 = tmp_7.p57(tmp$ret$9).s57(); // 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.q57(tmp$ret$11, 1); var tmp2_safe_receiver = this.zn4_1.dlj('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.g45(); // 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.f45(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.bn5_1 = MutableStateFlow(initUserSession); var tmp4_safe_receiver = this.zn4_1.dlj('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).f45(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.cn5_1 = MutableStateFlow(destination); this.dn5_1 = MutableStateFlow(listOf_0(initUserSession)); launch(this.kn5_1, VOID, VOID, UstadAccountManager$slambda_0(this, null)); launch(this.kn5_1, VOID, VOID, UstadAccountManager$slambda_2(this, null)); } protoOf(UstadAccountManager).fn7 = function (value) { this.bn5_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.g45(); // 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.e45(tmp$ret$1, value); // Inline function 'com.russhwolf.settings.set' call var this_3 = this.zn4_1; var key = 'accountmgr.activesession'; this_3.clj(key, activeAccountJson); // Inline function 'com.russhwolf.settings.set' call var this_4 = this.zn4_1; var key_0 = 'accountmgr.activeendpoint'; var value_0 = value.fn4_1.in3_1; this_4.clj(key_0, value_0); }; protoOf(UstadAccountManager).rnj = function () { return this.bn5_1.t2(); }; protoOf(UstadAccountManager).knk = function () { return asStateFlow(this.bn5_1); }; protoOf(UstadAccountManager).lnk = function () { return this.bn5_1.t2().in4(); }; protoOf(UstadAccountManager).mnk = function () { return asStateFlow(this.dn5_1); }; protoOf(UstadAccountManager).nnk = function () { return this.bn5_1.t2().fn4_1; }; protoOf(UstadAccountManager).snj = function (endpointFilter, $completion) { var tmp = new $activeSessionsListCOROUTINE$2(this, endpointFilter, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager).onk = function (maxDateOfBirth, endpointFilter, $completion) { var tmp = new $activeSessionCountCOROUTINE$3(this, maxDateOfBirth, endpointFilter, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager).pnk = 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.onk(maxDateOfBirth, endpointFilter, $completion) : $super.onk.call(this, maxDateOfBirth, endpointFilter, $completion); }; protoOf(UstadAccountManager).qnk = function (username, personUid, doorNodeId, usStartTime, serverUrl, $completion) { var promptData = new PassKeyPromptData(username, personUid, doorNodeId, usStartTime, serverUrl); return this.en5_1.t1d(promptData, $completion); }; protoOf(UstadAccountManager).rnk = 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).snk = 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).tnk = function (person, password, learningSpaceUrl, accountRegisterOptions, $completion, $super) { accountRegisterOptions = accountRegisterOptions === VOID ? new AccountRegisterOptions() : accountRegisterOptions; return $super === VOID ? this.snk(person, password, learningSpaceUrl, accountRegisterOptions, $completion) : $super.snk.call(this, person, password, learningSpaceUrl, accountRegisterOptions, $completion); }; protoOf(UstadAccountManager).nnc = function (person, learningSpaceUrl, password, $completion) { var tmp = new $addSessionCOROUTINE$4(this, person, learningSpaceUrl, password, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager).unk = function (session, endStatus, endReason, $completion) { var tmp = new $endSessionCOROUTINE$6(this, session, endStatus, endReason, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager).vnk = 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.unk(session, endStatus, endReason, $completion) : $super.unk.call(this, session, endStatus, endReason, $completion); }; protoOf(UstadAccountManager).wnk = function (passKeySignInData, currentServerUrl, $completion) { var tmp = Dispatchers_getInstance().p12_1; return withContext(tmp, UstadAccountManager$loginWithPasskey$slambda_0(this, passKeySignInData, currentServerUrl, null), $completion); }; protoOf(UstadAccountManager).xnk = 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).ynk = function (learningSpaceUrl, $completion) { var tmp = new $startGuestSessionCOROUTINE$9(this, learningSpaceUrl, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function createNewLocalAccountUseCase$factory() { return getPropertyCallableRef('createNewLocalAccountUseCase', 1, KProperty1, function (receiver) { return _get_createNewLocalAccountUseCase__gbdxzu(receiver); }, null); } function httpClient$factory() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc(receiver); }, null); } function json$factory() { return getPropertyCallableRef('json', 1, KProperty1, function (receiver) { return _get_json__d8whur(receiver); }, null); } function apiUrlConfig$factory() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg(receiver); }, null); } function createNewLocalAccountUseCase$factory_0() { return getPropertyCallableRef('createNewLocalAccountUseCase', 1, KProperty1, function (receiver) { return _get_createNewLocalAccountUseCase__gbdxzu(receiver); }, null); } function httpClient$factory_0() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc(receiver); }, null); } function json$factory_0() { return getPropertyCallableRef('json', 1, KProperty1, function (receiver) { return _get_json__d8whur(receiver); }, null); } function apiUrlConfig$factory_0() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg(receiver); }, null); } function Companion_4() { this.znk_1 = 101; } var Companion_instance_53; function Companion_getInstance_21() { return Companion_instance_53; } function Companion_5() { } protoOf(Companion_5).a4r = function () { return AnchorSerializer_getInstance(); }; var Companion_instance_54; function Companion_getInstance_22() { return Companion_instance_54; } function Anchor(content, href) { content = content === VOID ? '' : content; href = href === VOID ? '' : href; this.anl_1 = content; this.bnl_1 = href; } function deserializeDynamic($this, reader) { var href = reader.z7c(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.cnl_1 = buildClassSerialDescriptor('a', []); } protoOf(AnchorSerializer).d44 = function () { return this.cnl_1; }; protoOf(AnchorSerializer).f44 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = deserializeDynamic(this, decoder.skq()); } else { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.cnl_1; var composite = decoder.v47(descriptor); // Inline function 'com.ustadmobile.core.contentformats.epub.nav.AnchorSerializer.deserialize.' call var result = composite.i48(AnchorSerializer_getInstance().cnl_1, 0, Companion_instance_54.a4r()); composite.w47(descriptor); tmp = result; } return tmp; }; protoOf(AnchorSerializer).dnl = function (encoder, value) { encoder.m49(Companion_instance_54.a4r(), value); }; protoOf(AnchorSerializer).e44 = function (encoder, value) { return this.dnl(encoder, value instanceof Anchor ? value : THROW_CCE()); }; var AnchorSerializer_instance; function AnchorSerializer_getInstance() { if (AnchorSerializer_instance == null) new AnchorSerializer(); return AnchorSerializer_instance; } function Companion_6() { } protoOf(Companion_6).a4r = function () { return BodySerializer_instance; }; var Companion_instance_55; function Companion_getInstance_23() { return Companion_instance_55; } function Body(navigationElements) { this.enl_1 = navigationElements; } function BodySerializer() { } protoOf(BodySerializer).d44 = function () { return buildClassSerialDescriptor('body', []); }; protoOf(BodySerializer).f44 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = this.fnl(decoder, decoder.skq()); } else { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.d44(); var composite = decoder.v47(descriptor); // Inline function 'com.ustadmobile.core.contentformats.epub.nav.BodySerializer.deserialize.' call var result = composite.i48(BodySerializer_instance.d44(), 0, Companion_instance_55.a4r()); composite.w47(descriptor); tmp = result; } return tmp; }; protoOf(BodySerializer).fnl = function (decoder, reader) { var xml = this.gnl(decoder); // Inline function 'kotlin.collections.mutableListOf' call var navElementList = ArrayList_init_$Create$(); // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.d44(); var composite = decoder.v47(descriptor); while (!(reader.e().equals(EventType_END_ELEMENT_getInstance()) ? reader.dc().qkk() === 'body' : false)) { if (reader.zkg().equals(EventType_START_ELEMENT_getInstance()) ? reader.rkg() === 'nav' : false) { // Inline function 'kotlin.collections.plusAssign' call var element = xml.fkv(Companion_instance_57.a4r(), reader); navElementList.i1(element); } } var result = Unit_instance; composite.w47(descriptor); return new Body(toList(navElementList)); }; protoOf(BodySerializer).hnl = function (encoder, value) { encoder.m49(Companion_instance_55.a4r(), value); }; protoOf(BodySerializer).e44 = function (encoder, value) { return this.hnl(encoder, value instanceof Body ? value : THROW_CCE()); }; protoOf(BodySerializer).gnl = function (decoder) { return (isInterface(decoder, XmlInput) ? decoder : THROW_CCE()).bkt(); }; var BodySerializer_instance; function BodySerializer_getInstance() { return BodySerializer_instance; } function Companion_7() { } var Companion_instance_56; function Companion_getInstance_24() { return Companion_instance_56; } function $serializer_2() { $serializer_instance_2 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.ListItem', this, 3); tmp0_serialDesc.g4f('anchor', true); tmp0_serialDesc.g4f('span', true); tmp0_serialDesc.g4f('orderedList', true); tmp0_serialDesc.i4f(new XmlSerialName('li', 'http://www.w3.org/1999/xhtml')); this.inl_1 = tmp0_serialDesc; } protoOf($serializer_2).d44 = function () { return this.inl_1; }; protoOf($serializer_2).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(AnchorSerializer_getInstance()), get_nullable(SpanSerializer_getInstance()), get_nullable($serializer_getInstance_17())]; }; protoOf($serializer_2).f44 = function (decoder) { var tmp0_desc = this.inl_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.v47(tmp0_desc); if (tmp7_input.k48()) { tmp4_local0 = tmp7_input.j48(tmp0_desc, 0, AnchorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.j48(tmp0_desc, 1, SpanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.j48(tmp0_desc, 2, $serializer_getInstance_17(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.j48(tmp0_desc, 0, AnchorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.j48(tmp0_desc, 1, SpanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.j48(tmp0_desc, 2, $serializer_getInstance_17(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.w47(tmp0_desc); return ListItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_2).jnl = function (encoder, value) { var tmp0_desc = this.inl_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.knl_1 == null)) { tmp1_output.n49(tmp0_desc, 0, AnchorSerializer_getInstance(), value.knl_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.lnl_1 == null)) { tmp1_output.n49(tmp0_desc, 1, SpanSerializer_getInstance(), value.lnl_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.mnl_1 == null)) { tmp1_output.n49(tmp0_desc, 2, $serializer_getInstance_17(), value.mnl_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_2).e44 = function (encoder, value) { return this.jnl(encoder, value instanceof ListItem ? value : THROW_CCE()); }; var $serializer_instance_2; function $serializer_getInstance_14() { if ($serializer_instance_2 == null) new $serializer_2(); return $serializer_instance_2; } function ListItem_init_$Init$(seen1, anchor, span, orderedList, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_14().inl_1); } if (0 === (seen1 & 1)) $this.knl_1 = null; else $this.knl_1 = anchor; if (0 === (seen1 & 2)) $this.lnl_1 = null; else $this.lnl_1 = span; if (0 === (seen1 & 4)) $this.mnl_1 = null; else $this.mnl_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.knl_1 = anchor; this.lnl_1 = span; this.mnl_1 = orderedList; } function Companion_8() { } protoOf(Companion_8).a4r = function () { return $serializer_getInstance_15(); }; var Companion_instance_57; function Companion_getInstance_25() { return Companion_instance_57; } function $serializer_3() { $serializer_instance_3 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.NavElement', this, 2); tmp0_serialDesc.g4f('epubType', true); tmp0_serialDesc.h4f(new XmlSerialName('type', 'http://www.idpf.org/2007/ops')); tmp0_serialDesc.g4f('orderedList', false); tmp0_serialDesc.i4f(new XmlSerialName('nav', 'http://www.w3.org/1999/xhtml')); this.nnl_1 = tmp0_serialDesc; } protoOf($serializer_3).d44 = function () { return this.nnl_1; }; protoOf($serializer_3).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), $serializer_getInstance_17()]; }; protoOf($serializer_3).f44 = function (decoder) { var tmp0_desc = this.nnl_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.v47(tmp0_desc); if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.h48(tmp0_desc, 1, $serializer_getInstance_17(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.h48(tmp0_desc, 1, $serializer_getInstance_17(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return NavElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_3).onl = function (encoder, value) { var tmp0_desc = this.nnl_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.pnl_1 == null)) { tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.pnl_1); } tmp1_output.l49(tmp0_desc, 1, $serializer_getInstance_17(), value.qnl_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_3).e44 = function (encoder, value) { return this.onl(encoder, value instanceof NavElement ? value : THROW_CCE()); }; var $serializer_instance_3; function $serializer_getInstance_15() { if ($serializer_instance_3 == null) new $serializer_3(); return $serializer_instance_3; } function NavElement_init_$Init$(seen1, epubType, orderedList, serializationConstructorMarker, $this) { if (!(2 === (2 & seen1))) { throwMissingFieldException(seen1, 2, $serializer_getInstance_15().nnl_1); } if (0 === (seen1 & 1)) $this.pnl_1 = null; else $this.pnl_1 = epubType; $this.qnl_1 = orderedList; return $this; } function NavElement_init_$Create$(seen1, epubType, orderedList, serializationConstructorMarker) { return NavElement_init_$Init$(seen1, epubType, orderedList, serializationConstructorMarker, objectCreate(protoOf(NavElement))); } function NavElement() { } function Companion_9() { this.rnl_1 = 'http://www.w3.org/1999/xhtml'; this.snl_1 = 'http://www.idpf.org/2007/ops'; } var Companion_instance_58; function Companion_getInstance_26() { return Companion_instance_58; } function $serializer_4() { $serializer_instance_4 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.NavigationDocument', this, 1); tmp0_serialDesc.g4f('bodyElement', false); tmp0_serialDesc.i4f(new XmlSerialName('html', 'http://www.w3.org/1999/xhtml')); this.tnl_1 = tmp0_serialDesc; } protoOf($serializer_4).d44 = function () { return this.tnl_1; }; protoOf($serializer_4).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BodySerializer_instance]; }; protoOf($serializer_4).f44 = function (decoder) { var tmp0_desc = this.tnl_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.v47(tmp0_desc); if (tmp5_input.k48()) { tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, BodySerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, BodySerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.w47(tmp0_desc); return NavigationDocument_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_4).unl = function (encoder, value) { var tmp0_desc = this.tnl_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.l49(tmp0_desc, 0, BodySerializer_instance, value.vnl_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_4).e44 = function (encoder, value) { return this.unl(encoder, value instanceof NavigationDocument ? value : THROW_CCE()); }; var $serializer_instance_4; function $serializer_getInstance_16() { if ($serializer_instance_4 == null) new $serializer_4(); return $serializer_instance_4; } function NavigationDocument_init_$Init$(seen1, bodyElement, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_16().tnl_1); } $this.vnl_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.vnl_1 = bodyElement; } function Companion_10() { Companion_instance_59 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.wnl_1 = [new ArrayListSerializer($serializer_getInstance_14())]; } var Companion_instance_59; function Companion_getInstance_27() { if (Companion_instance_59 == null) new Companion_10(); return Companion_instance_59; } function $serializer_5() { $serializer_instance_5 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.OrderedList', this, 1); tmp0_serialDesc.g4f('listItems', false); tmp0_serialDesc.i4f(new XmlSerialName('ol', 'http://www.w3.org/1999/xhtml')); this.xnl_1 = tmp0_serialDesc; } protoOf($serializer_5).d44 = function () { return this.xnl_1; }; protoOf($serializer_5).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_27().wnl_1[0]]; }; protoOf($serializer_5).f44 = function (decoder) { var tmp0_desc = this.xnl_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.v47(tmp0_desc); var tmp6_cached = Companion_getInstance_27().wnl_1; if (tmp5_input.k48()) { tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.w47(tmp0_desc); return OrderedList_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_5).ynl = function (encoder, value) { var tmp0_desc = this.xnl_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_27().wnl_1; tmp1_output.l49(tmp0_desc, 0, tmp2_cached[0], value.znl_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_5).e44 = function (encoder, value) { return this.ynl(encoder, value instanceof OrderedList ? value : THROW_CCE()); }; var $serializer_instance_5; function $serializer_getInstance_17() { if ($serializer_instance_5 == null) new $serializer_5(); return $serializer_instance_5; } function OrderedList_init_$Init$(seen1, listItems, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_17().xnl_1); } $this.znl_1 = listItems; return $this; } function OrderedList_init_$Create$(seen1, listItems, serializationConstructorMarker) { return OrderedList_init_$Init$(seen1, listItems, serializationConstructorMarker, objectCreate(protoOf(OrderedList))); } function OrderedList() { } function Companion_11() { } protoOf(Companion_11).a4r = function () { return SpanSerializer_getInstance(); }; var Companion_instance_60; function Companion_getInstance_28() { return Companion_instance_60; } function Span(content) { content = content === VOID ? '' : content; this.anm_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.bnm_1 = buildClassSerialDescriptor('span', []); } protoOf(SpanSerializer).d44 = function () { return this.bnm_1; }; protoOf(SpanSerializer).f44 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = deserializeDynamic_0(this, decoder.skq()); } else { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = AnchorSerializer_getInstance().cnl_1; var composite = decoder.v47(descriptor); // Inline function 'com.ustadmobile.core.contentformats.epub.nav.SpanSerializer.deserialize.' call var result = composite.i48(AnchorSerializer_getInstance().cnl_1, 0, Companion_instance_60.a4r()); composite.w47(descriptor); tmp = result; } return tmp; }; protoOf(SpanSerializer).cnm = function (encoder, value) { encoder.m49(Companion_instance_60.a4r(), value); }; protoOf(SpanSerializer).e44 = function (encoder, value) { return this.cnm(encoder, value instanceof Span ? value : THROW_CCE()); }; var SpanSerializer_instance; function SpanSerializer_getInstance() { if (SpanSerializer_instance == null) new SpanSerializer(); return SpanSerializer_instance; } function $serializer_6() { $serializer_instance_6 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.Content', this, 2); tmp0_serialDesc.g4f('id', true); tmp0_serialDesc.g4f('src', false); tmp0_serialDesc.i4f(new XmlSerialName('content', 'http://www.daisy.org/z3986/2005/ncx/')); this.dnm_1 = tmp0_serialDesc; } protoOf($serializer_6).d44 = function () { return this.dnm_1; }; protoOf($serializer_6).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_6).f44 = function (decoder) { var tmp0_desc = this.dnm_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.v47(tmp0_desc); if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return Content_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_6).enm = function (encoder, value) { var tmp0_desc = this.dnm_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.fnm_1 == null)) { tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.fnm_1); } tmp1_output.j49(tmp0_desc, 1, value.gnm_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_6).e44 = function (encoder, value) { return this.enm(encoder, value instanceof Content ? value : THROW_CCE()); }; var $serializer_instance_6; function $serializer_getInstance_18() { if ($serializer_instance_6 == null) new $serializer_6(); return $serializer_instance_6; } function Content_init_$Init$(seen1, id, src, serializationConstructorMarker, $this) { if (!(2 === (2 & seen1))) { throwMissingFieldException(seen1, 2, $serializer_getInstance_18().dnm_1); } if (0 === (seen1 & 1)) $this.fnm_1 = null; else $this.fnm_1 = id; $this.gnm_1 = src; return $this; } function Content_init_$Create$(seen1, id, src, serializationConstructorMarker) { return Content_init_$Init$(seen1, id, src, serializationConstructorMarker, objectCreate(protoOf(Content))); } function Content() { } function Companion_12() { Companion_instance_61 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.hnm_1 = [new ArrayListSerializer($serializer_getInstance_25())]; } var Companion_instance_61; function Companion_getInstance_29() { if (Companion_instance_61 == null) new Companion_12(); return Companion_instance_61; } function $serializer_7() { $serializer_instance_7 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.DocTitle', this, 1); tmp0_serialDesc.g4f('texts', false); tmp0_serialDesc.i4f(new XmlSerialName('docTitle', 'http://www.daisy.org/z3986/2005/ncx/')); this.inm_1 = tmp0_serialDesc; } protoOf($serializer_7).d44 = function () { return this.inm_1; }; protoOf($serializer_7).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_29().hnm_1[0]]; }; protoOf($serializer_7).f44 = function (decoder) { var tmp0_desc = this.inm_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.v47(tmp0_desc); var tmp6_cached = Companion_getInstance_29().hnm_1; if (tmp5_input.k48()) { tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.w47(tmp0_desc); return DocTitle_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_7).jnm = function (encoder, value) { var tmp0_desc = this.inm_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_29().hnm_1; tmp1_output.l49(tmp0_desc, 0, tmp2_cached[0], value.knm_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_7).e44 = function (encoder, value) { return this.jnm(encoder, value instanceof DocTitle ? value : THROW_CCE()); }; var $serializer_instance_7; function $serializer_getInstance_19() { if ($serializer_instance_7 == null) new $serializer_7(); return $serializer_instance_7; } function DocTitle_init_$Init$(seen1, texts, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_19().inm_1); } $this.knm_1 = texts; return $this; } function DocTitle_init_$Create$(seen1, texts, serializationConstructorMarker) { return DocTitle_init_$Init$(seen1, texts, serializationConstructorMarker, objectCreate(protoOf(DocTitle))); } function DocTitle() { } function Companion_13() { Companion_instance_62 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.lnm_1 = [new ArrayListSerializer($serializer_getInstance_35())]; } var Companion_instance_62; function Companion_getInstance_30() { if (Companion_instance_62 == null) new Companion_13(); return Companion_instance_62; } function $serializer_8() { $serializer_instance_8 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.Head', this, 1); tmp0_serialDesc.g4f('metadata', true); tmp0_serialDesc.i4f(new XmlSerialName('head', 'http://www.daisy.org/z3986/2005/ncx/')); this.mnm_1 = tmp0_serialDesc; } protoOf($serializer_8).d44 = function () { return this.mnm_1; }; protoOf($serializer_8).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_30().lnm_1[0]]; }; protoOf($serializer_8).f44 = function (decoder) { var tmp0_desc = this.mnm_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.v47(tmp0_desc); var tmp6_cached = Companion_getInstance_30().lnm_1; if (tmp5_input.k48()) { tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.w47(tmp0_desc); return Head_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_8).nnm = function (encoder, value) { var tmp0_desc = this.mnm_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_30().lnm_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !equals(value.onm_1, emptyList())) { tmp1_output.l49(tmp0_desc, 0, tmp2_cached[0], value.onm_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_8).e44 = function (encoder, value) { return this.nnm(encoder, value instanceof Head ? value : THROW_CCE()); }; var $serializer_instance_8; function $serializer_getInstance_20() { if ($serializer_instance_8 == null) new $serializer_8(); return $serializer_instance_8; } function Head_init_$Init$(seen1, metadata, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_20().mnm_1); } if (0 === (seen1 & 1)) $this.onm_1 = emptyList(); else $this.onm_1 = metadata; return $this; } function Head_init_$Create$(seen1, metadata, serializationConstructorMarker) { return Head_init_$Init$(seen1, metadata, serializationConstructorMarker, objectCreate(protoOf(Head))); } function Head(metadata) { Companion_getInstance_30(); metadata = metadata === VOID ? emptyList() : metadata; this.onm_1 = metadata; } function $serializer_9() { $serializer_instance_9 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NavLabel', this, 1); tmp0_serialDesc.g4f('text', false); tmp0_serialDesc.i4f(new XmlSerialName('navLabel', 'http://www.daisy.org/z3986/2005/ncx/')); this.pnm_1 = tmp0_serialDesc; } protoOf($serializer_9).d44 = function () { return this.pnm_1; }; protoOf($serializer_9).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_25()]; }; protoOf($serializer_9).f44 = function (decoder) { var tmp0_desc = this.pnm_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.v47(tmp0_desc); if (tmp5_input.k48()) { tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, $serializer_getInstance_25(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, $serializer_getInstance_25(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.w47(tmp0_desc); return NavLabel_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_9).qnm = function (encoder, value) { var tmp0_desc = this.pnm_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.l49(tmp0_desc, 0, $serializer_getInstance_25(), value.rnm_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_9).e44 = function (encoder, value) { return this.qnm(encoder, value instanceof NavLabel ? value : THROW_CCE()); }; var $serializer_instance_9; function $serializer_getInstance_21() { if ($serializer_instance_9 == null) new $serializer_9(); return $serializer_instance_9; } function NavLabel_init_$Init$(seen1, text, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_21().pnm_1); } $this.rnm_1 = text; return $this; } function NavLabel_init_$Create$(seen1, text, serializationConstructorMarker) { return NavLabel_init_$Init$(seen1, text, serializationConstructorMarker, objectCreate(protoOf(NavLabel))); } function NavLabel() { } function Companion_14() { Companion_instance_63 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.snm_1 = [new ArrayListSerializer($serializer_getInstance_23())]; } var Companion_instance_63; function Companion_getInstance_31() { if (Companion_instance_63 == null) new Companion_14(); return Companion_instance_63; } function $serializer_10() { $serializer_instance_10 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NavMap', this, 1); tmp0_serialDesc.g4f('navPoints', false); tmp0_serialDesc.i4f(new XmlSerialName('navMap', 'http://www.daisy.org/z3986/2005/ncx/')); this.tnm_1 = tmp0_serialDesc; } protoOf($serializer_10).d44 = function () { return this.tnm_1; }; protoOf($serializer_10).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_31().snm_1[0]]; }; protoOf($serializer_10).f44 = function (decoder) { var tmp0_desc = this.tnm_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.v47(tmp0_desc); var tmp6_cached = Companion_getInstance_31().snm_1; if (tmp5_input.k48()) { tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.w47(tmp0_desc); return NavMap_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_10).unm = function (encoder, value) { var tmp0_desc = this.tnm_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_31().snm_1; tmp1_output.l49(tmp0_desc, 0, tmp2_cached[0], value.vnm_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_10).e44 = function (encoder, value) { return this.unm(encoder, value instanceof NavMap ? value : THROW_CCE()); }; var $serializer_instance_10; function $serializer_getInstance_22() { if ($serializer_instance_10 == null) new $serializer_10(); return $serializer_instance_10; } function NavMap_init_$Init$(seen1, navPoints, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_22().tnm_1); } $this.vnm_1 = navPoints; return $this; } function NavMap_init_$Create$(seen1, navPoints, serializationConstructorMarker) { return NavMap_init_$Init$(seen1, navPoints, serializationConstructorMarker, objectCreate(protoOf(NavMap))); } function NavMap() { } function Companion_15() { Companion_instance_64 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.wnm_1 = [new ArrayListSerializer($serializer_getInstance_21()), null, null, null]; } var Companion_instance_64; function Companion_getInstance_32() { if (Companion_instance_64 == null) new Companion_15(); return Companion_instance_64; } function $serializer_11() { $serializer_instance_11 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NavPoint', this, 4); tmp0_serialDesc.g4f('navLabels', false); tmp0_serialDesc.g4f('content', false); tmp0_serialDesc.g4f('id', false); tmp0_serialDesc.g4f('childPoints', false); tmp0_serialDesc.i4f(new XmlSerialName('navPoint', 'http://www.daisy.org/z3986/2005/ncx/')); this.xnm_1 = tmp0_serialDesc; } protoOf($serializer_11).d44 = function () { return this.xnm_1; }; protoOf($serializer_11).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_32().wnm_1[0], $serializer_getInstance_18(), StringSerializer_getInstance(), new ArrayListSerializer($serializer_getInstance_23())]; }; protoOf($serializer_11).f44 = function (decoder) { var tmp0_desc = this.xnm_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.v47(tmp0_desc); var tmp9_cached = Companion_getInstance_32().wnm_1; if (tmp8_input.k48()) { tmp4_local0 = tmp8_input.h48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.h48(tmp0_desc, 1, $serializer_getInstance_18(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.f48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.h48(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_23()), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.h48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.h48(tmp0_desc, 1, $serializer_getInstance_18(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.f48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.h48(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_23()), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.w47(tmp0_desc); return NavPoint_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_11).ynm = function (encoder, value) { var tmp0_desc = this.xnm_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_32().wnm_1; tmp1_output.l49(tmp0_desc, 0, tmp2_cached[0], value.znm_1); tmp1_output.l49(tmp0_desc, 1, $serializer_getInstance_18(), value.ann_1); tmp1_output.j49(tmp0_desc, 2, value.bnn_1); tmp1_output.l49(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_23()), value.cnn_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_11).e44 = function (encoder, value) { return this.ynm(encoder, value instanceof NavPoint ? value : THROW_CCE()); }; var $serializer_instance_11; function $serializer_getInstance_23() { if ($serializer_instance_11 == null) new $serializer_11(); return $serializer_instance_11; } function NavPoint_init_$Init$(seen1, navLabels, content, id, childPoints, serializationConstructorMarker, $this) { if (!(15 === (15 & seen1))) { throwMissingFieldException(seen1, 15, $serializer_getInstance_23().xnm_1); } $this.znm_1 = navLabels; $this.ann_1 = content; $this.bnn_1 = id; $this.cnn_1 = childPoints; return $this; } function NavPoint_init_$Create$(seen1, navLabels, content, id, childPoints, serializationConstructorMarker) { return NavPoint_init_$Init$(seen1, navLabels, content, id, childPoints, serializationConstructorMarker, objectCreate(protoOf(NavPoint))); } function NavPoint() { } function Companion_16() { this.dnn_1 = 'http://www.daisy.org/z3986/2005/ncx/'; this.enn_1 = 'application/x-dtbncx+xml'; } var Companion_instance_65; function Companion_getInstance_33() { return Companion_instance_65; } function $serializer_12() { $serializer_instance_12 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NcxDocument', this, 3); tmp0_serialDesc.g4f('head', false); tmp0_serialDesc.g4f('docTitle', false); tmp0_serialDesc.g4f('navMap', false); tmp0_serialDesc.i4f(new XmlSerialName('ncx', 'http://www.daisy.org/z3986/2005/ncx/')); this.fnn_1 = tmp0_serialDesc; } protoOf($serializer_12).d44 = function () { return this.fnn_1; }; protoOf($serializer_12).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_20(), $serializer_getInstance_19(), $serializer_getInstance_22()]; }; protoOf($serializer_12).f44 = function (decoder) { var tmp0_desc = this.fnn_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.v47(tmp0_desc); if (tmp7_input.k48()) { tmp4_local0 = tmp7_input.h48(tmp0_desc, 0, $serializer_getInstance_20(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.h48(tmp0_desc, 1, $serializer_getInstance_19(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.h48(tmp0_desc, 2, $serializer_getInstance_22(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.h48(tmp0_desc, 0, $serializer_getInstance_20(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.h48(tmp0_desc, 1, $serializer_getInstance_19(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.h48(tmp0_desc, 2, $serializer_getInstance_22(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.w47(tmp0_desc); return NcxDocument_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_12).gnn = function (encoder, value) { var tmp0_desc = this.fnn_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.l49(tmp0_desc, 0, $serializer_getInstance_20(), value.hnn_1); tmp1_output.l49(tmp0_desc, 1, $serializer_getInstance_19(), value.inn_1); tmp1_output.l49(tmp0_desc, 2, $serializer_getInstance_22(), value.jnn_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_12).e44 = function (encoder, value) { return this.gnn(encoder, value instanceof NcxDocument ? value : THROW_CCE()); }; var $serializer_instance_12; function $serializer_getInstance_24() { if ($serializer_instance_12 == null) new $serializer_12(); return $serializer_instance_12; } function NcxDocument_init_$Init$(seen1, head, docTitle, navMap, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_24().fnn_1); } $this.hnn_1 = head; $this.inn_1 = docTitle; $this.jnn_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.hnn_1 = head; this.inn_1 = docTitle; this.jnn_1 = navMap; } function Companion_17() { } var Companion_instance_66; function Companion_getInstance_34() { return Companion_instance_66; } function $serializer_13() { $serializer_instance_13 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.Text', this, 1); tmp0_serialDesc.g4f('content', true); tmp0_serialDesc.h4f(new XmlValue()); tmp0_serialDesc.i4f(new XmlSerialName('text', 'http://www.daisy.org/z3986/2005/ncx/')); this.knn_1 = tmp0_serialDesc; } protoOf($serializer_13).d44 = function () { return this.knn_1; }; protoOf($serializer_13).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_13).f44 = function (decoder) { var tmp0_desc = this.knn_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.v47(tmp0_desc); if (tmp5_input.k48()) { tmp4_local0 = tmp5_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.w47(tmp0_desc); return Text_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_13).lnn = function (encoder, value) { var tmp0_desc = this.knn_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.mnn_1 === '')) { tmp1_output.j49(tmp0_desc, 0, value.mnn_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_13).e44 = function (encoder, value) { return this.lnn(encoder, value instanceof Text ? value : THROW_CCE()); }; var $serializer_instance_13; function $serializer_getInstance_25() { if ($serializer_instance_13 == null) new $serializer_13(); return $serializer_instance_13; } function Text_init_$Init$(seen1, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_25().knn_1); } if (0 === (seen1 & 1)) $this.mnn_1 = ''; else $this.mnn_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.mnn_1 = content; } function Companion_18() { } var Companion_instance_67; function Companion_getInstance_35() { return Companion_instance_67; } function $serializer_14() { $serializer_instance_14 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcCreator', this, 2); tmp0_serialDesc.g4f('id', true); tmp0_serialDesc.g4f('content', true); tmp0_serialDesc.h4f(new XmlValue()); tmp0_serialDesc.i4f(new XmlSerialName('creator', 'http://purl.org/dc/elements/1.1/')); this.nnn_1 = tmp0_serialDesc; } protoOf($serializer_14).d44 = function () { return this.nnn_1; }; protoOf($serializer_14).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_14).f44 = function (decoder) { var tmp0_desc = this.nnn_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.v47(tmp0_desc); if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return DcCreator_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_14).onn = function (encoder, value) { var tmp0_desc = this.nnn_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.pnn_1 == null)) { tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.pnn_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.qnn_1 === '')) { tmp1_output.j49(tmp0_desc, 1, value.qnn_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_14).e44 = function (encoder, value) { return this.onn(encoder, value instanceof DcCreator ? value : THROW_CCE()); }; var $serializer_instance_14; function $serializer_getInstance_26() { if ($serializer_instance_14 == null) new $serializer_14(); return $serializer_instance_14; } function DcCreator_init_$Init$(seen1, id, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_26().nnn_1); } if (0 === (seen1 & 1)) $this.pnn_1 = null; else $this.pnn_1 = id; if (0 === (seen1 & 2)) $this.qnn_1 = ''; else $this.qnn_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.pnn_1 = id; this.qnn_1 = content; } function Companion_19() { } var Companion_instance_68; function Companion_getInstance_36() { return Companion_instance_68; } function $serializer_15() { $serializer_instance_15 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcDescription', this, 2); tmp0_serialDesc.g4f('lang', true); tmp0_serialDesc.g4f('content', true); tmp0_serialDesc.h4f(new XmlValue()); tmp0_serialDesc.i4f(new XmlSerialName('description', 'http://purl.org/dc/elements/1.1/')); this.rnn_1 = tmp0_serialDesc; } protoOf($serializer_15).d44 = function () { return this.rnn_1; }; protoOf($serializer_15).x4f = 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).f44 = function (decoder) { var tmp0_desc = this.rnn_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.v47(tmp0_desc); if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return DcDescription_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_15).snn = function (encoder, value) { var tmp0_desc = this.rnn_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.tnn_1 == null)) { tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.tnn_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.unn_1 === '')) { tmp1_output.j49(tmp0_desc, 1, value.unn_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_15).e44 = function (encoder, value) { return this.snn(encoder, value instanceof DcDescription ? value : THROW_CCE()); }; var $serializer_instance_15; function $serializer_getInstance_27() { if ($serializer_instance_15 == null) new $serializer_15(); return $serializer_instance_15; } function DcDescription_init_$Init$(seen1, lang, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_27().rnn_1); } if (0 === (seen1 & 1)) $this.tnn_1 = null; else $this.tnn_1 = lang; if (0 === (seen1 & 2)) $this.unn_1 = ''; else $this.unn_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.tnn_1 = lang; this.unn_1 = content; } function Companion_20() { } var Companion_instance_69; function Companion_getInstance_37() { return Companion_instance_69; } function $serializer_16() { $serializer_instance_16 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcIdentifier', this, 2); tmp0_serialDesc.g4f('id', true); tmp0_serialDesc.g4f('content', true); tmp0_serialDesc.h4f(new XmlValue()); tmp0_serialDesc.i4f(new XmlSerialName('identifier', 'http://purl.org/dc/elements/1.1/')); this.vnn_1 = tmp0_serialDesc; } protoOf($serializer_16).d44 = function () { return this.vnn_1; }; protoOf($serializer_16).x4f = 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).f44 = function (decoder) { var tmp0_desc = this.vnn_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.v47(tmp0_desc); if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return DcIdentifier_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_16).wnn = function (encoder, value) { var tmp0_desc = this.vnn_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.xnn_1 == null)) { tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.xnn_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.ynn_1 === '')) { tmp1_output.j49(tmp0_desc, 1, value.ynn_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_16).e44 = function (encoder, value) { return this.wnn(encoder, value instanceof DcIdentifier ? value : THROW_CCE()); }; var $serializer_instance_16; function $serializer_getInstance_28() { if ($serializer_instance_16 == null) new $serializer_16(); return $serializer_instance_16; } function DcIdentifier_init_$Init$(seen1, id, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_28().vnn_1); } if (0 === (seen1 & 1)) $this.xnn_1 = null; else $this.xnn_1 = id; if (0 === (seen1 & 2)) $this.ynn_1 = ''; else $this.ynn_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.xnn_1 = id; this.ynn_1 = content; } function $serializer_17() { $serializer_instance_17 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcLanguage', this, 1); tmp0_serialDesc.g4f('content', false); tmp0_serialDesc.h4f(new XmlValue()); tmp0_serialDesc.i4f(new XmlSerialName('language', 'http://purl.org/dc/elements/1.1/')); this.znn_1 = tmp0_serialDesc; } protoOf($serializer_17).d44 = function () { return this.znn_1; }; protoOf($serializer_17).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_17).f44 = function (decoder) { var tmp0_desc = this.znn_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.v47(tmp0_desc); if (tmp5_input.k48()) { tmp4_local0 = tmp5_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.w47(tmp0_desc); return DcLanguage_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_17).ano = function (encoder, value) { var tmp0_desc = this.znn_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.j49(tmp0_desc, 0, value.bno_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_17).e44 = function (encoder, value) { return this.ano(encoder, value instanceof DcLanguage ? value : THROW_CCE()); }; var $serializer_instance_17; function $serializer_getInstance_29() { if ($serializer_instance_17 == null) new $serializer_17(); return $serializer_instance_17; } function DcLanguage_init_$Init$(seen1, content, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_29().znn_1); } $this.bno_1 = content; return $this; } function DcLanguage_init_$Create$(seen1, content, serializationConstructorMarker) { return DcLanguage_init_$Init$(seen1, content, serializationConstructorMarker, objectCreate(protoOf(DcLanguage))); } function DcLanguage() { } function Companion_21() { } var Companion_instance_70; function Companion_getInstance_38() { return Companion_instance_70; } function $serializer_18() { $serializer_instance_18 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcTitle', this, 2); tmp0_serialDesc.g4f('lang', true); tmp0_serialDesc.h4f(new XmlSerialName(VOID, VOID, 'xml')); tmp0_serialDesc.g4f('content', true); tmp0_serialDesc.h4f(new XmlValue()); tmp0_serialDesc.i4f(new XmlSerialName('title', 'http://purl.org/dc/elements/1.1/')); this.cno_1 = tmp0_serialDesc; } protoOf($serializer_18).d44 = function () { return this.cno_1; }; protoOf($serializer_18).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_18).f44 = function (decoder) { var tmp0_desc = this.cno_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.v47(tmp0_desc); if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return DcTitle_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_18).dno = function (encoder, value) { var tmp0_desc = this.cno_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.eno_1 == null)) { tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.eno_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.fno_1 === '')) { tmp1_output.j49(tmp0_desc, 1, value.fno_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_18).e44 = function (encoder, value) { return this.dno(encoder, value instanceof DcTitle ? value : THROW_CCE()); }; var $serializer_instance_18; function $serializer_getInstance_30() { if ($serializer_instance_18 == null) new $serializer_18(); return $serializer_instance_18; } function DcTitle_init_$Init$(seen1, lang, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_30().cno_1); } if (0 === (seen1 & 1)) $this.eno_1 = null; else $this.eno_1 = lang; if (0 === (seen1 & 2)) $this.fno_1 = ''; else $this.fno_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.eno_1 = lang; this.fno_1 = content; } function $serializer_19() { $serializer_instance_19 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Item', this, 4); tmp0_serialDesc.g4f('id', false); tmp0_serialDesc.g4f('href', false); tmp0_serialDesc.g4f('properties', true); tmp0_serialDesc.g4f('mediaType', false); tmp0_serialDesc.h4f(new XmlSerialName('media-type')); tmp0_serialDesc.i4f(new XmlSerialName('item', 'http://www.idpf.org/2007/opf')); this.gno_1 = tmp0_serialDesc; } protoOf($serializer_19).d44 = function () { return this.gno_1; }; protoOf($serializer_19).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_19).f44 = function (decoder) { var tmp0_desc = this.gno_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.v47(tmp0_desc); if (tmp8_input.k48()) { tmp4_local0 = tmp8_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.f48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.f48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.w47(tmp0_desc); return Item_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_19).hno = function (encoder, value) { var tmp0_desc = this.gno_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.j49(tmp0_desc, 0, value.ino_1); tmp1_output.j49(tmp0_desc, 1, value.jno_1); if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.kno_1 == null)) { tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.kno_1); } tmp1_output.j49(tmp0_desc, 3, value.lno_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_19).e44 = function (encoder, value) { return this.hno(encoder, value instanceof Item ? value : THROW_CCE()); }; var $serializer_instance_19; function $serializer_getInstance_31() { if ($serializer_instance_19 == null) new $serializer_19(); return $serializer_instance_19; } function Item_init_$Init$(seen1, id, href, properties, mediaType, serializationConstructorMarker, $this) { if (!(11 === (11 & seen1))) { throwMissingFieldException(seen1, 11, $serializer_getInstance_31().gno_1); } $this.ino_1 = id; $this.jno_1 = href; if (0 === (seen1 & 4)) $this.kno_1 = null; else $this.kno_1 = properties; $this.lno_1 = mediaType; return $this; } function Item_init_$Create$(seen1, id, href, properties, mediaType, serializationConstructorMarker) { return Item_init_$Init$(seen1, id, href, properties, mediaType, serializationConstructorMarker, objectCreate(protoOf(Item))); } function Item() { } function Companion_22() { } var Companion_instance_71; function Companion_getInstance_39() { return Companion_instance_71; } function $serializer_20() { $serializer_instance_20 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.ItemRef', this, 1); tmp0_serialDesc.g4f('idRef', true); tmp0_serialDesc.h4f(new XmlSerialName('idref')); tmp0_serialDesc.i4f(new XmlSerialName('itemref', 'http://www.idpf.org/2007/opf')); this.mno_1 = tmp0_serialDesc; } protoOf($serializer_20).d44 = function () { return this.mno_1; }; protoOf($serializer_20).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_20).f44 = function (decoder) { var tmp0_desc = this.mno_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.v47(tmp0_desc); if (tmp5_input.k48()) { tmp4_local0 = tmp5_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.w47(tmp0_desc); return ItemRef_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_20).nno = function (encoder, value) { var tmp0_desc = this.mno_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.ono_1 === '')) { tmp1_output.j49(tmp0_desc, 0, value.ono_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_20).e44 = function (encoder, value) { return this.nno(encoder, value instanceof ItemRef ? value : THROW_CCE()); }; var $serializer_instance_20; function $serializer_getInstance_32() { if ($serializer_instance_20 == null) new $serializer_20(); return $serializer_instance_20; } function ItemRef_init_$Init$(seen1, idRef, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_32().mno_1); } if (0 === (seen1 & 1)) $this.ono_1 = ''; else $this.ono_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.ono_1 = idRef; } function Companion_23() { Companion_instance_72 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.pno_1 = [new ArrayListSerializer($serializer_getInstance_31())]; } var Companion_instance_72; function Companion_getInstance_40() { if (Companion_instance_72 == null) new Companion_23(); return Companion_instance_72; } function $serializer_21() { $serializer_instance_21 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Manifest', this, 1); tmp0_serialDesc.g4f('items', true); tmp0_serialDesc.i4f(new XmlSerialName('manifest', 'http://www.idpf.org/2007/opf')); this.qno_1 = tmp0_serialDesc; } protoOf($serializer_21).d44 = function () { return this.qno_1; }; protoOf($serializer_21).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_40().pno_1[0]]; }; protoOf($serializer_21).f44 = function (decoder) { var tmp0_desc = this.qno_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.v47(tmp0_desc); var tmp6_cached = Companion_getInstance_40().pno_1; if (tmp5_input.k48()) { tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.w47(tmp0_desc); return Manifest_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_21).rno = function (encoder, value) { var tmp0_desc = this.qno_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_40().pno_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !equals(value.sno_1, emptyList())) { tmp1_output.l49(tmp0_desc, 0, tmp2_cached[0], value.sno_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_21).e44 = function (encoder, value) { return this.rno(encoder, value instanceof Manifest ? value : THROW_CCE()); }; var $serializer_instance_21; function $serializer_getInstance_33() { if ($serializer_instance_21 == null) new $serializer_21(); return $serializer_instance_21; } function Manifest_init_$Init$(seen1, items, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_33().qno_1); } if (0 === (seen1 & 1)) $this.sno_1 = emptyList(); else $this.sno_1 = items; return $this; } function Manifest_init_$Create$(seen1, items, serializationConstructorMarker) { return Manifest_init_$Init$(seen1, items, serializationConstructorMarker, objectCreate(protoOf(Manifest))); } function Manifest(items) { Companion_getInstance_40(); items = items === VOID ? emptyList() : items; this.sno_1 = items; } function Companion_24() { } var Companion_instance_73; function Companion_getInstance_41() { return Companion_instance_73; } function $serializer_22() { $serializer_instance_22 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Meta', this, 2); tmp0_serialDesc.g4f('name', true); tmp0_serialDesc.g4f('content', true); tmp0_serialDesc.i4f(new XmlSerialName('meta', 'http://www.idpf.org/2007/opf')); this.tno_1 = tmp0_serialDesc; } protoOf($serializer_22).d44 = function () { return this.tno_1; }; protoOf($serializer_22).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_22).f44 = function (decoder) { var tmp0_desc = this.tno_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.v47(tmp0_desc); if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return Meta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_22).uno = function (encoder, value) { var tmp0_desc = this.tno_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.vno_1 == null)) { tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.vno_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.wno_1 == null)) { tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.wno_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_22).e44 = function (encoder, value) { return this.uno(encoder, value instanceof Meta ? value : THROW_CCE()); }; var $serializer_instance_22; function $serializer_getInstance_34() { if ($serializer_instance_22 == null) new $serializer_22(); return $serializer_instance_22; } function Meta_init_$Init$(seen1, name, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_34().tno_1); } if (0 === (seen1 & 1)) $this.vno_1 = null; else $this.vno_1 = name; if (0 === (seen1 & 2)) $this.wno_1 = null; else $this.wno_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.vno_1 = name; this.wno_1 = content; } function Companion_25() { Companion_instance_74 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.xno_1 = [new ArrayListSerializer($serializer_getInstance_30()), new ArrayListSerializer($serializer_getInstance_26()), new ArrayListSerializer($serializer_getInstance_29()), new ArrayListSerializer($serializer_getInstance_27()), new ArrayListSerializer($serializer_getInstance_28()), new ArrayListSerializer($serializer_getInstance_34())]; } var Companion_instance_74; function Companion_getInstance_42() { if (Companion_instance_74 == null) new Companion_25(); return Companion_instance_74; } function $serializer_23() { $serializer_instance_23 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Metadata', this, 6); tmp0_serialDesc.g4f('titles', true); tmp0_serialDesc.g4f('creators', true); tmp0_serialDesc.g4f('languages', true); tmp0_serialDesc.g4f('descriptions', true); tmp0_serialDesc.g4f('identifiers', true); tmp0_serialDesc.g4f('metas', true); tmp0_serialDesc.i4f(new XmlSerialName('metadata', 'http://www.idpf.org/2007/opf')); this.yno_1 = tmp0_serialDesc; } protoOf($serializer_23).d44 = function () { return this.yno_1; }; protoOf($serializer_23).x4f = function () { var tmp0_cached = Companion_getInstance_42().xno_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [tmp0_cached[0], tmp0_cached[1], tmp0_cached[2], tmp0_cached[3], tmp0_cached[4], tmp0_cached[5]]; }; protoOf($serializer_23).f44 = function (decoder) { var tmp0_desc = this.yno_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.v47(tmp0_desc); var tmp11_cached = Companion_getInstance_42().xno_1; if (tmp10_input.k48()) { tmp4_local0 = tmp10_input.h48(tmp0_desc, 0, tmp11_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.h48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.h48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.h48(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.h48(tmp0_desc, 4, tmp11_cached[4], tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.h48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.h48(tmp0_desc, 0, tmp11_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.h48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.h48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.h48(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.h48(tmp0_desc, 4, tmp11_cached[4], tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.h48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.w47(tmp0_desc); return Metadata_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_23).zno = function (encoder, value) { var tmp0_desc = this.yno_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_42().xno_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !equals(value.anp_1, emptyList())) { tmp1_output.l49(tmp0_desc, 0, tmp2_cached[0], value.anp_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !equals(value.bnp_1, emptyList())) { tmp1_output.l49(tmp0_desc, 1, tmp2_cached[1], value.bnp_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !equals(value.cnp_1, emptyList())) { tmp1_output.l49(tmp0_desc, 2, tmp2_cached[2], value.cnp_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !equals(value.dnp_1, emptyList())) { tmp1_output.l49(tmp0_desc, 3, tmp2_cached[3], value.dnp_1); } if (tmp1_output.r49(tmp0_desc, 4) ? true : !equals(value.enp_1, emptyList())) { tmp1_output.l49(tmp0_desc, 4, tmp2_cached[4], value.enp_1); } if (tmp1_output.r49(tmp0_desc, 5) ? true : !equals(value.fnp_1, emptyList())) { tmp1_output.l49(tmp0_desc, 5, tmp2_cached[5], value.fnp_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_23).e44 = function (encoder, value) { return this.zno(encoder, value instanceof Metadata ? value : THROW_CCE()); }; var $serializer_instance_23; function $serializer_getInstance_35() { if ($serializer_instance_23 == null) new $serializer_23(); return $serializer_instance_23; } function Metadata_init_$Init$(seen1, titles, creators, languages, descriptions, identifiers, metas, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_35().yno_1); } if (0 === (seen1 & 1)) $this.anp_1 = emptyList(); else $this.anp_1 = titles; if (0 === (seen1 & 2)) $this.bnp_1 = emptyList(); else $this.bnp_1 = creators; if (0 === (seen1 & 4)) $this.cnp_1 = emptyList(); else $this.cnp_1 = languages; if (0 === (seen1 & 8)) $this.dnp_1 = emptyList(); else $this.dnp_1 = descriptions; if (0 === (seen1 & 16)) $this.enp_1 = emptyList(); else $this.enp_1 = identifiers; if (0 === (seen1 & 32)) $this.fnp_1 = emptyList(); else $this.fnp_1 = metas; return $this; } function Metadata_init_$Create$(seen1, titles, creators, languages, descriptions, identifiers, metas, serializationConstructorMarker) { return Metadata_init_$Init$(seen1, titles, creators, languages, descriptions, identifiers, metas, serializationConstructorMarker, objectCreate(protoOf(Metadata))); } function Metadata(titles, creators, languages, descriptions, identifiers, metas) { Companion_getInstance_42(); titles = titles === VOID ? emptyList() : titles; creators = creators === VOID ? emptyList() : creators; languages = languages === VOID ? emptyList() : languages; descriptions = descriptions === VOID ? emptyList() : descriptions; identifiers = identifiers === VOID ? emptyList() : identifiers; metas = metas === VOID ? emptyList() : metas; this.anp_1 = titles; this.bnp_1 = creators; this.cnp_1 = languages; this.dnp_1 = descriptions; this.enp_1 = identifiers; this.fnp_1 = metas; } function Companion_26() { this.gnp_1 = 'http://www.idpf.org/2007/opf'; this.hnp_1 = 'http://purl.org/dc/elements/1.1/'; } protoOf(Companion_26).a4r = function () { return $serializer_getInstance_36(); }; var Companion_instance_75; function Companion_getInstance_43() { return Companion_instance_75; } function $serializer_24() { $serializer_instance_24 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.PackageDocument', this, 5); tmp0_serialDesc.g4f('version', true); tmp0_serialDesc.g4f('uniqueIdentifier', true); tmp0_serialDesc.h4f(new XmlSerialName('unique-identifier')); tmp0_serialDesc.g4f('metadata', true); tmp0_serialDesc.g4f('manifest', true); tmp0_serialDesc.g4f('spine', true); tmp0_serialDesc.i4f(new XmlSerialName('package', 'http://www.idpf.org/2007/opf')); this.inp_1 = tmp0_serialDesc; } protoOf($serializer_24).d44 = function () { return this.inp_1; }; protoOf($serializer_24).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance(), $serializer_getInstance_35(), $serializer_getInstance_33(), $serializer_getInstance_37()]; }; protoOf($serializer_24).f44 = function (decoder) { var tmp0_desc = this.inp_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.v47(tmp0_desc); if (tmp9_input.k48()) { tmp4_local0 = tmp9_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.h48(tmp0_desc, 2, $serializer_getInstance_35(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.h48(tmp0_desc, 3, $serializer_getInstance_33(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.h48(tmp0_desc, 4, $serializer_getInstance_37(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.h48(tmp0_desc, 2, $serializer_getInstance_35(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.h48(tmp0_desc, 3, $serializer_getInstance_33(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.h48(tmp0_desc, 4, $serializer_getInstance_37(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.w47(tmp0_desc); return PackageDocument_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_24).jnp = function (encoder, value) { var tmp0_desc = this.inp_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.knp_1 == null)) { tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.knp_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.lnp_1 === '')) { tmp1_output.j49(tmp0_desc, 1, value.lnp_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !equals(value.mnp_1, new Metadata())) { tmp1_output.l49(tmp0_desc, 2, $serializer_getInstance_35(), value.mnp_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !equals(value.nnp_1, new Manifest())) { tmp1_output.l49(tmp0_desc, 3, $serializer_getInstance_33(), value.nnp_1); } if (tmp1_output.r49(tmp0_desc, 4) ? true : !equals(value.onp_1, new Spine())) { tmp1_output.l49(tmp0_desc, 4, $serializer_getInstance_37(), value.onp_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_24).e44 = function (encoder, value) { return this.jnp(encoder, value instanceof PackageDocument ? value : THROW_CCE()); }; var $serializer_instance_24; function $serializer_getInstance_36() { if ($serializer_instance_24 == null) new $serializer_24(); return $serializer_instance_24; } function PackageDocument_init_$Init$(seen1, version, uniqueIdentifier, metadata, manifest, spine, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_36().inp_1); } if (0 === (seen1 & 1)) $this.knp_1 = null; else $this.knp_1 = version; if (0 === (seen1 & 2)) $this.lnp_1 = ''; else $this.lnp_1 = uniqueIdentifier; if (0 === (seen1 & 4)) $this.mnp_1 = new Metadata(); else $this.mnp_1 = metadata; if (0 === (seen1 & 8)) $this.nnp_1 = new Manifest(); else $this.nnp_1 = manifest; if (0 === (seen1 & 16)) $this.onp_1 = new Spine(); else $this.onp_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.knp_1 = version; this.lnp_1 = uniqueIdentifier; this.mnp_1 = metadata; this.nnp_1 = manifest; this.onp_1 = spine; } protoOf(PackageDocument).pnp = function () { var whitespaceRegex = Regex_init_$Create$('\\s+'); var tmp$ret$2; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.nnp_1.sno_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.kno_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.mnp_1.fnp_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.vno_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.wno_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.nnp_1.sno_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.ino_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).qnp = function () { var whiteSpaceRegex = Regex_init_$Create$('\\s+'); // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.nnp_1.sno_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.kno_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.onp_1.snp_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.nnp_1.sno_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.ino_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.kno_1; var tmp1_elvis_lhs_1 = tmp0_safe_receiver_2 == null ? null : contains(tmp0_safe_receiver_2, 'nav'); if (tmp1_elvis_lhs_1 == null ? false : tmp1_elvis_lhs_1) { tmp$ret$13 = element_1; break $l$block_0; } } tmp$ret$13 = null; } var tmp2_elvis_lhs_0 = tmp$ret$13; return tmp2_elvis_lhs_0 == null ? firstOrNull(allTocCandidates) : tmp2_elvis_lhs_0; }; function Companion_27() { Companion_instance_76 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.tnp_1 = [new ArrayListSerializer($serializer_getInstance_32()), null]; } var Companion_instance_76; function Companion_getInstance_44() { if (Companion_instance_76 == null) new Companion_27(); return Companion_instance_76; } function $serializer_25() { $serializer_instance_25 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Spine', this, 2); tmp0_serialDesc.g4f('itemRefs', true); tmp0_serialDesc.g4f('toc', true); tmp0_serialDesc.i4f(new XmlSerialName('spine', 'http://www.idpf.org/2007/opf')); this.unp_1 = tmp0_serialDesc; } protoOf($serializer_25).d44 = function () { return this.unp_1; }; protoOf($serializer_25).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_44().tnp_1[0], get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_25).f44 = function (decoder) { var tmp0_desc = this.unp_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.v47(tmp0_desc); var tmp7_cached = Companion_getInstance_44().tnp_1; if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.h48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.h48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return Spine_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_25).vnp = function (encoder, value) { var tmp0_desc = this.unp_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_44().tnp_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !equals(value.rnp_1, emptyList())) { tmp1_output.l49(tmp0_desc, 0, tmp2_cached[0], value.rnp_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.snp_1 == null)) { tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.snp_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_25).e44 = function (encoder, value) { return this.vnp(encoder, value instanceof Spine ? value : THROW_CCE()); }; var $serializer_instance_25; function $serializer_getInstance_37() { if ($serializer_instance_25 == null) new $serializer_25(); return $serializer_instance_25; } function Spine_init_$Init$(seen1, itemRefs, toc, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_37().unp_1); } if (0 === (seen1 & 1)) $this.rnp_1 = emptyList(); else $this.rnp_1 = itemRefs; if (0 === (seen1 & 2)) $this.snp_1 = null; else $this.snp_1 = toc; return $this; } function Spine_init_$Create$(seen1, itemRefs, toc, serializationConstructorMarker) { return Spine_init_$Init$(seen1, itemRefs, toc, serializationConstructorMarker, objectCreate(protoOf(Spine))); } function Spine(itemRefs, toc) { Companion_getInstance_44(); itemRefs = itemRefs === VOID ? emptyList() : itemRefs; toc = toc === VOID ? null : toc; this.rnp_1 = itemRefs; this.snp_1 = toc; } function Companion_28() { Companion_instance_77 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.wnp_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), new ArrayListSerializer($serializer_getInstance_39())]; } var Companion_instance_77; function Companion_getInstance_45() { if (Companion_instance_77 == null) new Companion_28(); return Companion_instance_77; } function $serializer_26() { $serializer_instance_26 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.manifest.ContentManifest', this, 3); tmp0_serialDesc.g4f('version', false); tmp0_serialDesc.g4f('metadata', false); tmp0_serialDesc.g4f('entries', false); this.xnp_1 = tmp0_serialDesc; } protoOf($serializer_26).d44 = function () { return this.xnp_1; }; protoOf($serializer_26).x4f = function () { var tmp0_cached = Companion_getInstance_45().wnp_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), tmp0_cached[1], tmp0_cached[2]]; }; protoOf($serializer_26).f44 = function (decoder) { var tmp0_desc = this.xnp_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.v47(tmp0_desc); var tmp8_cached = Companion_getInstance_45().wnp_1; if (tmp7_input.k48()) { tmp4_local0 = tmp7_input.a48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.h48(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.h48(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.a48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.h48(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.h48(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.w47(tmp0_desc); return ContentManifest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_26).ynp = function (encoder, value) { var tmp0_desc = this.xnp_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_45().wnp_1; tmp1_output.e49(tmp0_desc, 0, value.znp_1); tmp1_output.l49(tmp0_desc, 1, tmp2_cached[1], value.anq_1); tmp1_output.l49(tmp0_desc, 2, tmp2_cached[2], value.bnq_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_26).e44 = function (encoder, value) { return this.ynp(encoder, value instanceof ContentManifest ? value : THROW_CCE()); }; var $serializer_instance_26; function $serializer_getInstance_38() { if ($serializer_instance_26 == null) new $serializer_26(); return $serializer_instance_26; } function ContentManifest_init_$Init$(seen1, version, metadata, entries, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_38().xnp_1); } $this.znp_1 = version; $this.anq_1 = metadata; $this.bnq_1 = entries; return $this; } function ContentManifest_init_$Create$(seen1, version, metadata, entries, serializationConstructorMarker) { return ContentManifest_init_$Init$(seen1, version, metadata, entries, serializationConstructorMarker, objectCreate(protoOf(ContentManifest))); } function ContentManifest(version, metadata, entries) { Companion_getInstance_45(); this.znp_1 = version; this.anq_1 = metadata; this.bnq_1 = entries; } protoOf(ContentManifest).toString = function () { return 'ContentManifest(version=' + this.znp_1 + ', metadata=' + this.anq_1 + ', entries=' + this.bnq_1 + ')'; }; protoOf(ContentManifest).hashCode = function () { var result = this.znp_1; result = imul(result, 31) + hashCode(this.anq_1) | 0; result = imul(result, 31) + hashCode(this.bnq_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.znp_1 === tmp0_other_with_cast.znp_1)) return false; if (!equals(this.anq_1, tmp0_other_with_cast.anq_1)) return false; if (!equals(this.bnq_1, tmp0_other_with_cast.bnq_1)) return false; return true; }; function Companion_29() { Companion_instance_78 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.cnq_1 = [null, null, null, null, null, null, new StringValuesSerializer(), new StringValuesSerializer(), null]; } var Companion_instance_78; function Companion_getInstance_46() { if (Companion_instance_78 == null) new Companion_29(); return Companion_instance_78; } function $serializer_27() { $serializer_instance_27 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.manifest.ContentManifestEntry', this, 9); tmp0_serialDesc.g4f('uri', false); tmp0_serialDesc.g4f('storageSize', false); tmp0_serialDesc.g4f('ignoreQueryParams', true); tmp0_serialDesc.g4f('status', true); tmp0_serialDesc.g4f('method', true); tmp0_serialDesc.g4f('integrity', false); tmp0_serialDesc.g4f('requestHeaders', true); tmp0_serialDesc.g4f('responseHeaders', false); tmp0_serialDesc.g4f('bodyDataUrl', false); this.dnq_1 = tmp0_serialDesc; } protoOf($serializer_27).d44 = function () { return this.dnq_1; }; protoOf($serializer_27).x4f = function () { var tmp0_cached = Companion_getInstance_46().cnq_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[6], tmp0_cached[7], StringSerializer_getInstance()]; }; protoOf($serializer_27).f44 = 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 = 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.v47(tmp0_desc); var tmp14_cached = Companion_getInstance_46().cnq_1; if (tmp13_input.k48()) { tmp4_local0 = tmp13_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.b48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.x47(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.a48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.f48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.f48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.h48(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.h48(tmp0_desc, 7, tmp14_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.f48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.b48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.x47(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.a48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.f48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.f48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.h48(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.h48(tmp0_desc, 7, tmp14_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.f48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.w47(tmp0_desc); return ContentManifestEntry_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); }; protoOf($serializer_27).enq = function (encoder, value) { var tmp0_desc = this.dnq_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_46().cnq_1; tmp1_output.j49(tmp0_desc, 0, value.fnq_1); tmp1_output.f49(tmp0_desc, 1, value.gnq_1); if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.hnq_1 === true)) { tmp1_output.b49(tmp0_desc, 2, value.hnq_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.inq_1 === 200)) { tmp1_output.e49(tmp0_desc, 3, value.inq_1); } if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.jnq_1 === 'GET')) { tmp1_output.j49(tmp0_desc, 4, value.jnq_1); } tmp1_output.j49(tmp0_desc, 5, value.knq_1); if (tmp1_output.r49(tmp0_desc, 6) ? true : !equals(value.lnq_1, emptyStringValues())) { tmp1_output.l49(tmp0_desc, 6, tmp2_cached[6], value.lnq_1); } tmp1_output.l49(tmp0_desc, 7, tmp2_cached[7], value.mnq_1); tmp1_output.j49(tmp0_desc, 8, value.nnq_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_27).e44 = function (encoder, value) { return this.enq(encoder, value instanceof ContentManifestEntry ? value : THROW_CCE()); }; var $serializer_instance_27; function $serializer_getInstance_39() { if ($serializer_instance_27 == null) new $serializer_27(); return $serializer_instance_27; } function ContentManifestEntry_init_$Init$(seen1, uri, storageSize, ignoreQueryParams, status, method, integrity, requestHeaders, responseHeaders, bodyDataUrl, serializationConstructorMarker, $this) { if (!(419 === (419 & seen1))) { throwMissingFieldException(seen1, 419, $serializer_getInstance_39().dnq_1); } $this.fnq_1 = uri; $this.gnq_1 = storageSize; if (0 === (seen1 & 4)) $this.hnq_1 = true; else $this.hnq_1 = ignoreQueryParams; if (0 === (seen1 & 8)) $this.inq_1 = 200; else $this.inq_1 = status; if (0 === (seen1 & 16)) $this.jnq_1 = 'GET'; else $this.jnq_1 = method; $this.knq_1 = integrity; if (0 === (seen1 & 64)) $this.lnq_1 = emptyStringValues(); else $this.lnq_1 = requestHeaders; $this.mnq_1 = responseHeaders; $this.nnq_1 = bodyDataUrl; return $this; } function ContentManifestEntry_init_$Create$(seen1, uri, storageSize, ignoreQueryParams, status, method, integrity, requestHeaders, responseHeaders, bodyDataUrl, serializationConstructorMarker) { return ContentManifestEntry_init_$Init$(seen1, uri, storageSize, ignoreQueryParams, status, method, integrity, requestHeaders, responseHeaders, bodyDataUrl, serializationConstructorMarker, objectCreate(protoOf(ContentManifestEntry))); } function ContentManifestEntry() { } function Companion_30() { Companion_instance_79 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.onq_1 = [new ArrayListSerializer($serializer_getInstance_41()), new ArrayListSerializer($serializer_getInstance_42())]; } var Companion_instance_79; function Companion_getInstance_47() { if (Companion_instance_79 == null) new Companion_30(); return Companion_instance_79; } function $serializer_28() { $serializer_instance_28 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.media.MediaContentInfo', this, 2); tmp0_serialDesc.g4f('sources', false); tmp0_serialDesc.g4f('subtitles', true); this.pnq_1 = tmp0_serialDesc; } protoOf($serializer_28).d44 = function () { return this.pnq_1; }; protoOf($serializer_28).x4f = function () { var tmp0_cached = Companion_getInstance_47().onq_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [tmp0_cached[0], tmp0_cached[1]]; }; protoOf($serializer_28).f44 = function (decoder) { var tmp0_desc = this.pnq_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.v47(tmp0_desc); var tmp7_cached = Companion_getInstance_47().onq_1; if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.h48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.h48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.h48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.h48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return MediaContentInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_28).qnq = function (encoder, value) { var tmp0_desc = this.pnq_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_47().onq_1; tmp1_output.l49(tmp0_desc, 0, tmp2_cached[0], value.rnq_1); if (tmp1_output.r49(tmp0_desc, 1) ? true : !equals(value.snq_1, emptyList())) { tmp1_output.l49(tmp0_desc, 1, tmp2_cached[1], value.snq_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_28).e44 = function (encoder, value) { return this.qnq(encoder, value instanceof MediaContentInfo ? value : THROW_CCE()); }; var $serializer_instance_28; function $serializer_getInstance_40() { if ($serializer_instance_28 == null) new $serializer_28(); return $serializer_instance_28; } function MediaContentInfo_init_$Init$(seen1, sources, subtitles, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_40().pnq_1); } $this.rnq_1 = sources; if (0 === (seen1 & 2)) $this.snq_1 = emptyList(); else $this.snq_1 = subtitles; return $this; } function MediaContentInfo_init_$Create$(seen1, sources, subtitles, serializationConstructorMarker) { return MediaContentInfo_init_$Init$(seen1, sources, subtitles, serializationConstructorMarker, objectCreate(protoOf(MediaContentInfo))); } function MediaContentInfo(sources, subtitles) { Companion_getInstance_47(); subtitles = subtitles === VOID ? emptyList() : subtitles; this.rnq_1 = sources; this.snq_1 = subtitles; } function $serializer_29() { $serializer_instance_29 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.media.MediaSource', this, 2); tmp0_serialDesc.g4f('uri', false); tmp0_serialDesc.g4f('mimeType', false); this.tnq_1 = tmp0_serialDesc; } protoOf($serializer_29).d44 = function () { return this.tnq_1; }; protoOf($serializer_29).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_29).f44 = function (decoder) { var tmp0_desc = this.tnq_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.v47(tmp0_desc); if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return MediaSource_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_29).unq = function (encoder, value) { var tmp0_desc = this.tnq_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.j49(tmp0_desc, 0, value.vnq_1); tmp1_output.j49(tmp0_desc, 1, value.wnq_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_29).e44 = function (encoder, value) { return this.unq(encoder, value instanceof MediaSource ? value : THROW_CCE()); }; var $serializer_instance_29; function $serializer_getInstance_41() { if ($serializer_instance_29 == null) new $serializer_29(); return $serializer_instance_29; } function MediaSource_init_$Init$(seen1, uri, mimeType, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_41().tnq_1); } $this.vnq_1 = uri; $this.wnq_1 = mimeType; return $this; } function MediaSource_init_$Create$(seen1, uri, mimeType, serializationConstructorMarker) { return MediaSource_init_$Init$(seen1, uri, mimeType, serializationConstructorMarker, objectCreate(protoOf(MediaSource))); } function MediaSource() { } function Companion_31() { } protoOf(Companion_31).a4r = function () { return $serializer_getInstance_42(); }; var Companion_instance_80; function Companion_getInstance_48() { return Companion_instance_80; } function $serializer_30() { $serializer_instance_30 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.media.SubtitleTrack', this, 4); tmp0_serialDesc.g4f('uri', false); tmp0_serialDesc.g4f('mimeType', false); tmp0_serialDesc.g4f('langCode', false); tmp0_serialDesc.g4f('title', false); this.xnq_1 = tmp0_serialDesc; } protoOf($serializer_30).d44 = function () { return this.xnq_1; }; protoOf($serializer_30).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_30).f44 = function (decoder) { var tmp0_desc = this.xnq_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.v47(tmp0_desc); if (tmp8_input.k48()) { tmp4_local0 = tmp8_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.f48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.f48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.w47(tmp0_desc); return SubtitleTrack_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_30).ynq = function (encoder, value) { var tmp0_desc = this.xnq_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.j49(tmp0_desc, 0, value.znq_1); tmp1_output.j49(tmp0_desc, 1, value.anr_1); tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.bnr_1); tmp1_output.j49(tmp0_desc, 3, value.cnr_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_30).e44 = function (encoder, value) { return this.ynq(encoder, value instanceof SubtitleTrack ? value : THROW_CCE()); }; var $serializer_instance_30; function $serializer_getInstance_42() { if ($serializer_instance_30 == null) new $serializer_30(); return $serializer_instance_30; } function SubtitleTrack_init_$Init$(seen1, uri, mimeType, langCode, title, serializationConstructorMarker, $this) { if (!(15 === (15 & seen1))) { throwMissingFieldException(seen1, 15, $serializer_getInstance_42().xnq_1); } $this.znq_1 = uri; $this.anr_1 = mimeType; $this.bnr_1 = langCode; $this.cnr_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.znq_1 = uri; this.anr_1 = mimeType; this.bnr_1 = langCode; this.cnr_1 = title; } protoOf(SubtitleTrack).dnr = function (uri, mimeType, langCode, title) { return new SubtitleTrack(uri, mimeType, langCode, title); }; protoOf(SubtitleTrack).enr = function (uri, mimeType, langCode, title, $super) { uri = uri === VOID ? this.znq_1 : uri; mimeType = mimeType === VOID ? this.anr_1 : mimeType; langCode = langCode === VOID ? this.bnr_1 : langCode; title = title === VOID ? this.cnr_1 : title; return $super === VOID ? this.dnr(uri, mimeType, langCode, title) : $super.dnr.call(this, uri, mimeType, langCode, title); }; protoOf(SubtitleTrack).toString = function () { return 'SubtitleTrack(uri=' + this.znq_1 + ', mimeType=' + this.anr_1 + ', langCode=' + this.bnr_1 + ', title=' + this.cnr_1 + ')'; }; protoOf(SubtitleTrack).hashCode = function () { var result = getStringHashCode(this.znq_1); result = imul(result, 31) + getStringHashCode(this.anr_1) | 0; result = imul(result, 31) + (this.bnr_1 == null ? 0 : getStringHashCode(this.bnr_1)) | 0; result = imul(result, 31) + getStringHashCode(this.cnr_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.znq_1 === tmp0_other_with_cast.znq_1)) return false; if (!(this.anr_1 === tmp0_other_with_cast.anr_1)) return false; if (!(this.bnr_1 == tmp0_other_with_cast.bnr_1)) return false; if (!(this.cnr_1 === tmp0_other_with_cast.cnr_1)) return false; return true; }; function InvalidContentException(message, cause) { cause = cause === VOID ? null : cause; IllegalArgumentException_init_$Init$(message, cause, this); captureStack(this, InvalidContentException); } function Companion_32() { this.fnr_1 = 'upload-tmp'; this.gnr_1 = 'upload-tmp:///'; } protoOf(Companion_32).a4r = function () { return $serializer_getInstance_43(); }; var Companion_instance_81; function Companion_getInstance_49() { return Companion_instance_81; } function $serializer_31() { $serializer_instance_31 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentjob.MetadataResult', this, 4); tmp0_serialDesc.g4f('entry', false); tmp0_serialDesc.g4f('importerId', false); tmp0_serialDesc.g4f('originalFilename', true); tmp0_serialDesc.g4f('picture', true); this.hnr_1 = tmp0_serialDesc; } protoOf($serializer_31).d44 = function () { return this.hnr_1; }; protoOf($serializer_31).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_3(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_4())]; }; protoOf($serializer_31).f44 = function (decoder) { var tmp0_desc = this.hnr_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.v47(tmp0_desc); if (tmp8_input.k48()) { tmp4_local0 = tmp8_input.h48(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.a48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, $serializer_getInstance_4(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.h48(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.a48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, $serializer_getInstance_4(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.w47(tmp0_desc); return MetadataResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_31).inr = function (encoder, value) { var tmp0_desc = this.hnr_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.l49(tmp0_desc, 0, $serializer_getInstance_3(), value.jnr_1); tmp1_output.e49(tmp0_desc, 1, value.knr_1); if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.lnr_1 == null)) { tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.lnr_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.mnr_1 == null)) { tmp1_output.n49(tmp0_desc, 3, $serializer_getInstance_4(), value.mnr_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_31).e44 = function (encoder, value) { return this.inr(encoder, value instanceof MetadataResult ? value : THROW_CCE()); }; var $serializer_instance_31; function $serializer_getInstance_43() { if ($serializer_instance_31 == null) new $serializer_31(); return $serializer_instance_31; } function MetadataResult_init_$Init$(seen1, entry, importerId, originalFilename, picture, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_43().hnr_1); } $this.jnr_1 = entry; $this.knr_1 = importerId; if (0 === (seen1 & 4)) $this.lnr_1 = null; else $this.lnr_1 = originalFilename; if (0 === (seen1 & 8)) $this.mnr_1 = null; else $this.mnr_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.jnr_1 = entry; this.knr_1 = importerId; this.lnr_1 = originalFilename; this.mnr_1 = picture; } protoOf(MetadataResult).toString = function () { return 'MetadataResult(entry=' + this.jnr_1 + ', importerId=' + this.knr_1 + ', originalFilename=' + this.lnr_1 + ', picture=' + this.mnr_1 + ')'; }; protoOf(MetadataResult).hashCode = function () { var result = this.jnr_1.hashCode(); result = imul(result, 31) + this.knr_1 | 0; result = imul(result, 31) + (this.lnr_1 == null ? 0 : getStringHashCode(this.lnr_1)) | 0; result = imul(result, 31) + (this.mnr_1 == null ? 0 : this.mnr_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.jnr_1.equals(tmp0_other_with_cast.jnr_1)) return false; if (!(this.knr_1 === tmp0_other_with_cast.knr_1)) return false; if (!(this.lnr_1 == tmp0_other_with_cast.lnr_1)) return false; if (!equals(this.mnr_1, tmp0_other_with_cast.mnr_1)) return false; return true; }; function PersonConstants() { PersonConstants_instance = this; var tmp = this; var tmp_0 = to(1, strings_getInstance().slv_1); var tmp_1 = to(2, strings_getInstance().rlv_1); var tmp_2 = to(4, strings_getInstance().tlv_1); tmp.nnr_1 = mapOf([tmp_0, tmp_1, tmp_2, to(0, strings_getInstance().ulv_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().imr_1); var tmp_1 = to(4, strings_getInstance().bly_1); var tmp_2 = to(1, strings_getInstance().jmr_1); var tmp_3 = to(2, strings_getInstance().kmr_1); tmp.onr_1 = mapOf([tmp_0, tmp_1, tmp_2, tmp_3, to(3, strings_getInstance().aml_1)]); var tmp_4 = this; Companion_getInstance_1(); var tmp_5 = to(0, strings_getInstance().fmg_1); Companion_getInstance_1(); var tmp_6 = to(1, strings_getInstance().emg_1); Companion_getInstance_1(); tmp_4.pnr_1 = mapOf([tmp_5, tmp_6, to(2, strings_getInstance().dmg_1)]); } var SubmissionConstants_instance; function SubmissionConstants_getInstance() { if (SubmissionConstants_instance == null) new SubmissionConstants(); return SubmissionConstants_instance; } function TerminologyKeys() { TerminologyKeys_instance = this; this.qnr_1 = 'Teacher'; this.rnr_1 = 'Student'; this.snr_1 = 'Teachers'; this.tnr_1 = 'Students'; this.unr_1 = 'AddTeacher'; this.vnr_1 = 'AddStudent'; this.wnr_1 = mapOf([to('Teacher', strings_getInstance().mm9_1), to('Student', strings_getInstance().zmf_1), to('Teachers', strings_getInstance().pm9_1), to('Students', strings_getInstance().slw_1), to('AddTeacher', strings_getInstance().nm9_1), to('AddStudent', strings_getInstance().tlw_1)]); } var TerminologyKeys_instance; function TerminologyKeys_getInstance() { if (TerminologyKeys_instance == null) new TerminologyKeys(); return TerminologyKeys_instance; } function ValidateUsernameUseCase() { } protoOf(ValidateUsernameUseCase).xnr = 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 CreateNewLocalAccountUseCase(di) { this.ynr_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.ans_1 = submission; } protoOf(SubmitAssignmentResult).toString = function () { return 'SubmitAssignmentResult(submission=' + this.ans_1 + ')'; }; protoOf(SubmitAssignmentResult).hashCode = function () { return this.ans_1 == null ? 0 : this.ans_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.ans_1, tmp0_other_with_cast.ans_1)) return false; return true; }; function SubmitAssignmentUseCase$invoke$lambda($assignmentUid, $submitterUid, $accountPersonUid, $assignment) { return function ($this$shallowCopy) { $this$shallowCopy.ebx_1 = $assignmentUid; $this$shallowCopy.fbx_1 = $submitterUid; $this$shallowCopy.gbx_1 = $accountPersonUid; $this$shallowCopy.jbx_1 = systemTimeInMillis(); $this$shallowCopy.kbx_1 = $assignment.s7t_1; return Unit_instance; }; } function $invokeCOROUTINE$10(_this__u8e3s4, repo, submitterUid, assignmentUid, accountPersonUid, submission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jns_1 = _this__u8e3s4; this.kns_1 = repo; this.lns_1 = submitterUid; this.mns_1 = assignmentUid; this.nns_1 = accountPersonUid; this.ons_1 = submission; } protoOf($invokeCOROUTINE$10).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; if (this.lns_1.equals(new Long(0, 0))) throw new AccountIsNotSubmitterException('Not a valid submitter'); this.hd_1 = 1; suspendResult = this.kns_1.d7e().d7s(this.mns_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.pns_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.pns_1 == null) { throw IllegalArgumentException_init_$Create$('Could not find assignment uid ' + this.mns_1.toString()); } else { tmp_1 = this.pns_1; } tmp_0.qns_1 = tmp_1; var tmp_2 = this; var tmp1_elvis_lhs = this.qns_1.f7x_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.rns_1 = tmp_3; var tmp_4 = this; var tmp2_elvis_lhs = this.qns_1.e7x_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.sns_1 = tmp_5; var tmp_6 = this.sns_1.m7t_1; if (tmp_6 === 1) { this.hd_1 = 2; suspendResult = this.kns_1.e7e().lbw(this.nns_1, this.mns_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.tns_1 = false; this.hd_1 = 3; continue $sm; } case 2: this.tns_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: if (this.tns_1) { throw new AssignmentAlreadySubmittedException(this.jns_1.vns_1.ant(strings_getInstance().bmv_1)); } else { this.hd_1 = 4; continue $sm; } case 4: if (lastPossibleSubmissionTime(this.rns_1).c7(systemTimeInMillis()) < 0) { throw new AssignmentDeadlinePassedException(this.jns_1.vns_1.ant(strings_getInstance().amv_1)); } if (this.sns_1.o7t_1) { var tmp_7 = this.sns_1.p7t_1; if (tmp_7 === 1) { var tmp3_safe_receiver = this.ons_1.hbx_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.sns_1.q7t_1) { throw new AssignmentTextTooLongException(this.jns_1.vns_1.bnt(strings_getInstance().cmv_1, [wordCount.toString(), this.sns_1.q7t_1.toString()])); } } else { var tmp_8 = this.sns_1.p7t_1; if (tmp_8 === 2) { var tmp6_safe_receiver = this.ons_1.hbx_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.sns_1.q7t_1) { throw new AssignmentTextTooLongException(this.jns_1.vns_1.bnt(strings_getInstance().dmv_1, [charCount.toString(), this.sns_1.q7t_1.toString()])); } } } } var tmp_9 = this; tmp_9.uns_1 = shallowCopy_0(this.ons_1, SubmitAssignmentUseCase$invoke$lambda(this.mns_1, this.lns_1, this.nns_1, this.sns_1)); Napier_getInstance().v5d('SubmitAssignmentUseCase: save to repo for submitterUid=' + this.lns_1.toString() + ' assignmentUid=' + this.mns_1.toString()); this.hd_1 = 5; suspendResult = this.kns_1.e7e().insertAsync(this.uns_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return new SubmitAssignmentResult(this.uns_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.vns_1 = systemImpl; } protoOf(SubmitAssignmentUseCase).cnt = function (repo, submitterUid, assignmentUid, accountPersonUid, submission, $completion) { var tmp = new $invokeCOROUTINE$10(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.zbq_1 = $assignment.a7t_1; $this$shallowCopy.abr_1 = $submitterUid; $this$shallowCopy.bbr_1 = $activeUserSubmitterUid; $this$shallowCopy.cbr_1 = $activeUserPerson.s95_1; var tmp = $this$shallowCopy; var tmp0_elvis_lhs = $courseBlock.r7x_1; tmp.fbr_1 = tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs; $this$shallowCopy.ibr_1 = $clazzUid; var tmp_0; if ($applyPenalty) { $this$shallowCopy.gbr_1 = roundTo($this$shallowCopy.ebr_1 * ($courseBlock.p7x_1 / 100.0), 2); $this$shallowCopy.ebr_1 = $this$shallowCopy.ebr_1 - $this$shallowCopy.gbr_1; tmp_0 = Unit_instance; } return Unit_instance; }; } function SubmitMarkUseCase$invoke$slambda(this$0, $stmt, $activeUserPerson, $courseBlock, $instructorActorToPersonUidMap, $actorToPersonUidMap, $clazzUid, $activityId, $markToRecord, resultContinuation) { this.lnt_1 = this$0; this.mnt_1 = $stmt; this.nnt_1 = $activeUserPerson; this.ont_1 = $courseBlock; this.pnt_1 = $instructorActorToPersonUidMap; this.qnt_1 = $actorToPersonUidMap; this.rnt_1 = $clazzUid; this.snt_1 = $activityId; this.tnt_1 = $markToRecord; CoroutineImpl.call(this, resultContinuation); } protoOf(SubmitMarkUseCase$invoke$slambda).wnt = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SubmitMarkUseCase$invoke$slambda).he = function (p1, $completion) { return this.wnt(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.vnt_1 = uuid4(); this.hd_1 = 1; var tmp_0 = listOf_0(this.mnt_1); var tmp0_xseAccountPersonUid = this.nnt_1.s95_1; var tmp1_xseAccountUsername = ensureNotNull(this.nnt_1.t95_1); var tmp2_xseCbUid = this.ont_1.g7x_1; var tmp3_xseRegistrationHi = this.vnt_1.alp(); var tmp4_xseRegistrationLo = this.vnt_1.blp(); var tmp5_knownActorUidToPersonUids = this.lnt_1.cnu_1.e45(MapSerializer(serializer_1(Companion_getInstance_2()), serializer_1(Companion_getInstance_2())), plus_0(this.pnt_1, this.qnt_1)); suspendResult = this.lnt_1.anu_1.knu(tmp_0, new XapiSessionEntity(VOID, VOID, tmp3_xseRegistrationHi, tmp4_xseRegistrationLo, VOID, tmp0_xseAccountPersonUid, VOID, tmp1_xseAccountUsername, this.rnt_1, tmp2_xseCbUid, VOID, VOID, this.snt_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.lnt_1.xnt_1.g7e().insertAsync(this.tnt_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).pn8 = function (it, completion) { var i = new SubmitMarkUseCase$invoke$slambda(this.lnt_1, this.mnt_1, this.nnt_1, this.ont_1, this.pnt_1, this.qnt_1, this.rnt_1, this.snt_1, this.tnt_1, completion); i.unt_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.wnt(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$11(_this__u8e3s4, activeUserPerson, assignment, clazzUid, submitterUid, draftMark, submissions, courseBlock, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tnu_1 = _this__u8e3s4; this.unu_1 = activeUserPerson; this.vnu_1 = assignment; this.wnu_1 = clazzUid; this.xnu_1 = submitterUid; this.ynu_1 = draftMark; this.znu_1 = submissions; this.anv_1 = courseBlock; } 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 = 8; var tmp_0 = this; var tmp_1; if (!this.znu_1.c1()) { var iterator = this.znu_1.w(); if (!iterator.f()) throw NoSuchElementException_init_$Create$(); var maxValue = iterator.e().jbx_1; while (iterator.f()) { var v = iterator.e().jbx_1; if (compareTo(maxValue, v) < 0) { maxValue = v; } } tmp_1 = maxValue.c7(this.anv_1.o7x_1) > 0; } else { tmp_1 = false; } tmp_0.bnv_1 = tmp_1; this.hd_1 = 1; suspendResult = this.tnu_1.xnt_1.d7e().b7s(this.vnu_1.a7t_1, this.wnu_1, this.unu_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.cnv_1 = suspendResult; var tmp_2; if (this.vnu_1.d7t_1.equals(new Long(0, 0))) { tmp_2 = true; } else { var tmp_3 = this.vnu_1.n7t_1; tmp_2 = tmp_3 === 1; } if (tmp_2) { var tmp_4 = this; var activeUserPersonXapiAgent = toXapiAgent(this.unu_1, this.tnu_1.ynt_1); tmp_4.dnv_1 = to(activeUserPersonXapiAgent, mapOf_0(to(identifierHash(activeUserPersonXapiAgent, this.tnu_1.bnu_1), this.unu_1.s95_1))); this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = this.tnu_1.znt_1.wnv(this.vnu_1.d7t_1, this.cnv_1.mb(), this.vnu_1.s7t_1, this.vnu_1.a7t_1, this.unu_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.env_1 = suspendResult; var tmp_5 = this; var it = this.env_1; tmp_5.dnv_1 = to(it.xnv_1, it.ynv_1); this.hd_1 = 3; continue $sm; case 3: this.fnv_1 = this.dnv_1; this.gnv_1 = this.fnv_1.y6(); this.hnv_1 = this.fnv_1.z6(); if (this.vnu_1.d7t_1.equals(new Long(0, 0))) { this.hd_1 = 5; suspendResult = this.tnu_1.xnt_1.a7d().pfx(this.xnu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 4; suspendResult = this.tnu_1.znt_1.wnv(this.vnu_1.d7t_1, this.xnu_1.mb(), this.vnu_1.s7t_1, this.vnu_1.a7t_1, this.unu_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.jnv_1 = suspendResult; var tmp_6 = this; var it_0 = this.jnv_1; tmp_6.inv_1 = to(it_0.xnv_1, it_0.ynv_1); this.hd_1 = 6; continue $sm; case 5: this.knv_1 = suspendResult; this.lnv_1 = this.knv_1 == null ? null : toXapiAgent(this.knv_1, this.tnu_1.ynt_1); var tmp_7 = this; var tmp_8; if (this.lnv_1 == null) { throw IllegalStateException_init_$Create$('Could not find person for ' + this.xnu_1.toString()); } else { tmp_8 = this.lnv_1; } tmp_7.mnv_1 = tmp_8; this.inv_1 = to(this.mnv_1, mapOf_0(to(identifierHash(this.mnv_1, this.tnu_1.bnu_1), this.xnu_1))); this.hd_1 = 6; continue $sm; case 6: this.nnv_1 = this.inv_1; this.onv_1 = this.nnv_1.y6(); this.pnv_1 = this.nnv_1.z6(); var tmp_9 = this; tmp_9.qnv_1 = shallowCopy_1(this.ynu_1, SubmitMarkUseCase$invoke$lambda(this.vnu_1, this.xnu_1, this.cnv_1, this.unu_1, this.anv_1, this.wnu_1, this.bnv_1)); var tmp_10 = this; var tmp4_viewName = 'CourseAssignment'; var tmp5_learningSpace = this.tnu_1.ynt_1.in3_1; Companion_getInstance_119(); var tmp_11 = to('clazzUid', this.wnu_1.toString()); Companion_getInstance_119(); var tmp6_queryString = toQueryString(mapOf([tmp_11, to('entityUid', this.vnu_1.a7t_1.toString())])); tmp_10.rnv_1 = (new UstadUrlComponents(tmp5_learningSpace, tmp4_viewName, tmp6_queryString)).enw(); var tmp_12 = this; var tmp7_verb = new XapiVerb(get_VERB_COMPLETED()); var tmp8_object = new XapiActivityStatementObject(XapiObjectType_Activity_getInstance(), this.rnv_1); var tmp9_context = new XapiContext(this.gnv_1); var tmp10_result = new XapiResult(true, true, new Score(this.qnv_1.ebr_1 / this.qnv_1.fbr_1, this.qnv_1.ebr_1, 0.0, this.qnv_1.fbr_1)); tmp_12.snv_1 = new XapiStatement(VOID, this.onv_1, tmp7_verb, tmp8_object, tmp10_result, tmp9_context); this.hd_1 = 7; suspendResult = withDoorTransactionAsync(this.tnu_1.xnt_1, VOID, SubmitMarkUseCase$invoke$slambda_0(this.tnu_1, this.snv_1, this.unu_1, this.anv_1, this.hnv_1, this.pnv_1, this.wnu_1, this.rnv_1, this.qnv_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.xnt_1 = repo; this.ynt_1 = learningSpace; this.znt_1 = createXapiGroupUseCase; this.anu_1 = xapiStatementResource; this.bnu_1 = xxStringHasher; this.cnu_1 = json; } protoOf(SubmitMarkUseCase).fnw = function (activeUserPerson, assignment, clazzUid, submitterUid, draftMark, submissions, courseBlock, $completion) { var tmp = new $invokeCOROUTINE$11(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.onw_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda).tnw = function (value, $completion) { var tmp = this.unw(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.tnw((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.rnw_1 = this.onw_1; var tmp_1 = this; tmp_1.snw_1 = this.pnw_1; var tmp0_safe_receiver = this.snw_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cg2_1) == null)) { this.hd_1 = 3; suspendResult = this.rnw_1.t1d(this.snw_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.qnw_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).unw = function (value, completion) { var i = new GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda(this.onw_1, completion); i.pnw_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.tnw(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$13(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dnx_1 = _this__u8e3s4; this.enx_1 = collector; } protoOf($collectCOROUTINE$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; tmp_0.fnx_1 = this.enx_1; this.hd_1 = 1; var tmp_1 = GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda_0(this.fnx_1, null); suspendResult = this.dnx_1.gnx_1.z1b(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.hnx_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).t1d = function (value, $completion) { return this.hnx_1(value, $completion); }; function _no_name_provided__qut3iv($this) { this.gnx_1 = $this; } protoOf(_no_name_provided__qut3iv).inx = function (collector, $completion) { var tmp = new $collectCOROUTINE$13(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv).z1b = function (collector, $completion) { return this.inx(collector, $completion); }; function $invokeCOROUTINE$12(_this__u8e3s4, submitterUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.rnx_1 = _this__u8e3s4; this.snx_1 = submitterUid; } 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 = 3; Companion_getInstance_1(); if (this.snx_1.c7(toLong(10000)) < 0) { var tmp_0 = this; tmp_0.tnx_1 = this.rnx_1.vnx_1.ant(strings_getInstance().pmq_1) + ' ' + this.snx_1.toString(); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var this_0 = this.rnx_1.unx_1.a7d().tfx(this.snx_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.cg2_1; tmp_1.tnx_1 = '' + tmp_2 + ' ' + (it == null ? null : it.dg2_1); this.hd_1 = 2; continue $sm; case 2: return this.tnx_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.unx_1 = repo; this.vnx_1 = systemImpl; } protoOf(GetAssignmentSubmitterNameUseCase).wnx = function (submitterUid, $completion) { var tmp = new $invokeCOROUTINE$12(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.xnx_1 = blobUrl; this.ynx_1 = transferJobItemUid; this.znx_1 = lockIdToRelease; this.any_1 = estimatedSize; this.bny_1 = partialResponseFile; } protoOf(BlobTransferJobItem).toString = function () { return 'BlobTransferJobItem(blobUrl=' + this.xnx_1 + ', transferJobItemUid=' + this.ynx_1 + ', lockIdToRelease=' + this.znx_1.toString() + ', estimatedSize=' + toString_0(this.any_1) + ', partialResponseFile=' + this.bny_1 + ')'; }; protoOf(BlobTransferJobItem).hashCode = function () { var result = getStringHashCode(this.xnx_1); result = imul(result, 31) + this.ynx_1 | 0; result = imul(result, 31) + this.znx_1.hashCode() | 0; result = imul(result, 31) + (this.any_1 == null ? 0 : this.any_1.hashCode()) | 0; result = imul(result, 31) + (this.bny_1 == null ? 0 : getStringHashCode(this.bny_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.xnx_1 === tmp0_other_with_cast.xnx_1)) return false; if (!(this.ynx_1 === tmp0_other_with_cast.ynx_1)) return false; if (!this.znx_1.equals(tmp0_other_with_cast.znx_1)) return false; if (!equals(this.any_1, tmp0_other_with_cast.any_1)) return false; if (!(this.bny_1 == tmp0_other_with_cast.bny_1)) return false; return true; }; function BlobTransferProgressUpdate(transferItem, bytesTransferred) { this.cny_1 = transferItem; this.dny_1 = bytesTransferred; } protoOf(BlobTransferProgressUpdate).toString = function () { return 'Uid #' + this.cny_1.ynx_1 + ' transferred=' + this.dny_1.toString() + ' bytes'; }; protoOf(BlobTransferProgressUpdate).hashCode = function () { var result = this.cny_1.hashCode(); result = imul(result, 31) + this.dny_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.cny_1.equals(tmp0_other_with_cast.cny_1)) return false; if (!this.dny_1.equals(tmp0_other_with_cast.dny_1)) return false; return true; }; function BlobTransferStatusUpdate(transferItem, status) { this.eny_1 = transferItem; this.fny_1 = status; } protoOf(BlobTransferStatusUpdate).toString = function () { return 'BlobTransferStatusUpdate(transferItem=' + this.eny_1 + ', status=' + this.fny_1 + ')'; }; protoOf(BlobTransferStatusUpdate).hashCode = function () { var result = this.eny_1.hashCode(); result = imul(result, 31) + this.fny_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.eny_1.equals(tmp0_other_with_cast.eny_1)) return false; if (!(this.fny_1 === tmp0_other_with_cast.fny_1)) return false; return true; }; function CancelDownloadUseCase() { } function MakeContentEntryAvailableOfflineUseCase(repo, nodeIdAndAuth, enqueueContentManifestDownloadUseCase) { this.gny_1 = repo; this.hny_1 = nodeIdAndAuth; this.iny_1 = enqueueContentManifestDownloadUseCase; } function GetContentManifestUseCase(db, repo, httpClient, json) { this.jny_1 = db; this.kny_1 = repo; this.lny_1 = httpClient; this.mny_1 = json; } function OpenBlobItem(uri, mimeType, fileName, fileSize) { this.nny_1 = uri; this.ony_1 = mimeType; this.pny_1 = fileName; this.qny_1 = fileSize; } protoOf(OpenBlobItem).toString = function () { return 'OpenBlobItem(uri=' + this.nny_1 + ', mimeType=' + this.ony_1 + ', fileName=' + this.pny_1 + ', fileSize=' + this.qny_1.toString() + ')'; }; protoOf(OpenBlobItem).hashCode = function () { var result = getStringHashCode(this.nny_1); result = imul(result, 31) + getStringHashCode(this.ony_1) | 0; result = imul(result, 31) + getStringHashCode(this.pny_1) | 0; result = imul(result, 31) + this.qny_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.nny_1 === tmp0_other_with_cast.nny_1)) return false; if (!(this.ony_1 === tmp0_other_with_cast.ony_1)) return false; if (!(this.pny_1 === tmp0_other_with_cast.pny_1)) return false; if (!this.qny_1.equals(tmp0_other_with_cast.qny_1)) return false; return true; }; function OpenBlobUiUseCase$invoke$lambda($onUiUpdate, $openItem) { return function (transferred, total) { $onUiUpdate(new OpeningBlobState($openItem, transferred, total)); return Unit_instance; }; } function $invokeCOROUTINE$16(_this__u8e3s4, openItem, onUiUpdate, intent, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.zny_1 = _this__u8e3s4; this.anz_1 = openItem; this.bnz_1 = onUiUpdate; this.cnz_1 = intent; } protoOf($invokeCOROUTINE$16).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.bnz_1(new OpeningBlobState(this.anz_1, new Long(0, 0), new Long(0, 0))); this.id_1 = 2; this.hd_1 = 1; suspendResult = this.zny_1.dnz_1.fnz(this.anz_1, OpenBlobUiUseCase$invoke$lambda(this.bnz_1, this.anz_1), this.cnz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.bnz_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().z5d('OpenBlobUiCase: could not open ' + this.anz_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.bnz_1(new OpeningBlobState(this.anz_1, tmp_1, tmp_2, tmp0_elvis_lhs == null ? this.zny_1.enz_1.ant(strings_getInstance().vlt_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.dnz_1 = openBlobUseCase; this.enz_1 = systemImpl; } protoOf(OpenBlobUiUseCase).gnz = function (openItem, onUiUpdate, intent, $completion) { var tmp = new $invokeCOROUTINE$16(this, openItem, onUiUpdate, intent, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; var OpenBlobIntent_VIEW_instance; var OpenBlobIntent_SEND_instance; var OpenBlobIntent_entriesInitialized; function OpenBlobIntent_initEntries() { if (OpenBlobIntent_entriesInitialized) return Unit_instance; OpenBlobIntent_entriesInitialized = true; OpenBlobIntent_VIEW_instance = new OpenBlobIntent('VIEW', 0); OpenBlobIntent_SEND_instance = new OpenBlobIntent('SEND', 1); } function OpenBlobIntent(name, ordinal) { Enum.call(this, name, ordinal); } function OpenBlobIntent_VIEW_getInstance() { OpenBlobIntent_initEntries(); return OpenBlobIntent_VIEW_instance; } function OpenBlobIntent_SEND_getInstance() { OpenBlobIntent_initEntries(); return OpenBlobIntent_SEND_instance; } function OpenBlobUseCase() { } function OpeningBlobState(item, bytesReady, totalBytes, error) { error = error === VOID ? null : error; this.hnz_1 = item; this.inz_1 = bytesReady; this.jnz_1 = totalBytes; this.knz_1 = error; } protoOf(OpeningBlobState).toString = function () { return 'OpeningBlobState(item=' + this.hnz_1 + ', bytesReady=' + this.inz_1.toString() + ', totalBytes=' + this.jnz_1.toString() + ', error=' + this.knz_1 + ')'; }; protoOf(OpeningBlobState).hashCode = function () { var result = this.hnz_1.hashCode(); result = imul(result, 31) + this.inz_1.hashCode() | 0; result = imul(result, 31) + this.jnz_1.hashCode() | 0; result = imul(result, 31) + (this.knz_1 == null ? 0 : getStringHashCode(this.knz_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.hnz_1.equals(tmp0_other_with_cast.hnz_1)) return false; if (!this.inz_1.equals(tmp0_other_with_cast.inz_1)) return false; if (!this.jnz_1.equals(tmp0_other_with_cast.jnz_1)) return false; if (!(this.knz_1 == tmp0_other_with_cast.knz_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.tnz_1 = $blobs; this.unz_1 = $this_updateUris; this.vnz_1 = $timeNow; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveAndUploadLocalUrisUseCase$updateUris$slambda).on8 = function (_anonymous_parameter_0__qggqh8, $completion) { var tmp = this.pn8(_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.on8(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.xnz_1 = this.tnz_1; this.ynz_1 = this.xnz_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.ynz_1.f()) { this.hd_1 = 4; continue $sm; } this.znz_1 = this.ynz_1.e(); var tmp_1 = this; tmp_1.ao0_1 = this.znz_1; this.bo0_1 = this.ao0_1.do0_1; if (this.bo0_1 === 90) { this.hd_1 = 2; suspendResult = this.unz_1.f7e().wc4(this.ao0_1.co0_1, this.ao0_1.fo0_1, this.vnz_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).pn8 = function (_anonymous_parameter_0__qggqh8, completion) { var i = new SaveAndUploadLocalUrisUseCase$updateUris$slambda(this.tnz_1, this.unz_1, this.vnz_1, completion); i.wnz_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.on8(_anonymous_parameter_0__qggqh8, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$17(_this__u8e3s4, localUrisToSave, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.so0_1 = _this__u8e3s4; this.to0_1 = localUrisToSave; } protoOf($invokeCOROUTINE$17).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; this.hd_1 = 1; suspendResult = this.so0_1.wo0_1.ao1(this.to0_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uo0_1 = suspendResult; this.vo0_1 = this.so0_1.xo0_1; if (!(this.vo0_1 == null)) { this.hd_1 = 3; suspendResult = updateUris(this.so0_1.yo0_1, this.so0_1, this.uo0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; var tmp0_elvis_lhs = this.so0_1.zo0_1; suspendResult = updateUris(tmp0_elvis_lhs == null ? this.so0_1.yo0_1 : tmp0_elvis_lhs, this.so0_1, this.uo0_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.uo0_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.fo0_1; var tmp1_entityUid = item.co0_1; var tmp2_tableId = item.do0_1; var tmp3_retentionLockIdToRelease = item.go0_1; destination.i1(new EnqueueBlobUploadItem(tmp0_blobUrl, tmp2_tableId, tmp1_entityUid, tmp3_retentionLockIdToRelease)); } suspendResult = this.vo0_1.bo1(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.wo0_1 = saveLocalUrisAsBlobsUseCase; this.xo0_1 = enqueueBlobUploadClientUseCase; this.yo0_1 = activeDb; this.zo0_1 = activeRepo; } protoOf(SaveAndUploadLocalUrisUseCase).co1 = function (localUrisToSave, $completion) { var tmp = new $invokeCOROUTINE$17(this, localUrisToSave, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_33() { } protoOf(Companion_33).a4r = function () { return $serializer_getInstance_44(); }; var Companion_instance_82; function Companion_getInstance_50() { return Companion_instance_82; } function $serializer_32() { $serializer_instance_32 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.blob.savelocaluris.SaveLocalUrisAsBlobsUseCase.SavedBlob', this, 8); tmp0_serialDesc.g4f('entityUid', false); tmp0_serialDesc.g4f('tableId', false); tmp0_serialDesc.g4f('localUri', false); tmp0_serialDesc.g4f('blobUrl', false); tmp0_serialDesc.g4f('retentionLockId', true); tmp0_serialDesc.g4f('integrity', false); tmp0_serialDesc.g4f('mimeType', false); tmp0_serialDesc.g4f('storageSize', false); this.do1_1 = tmp0_serialDesc; } protoOf($serializer_32).d44 = function () { return this.do1_1; }; protoOf($serializer_32).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_32).f44 = function (decoder) { var tmp0_desc = this.do1_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.v47(tmp0_desc); if (tmp12_input.k48()) { tmp4_local0 = tmp12_input.b48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.a48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.f48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.f48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.b48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.f48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.f48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.b48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.b48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.a48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.f48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.f48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.b48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.f48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.f48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.b48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.w47(tmp0_desc); return SavedBlob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_32).eo1 = function (encoder, value) { var tmp0_desc = this.do1_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.f49(tmp0_desc, 0, value.co0_1); tmp1_output.e49(tmp0_desc, 1, value.do0_1); tmp1_output.j49(tmp0_desc, 2, value.eo0_1); tmp1_output.j49(tmp0_desc, 3, value.fo0_1); if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.go0_1.equals(new Long(0, 0))) { tmp1_output.f49(tmp0_desc, 4, value.go0_1); } tmp1_output.j49(tmp0_desc, 5, value.ho0_1); tmp1_output.j49(tmp0_desc, 6, value.io0_1); tmp1_output.f49(tmp0_desc, 7, value.jo0_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_32).e44 = function (encoder, value) { return this.eo1(encoder, value instanceof SavedBlob ? value : THROW_CCE()); }; var $serializer_instance_32; function $serializer_getInstance_44() { if ($serializer_instance_32 == null) new $serializer_32(); return $serializer_instance_32; } function SavedBlob_init_$Init$(seen1, entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize, serializationConstructorMarker, $this) { if (!(239 === (239 & seen1))) { throwMissingFieldException(seen1, 239, $serializer_getInstance_44().do1_1); } $this.co0_1 = entityUid; $this.do0_1 = tableId; $this.eo0_1 = localUri; $this.fo0_1 = blobUrl; if (0 === (seen1 & 16)) $this.go0_1 = new Long(0, 0); else $this.go0_1 = retentionLockId; $this.ho0_1 = integrity; $this.io0_1 = mimeType; $this.jo0_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_130.o4d() : extraHeaders; this.fo1_1 = localUri; this.go1_1 = entityUid; this.ho1_1 = tableId; this.io1_1 = mimeType; this.jo1_1 = deleteLocalUriAfterSave; this.ko1_1 = createRetentionLock; this.lo1_1 = extraHeaders; } protoOf(SaveLocalUriAsBlobItem).toString = function () { return 'SaveLocalUriAsBlobItem(localUri=' + this.fo1_1 + ', entityUid=' + this.go1_1.toString() + ', tableId=' + this.ho1_1 + ', mimeType=' + this.io1_1 + ', deleteLocalUriAfterSave=' + this.jo1_1 + ', createRetentionLock=' + this.ko1_1 + ', extraHeaders=' + this.lo1_1 + ')'; }; protoOf(SaveLocalUriAsBlobItem).hashCode = function () { var result = getStringHashCode(this.fo1_1); result = imul(result, 31) + this.go1_1.hashCode() | 0; result = imul(result, 31) + this.ho1_1 | 0; result = imul(result, 31) + (this.io1_1 == null ? 0 : getStringHashCode(this.io1_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.jo1_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ko1_1) | 0; result = imul(result, 31) + hashCode(this.lo1_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.fo1_1 === tmp0_other_with_cast.fo1_1)) return false; if (!this.go1_1.equals(tmp0_other_with_cast.go1_1)) return false; if (!(this.ho1_1 === tmp0_other_with_cast.ho1_1)) return false; if (!(this.io1_1 == tmp0_other_with_cast.io1_1)) return false; if (!(this.jo1_1 === tmp0_other_with_cast.jo1_1)) return false; if (!(this.ko1_1 === tmp0_other_with_cast.ko1_1)) return false; if (!equals(this.lo1_1, tmp0_other_with_cast.lo1_1)) return false; return true; }; function SavedBlob(entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize) { retentionLockId = retentionLockId === VOID ? new Long(0, 0) : retentionLockId; this.co0_1 = entityUid; this.do0_1 = tableId; this.eo0_1 = localUri; this.fo0_1 = blobUrl; this.go0_1 = retentionLockId; this.ho0_1 = integrity; this.io0_1 = mimeType; this.jo0_1 = storageSize; } protoOf(SavedBlob).mo1 = function (entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize) { return new SavedBlob(entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize); }; protoOf(SavedBlob).no1 = function (entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize, $super) { entityUid = entityUid === VOID ? this.co0_1 : entityUid; tableId = tableId === VOID ? this.do0_1 : tableId; localUri = localUri === VOID ? this.eo0_1 : localUri; blobUrl = blobUrl === VOID ? this.fo0_1 : blobUrl; retentionLockId = retentionLockId === VOID ? this.go0_1 : retentionLockId; integrity = integrity === VOID ? this.ho0_1 : integrity; mimeType = mimeType === VOID ? this.io0_1 : mimeType; storageSize = storageSize === VOID ? this.jo0_1 : storageSize; return $super === VOID ? this.mo1(entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize) : $super.mo1.call(this, entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize); }; protoOf(SavedBlob).toString = function () { return 'SavedBlob(entityUid=' + this.co0_1.toString() + ', tableId=' + this.do0_1 + ', localUri=' + this.eo0_1 + ', blobUrl=' + this.fo0_1 + ', retentionLockId=' + this.go0_1.toString() + ', integrity=' + this.ho0_1 + ', mimeType=' + this.io0_1 + ', storageSize=' + this.jo0_1.toString() + ')'; }; protoOf(SavedBlob).hashCode = function () { var result = this.co0_1.hashCode(); result = imul(result, 31) + this.do0_1 | 0; result = imul(result, 31) + getStringHashCode(this.eo0_1) | 0; result = imul(result, 31) + getStringHashCode(this.fo0_1) | 0; result = imul(result, 31) + this.go0_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.ho0_1) | 0; result = imul(result, 31) + getStringHashCode(this.io0_1) | 0; result = imul(result, 31) + this.jo0_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.co0_1.equals(tmp0_other_with_cast.co0_1)) return false; if (!(this.do0_1 === tmp0_other_with_cast.do0_1)) return false; if (!(this.eo0_1 === tmp0_other_with_cast.eo0_1)) return false; if (!(this.fo0_1 === tmp0_other_with_cast.fo0_1)) return false; if (!this.go0_1.equals(tmp0_other_with_cast.go0_1)) return false; if (!(this.ho0_1 === tmp0_other_with_cast.ho0_1)) return false; if (!(this.io0_1 === tmp0_other_with_cast.io0_1)) return false; if (!this.jo0_1.equals(tmp0_other_with_cast.jo0_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.s7d(); } else { if (tableId === 125) { tmp = _this__u8e3s4.q7e(); } else { if (tableId === 6677) { tmp = _this__u8e3s4.d7f(); } else { if (tableId === 6678) { tmp = _this__u8e3s4.e7f(); } else { tmp = null; } } } } return tmp; } function Companion_34() { this.qo1_1 = 160; } var Companion_instance_83; function Companion_getInstance_51() { return Companion_instance_83; } function $invokeCOROUTINE$18(_this__u8e3s4, entityUid, tableId, pictureUri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.zo1_1 = _this__u8e3s4; this.ao2_1 = entityUid; this.bo2_1 = tableId; this.co2_1 = pictureUri; } protoOf($invokeCOROUTINE$18).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 21; var tmp0_safe_receiver = this.co2_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.do2_1 = Companion_getInstance_3().b2r(this.co2_1); this.eo2_1 = this.zo1_1.lo3_1; if (this.eo2_1 == null) { this.fo2_1 = null; this.hd_1 = 4; continue $sm; } else { this.hd_1 = 3; suspendResult = getLocalUriIfRemote(this.eo2_1, this.do2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } else { var tmp_2 = this; var tmp12_elvis_lhs = this.zo1_1.io3_1; tmp_2.go2_1 = imageDaoForTable(tmp12_elvis_lhs == null ? this.zo1_1.ho3_1 : tmp12_elvis_lhs, this.zo1_1, this.bo2_1); if (this.go2_1 == null) { this.ho2_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.go2_1.nbd(this.ao2_1, null, null, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 1: var tmp_3 = this; tmp_3.ho2_1 = Unit_instance; this.hd_1 = 2; continue $sm; case 2: this.hd_1 = 20; continue $sm; case 3: this.fo2_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: this.io2_1 = this.fo2_1; this.jo2_1 = this.io2_1 == null ? this.do2_1 : this.io2_1; this.hd_1 = 5; suspendResult = this.zo1_1.jo3_1.mo3(this.jo2_1.toString(), VOID, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.ko2_1 = suspendResult; this.hd_1 = 6; suspendResult = this.zo1_1.jo3_1.mo3(this.jo2_1.toString(), VOID, new CompressParams(160, 160), VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.lo2_1 = suspendResult; this.mo2_1 = this.zo1_1.fo3_1; var tmp_4 = this; tmp_4.no2_1 = ArrayList_init_$Create$(); var tmp_5 = this; tmp_5.oo2_1 = this.no2_1; if (this.ko2_1 == null) null; else { this.oo2_1.i1(new SaveLocalUriAsBlobItem(this.ko2_1.no3_1, this.ao2_1, this.bo2_1, this.ko2_1.oo3_1, true, true)); } if (this.lo2_1 == null) null; else { this.oo2_1.i1(new SaveLocalUriAsBlobItem(this.lo2_1.no3_1, this.ao2_1, this.bo2_1, this.lo2_1.oo3_1, true, true)); } if (this.ko2_1 == null ? true : this.lo2_1 == null) { this.hd_1 = 7; suspendResult = isRemote(this.do2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.po2_1 = false; this.hd_1 = 8; continue $sm; } case 7: this.qo2_1 = suspendResult; this.po2_1 = !this.qo2_1; this.hd_1 = 8; continue $sm; case 8: this.ro2_1 = this.po2_1; if (this.ro2_1) { this.oo2_1.i1(new SaveLocalUriAsBlobItem(this.co2_1, this.ao2_1, this.bo2_1, VOID, VOID, true)); } this.so2_1 = this.no2_1; this.to2_1 = this.so2_1.f3(); this.hd_1 = 9; suspendResult = this.mo2_1.ao1(this.to2_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 9: this.uo2_1 = suspendResult; this.hd_1 = 10; suspendResult = this.zo1_1.ko3_1.ro3(listOf_0(this.co2_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.uo2_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.eo0_1 === this.co2_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.fo0_1; tmp_6.vo2_1 = tmp4_elvis_lhs == null ? this.do2_1.toString() : tmp4_elvis_lhs; var tmp_7 = this; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_0 = this.uo2_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp0_safe_receiver_0 = this.ko2_1; if (element_0.eo0_1 === (tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.no3_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.fo0_1; tmp_7.wo2_1 = tmp6_elvis_lhs == null ? this.vo2_1 : tmp6_elvis_lhs; var tmp_8 = this; var tmp$ret$4; l$ret$5: do { var tmp0_iterator_1 = this.uo2_1.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); var tmp0_safe_receiver_1 = this.lo2_1; if (element_1.eo0_1 === (tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.no3_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.fo0_1; tmp_8.xo2_1 = tmp8_elvis_lhs == null ? this.vo2_1 : tmp8_elvis_lhs; if (!(this.zo1_1.go3_1 == null)) { if (this.ko2_1 == null ? true : this.lo2_1 == null) { this.hd_1 = 13; suspendResult = isRemote(this.do2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.zo2_1 = false; this.hd_1 = 14; continue $sm; } } else { var tmp_9 = this; var tmp10_elvis_lhs = this.zo1_1.io3_1; tmp_9.ao3_1 = imageDaoForTable(tmp10_elvis_lhs == null ? this.zo1_1.ho3_1 : tmp10_elvis_lhs, this.zo1_1, this.bo2_1); if (this.ao3_1 == null) { this.bo3_1 = null; this.hd_1 = 12; continue $sm; } else { this.hd_1 = 11; suspendResult = this.ao3_1.nbd(this.ao2_1, this.wo2_1, this.xo2_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 11: var tmp_10 = this; tmp_10.bo3_1 = Unit_instance; this.hd_1 = 12; continue $sm; case 12: this.hd_1 = 19; continue $sm; case 13: this.zo2_1 = suspendResult; this.hd_1 = 14; continue $sm; case 14: if (this.zo2_1) { var tmp_11 = this; tmp_11.yo2_1 = new EnqueueBlobUploadItem(this.do2_1.toString(), this.bo2_1, this.ao2_1, new Long(0, 0)); this.hd_1 = 15; continue $sm; } else { var tmp_12 = this; tmp_12.yo2_1 = null; this.hd_1 = 15; continue $sm; } case 15: this.co3_1 = this.yo2_1; this.do3_1 = imageDaoForTable(this.zo1_1.ho3_1, this.zo1_1, this.bo2_1); if (this.do3_1 == null) { this.eo3_1 = null; this.hd_1 = 17; continue $sm; } else { this.hd_1 = 16; suspendResult = this.do3_1.nbd(this.ao2_1, this.wo2_1, this.xo2_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 16: var tmp_13 = this; tmp_13.eo3_1 = Unit_instance; this.hd_1 = 17; continue $sm; case 17: Napier_getInstance().v5d('SavePictureUseCase: Set picture url = ' + this.wo2_1 + ' on entity=' + this.ao2_1.toString() + ' table=' + this.bo2_1); this.hd_1 = 18; var this_0 = this.uo2_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.fo0_1, this.bo2_1, this.ao2_1, item.go0_1)); } var this_1 = listOf_0(this.co3_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.zo1_1.go3_1.bo1(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.fo3_1 = saveLocalUrisAsBlobUseCase; this.go3_1 = enqueueBlobUploadClientUseCase; this.ho3_1 = db; this.io3_1 = repo; this.jo3_1 = compressImageUseCase; this.ko3_1 = deleteUrisUseCase; this.lo3_1 = getStoragePathForUrlUseCase; } protoOf(SavePictureUseCase).po1 = function (entityUid, tableId, pictureUri, $completion) { var tmp = new $invokeCOROUTINE$18(this, entityUid, tableId, pictureUri, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function TransferJobItemStatusUpdater$commit$slambda$lambda($updateTransferJobStatusUid, $numUpdates) { return function () { return 'TransferJobItemStatusUpdater: update status complete for ' + ('' + $updateTransferJobStatusUid + ' updates=' + $numUpdates); }; } function TransferJobItemStatusUpdater$updateJob$slambda(this$0, resultContinuation) { this.ao4_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.bo4_1)) { this.hd_1 = 4; continue $sm; } this.hd_1 = 2; suspendResult = delay(this.ao4_1.eo4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.hd_1 = 3; suspendResult = this.ao4_1.jo4(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.ao4_1, completion); i.bo4_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.so4_1 = $progressUpdatesToCommit; this.to4_1 = this$0; this.uo4_1 = $statusUpdatesToCommit; this.vo4_1 = $repoNodeId; this.wo4_1 = $updateTransferJobStatusUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemStatusUpdater$commit$slambda).on8 = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TransferJobItemStatusUpdater$commit$slambda).he = function (p1, $completion) { return this.on8(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.yo4_1 = this.so4_1; this.zo4_1 = this.yo4_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_1 = this; tmp_1.bo5_1 = this.ao5_1; this.hd_1 = 2; suspendResult = this.to4_1.co4_1.x7e().ni5(this.bo5_1.cny_1.ynx_1, this.bo5_1.dny_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.co5_1 = this.uo4_1; this.do5_1 = this.co5_1.w(); this.hd_1 = 4; continue $sm; case 4: if (!this.do5_1.f()) { this.hd_1 = 8; continue $sm; } this.eo5_1 = this.do5_1.e(); var tmp_3 = this; tmp_3.fo5_1 = this.eo5_1; this.hd_1 = 5; suspendResult = this.to4_1.co4_1.x7e().oi5(this.fo5_1.eny_1.ynx_1, this.fo5_1.fny_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: if (this.fo5_1.fny_1 === TransferJobItemStatus_COMPLETE_getInstance().qjn_1 ? !(this.vo4_1 == null) : false) { this.hd_1 = 6; suspendResult = this.to4_1.co4_1.x7e().pi5(this.vo4_1, this.fo5_1.eny_1.ynx_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.wo4_1 === 0)) { this.hd_1 = 9; suspendResult = this.to4_1.co4_1.w7e().di3(this.wo4_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.x5d(VOID, VOID, TransferJobItemStatusUpdater$commit$slambda$lambda(this.wo4_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).pn8 = function (it, completion) { var i = new TransferJobItemStatusUpdater$commit$slambda(this.so4_1, this.to4_1, this.uo4_1, this.vo4_1, this.wo4_1, completion); i.xo4_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.on8(it, $completion); }; l.$arity = 1; return l; } function $commitCOROUTINE$19(_this__u8e3s4, updateTransferJobStatusUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.oo5_1 = _this__u8e3s4; this.po5_1 = updateTransferJobStatusUid; } protoOf($commitCOROUTINE$19).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.qo5_1 = this.oo5_1.go4_1.atomicfu$getAndSet(emptyList()); this.ro5_1 = this.oo5_1.ho4_1.atomicfu$getAndSet(emptyList()); var tmp_0 = this; var this_0 = this.qo5_1; var map = LinkedHashMap_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var key = element.cny_1.ynx_1; map.s(key, element); } tmp_0.so5_1 = toList(map.p2()); var tmp_1 = this; var this_1 = this.ro5_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.eny_1.ynx_1; map_0.s(key_0, element_0); } tmp_1.to5_1 = toList(map_0.p2()); var tmp_2 = this; var tmp_3 = this.oo5_1.do4_1; var tmp0_safe_receiver = (!(tmp_3 == null) ? isInterface(tmp_3, DoorDatabaseRepository) : false) ? tmp_3 : null; tmp_2.uo5_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z60(); var tmp_4 = this; var this_2 = this.oo5_1.co4_1; var tmp_5; var tmp_6; var tmp_7; if (!this.so5_1.c1()) { tmp_7 = true; } else { tmp_7 = !this.to5_1.c1(); } if (tmp_7) { tmp_6 = true; } else { tmp_6 = !(this.po5_1 === 0); } if (tmp_6) { tmp_5 = this_2; } else { tmp_5 = null; } tmp_4.vo5_1 = tmp_5; if (this.vo5_1 == null) { this.wo5_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.vo5_1, VOID, TransferJobItemStatusUpdater$commit$slambda_0(this.so5_1, this.oo5_1, this.to5_1, this.uo5_1, this.po5_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_8 = this; tmp_8.wo5_1 = Unit_instance; this.hd_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $onFinishedCOROUTINE$20(_this__u8e3s4, updateTransferJobStatusUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fo6_1 = _this__u8e3s4; this.go6_1 = updateTransferJobStatusUid; } protoOf($onFinishedCOROUTINE$20).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; if (!this.fo6_1.fo4_1.atomicfu$getAndSet(true)) { this.fo6_1.io4_1.mr(); this.hd_1 = 1; suspendResult = this.fo6_1.ho6(this.go6_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.co4_1 = db; this.do4_1 = repo; this.eo4_1 = commitInterval; this.fo4_1 = atomic$boolean$1(false); this.go4_1 = atomic$ref$1(emptyList()); this.ho4_1 = atomic$ref$1(emptyList()); var tmp = this; tmp.io4_1 = launch(scope, VOID, VOID, TransferJobItemStatusUpdater$updateJob$slambda_0(this, null)); } protoOf(TransferJobItemStatusUpdater).io6 = function (update) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.go4_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).jo6 = function (update) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.ho4_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).ho6 = function (updateTransferJobStatusUid, $completion) { var tmp = new $commitCOROUTINE$19(this, updateTransferJobStatusUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TransferJobItemStatusUpdater).jo4 = function (updateTransferJobStatusUid, $completion, $super) { updateTransferJobStatusUid = updateTransferJobStatusUid === VOID ? 0 : updateTransferJobStatusUid; return $super === VOID ? this.ho6(updateTransferJobStatusUid, $completion) : $super.ho6.call(this, updateTransferJobStatusUid, $completion); }; protoOf(TransferJobItemStatusUpdater).ko6 = function (updateTransferJobStatusUid, $completion) { var tmp = new $onFinishedCOROUTINE$20(this, updateTransferJobStatusUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TransferJobItemStatusUpdater).lo6 = function (updateTransferJobStatusUid, $completion, $super) { updateTransferJobStatusUid = updateTransferJobStatusUid === VOID ? 0 : updateTransferJobStatusUid; return $super === VOID ? this.ko6(updateTransferJobStatusUid, $completion) : $super.ko6.call(this, updateTransferJobStatusUid, $completion); }; function $invokeCOROUTINE$21(_this__u8e3s4, db, tableId, entityUid, transferJobItemUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.uo6_1 = _this__u8e3s4; this.vo6_1 = db; this.wo6_1 = tableId; this.xo6_1 = entityUid; this.yo6_1 = transferJobItemUid; } protoOf($invokeCOROUTINE$21).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.zo6_1 = this.wo6_1; if (this.zo6_1 === 50) { this.hd_1 = 2; suspendResult = this.vo6_1.s7d().bbl(this.xo6_1, this.yo6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { if (this.zo6_1 === 738) { this.hd_1 = 1; suspendResult = this.vo6_1.v7e().bbl(this.xo6_1, this.yo6_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).ao7 = function (db, tableId, entityUid, transferJobItemUid, $completion) { var tmp = new $invokeCOROUTINE$21(this, db, tableId, entityUid, transferJobItemUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_35() { this.bo7_1 = 'X-Blob-Response-'; this.co7_1 = 'Blob-Upload-Batch-Uuid'; } var Companion_instance_84; function Companion_getInstance_52() { return Companion_instance_84; } function CancelBlobUploadClientUseCase() { } function EnqueueBlobUploadItem(blobUrl, tableId, entityUid, retentionLockIdToRelease) { tableId = tableId === VOID ? 0 : tableId; entityUid = entityUid === VOID ? new Long(0, 0) : entityUid; retentionLockIdToRelease = retentionLockIdToRelease === VOID ? new Long(0, 0) : retentionLockIdToRelease; this.do7_1 = blobUrl; this.eo7_1 = tableId; this.fo7_1 = entityUid; this.go7_1 = retentionLockIdToRelease; } protoOf(EnqueueBlobUploadItem).toString = function () { return 'EnqueueBlobUploadItem(blobUrl=' + this.do7_1 + ', tableId=' + this.eo7_1 + ', entityUid=' + this.fo7_1.toString() + ', retentionLockIdToRelease=' + this.go7_1.toString() + ')'; }; protoOf(EnqueueBlobUploadItem).hashCode = function () { var result = getStringHashCode(this.do7_1); result = imul(result, 31) + this.eo7_1 | 0; result = imul(result, 31) + this.fo7_1.hashCode() | 0; result = imul(result, 31) + this.go7_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.do7_1 === tmp0_other_with_cast.do7_1)) return false; if (!(this.eo7_1 === tmp0_other_with_cast.eo7_1)) return false; if (!this.fo7_1.equals(tmp0_other_with_cast.fo7_1)) return false; if (!this.go7_1.equals(tmp0_other_with_cast.go7_1)) return false; return true; }; function EnqueueBlobUploadClientUseCase() { } function getLocalUriIfRemote(_this__u8e3s4, uri, $completion) { var tmp = new $getLocalUriIfRemoteCOROUTINE$22(_this__u8e3s4, uri, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $getLocalUriIfRemoteCOROUTINE$22(_this__u8e3s4, uri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qo7_1 = _this__u8e3s4; this.ro7_1 = uri; } protoOf($getLocalUriIfRemoteCOROUTINE$22).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = isRemote(this.ro7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (suspendResult) { this.to7_1 = Companion_getInstance_3(); this.hd_1 = 2; suspendResult = this.qo7_1.uo7(this.ro7_1.toString(), VOID, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_0 = this; tmp_0.so7_1 = this.ro7_1; this.hd_1 = 3; continue $sm; } case 2: var ARGUMENT = suspendResult; var ARGUMENT_0 = ARGUMENT.vo7_1; this.so7_1 = this.to7_1.b2r(ARGUMENT_0); this.hd_1 = 3; continue $sm; case 3: return this.so7_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.go8_1 = $clazz; this.ho8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CreateNewClazzUseCase$invoke$slambda).wnt = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CreateNewClazzUseCase$invoke$slambda).he = function (p1, $completion) { return this.wnt(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.go8_1; var tmp_0; if (this_0.b8e_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.b8e_1 = randomString(6); } this.hd_1 = 1; suspendResult = this.ho8_1.ko8_1.b7d().insertAsync(this.go8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.jo8_1 = suspendResult; this.hd_1 = 2; var tmp_2 = this.ho8_1.ko8_1.b7f(); var tmp_3 = this.go8_1.e8d_1; Companion_getInstance_5(); suspendResult = tmp_2.wde(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.ho8_1.ko8_1.b7f(); var tmp_5 = this.go8_1.e8d_1; Companion_getInstance_5(); suspendResult = tmp_4.wde(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.jo8_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).pn8 = function (it, completion) { var i = new CreateNewClazzUseCase$invoke$slambda(this.go8_1, this.ho8_1, completion); i.io8_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.wnt(it, $completion); }; l.$arity = 1; return l; } function CreateNewClazzUseCase(repoOrDb) { this.ko8_1 = repoOrDb; } protoOf(CreateNewClazzUseCase).lo8 = function (clazz, $completion) { return withDoorTransactionAsync(this.ko8_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.uo8_1 = $approved; this.vo8_1 = this$0; this.wo8_1 = $enrolmentRequest; this.xo8_1 = $effectiveClazz; CoroutineImpl.call(this, resultContinuation); } protoOf(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda).on8 = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda).he = function (p1, $completion) { return this.on8(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.uo8_1) { this.hd_1 = 1; var tmp_0 = this.wo8_1.eet_1; var tmp_1 = this.wo8_1.get_1; var tmp_2 = ClazzEnrolment_init_$Create$(tmp_0, tmp_1, 1000); var tmp0_elvis_lhs = this.xo8_1.w8d_1; suspendResult = this.vo8_1.do9_1.go9(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.zo8_1 = 3; this.hd_1 = 2; continue $sm; } case 1: var tmp_4 = this; tmp_4.zo8_1 = 2; this.hd_1 = 2; continue $sm; case 2: this.ao9_1 = this.zo8_1; this.hd_1 = 3; var tmp1_elvis_lhs = this.vo8_1.co9_1; suspendResult = (tmp1_elvis_lhs == null ? this.vo8_1.bo9_1 : tmp1_elvis_lhs).a7f().nes(this.wo8_1.det_1, this.ao9_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).pn8 = function (it, completion) { var i = new ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda(this.uo8_1, this.vo8_1, this.wo8_1, this.xo8_1, completion); i.yo8_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.on8(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$23(_this__u8e3s4, enrolmentRequest, approved, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.po9_1 = _this__u8e3s4; this.qo9_1 = enrolmentRequest; this.ro9_1 = approved; } protoOf($invokeCOROUTINE$23).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; suspendResult = this.po9_1.bo9_1.b7d().f8c(this.qo9_1.eet_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.so9_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.so9_1 == null) { throw IllegalStateException_init_$Create$('Class does not exist'); } else { tmp_1 = this.so9_1; } tmp_0.to9_1 = tmp_1; this.hd_1 = 2; var tmp1_elvis_lhs = this.po9_1.co9_1; var tmp_2 = tmp1_elvis_lhs == null ? this.po9_1.bo9_1 : tmp1_elvis_lhs; suspendResult = withDoorTransactionAsync(tmp_2, VOID, ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda_0(this.ro9_1, this.po9_1, this.qo9_1, this.to9_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.bo9_1 = db; this.co9_1 = repo; this.do9_1 = enrolIntoCourseUseCase; } protoOf(ApproveOrDeclinePendingEnrolmentUseCase).uo9 = function (enrolmentRequest, approved, $completion) { var tmp = new $invokeCOROUTINE$23(this, enrolmentRequest, approved, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function EnrolIntoCourseUseCase$invoke$slambda($effectiveDb, $enrolment, resultContinuation) { this.doa_1 = $effectiveDb; this.eoa_1 = $enrolment; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolIntoCourseUseCase$invoke$slambda).wnt = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EnrolIntoCourseUseCase$invoke$slambda).he = function (p1, $completion) { return this.wnt(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.doa_1.g7d().insertAsync(this.eoa_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).pn8 = function (it, completion) { var i = new EnrolIntoCourseUseCase$invoke$slambda(this.doa_1, this.eoa_1, completion); i.foa_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.wnt(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$24(_this__u8e3s4, enrolment, timeZoneId, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ooa_1 = _this__u8e3s4; this.poa_1 = enrolment; this.qoa_1 = timeZoneId; } protoOf($invokeCOROUTINE$24).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; var tmp0_elvis_lhs = this.ooa_1.fo9_1; suspendResult = (tmp0_elvis_lhs == null ? this.ooa_1.eo9_1 : tmp0_elvis_lhs).g7d().v92(this.poa_1.q8h_1, this.poa_1.p8h_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.roa_1 = suspendResult; if (!this.roa_1.c1()) { throw new AlreadyEnroledInClassException(); } this.poa_1.r8h_1 = toLocalMidnight(Companion_getInstance_6().kls(this.poa_1.r8h_1), this.qoa_1).jls(); if (this.poa_1.s8h_1.c7(get_UNSET_DISTANT_FUTURE()) < 0) { this.poa_1.s8h_1 = toLocalEndOfDay(Companion_getInstance_6().kls(this.poa_1.s8h_1), this.qoa_1).jls(); } var tmp_0 = this; var tmp1_elvis_lhs = this.ooa_1.fo9_1; tmp_0.soa_1 = tmp1_elvis_lhs == null ? this.ooa_1.eo9_1 : tmp1_elvis_lhs; this.hd_1 = 2; suspendResult = withDoorTransactionAsync(this.soa_1, VOID, EnrolIntoCourseUseCase$invoke$slambda_0(this.soa_1, this.poa_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.eo9_1 = db; this.fo9_1 = repo; } protoOf(EnrolIntoCourseUseCase).go9 = function (enrolment, timeZoneId, $completion) { var tmp = new $invokeCOROUTINE$24(this, enrolment, timeZoneId, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function IApproveOrDeclinePendingEnrolmentRequestUseCase() { } function $invokeCOROUTINE$25(_this__u8e3s4, clazzCode, person, roleId, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bob_1 = _this__u8e3s4; this.cob_1 = clazzCode; this.dob_1 = person; this.eob_1 = roleId; } protoOf($invokeCOROUTINE$25).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 7; this.hd_1 = 1; suspendResult = this.bob_1.iob_1.b7d().e8c(this.cob_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.fob_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.fob_1 == null) { throw IllegalArgumentException_init_$Create$_0(); } else { tmp_1 = this.fob_1; } tmp_0.gob_1 = tmp_1; this.hd_1 = 2; suspendResult = this.bob_1.iob_1.a7f().les(this.dob_1.s95_1, this.gob_1.e8d_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.bob_1.iob_1.g7d().v92(this.gob_1.e8d_1, this.dob_1.s95_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.hob_1 = suspendResult; if (!this.hob_1.c1()) { throw new AlreadyEnroledInClassException(); } else { this.hd_1 = 5; continue $sm; } case 5: this.hd_1 = 6; var tmp_2 = this.bob_1.iob_1.a7f(); var tmp_3 = this.gob_1.e8d_1; var tmp_4 = this.gob_1.f8d_1; var tmp_5 = this.dob_1.s95_1; var tmp_6 = this.dob_1.hk2(); var tmp_7 = this.dob_1.t95_1; var tmp_8 = systemTimeInMillis(); suspendResult = tmp_2.kes(new EnrolmentRequest(VOID, tmp_3, tmp_4, tmp_5, tmp_6, VOID, tmp_7, this.eob_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.iob_1 = activeRepo; } protoOf(RequestEnrolmentUseCase).job = function (clazzCode, person, roleId, $completion) { var tmp = new $invokeCOROUTINE$25(this, clazzCode, person, roleId, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function SetClipboardStringUseCase() { } function Companion_36() { } var Companion_instance_85; function Companion_getInstance_53() { return Companion_instance_85; } function $serializer_33() { $serializer_instance_33 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.compress.CompressParams', this, 3); tmp0_serialDesc.g4f('maxWidth', true); tmp0_serialDesc.g4f('maxHeight', true); tmp0_serialDesc.g4f('compressionLevel', true); this.lob_1 = tmp0_serialDesc; } protoOf($serializer_33).d44 = function () { return this.lob_1; }; protoOf($serializer_33).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), IntSerializer_getInstance(), CompressionLevelSerializer_getInstance()]; }; protoOf($serializer_33).f44 = function (decoder) { var tmp0_desc = this.lob_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.v47(tmp0_desc); if (tmp7_input.k48()) { tmp4_local0 = tmp7_input.a48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.a48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.h48(tmp0_desc, 2, CompressionLevelSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.a48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.a48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.h48(tmp0_desc, 2, CompressionLevelSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.w47(tmp0_desc); return CompressParams_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_33).mob = function (encoder, value) { var tmp0_desc = this.lob_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.nob_1 === 1280)) { tmp1_output.e49(tmp0_desc, 0, value.nob_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.oob_1 === 1280)) { tmp1_output.e49(tmp0_desc, 1, value.oob_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.pob_1.equals(CompressionLevel_MEDIUM_getInstance())) { tmp1_output.l49(tmp0_desc, 2, CompressionLevelSerializer_getInstance(), value.pob_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_33).e44 = function (encoder, value) { return this.mob(encoder, value instanceof CompressParams ? value : THROW_CCE()); }; var $serializer_instance_33; function $serializer_getInstance_45() { if ($serializer_instance_33 == null) new $serializer_33(); return $serializer_instance_33; } function CompressParams_init_$Init$(seen1, maxWidth, maxHeight, compressionLevel, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_45().lob_1); } if (0 === (seen1 & 1)) $this.nob_1 = 1280; else $this.nob_1 = maxWidth; if (0 === (seen1 & 2)) $this.oob_1 = 1280; else $this.oob_1 = maxHeight; if (0 === (seen1 & 4)) $this.pob_1 = CompressionLevel_MEDIUM_getInstance(); else $this.pob_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.nob_1 = maxWidth; this.oob_1 = maxHeight; this.pob_1 = compressionLevel; } protoOf(CompressParams).toString = function () { return 'CompressParams(maxWidth=' + this.nob_1 + ', maxHeight=' + this.oob_1 + ', compressionLevel=' + this.pob_1 + ')'; }; protoOf(CompressParams).hashCode = function () { var result = this.nob_1; result = imul(result, 31) + this.oob_1 | 0; result = imul(result, 31) + this.pob_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.nob_1 === tmp0_other_with_cast.nob_1)) return false; if (!(this.oob_1 === tmp0_other_with_cast.oob_1)) return false; if (!this.pob_1.equals(tmp0_other_with_cast.pob_1)) return false; return true; }; function CompressResult(uri, mimeType, originalSize, compressedSize) { this.no3_1 = uri; this.oo3_1 = mimeType; this.po3_1 = originalSize; this.qo3_1 = compressedSize; } protoOf(CompressResult).toString = function () { return 'CompressResult(uri=' + this.no3_1 + ', mimeType=' + this.oo3_1 + ', originalSize=' + this.po3_1.toString() + ', compressedSize=' + this.qo3_1.toString() + ')'; }; protoOf(CompressResult).hashCode = function () { var result = getStringHashCode(this.no3_1); result = imul(result, 31) + getStringHashCode(this.oo3_1) | 0; result = imul(result, 31) + this.po3_1.hashCode() | 0; result = imul(result, 31) + this.qo3_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.no3_1 === tmp0_other_with_cast.no3_1)) return false; if (!(this.oo3_1 === tmp0_other_with_cast.oo3_1)) return false; if (!this.po3_1.equals(tmp0_other_with_cast.po3_1)) return false; if (!this.qo3_1.equals(tmp0_other_with_cast.qo3_1)) return false; return true; }; function CompressUseCase() { } function _get_$cachedSerializer__te6jhj($this) { return $this.rob_1.t2(); } function CompressionLevel$Companion$_anonymous__cmsj0x() { return CompressionLevelSerializer_getInstance(); } var CompressionLevel_NONE_instance; var CompressionLevel_LOWEST_instance; var CompressionLevel_LOW_instance; var CompressionLevel_MEDIUM_instance; var CompressionLevel_HIGH_instance; var CompressionLevel_HIGHEST_instance; function Companion_37() { Companion_instance_86 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.rob_1 = lazy(tmp_0, CompressionLevel$Companion$_anonymous__cmsj0x); } protoOf(Companion_37).sob = 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.vob_1 === value) { tmp$ret$1 = element; break $l$block; } } throw NoSuchElementException_init_$Create$_0('Collection contains no element matching the predicate.'); } return tmp$ret$1; }; protoOf(Companion_37).a4r = function () { return _get_$cachedSerializer__te6jhj(this); }; protoOf(Companion_37).i4g = function (typeParamsSerializers) { return this.a4r(); }; var Companion_instance_86; function Companion_getInstance_54() { CompressionLevel_initEntries(); if (Companion_instance_86 == null) new Companion_37(); return Companion_instance_86; } function values_0() { return [CompressionLevel_NONE_getInstance(), CompressionLevel_LOWEST_getInstance(), CompressionLevel_LOW_getInstance(), CompressionLevel_MEDIUM_getInstance(), CompressionLevel_HIGH_getInstance(), CompressionLevel_HIGHEST_getInstance()]; } function get_entries() { if ($ENTRIES == null) $ENTRIES = enumEntries(values_0()); return $ENTRIES; } var CompressionLevel_entriesInitialized; function CompressionLevel_initEntries() { if (CompressionLevel_entriesInitialized) return Unit_instance; CompressionLevel_entriesInitialized = true; CompressionLevel_NONE_instance = new CompressionLevel('NONE', 0, 0); CompressionLevel_LOWEST_instance = new CompressionLevel('LOWEST', 1, 1); CompressionLevel_LOW_instance = new CompressionLevel('LOW', 2, 2); CompressionLevel_MEDIUM_instance = new CompressionLevel('MEDIUM', 3, 3); CompressionLevel_HIGH_instance = new CompressionLevel('HIGH', 4, 4); CompressionLevel_HIGHEST_instance = new CompressionLevel('HIGHEST', 5, 5); Companion_getInstance_54(); } var $ENTRIES; function CompressionLevel(name, ordinal, value) { Enum.call(this, name, ordinal); this.vob_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.wob_1 = PrimitiveSerialDescriptor('CompressionLevel', INT_getInstance()); } protoOf(CompressionLevelSerializer).d44 = function () { return this.wob_1; }; protoOf(CompressionLevelSerializer).f44 = function (decoder) { return Companion_getInstance_54().sob(decoder.l47()); }; protoOf(CompressionLevelSerializer).xob = function (encoder, value) { encoder.t48(value.vob_1); }; protoOf(CompressionLevelSerializer).e44 = function (encoder, value) { return this.xob(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.bnq_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().xlo(element.fnq_1); destination.s(tmp$ret$0, element); } tmp = destination; } else { tmp = entryMap; } entryMap = tmp; this.yob_1 = manifest; this.zob_1 = entryMap; } protoOf(ContentManifestMap).aoc = function (manifestUrl, pathInContentEntryVersion) { return UrlKmp(manifestUrl).boc(pathInContentEntryVersion).toString(); }; protoOf(ContentManifestMap).toString = function () { return 'ContentManifestMap(manifest=' + this.yob_1 + ', entryMap=' + this.zob_1 + ')'; }; protoOf(ContentManifestMap).hashCode = function () { var result = this.yob_1.hashCode(); result = imul(result, 31) + hashCode(this.zob_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.yob_1.equals(tmp0_other_with_cast.yob_1)) return false; if (!equals(this.zob_1, tmp0_other_with_cast.zob_1)) return false; return true; }; function DeleteContentEntryParentChildJoinUseCase$invoke$slambda(this$0, $entries, $timeNow, $activeUserPersonUid, resultContinuation) { this.koc_1 = this$0; this.loc_1 = $entries; this.moc_1 = $timeNow; this.noc_1 = $activeUserPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DeleteContentEntryParentChildJoinUseCase$invoke$slambda).on8 = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DeleteContentEntryParentChildJoinUseCase$invoke$slambda).he = function (p1, $completion) { return this.on8(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.koc_1.toc_1.k7d(); var this_0 = this.loc_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.voc_1); } suspendResult = tmp_0.kb8(destination, true, this.moc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this; tmp_1.poc_1 = this.loc_1; this.qoc_1 = this.poc_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.qoc_1.f()) { this.hd_1 = 4; continue $sm; } this.roc_1 = this.qoc_1.e(); var tmp_2 = this; tmp_2.soc_1 = this.roc_1; this.hd_1 = 3; suspendResult = this.koc_1.toc_1.z7e().vea(this.soc_1.voc_1, this.moc_1, this.noc_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).pn8 = function (it, completion) { var i = new DeleteContentEntryParentChildJoinUseCase$invoke$slambda(this.koc_1, this.loc_1, this.moc_1, this.noc_1, completion); i.ooc_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.on8(it, $completion); }; l.$arity = 1; return l; } function DeleteContentEntryParentChildJoinUseCase(repoOrDb) { this.toc_1 = repoOrDb; } protoOf(DeleteContentEntryParentChildJoinUseCase).xoc = function (entries, activeUserPersonUid, $completion) { var timeNow = systemTimeInMillis(); return withDoorTransactionAsync(this.toc_1, VOID, DeleteContentEntryParentChildJoinUseCase$invoke$slambda_0(this, entries, timeNow, activeUserPersonUid, null), $completion); }; function Companion_38() { this.yoc_1 = 'upload-original-filename'; } var Companion_instance_87; function Companion_getInstance_55() { return Companion_instance_87; } function ContentEntryGetMetaDataFromUriUseCase() { } function ContentEntryGetMetadataStatus(indeterminate, error, processedBytes, totalBytes) { indeterminate = indeterminate === VOID ? true : indeterminate; error = error === VOID ? null : error; processedBytes = processedBytes === VOID ? new Long(0, 0) : processedBytes; totalBytes = totalBytes === VOID ? new Long(0, 0) : totalBytes; this.aod_1 = indeterminate; this.bod_1 = error; this.cod_1 = processedBytes; this.dod_1 = totalBytes; } protoOf(ContentEntryGetMetadataStatus).eod = function () { var tmp; if (!this.dod_1.equals(new Long(0, 0))) { // Inline function 'kotlin.Long.times' call tmp = this.cod_1.cb(toLong(100)).bb(this.dod_1).mb(); } else { tmp = 0; } return tmp; }; protoOf(ContentEntryGetMetadataStatus).fod = function (indeterminate, error, processedBytes, totalBytes) { return new ContentEntryGetMetadataStatus(indeterminate, error, processedBytes, totalBytes); }; protoOf(ContentEntryGetMetadataStatus).god = function (indeterminate, error, processedBytes, totalBytes, $super) { indeterminate = indeterminate === VOID ? this.aod_1 : indeterminate; error = error === VOID ? this.bod_1 : error; processedBytes = processedBytes === VOID ? this.cod_1 : processedBytes; totalBytes = totalBytes === VOID ? this.dod_1 : totalBytes; return $super === VOID ? this.fod(indeterminate, error, processedBytes, totalBytes) : $super.fod.call(this, indeterminate, error, processedBytes, totalBytes); }; protoOf(ContentEntryGetMetadataStatus).toString = function () { return 'ContentEntryGetMetadataStatus(indeterminate=' + this.aod_1 + ', error=' + this.bod_1 + ', processedBytes=' + this.cod_1.toString() + ', totalBytes=' + this.dod_1.toString() + ')'; }; protoOf(ContentEntryGetMetadataStatus).hashCode = function () { var result = getBooleanHashCode(this.aod_1); result = imul(result, 31) + (this.bod_1 == null ? 0 : getStringHashCode(this.bod_1)) | 0; result = imul(result, 31) + this.cod_1.hashCode() | 0; result = imul(result, 31) + this.dod_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.aod_1 === tmp0_other_with_cast.aod_1)) return false; if (!(this.bod_1 == tmp0_other_with_cast.bod_1)) return false; if (!this.cod_1.equals(tmp0_other_with_cast.cod_1)) return false; if (!this.dod_1.equals(tmp0_other_with_cast.dod_1)) return false; return true; }; function UnsupportedContentException(message) { Exception_init_$Init$(message, this); captureStack(this, UnsupportedContentException); } function Companion_39() { this.hod_1 = 'text/vtt'; this.iod_1 = 'filename'; this.jod_1 = 'locale'; this.kod_1 = 'WEBVTT'; } var Companion_instance_88; function Companion_getInstance_56() { return Companion_instance_88; } function GetSubtitleTrackFromUriUseCase() { } function CancelImportContentEntryUseCase() { } function $invokeCOROUTINE$26(_this__u8e3s4, cjiUid, activeUserPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vod_1 = _this__u8e3s4; this.wod_1 = cjiUid; this.xod_1 = activeUserPersonUid; } protoOf($invokeCOROUTINE$26).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp_1 = this.vod_1.ioe_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.yod_1 = tmp_2; var tmp_3 = this; tmp_3.zod_1 = this.vod_1.hoe_1; var tmp_4 = this; tmp_4.aoe_1 = this.vod_1.goe_1.in3_1 + 'api/contententryimportjob/cancel'; var tmp_5 = this; tmp_5.boe_1 = this.zod_1; var tmp_6 = this; tmp_6.coe_1 = this.boe_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.aoe_1); parameter(this_0, 'jobUid', this.wod_1); doorNodeIdHeader(this_0, this.yod_1); parameter(this_0, 'accountPersonUid', this.xod_1); header(this_0, 'cache-control', 'no-store'); tmp_7.doe_1 = this_0; this.doe_1.j38_1 = Companion_getInstance().y2w_1; var tmp_8 = this; tmp_8.eoe_1 = this.coe_1; var tmp_9 = this; tmp_9.foe_1 = this.doe_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.foe_1, this.eoe_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($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.goe_1 = learningSpace; this.hoe_1 = httpClient; this.ioe_1 = repo; } protoOf(CancelRemoteContentEntryImportUseCase).joe = function (cjiUid, activeUserPersonUid, $completion) { var tmp = new $invokeCOROUTINE$26(this, cjiUid, activeUserPersonUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function $invokeCOROUTINE$27(_this__u8e3s4, cjiUid, activeUserPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.soe_1 = _this__u8e3s4; this.toe_1 = cjiUid; this.uoe_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.soe_1.fof_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.voe_1 = tmp_2; var tmp_3 = this; tmp_3.woe_1 = this.soe_1.dof_1; var tmp_4 = this; tmp_4.xoe_1 = this.soe_1.eof_1.in3_1 + 'api/contententryimportjob/dismissError'; var tmp_5 = this; tmp_5.yoe_1 = this.woe_1; var tmp_6 = this; tmp_6.zoe_1 = this.yoe_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.xoe_1); parameter(this_0, 'jobUid', this.toe_1); doorNodeIdHeader(this_0, this.voe_1); parameter(this_0, 'accountPersonUid', this.uoe_1); header(this_0, 'cache-control', 'no-store'); tmp_7.aof_1 = this_0; this.aof_1.j38_1 = Companion_getInstance().y2w_1; var tmp_8 = this; tmp_8.bof_1 = this.zoe_1; var tmp_9 = this; tmp_9.cof_1 = this.aof_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.cof_1, this.bof_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($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.dof_1 = httpClient; this.eof_1 = learningSpace; this.fof_1 = repo; } protoOf(DismissRemoteContentEntryImportErrorUseCase).joe = function (cjiUid, activeUserPersonUid, $completion) { var tmp = new $invokeCOROUTINE$27(this, cjiUid, activeUserPersonUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function EnqueueContentEntryImportUseCase() { } function $invokeCOROUTINE$28(_this__u8e3s4, contentJobItem, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.pof_1 = _this__u8e3s4; this.qof_1 = contentJobItem; } protoOf($invokeCOROUTINE$28).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.rof_1 = this.pof_1.zof_1; var tmp_1 = this; tmp_1.sof_1 = this.pof_1.yof_1.in3_1 + 'api/import/importRequest'; var tmp_2 = this; tmp_2.tof_1 = this.rof_1; var tmp_3 = this; tmp_3.uof_1 = this.tof_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.sof_1); contentType(this_0, Application_getInstance().i2r_1); setBodyJson(this_0, this.pof_1.aog_1, Companion_instance_89.a4r(), new ImportRequest(this.qof_1)); tmp_4.vof_1 = this_0; this.vof_1.j38_1 = Companion_getInstance().z2w_1; var tmp_5 = this; tmp_5.wof_1 = this.uof_1; var tmp_6 = this; tmp_6.xof_1 = this.vof_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.xof_1, this.wof_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($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.yof_1 = learningSpace; this.zof_1 = httpClient; this.aog_1 = json; } protoOf(EnqueueImportContentEntryUseCaseRemote).gof = function (contentJobItem, $completion) { var tmp = new $invokeCOROUTINE$28(this, contentJobItem, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_40() { } protoOf(Companion_40).a4r = function () { return $serializer_getInstance_46(); }; var Companion_instance_89; function Companion_getInstance_57() { return Companion_instance_89; } function $serializer_34() { $serializer_instance_34 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.contententry.importcontent.ImportRequest', this, 1); tmp0_serialDesc.g4f('contentJobItem', false); this.bog_1 = tmp0_serialDesc; } protoOf($serializer_34).d44 = function () { return this.bog_1; }; protoOf($serializer_34).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_5()]; }; protoOf($serializer_34).f44 = function (decoder) { var tmp0_desc = this.bog_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.v47(tmp0_desc); if (tmp5_input.k48()) { tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, $serializer_getInstance_5(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.h48(tmp0_desc, 0, $serializer_getInstance_5(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.w47(tmp0_desc); return ImportRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_34).cog = function (encoder, value) { var tmp0_desc = this.bog_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.l49(tmp0_desc, 0, $serializer_getInstance_5(), value.dog_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_34).e44 = function (encoder, value) { return this.cog(encoder, value instanceof ImportRequest ? value : THROW_CCE()); }; var $serializer_instance_34; function $serializer_getInstance_46() { if ($serializer_instance_34 == null) new $serializer_34(); return $serializer_instance_34; } function ImportRequest_init_$Init$(seen1, contentJobItem, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_46().bog_1); } $this.dog_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.dog_1 = contentJobItem; } protoOf(ImportRequest).toString = function () { return 'ImportRequest(contentJobItem=' + this.dog_1 + ')'; }; protoOf(ImportRequest).hashCode = function () { return this.dog_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.dog_1.equals(tmp0_other_with_cast.dog_1)) return false; return true; }; function DefaultLaunchContentEntryVersionUseCase() { } protoOf(DefaultLaunchContentEntryVersionUseCase).eog = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { var tmp0_subject = contentEntryVersion.cat_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_119(); var tmp_0 = to('entityUid', contentEntryVersion.zas_1.toString()); Companion_getInstance_119(); var tmp_1 = to('courseBlockUid', cbUid.toString()); Companion_getInstance_119(); var tmp_2 = to('clazzUid', clazzUid.toString()); Companion_getInstance_119(); navController.fog(destName, mapOf([tmp_0, tmp_1, tmp_2, to('entryid', contentEntryVersion.aat_1.toString())])); } return new LaunchResult(); }; protoOf(DefaultLaunchContentEntryVersionUseCase).gog = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { return this.eog(contentEntryVersion, navController, clazzUid, cbUid, target, $completion); }; function LaunchResult(message) { message = message === VOID ? null : message; this.hog_1 = message; } protoOf(LaunchResult).toString = function () { return 'LaunchResult(message=' + this.hog_1 + ')'; }; protoOf(LaunchResult).hashCode = function () { return this.hog_1 == null ? 0 : getStringHashCode(this.hog_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.hog_1 == tmp0_other_with_cast.hog_1)) return false; return true; }; function LaunchContentEntryVersionUseCase() { } function LaunchEpubUseCase() { } function LaunchXapiUseCase() { } function XapiLaunchHrefResult(url, launchUriInContent, launchActivity, manifestUrl) { this.iog_1 = url; this.jog_1 = launchUriInContent; this.kog_1 = launchActivity; this.log_1 = manifestUrl; } function ResolveXapiLaunchHrefUseCase$invoke$lambda($contentEntryVersionUid) { return function () { return 'Resolving xAPI url for contentEntryVersion ' + $contentEntryVersionUid.toString(); }; } function ResolveXapiLaunchHrefUseCase$invoke$slambda($contentEntryVersionUid, resultContinuation) { this.uog_1 = $contentEntryVersionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ResolveXapiLaunchHrefUseCase$invoke$slambda).wog = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ResolveXapiLaunchHrefUseCase$invoke$slambda).he = function (p1, $completion) { return this.wog(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.vog_1.v7e().ybk(this.uog_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).pn8 = function (it, completion) { var i = new ResolveXapiLaunchHrefUseCase$invoke$slambda(this.uog_1, completion); i.vog_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.wog(it, $completion); }; l.$arity = 1; return l; } function ResolveXapiLaunchHrefUseCase$invoke$lambda_0($contentEntryVersionUid, $url) { return function () { return 'Resolved xAPI url for contentEntryVersion ' + $contentEntryVersionUid.toString() + ' : ' + $url; }; } function $invokeCOROUTINE$29(_this__u8e3s4, contentEntryVersionUid, clazzUid, cbUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.foh_1 = _this__u8e3s4; this.goh_1 = contentEntryVersionUid; this.hoh_1 = clazzUid; this.ioh_1 = cbUid; } protoOf($invokeCOROUTINE$29).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 7; var tmp_0 = Napier_getInstance(); tmp_0.r5d(VOID, VOID, ResolveXapiLaunchHrefUseCase$invoke$lambda(this.goh_1)); this.hd_1 = 1; suspendResult = localFirstThenRepoIfNull(this.foh_1.moi_1, ResolveXapiLaunchHrefUseCase$invoke$slambda_0(this.goh_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.joh_1 = suspendResult; var tmp_1 = this; var tmp_2; if (this.joh_1 == null) { throw IllegalArgumentException_init_$Create$('could not load contententryversion ' + this.goh_1.toString()); } else { tmp_2 = this.joh_1; } tmp_1.koh_1 = tmp_2; var tmp_3 = this; var tmp1_elvis_lhs = this.koh_1.dat_1; var tmp_4; if (tmp1_elvis_lhs == null) { throw IllegalStateException_init_$Create$('ContentEntryVersion ' + this.goh_1.toString() + ' manifesturl is null'); } else { tmp_4 = tmp1_elvis_lhs; } tmp_3.loh_1 = tmp_4; var tmp_5 = this; tmp_5.moh_1 = this.foh_1.ooi_1; var tmp_6 = this; tmp_6.noh_1 = this.foh_1.noi_1; var tmp_7 = this; tmp_7.ooh_1 = this.loh_1; var tmp_8 = this; tmp_8.poh_1 = this.noh_1; var tmp_9 = this; tmp_9.qoh_1 = this.poh_1; var tmp_10 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.ooh_1); tmp_10.roh_1 = this_0; this.roh_1.j38_1 = Companion_getInstance().y2w_1; var tmp_11 = this; tmp_11.soh_1 = this.qoh_1; var tmp_12 = this; tmp_12.toh_1 = this.roh_1; this.hd_1 = 2; suspendResult = (new HttpStatement(this.toh_1, this.soh_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.uoh_1 = suspendResult; this.hd_1 = 3; suspendResult = bodyAsDecodedText(this.uoh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.voh_1 = suspendResult; var tmp_13 = this; var this_1 = this.moh_1.g45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_13.woh_1 = this.moh_1.f45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.voh_1); this.xoh_1 = requireEntryByUri(this.woh_1, ensureNotNull(this.koh_1.bat_1)); var tmp_14 = this; tmp_14.yoh_1 = this.foh_1.noi_1; var tmp_15 = this; tmp_15.zoh_1 = this.xoh_1.nnq_1; var tmp_16 = this; tmp_16.aoi_1 = this.yoh_1; var tmp_17 = this; tmp_17.boi_1 = this.aoi_1; var tmp_18 = this; var this_3 = new HttpRequestBuilder(); url(this_3, this.zoh_1); tmp_18.coi_1 = this_3; this.coi_1.j38_1 = Companion_getInstance().y2w_1; var tmp_19 = this; tmp_19.doi_1 = this.boi_1; var tmp_20 = this; tmp_20.eoi_1 = this.coi_1; this.hd_1 = 4; suspendResult = (new HttpStatement(this.eoi_1, this.doi_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.foi_1 = suspendResult; this.hd_1 = 5; suspendResult = bodyAsDecodedText(this.foi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.goi_1 = suspendResult; this.hoi_1 = this.foh_1.poi_1.l7c(); setInputString(this.hoi_1, this.goi_1); this.ioi_1 = Companion_instance_127.voi(this.hoi_1); var tmp_21 = this; var tmp2_safe_receiver = this.ioi_1.woi_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.eoj_1; var tmp_22; if (tmp3_elvis_lhs == null) { throw IllegalStateException_init_$Create$('ContentEntryVersion ' + this.goh_1.toString() + ' manifesturl is null'); } else { tmp_22 = tmp3_elvis_lhs; } tmp_21.joi_1 = tmp_22; var tmp_23 = this; var tmp4_safe_receiver = this.ioi_1.woi_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.boj_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.koi_1 = tmp_24; this.loi_1 = this.foh_1.soi_1.rnj().en4_1.s95_1; this.hd_1 = 6; suspendResult = this.foh_1.qoi_1.hoj(this.loi_1, this.foh_1.soi_1.rnj().jn4(), this.koi_1, this.hoh_1, this.ioh_1, this.koh_1.aat_1, this.goh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: var xapiSession = suspendResult; var queryParams = mapOf([to('endpoint', this.foh_1.roi_1.xnr('/api/xapi/')), to('auth', authorizationHeader(xapiSession)), to('actor', this.foh_1.ooi_1.e45(Companion_instance_105.a4r(), agent(xapiSession, this.foh_1.toi_1))), to('registration', get_registrationUuid(xapiSession).toString()), to('activity_id', xapiSession.gjc_1)]); var url_0 = appendQueryArgs(UMFileUtil_getInstance().noj(this.loh_1, this.joi_1), queryParams); var tinCanXmlPathPrefix = substringBeforeLast(ensureNotNull(this.koh_1.bat_1), '/', ''); var tmp_25 = Napier_getInstance(); tmp_25.r5d(VOID, VOID, ResolveXapiLaunchHrefUseCase$invoke$lambda_0(this.goh_1, url_0)); return new XapiLaunchHrefResult(url_0, appendQueryArgs(tinCanXmlPathPrefix + this.joi_1, queryParams), ensureNotNull(this.ioi_1.woi_1), this.loh_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.moi_1 = activeRepoOrDb; this.noi_1 = httpClient; this.ooi_1 = json; this.poi_1 = xppFactory; this.qoi_1 = resumeOrStartXapiSessionUseCase; this.roi_1 = getApiUrlUseCase; this.soi_1 = accountManager; this.toi_1 = learningSpace; } protoOf(ResolveXapiLaunchHrefUseCase).ooj = function (contentEntryVersionUid, clazzUid, cbUid, $completion) { var tmp = new $invokeCOROUTINE$29(this, contentEntryVersionUid, clazzUid, cbUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function MoveContentEntriesUseCase(repo, systemImpl) { this.poj_1 = repo; this.qoj_1 = systemImpl; } protoOf(MoveContentEntriesUseCase).roj = 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.uoc_1.equals(destContentEntry.bar_1)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) { throw IllegalArgumentException_init_$Create$(this.qoj_1.ant(strings_getInstance().pmx_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.woc_1.equals(destContentEntry.bar_1)) { tmp$ret$2 = true; break $l$block_2; } } tmp$ret$2 = false; } if (tmp$ret$2) { throw IllegalArgumentException_init_$Create$(this.qoj_1.ant(strings_getInstance().qmx_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.voc_1; destination.i1(tmp$ret$4); } var uidsToMove = destination; if (uidsToMove.c1()) return Unit_instance; return this.poj_1.k7d().jb8(destContentEntry.bar_1, uidsToMove, systemTimeInMillis(), $completion); }; function SaveContentEntryUseCase$invoke$slambda$lambda($picture) { return function () { return 'SavePictureUseCase: ContentEntry Set picture upsert uri = ' + $picture.tas_1 + ' uid=' + $picture.ras_1.toString(); }; } function SaveContentEntryUseCase$invoke$slambda($effectiveDb, $contentEntry, $picture, $initPictureUri, this$0, $joinToParentUid, resultContinuation) { this.aok_1 = $effectiveDb; this.bok_1 = $contentEntry; this.cok_1 = $picture; this.dok_1 = $initPictureUri; this.eok_1 = this$0; this.fok_1 = $joinToParentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveContentEntryUseCase$invoke$slambda).on8 = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SaveContentEntryUseCase$invoke$slambda).he = function (p1, $completion) { return this.on8(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.aok_1.i7d().faq(this.bok_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.cok_1 == null) ? !(this.cok_1.tas_1 == this.dok_1) : false) { var tmp_0 = Napier_getInstance(); tmp_0.r5d(VOID, VOID, SaveContentEntryUseCase$invoke$slambda$lambda(this.cok_1)); this.hd_1 = 2; suspendResult = this.eok_1.hok_1.e7f().mbd(listOf_0(this.cok_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.fok_1 == null)) { this.hd_1 = 4; suspendResult = this.aok_1.k7d().insertAsync(new ContentEntryParentChildJoin(this.fok_1, this.bok_1.bar_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).pn8 = function (it, completion) { var i = new SaveContentEntryUseCase$invoke$slambda(this.aok_1, this.bok_1, this.cok_1, this.dok_1, this.eok_1, this.fok_1, completion); i.gok_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.on8(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$30(_this__u8e3s4, contentEntry, joinToParentUid, picture, initPictureUri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sok_1 = _this__u8e3s4; this.tok_1 = contentEntry; this.uok_1 = joinToParentUid; this.vok_1 = picture; this.wok_1 = initPictureUri; } protoOf($invokeCOROUTINE$30).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var tmp0_elvis_lhs = this.sok_1.iok_1; tmp_0.xok_1 = tmp0_elvis_lhs == null ? this.sok_1.hok_1 : tmp0_elvis_lhs; this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.xok_1, VOID, SaveContentEntryUseCase$invoke$slambda_0(this.xok_1, this.tok_1, this.vok_1, this.wok_1, this.sok_1, this.uok_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.vok_1 == null) ? !(this.vok_1.tas_1 == this.wok_1) : false) { this.hd_1 = 2; var tmp_1 = this.vok_1.ras_1; suspendResult = this.sok_1.jok_1.po1(tmp_1, 6678, this.vok_1.tas_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.hok_1 = db; this.iok_1 = repo; this.jok_1 = enqueueSavePictureUseCase; } protoOf(SaveContentEntryUseCase).yok = function (contentEntry, joinToParentUid, picture, initPictureUri, $completion) { var tmp = new $invokeCOROUTINE$30(this, contentEntry, joinToParentUid, picture, initPictureUri, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function AddOrUpdateCourseBlockUseCase() { } protoOf(AddOrUpdateCourseBlockUseCase).zok = 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.zjk_1.g7x_1.equals(addOrUpdateBlock.zjk_1.g7x_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.ljl(addOrUpdateBlock.zjk_1.mjx(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.zjk_1.j7x_1.equals(parentModUid) ? true : !(item.zjk_1.t7x_1 === index_0)) { tmp = item.ljl(item.zjk_1.mjx(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).zjk_1; var tmp = block.h7x_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.zjk_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.h7x_1; if (tmp_2 === 100) { tmp_1 = 1; } else { tmp_1 = prevBlock.i7x_1; } var autoIndent = tmp_1; var tmp_3; if (!(block.i7x_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).ljl(this_0.v(index).zjk_1.mjx(VOID, VOID, autoIndent))); tmp_3 = toList(this_0); } else { tmp_3 = _this__u8e3s4; } return tmp_3; } function findParentModule(_this__u8e3s4, forBlock) { var tmp = forBlock.zjk_1.h7x_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.zjk_1.g7x_1.equals(forBlock.zjk_1.g7x_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.zjk_1.h7x_1; if (tmp_2 === 100) { tmp_1 = prevBlock.zjk_1.g7x_1; } else { if (prevBlock.zjk_1.i7x_1 >= 1) { tmp_1 = prevBlock.zjk_1.j7x_1; } else { tmp_1 = new Long(0, 0); } } return tmp_1; } function UpdateCourseBlocksOnReorderOrCommitUseCase() { } protoOf(UpdateCourseBlocksOnReorderOrCommitUseCase).aol = function (currentList, autoIndentIndex) { var tmp; if (autoIndentIndex >= 0) { tmp = autoIndent(currentList, autoIndentIndex); } else { tmp = currentList; } var listIndented = tmp; return updateParentModuleUidsAndIndex(listIndented); }; protoOf(UpdateCourseBlocksOnReorderOrCommitUseCase).bol = function (currentList, autoIndentIndex, $super) { autoIndentIndex = autoIndentIndex === VOID ? -1 : autoIndentIndex; return $super === VOID ? this.aol(currentList, autoIndentIndex) : $super.aol.call(this, currentList, autoIndentIndex); }; function DeletePermanentlyUseCase(repoOrDb) { this.col_1 = repoOrDb; } protoOf(DeletePermanentlyUseCase).dol = function (items, $completion) { var timeNow = systemTimeInMillis(); var tmp = this.col_1.z7e(); // 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.yea_1; destination.i1(tmp$ret$0); } var tmp_0 = destination; return tmp.xea(tmp_0, 3, timeNow, $completion); }; function RestoreDeletedItemUseCase$invoke$slambda($itemsByType, this$0, $timeNow, $items, resultContinuation) { this.mol_1 = $itemsByType; this.nol_1 = this$0; this.ool_1 = $timeNow; this.pol_1 = $items; CoroutineImpl.call(this, resultContinuation); } protoOf(RestoreDeletedItemUseCase$invoke$slambda).on8 = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(RestoreDeletedItemUseCase$invoke$slambda).he = function (p1, $completion) { return this.on8(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.rol_1 = this.mol_1; var tmp_1 = this; tmp_1.sol_1 = this.rol_1.q2().w(); this.hd_1 = 1; continue $sm; case 1: if (!this.sol_1.f()) { this.hd_1 = 4; continue $sm; } this.tol_1 = this.sol_1.e(); var tmp_2 = this; tmp_2.uol_1 = this.tol_1; this.vol_1 = this.uol_1.s2(); if (this.vol_1 === 7) { this.hd_1 = 2; var tmp_3 = this.nol_1.wol_1.k7d(); var this_0 = this.uol_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.eeb_1); } suspendResult = tmp_3.kb8(destination, false, this.ool_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.nol_1.wol_1.z7e(); var this_1 = this.pol_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.yea_1); } suspendResult = tmp_4.xea(destination_0, 2, this.ool_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).pn8 = function (it, completion) { var i = new RestoreDeletedItemUseCase$invoke$slambda(this.mol_1, this.nol_1, this.ool_1, this.pol_1, completion); i.qol_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.on8(it, $completion); }; l.$arity = 1; return l; } function RestoreDeletedItemUseCase(repoOrDb) { this.wol_1 = repoOrDb; } protoOf(RestoreDeletedItemUseCase).dol = 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.deb_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.wol_1, VOID, RestoreDeletedItemUseCase$invoke$slambda_0(itemsByType, this, timeNow, items, null), $completion); }; function toEpubTocItem(_this__u8e3s4, $this, indentLevel, parentUids) { var uid = $this.yol_1.atomicfu$incrementAndGet(); var uidsForChildren = plus_2(parentUids, uid); var tmp8_uid = $this.yol_1.atomicfu$incrementAndGet(); var tmp0_safe_receiver = _this__u8e3s4.knl_1; var tmp2_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.anl_1; var tmp; if (tmp2_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.lnl_1; tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.anm_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.knl_1; var tmp10_href = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.bnl_1; var tmp5_safe_receiver = _this__u8e3s4.mnl_1; var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.znl_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.yol_1.atomicfu$incrementAndGet(); var uidsForChildren = plus_2(parentUids, uid); var tmp0_safe_receiver = firstOrNull(_this__u8e3s4.znm_1); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rnm_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.mnn_1; var tmp3_label = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; var tmp4_href = _this__u8e3s4.ann_1.gnm_1; // Inline function 'kotlin.collections.map' call var this_0 = _this__u8e3s4.cnn_1; // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.epub.GetEpubTableOfContentsUseCase.toTocItem.' call var tmp$ret$0 = toTocItem(item, $this, indentLevel + 1 | 0, uidsForChildren); destination.i1(tmp$ret$0); } return new EpubTocItem(uid, tmp3_label, tmp4_href, destination, parentUids, indentLevel); } function $invokeCOROUTINE$31(_this__u8e3s4, opfPackage, readItemText, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hom_1 = _this__u8e3s4; this.iom_1 = opfPackage; this.jom_1 = readItemText; } protoOf($invokeCOROUTINE$31).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.kom_1 = this.iom_1.qnp(); if (!(this.kom_1 == null) ? startsWith(this.kom_1.lno_1, 'application/xhtml') : false) { this.hd_1 = 2; suspendResult = this.jom_1(this.kom_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_0; if (!(this.kom_1 == null)) { tmp_0 = this.kom_1.lno_1 === 'application/x-dtbncx+xml'; } else { tmp_0 = false; } if (tmp_0) { this.hd_1 = 1; suspendResult = this.jom_1(this.kom_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this; tmp_1.lom_1 = null; this.hd_1 = 3; continue $sm; } } case 1: var docStr = suspendResult; var this_0 = this.hom_1.xol_1; var this_1 = this_0.g45(); var this_2 = serializer(this_1, createKType(getKClass(NcxDocument), arrayOf([]), false)); var ncxDoc = this_0.f45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), docStr); var tmp_2 = this; var this_3 = ncxDoc.jnn_1.vnm_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.hom_1, 0, emptySet()); var list = plus(listOf_0(it), it.pom_1); addAll(destination, list); } tmp_2.lom_1 = destination; this.hd_1 = 3; continue $sm; case 2: var docStr_0 = suspendResult; var this_4 = this.hom_1.xol_1; var this_5 = this_4.g45(); var this_6 = serializer(this_5, createKType(getKClass(NavigationDocument), arrayOf([]), false)); var navDoc = this_4.f45(isInterface(this_6, KSerializer) ? this_6 : THROW_CCE(), docStr_0); var tmp_3 = this; var this_7 = first_0(navDoc.vnl_1.enl_1).qnl_1.znl_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.hom_1, 0, emptySet()); var list_0 = plus(listOf_0(it_0), it_0.pom_1); addAll(destination_0, list_0); } tmp_3.lom_1 = destination_0; this.hd_1 = 3; continue $sm; case 3: return this.lom_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.xol_1 = xml; this.yol_1 = atomic$int$1(0); } protoOf(GetEpubTableOfContentsUseCase).tom = function (opfPackage, readItemText, $completion) { var tmp = new $invokeCOROUTINE$31(this, opfPackage, readItemText, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function GetApiUrlUseCase() { } function GetApiUrlUseCaseDirect(learningSpace) { this.uom_1 = learningSpace; } protoOf(GetApiUrlUseCaseDirect).xnr = function (path) { return requirePostfix(this.uom_1.in3_1, '/') + removePrefix(path, '/'); }; function VersionInfo(versionString, buildTime) { this.vom_1 = versionString; this.wom_1 = buildTime; } protoOf(VersionInfo).toString = function () { return 'VersionInfo(versionString=' + this.vom_1 + ', buildTime=' + this.wom_1.toString() + ')'; }; protoOf(VersionInfo).hashCode = function () { var result = getStringHashCode(this.vom_1); result = imul(result, 31) + this.wom_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.vom_1 === tmp0_other_with_cast.vom_1)) return false; if (!this.wom_1.equals(tmp0_other_with_cast.wom_1)) return false; return true; }; function GetVersionUseCase() { } function GetHtmlContentDisplayEngineOptionsUseCase(optionsList) { this.yom_1 = optionsList; } protoOf(GetHtmlContentDisplayEngineOptionsUseCase).xom = function () { return this.yom_1; }; function GetHtmlContentDisplayEngineUseCase(settings, getOptionsUseCase) { this.zom_1 = settings; this.aon_1 = getOptionsUseCase; } protoOf(GetHtmlContentDisplayEngineUseCase).xom = function () { // Inline function 'com.russhwolf.settings.get' call var this_0 = this.zom_1; var key = 'com.ustadmobile.htmlcontentdisplayengine'; var settingInt = this_0.blj(key, 0); var tmp$ret$2; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.aon_1.xom().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.htmlcontentdisplayengine.GetHtmlContentDisplayEngineUseCase.invoke.' call if (element.bon_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.aon_1.xom()) : tmp0_elvis_lhs; }; function Companion_41() { this.eon_1 = 'com.ustadmobile.htmlcontentdisplayengine'; } var Companion_instance_90; function Companion_getInstance_58() { return Companion_instance_90; } function SetHtmlContentDisplayEngineUseCase(settings) { this.fon_1 = settings; } function ClazzInviteRedeemException(message, stringResource) { Exception_init_$Init$(message, this); captureStack(this, ClazzInviteRedeemException); this.gon_1 = stringResource; } protoOf(ClazzInviteRedeemException).hon = function () { return this.gon_1; }; function ClazzInviteRedeemUseCase$invoke$slambda($effectiveDb, $clazzInvite, $enrolmentUid, resultContinuation) { this.qon_1 = $effectiveDb; this.ron_1 = $clazzInvite; this.son_1 = $enrolmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemUseCase$invoke$slambda).on8 = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzInviteRedeemUseCase$invoke$slambda).he = function (p1, $completion) { return this.on8(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.qon_1.g7d().z92(this.ron_1.n9m_1, this.son_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_0 = this.qon_1.r7f(); suspendResult = tmp_0.y9l(1, this.ron_1.n9m_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).pn8 = function (it, completion) { var i = new ClazzInviteRedeemUseCase$invoke$slambda(this.qon_1, this.ron_1, this.son_1, completion); i.ton_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.on8(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$32(_this__u8e3s4, inviteCode, isAccepting, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.coo_1 = _this__u8e3s4; this.doo_1 = inviteCode; this.eoo_1 = isAccepting; this.foo_1 = personUid; } protoOf($invokeCOROUTINE$32).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; var tmp_0 = this; var tmp0_elvis_lhs = this.coo_1.moo_1; tmp_0.goo_1 = tmp0_elvis_lhs == null ? this.coo_1.loo_1 : tmp0_elvis_lhs; this.hd_1 = 1; suspendResult = this.goo_1.r7f().w9l(this.doo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hoo_1 = suspendResult; var tmp_1 = this; var tmp1_safe_receiver = this.hoo_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.x9m_1; var tmp_2; if (tmp2_elvis_lhs == null) { throw new ClazzInviteRedeemException('Invite not found', strings_getInstance().emz_1); } else { tmp_2 = tmp2_elvis_lhs; } tmp_1.ioo_1 = tmp_2; var tmp_3 = this.ioo_1.u9m_1; if (!(tmp_3 === 0)) { throw new ClazzInviteRedeemException('Invite already used', strings_getInstance().un1_1); } if (this.eoo_1) { this.hd_1 = 3; var tmp_4 = ClazzEnrolment_init_$Create$(this.ioo_1.q9m_1, this.foo_1, this.ioo_1.p9m_1.mb()); var tmp3_elvis_lhs = this.hoo_1.y9m_1; suspendResult = this.coo_1.koo_1.go9(tmp_4, 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_5 = this.goo_1.r7f(); suspendResult = tmp_5.y9l(2, this.ioo_1.n9m_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: return new ClazzRedeemResult(true, 'Invitation Declined'); case 3: this.joo_1 = suspendResult; this.hd_1 = 4; suspendResult = withDoorTransactionAsync(this.goo_1, VOID, ClazzInviteRedeemUseCase$invoke$slambda_0(this.goo_1, this.ioo_1, this.joo_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: return new ClazzRedeemResult(true, 'Invite code redeemed successfully'); 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) { this.koo_1 = enrolIntoCourseUseCase; this.loo_1 = db; this.moo_1 = repo; } protoOf(ClazzInviteRedeemUseCase).noo = function (inviteCode, isAccepting, personUid, $completion) { var tmp = new $invokeCOROUTINE$32(this, inviteCode, isAccepting, personUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function ClazzRedeemResult(isCodeRedeem, message) { this.ooo_1 = isCodeRedeem; this.poo_1 = message; } protoOf(ClazzRedeemResult).toString = function () { return 'ClazzRedeemResult(isCodeRedeem=' + this.ooo_1 + ', message=' + this.poo_1 + ')'; }; protoOf(ClazzRedeemResult).hashCode = function () { var result = getBooleanHashCode(this.ooo_1); result = imul(result, 31) + getStringHashCode(this.poo_1) | 0; return result; }; 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.ooo_1 === tmp0_other_with_cast.ooo_1)) return false; if (!(this.poo_1 === tmp0_other_with_cast.poo_1)) return false; return true; }; function ContactToServerUseCase$invoke$lambda($respose) { return function () { return 'ContactToServerUseCase:- ' + $respose; }; } function ContactToServerUseCase$invoke$lambda_0($e) { return function () { return 'ContactToServerUseCase:- exception ' + $e; }; } function $invokeCOROUTINE$33(_this__u8e3s4, contacts, clazzUid, role, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.yoo_1 = _this__u8e3s4; this.zoo_1 = contacts; this.aop_1 = clazzUid; this.bop_1 = role; this.cop_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 = 4; this.id_1 = 3; var tmp_0 = this; tmp_0.dop_1 = this.yoo_1.lop_1; var tmp_1 = this; tmp_1.eop_1 = this.yoo_1.mop_1.in3_1 + 'api/inviteuser/sendcontacts'; var tmp_2 = this; tmp_2.fop_1 = this.dop_1; var tmp_3 = this; tmp_3.gop_1 = this.fop_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.eop_1); contentType(this_0, Application_getInstance().i2r_1); setBodyJson(this_0, this.yoo_1.nop_1, Companion_getInstance_59().a4r(), new ContactUploadRequest(this.zoo_1, this.aop_1, this.bop_1, this.cop_1)); tmp_4.hop_1 = this_0; this.hop_1.j38_1 = Companion_getInstance().z2w_1; var tmp_5 = this; tmp_5.iop_1 = this.gop_1; var tmp_6 = this; tmp_6.jop_1 = this.hop_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.jop_1, this.iop_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.kop_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.kop_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var respose = suspendResult; var tmp_7 = Napier_getInstance(); tmp_7.x5d(VOID, VOID, ContactToServerUseCase$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.x5d(VOID, VOID, ContactToServerUseCase$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 ContactToServerUseCase(httpClient, learningSpace, json) { this.lop_1 = httpClient; this.mop_1 = learningSpace; this.nop_1 = json; } protoOf(ContactToServerUseCase).pop = function (contacts, clazzUid, role, personUid, $completion) { var tmp = new $invokeCOROUTINE$33(this, contacts, clazzUid, role, personUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_42() { Companion_instance_91 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.oop_1 = [new ArrayListSerializer(StringSerializer_getInstance()), null, null, null]; } protoOf(Companion_42).a4r = function () { return $serializer_getInstance_47(); }; var Companion_instance_91; function Companion_getInstance_59() { if (Companion_instance_91 == null) new Companion_42(); return Companion_instance_91; } function $serializer_35() { $serializer_instance_35 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.invite.ContactUploadRequest', this, 4); tmp0_serialDesc.g4f('contacts', false); tmp0_serialDesc.g4f('clazzUid', false); tmp0_serialDesc.g4f('role', false); tmp0_serialDesc.g4f('personUid', false); this.qop_1 = tmp0_serialDesc; } protoOf($serializer_35).d44 = function () { return this.qop_1; }; protoOf($serializer_35).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_59().oop_1[0], LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_35).f44 = function (decoder) { var tmp0_desc = this.qop_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.v47(tmp0_desc); var tmp9_cached = Companion_getInstance_59().oop_1; if (tmp8_input.k48()) { tmp4_local0 = tmp8_input.h48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.b48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.b48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.b48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.h48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.b48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.b48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.b48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.w47(tmp0_desc); return ContactUploadRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_35).rop = function (encoder, value) { var tmp0_desc = this.qop_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_59().oop_1; tmp1_output.l49(tmp0_desc, 0, tmp2_cached[0], value.sop_1); tmp1_output.f49(tmp0_desc, 1, value.top_1); tmp1_output.f49(tmp0_desc, 2, value.uop_1); tmp1_output.f49(tmp0_desc, 3, value.vop_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_35).e44 = function (encoder, value) { return this.rop(encoder, value instanceof ContactUploadRequest ? value : THROW_CCE()); }; var $serializer_instance_35; function $serializer_getInstance_47() { if ($serializer_instance_35 == null) new $serializer_35(); return $serializer_instance_35; } function ContactUploadRequest_init_$Init$(seen1, contacts, clazzUid, role, personUid, serializationConstructorMarker, $this) { if (!(15 === (15 & seen1))) { throwMissingFieldException(seen1, 15, $serializer_getInstance_47().qop_1); } $this.sop_1 = contacts; $this.top_1 = clazzUid; $this.uop_1 = role; $this.vop_1 = personUid; return $this; } function ContactUploadRequest_init_$Create$(seen1, contacts, clazzUid, role, personUid, serializationConstructorMarker) { return ContactUploadRequest_init_$Init$(seen1, contacts, clazzUid, role, personUid, serializationConstructorMarker, objectCreate(protoOf(ContactUploadRequest))); } function ContactUploadRequest(contacts, clazzUid, role, personUid) { Companion_getInstance_59(); this.sop_1 = contacts; this.top_1 = clazzUid; this.uop_1 = role; this.vop_1 = personUid; } protoOf(ContactUploadRequest).toString = function () { return 'ContactUploadRequest(contacts=' + this.sop_1 + ', clazzUid=' + this.top_1.toString() + ', role=' + this.uop_1.toString() + ', personUid=' + this.vop_1.toString() + ')'; }; protoOf(ContactUploadRequest).hashCode = function () { var result = hashCode(this.sop_1); result = imul(result, 31) + this.top_1.hashCode() | 0; result = imul(result, 31) + this.uop_1.hashCode() | 0; result = imul(result, 31) + this.vop_1.hashCode() | 0; return result; }; protoOf(ContactUploadRequest).equals = function (other) { if (this === other) return true; if (!(other instanceof ContactUploadRequest)) return false; var tmp0_other_with_cast = other instanceof ContactUploadRequest ? other : THROW_CCE(); if (!equals(this.sop_1, tmp0_other_with_cast.sop_1)) return false; if (!this.top_1.equals(tmp0_other_with_cast.top_1)) return false; if (!this.uop_1.equals(tmp0_other_with_cast.uop_1)) return false; if (!this.vop_1.equals(tmp0_other_with_cast.vop_1)) return false; return true; }; function isValidUserName($this, username) { return startsWith(username, '@'); } function ParseInviteUseCase(phoneNumValidatorUseCase, validateEmailUseCase) { this.wop_1 = phoneNumValidatorUseCase; this.xop_1 = validateEmailUseCase; } protoOf(ParseInviteUseCase).xnr = function (text) { // Inline function 'kotlin.collections.map' call var this_0 = split(text, [',']); // 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$1 = toString(trim(isCharSequence(item) ? item : THROW_CCE())); destination.i1(tmp$ret$1); } var parts = distinct(destination); // Inline function 'kotlin.collections.mutableListOf' call var validatedChips = ArrayList_init_$Create$(); var inductionVariable = 0; var last = parts.u() - 1 | 0; if (inductionVariable <= last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; // Inline function 'kotlin.text.trim' call var this_1 = parts.v(i); var part = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())); if (!(this.xop_1.xnr(part) == null)) { validatedChips.i1(new InviteViaContactChip(part, true, 1)); } else if (this.wop_1.yop(part)) { validatedChips.i1(new InviteViaContactChip(part, true, 2)); } else if (isValidUserName(this, part)) { validatedChips.i1(new InviteViaContactChip(part, true, 3)); } else { validatedChips.i1(new InviteViaContactChip(part, false, 0)); } } while (inductionVariable <= last); return validatedChips; }; function SetLangResult(waitForRestart) { this.zop_1 = waitForRestart; } protoOf(SetLangResult).toString = function () { return 'SetLangResult(waitForRestart=' + this.zop_1 + ')'; }; protoOf(SetLangResult).hashCode = function () { return getBooleanHashCode(this.zop_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.zop_1 === tmp0_other_with_cast.zop_1)) return false; return true; }; function SetLanguageUseCase() { } function LaunchOpenLicensesUseCase() { } function GoToLearningSpaceUseCase() { } function GetLocalAccountsSupportedUseCase(localAccountsSupported) { this.doq_1 = localAccountsSupported; } protoOf(GetLocalAccountsSupportedUseCase).xom = function () { return this.doq_1; }; function CheckContentLocalAvailabilityUseCase() { } function Companion_43() { this.foq_1 = 'local_sharing_enabled'; } var Companion_instance_92; function Companion_getInstance_60() { return Companion_instance_92; } function SetLocalSharingEnabledUseCase(settings) { this.goq_1 = settings; } function MakeLinkUseCase(learningSpace) { this.hoq_1 = learningSpace; } protoOf(MakeLinkUseCase).ioq = function (destName, args) { var tmp = UMFileUtil_getInstance(); Companion_getInstance_88(); return appendQueryArgs_0(tmp.joq([this.hoq_1.in3_1, '/umapp/#/']) + destName, toQueryString(args)); }; function OnClickLinkUseCase_init_$Init$(navController, accountManager, openExternalLinkUseCase, apiUrlConfig, $this) { OnClickLinkUseCase.call($this, navController, accountManager, openExternalLinkUseCase, apiUrlConfig.jnk_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.koq_1 = navController; this.loq_1 = accountManager; this.moq_1 = openExternalLinkUseCase; this.noq_1 = userCanSelectServer; } protoOf(OnClickLinkUseCase).ooq = function (link, target) { navigateToLink(this.koq_1, link, this.loq_1, this.moq_1, VOID, VOID, this.noq_1, VOID, VOID, target); }; var LinkTarget_BLANK_instance; var LinkTarget_TOP_instance; var LinkTarget_SELF_instance; var LinkTarget_DEFAULT_instance; function Companion_44() { } protoOf(Companion_44).als = 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_93; function Companion_getInstance_61() { return Companion_instance_93; } 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 CreatePasskeyParams(username, personUid, doorNodeId, usStartTime, serverUrl, person) { this.poq_1 = username; this.qoq_1 = personUid; this.roq_1 = doorNodeId; this.soq_1 = usStartTime; this.toq_1 = serverUrl; this.uoq_1 = person; } protoOf(CreatePasskeyParams).toString = function () { return 'CreatePasskeyParams(username=' + this.poq_1 + ', personUid=' + this.qoq_1 + ', doorNodeId=' + this.roq_1 + ', usStartTime=' + this.soq_1.toString() + ', serverUrl=' + this.toq_1 + ', person=' + this.uoq_1 + ')'; }; protoOf(CreatePasskeyParams).hashCode = function () { var result = getStringHashCode(this.poq_1); result = imul(result, 31) + getStringHashCode(this.qoq_1) | 0; result = imul(result, 31) + getStringHashCode(this.roq_1) | 0; result = imul(result, 31) + this.soq_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.toq_1) | 0; result = imul(result, 31) + this.uoq_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.poq_1 === tmp0_other_with_cast.poq_1)) return false; if (!(this.qoq_1 === tmp0_other_with_cast.qoq_1)) return false; if (!(this.roq_1 === tmp0_other_with_cast.roq_1)) return false; if (!this.soq_1.equals(tmp0_other_with_cast.soq_1)) return false; if (!(this.toq_1 === tmp0_other_with_cast.toq_1)) return false; if (!this.uoq_1.equals(tmp0_other_with_cast.uoq_1)) return false; return true; }; function CreatePasskeyUseCase() { } function PasswordCredentialResult() { } function PasskeyCredentialResult() { } function Error_1() { } function CredentialResult() { } function GetCredentialUseCase() { } function PasskeyRequestJsonUseCase(systemImpl, json) { this.xoq_1 = systemImpl; this.yoq_1 = json; } function Companion_45() { } var Companion_instance_94; function Companion_getInstance_62() { return Companion_instance_94; } function $serializer_36() { $serializer_instance_36 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.passkey.PasskeyVerifyResult', this, 4); tmp0_serialDesc.g4f('isVerified', false); tmp0_serialDesc.g4f('personUid', false); tmp0_serialDesc.g4f('firstName', true); tmp0_serialDesc.g4f('lastName', true); this.zoq_1 = tmp0_serialDesc; } protoOf($serializer_36).d44 = function () { return this.zoq_1; }; protoOf($serializer_36).x4f = 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).f44 = function (decoder) { var tmp0_desc = this.zoq_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.v47(tmp0_desc); if (tmp8_input.k48()) { tmp4_local0 = tmp8_input.x47(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.b48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.x47(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.b48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.w47(tmp0_desc); return PasskeyVerifyResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_36).aor = function (encoder, value) { var tmp0_desc = this.zoq_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.b49(tmp0_desc, 0, value.ynf_1); tmp1_output.f49(tmp0_desc, 1, value.znf_1); if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.ang_1 == null)) { tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.ang_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.bng_1 == null)) { tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.bng_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_36).e44 = function (encoder, value) { return this.aor(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().zoq_1); } $this.ynf_1 = isVerified; $this.znf_1 = personUid; if (0 === (seen1 & 4)) $this.ang_1 = null; else $this.ang_1 = firstName; if (0 === (seen1 & 8)) $this.bng_1 = null; else $this.bng_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.ynf_1 = isVerified; this.znf_1 = personUid; this.ang_1 = firstName; this.bng_1 = lastName; } protoOf(PasskeyVerifyResult).toString = function () { return 'PasskeyVerifyResult(isVerified=' + this.ynf_1 + ', personUid=' + this.znf_1.toString() + ', firstName=' + this.ang_1 + ', lastName=' + this.bng_1 + ')'; }; protoOf(PasskeyVerifyResult).hashCode = function () { var result = getBooleanHashCode(this.ynf_1); result = imul(result, 31) + this.znf_1.hashCode() | 0; result = imul(result, 31) + (this.ang_1 == null ? 0 : getStringHashCode(this.ang_1)) | 0; result = imul(result, 31) + (this.bng_1 == null ? 0 : getStringHashCode(this.bng_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.ynf_1 === tmp0_other_with_cast.ynf_1)) return false; if (!this.znf_1.equals(tmp0_other_with_cast.znf_1)) return false; if (!(this.ang_1 == tmp0_other_with_cast.ang_1)) return false; if (!(this.bng_1 == tmp0_other_with_cast.bng_1)) return false; return true; }; function SavePersonPasskeyUseCase(db, repo) { this.knc_1 = db; this.lnc_1 = repo; } protoOf(SavePersonPasskeyUseCase).mnc = function (passkeyResult, $completion) { var tmp0_elvis_lhs = this.lnc_1; var effectiveDb = tmp0_elvis_lhs == null ? this.knc_1 : tmp0_elvis_lhs; var personPasskey = new PersonPasskey(VOID, passkeyResult.ior_1, passkeyResult.bor_1, passkeyResult.cor_1, passkeyResult.dor_1, passkeyResult.eor_1, passkeyResult.hor_1, passkeyResult.for_1, passkeyResult.gor_1); return effectiveDb.o7f().wgs(personPasskey, $completion); }; function SavePasswordUseCase() { } function UpdatePeerReviewAllocationUseCase$invoke$lambda($selectedMarkerUid) { return function ($this$shallowCopy) { var tmp = $this$shallowCopy; var tmp0_elvis_lhs = $selectedMarkerUid; tmp.hfp_1 = tmp0_elvis_lhs == null ? new Long(0, 0) : tmp0_elvis_lhs; return Unit_instance; }; } function $invokeCOROUTINE$34(_this__u8e3s4, existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tor_1 = _this__u8e3s4; this.uor_1 = existingAllocations; this.vor_1 = groupUid; this.wor_1 = clazzUid; this.xor_1 = assignmentUid; this.yor_1 = numReviewsPerSubmission; this.zor_1 = allocateRemaining; this.aos_1 = resetAllocations; } 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 = 8; this.hd_1 = 1; suspendResult = this.tor_1.uos_1.d7e().z7r(this.wor_1, this.vor_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.bos_1 = suspendResult; var tmp_0 = this; tmp_0.cos_1 = this.bos_1; var tmp_1 = this; tmp_1.dos_1 = this.cos_1; var tmp_2 = this; tmp_2.eos_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.cos_1, 10)); this.fos_1 = this.dos_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.fos_1.f()) { this.hd_1 = 7; continue $sm; } this.gos_1 = this.fos_1.e(); var tmp_3 = this; tmp_3.hos_1 = this.gos_1; var tmp_4 = this; tmp_4.ios_1 = this.tor_1; var tmp_5 = this; var this_0 = this.uor_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.ifp_1.equals(this.hos_1)) { destination.i1(element); } } tmp_5.jos_1 = this.tor_1.wos(destination, this.yor_1); var tmp_6 = this; tmp_6.kos_1 = this.yor_1; if (this.jos_1.u() >= this.kos_1) { this.los_1 = this.jos_1; this.hd_1 = 6; continue $sm; } else { var tmp_7 = this; tmp_7.mos_1 = until(0, this.kos_1 - this.jos_1.u() | 0); var tmp_8 = this; tmp_8.nos_1 = this.mos_1; var tmp_9 = this; tmp_9.oos_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.mos_1, 10)); this.pos_1 = this.nos_1.w(); this.hd_1 = 3; continue $sm; } case 3: if (!this.pos_1.f()) { this.hd_1 = 5; continue $sm; } this.qos_1 = this.pos_1.e(); var tmp_10 = this; tmp_10.ros_1 = this.qos_1; var tmp_11 = this; tmp_11.sos_1 = new PeerReviewerAllocation(); var tmp_12 = this; tmp_12.tos_1 = this.sos_1; this.hd_1 = 4; var tmp_13 = get_doorPrimaryKeyManager(this.tor_1.uos_1); suspendResult = tmp_13.b62(140, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var ARGUMENT = suspendResult; this.tos_1.gfp_1 = ARGUMENT; this.tos_1.ifp_1 = this.hos_1; this.tos_1.jfp_1 = this.xor_1; var ARGUMENT_0 = this.sos_1; this.oos_1.i1(ARGUMENT_0); this.hd_1 = 3; continue $sm; case 5: var ARGUMENT_1 = this.oos_1; this.los_1 = plus(this.jos_1, ARGUMENT_1); this.hd_1 = 6; continue $sm; case 6: var existingAllocationsForSubmitter = this.los_1; var ARGUMENT_2 = to(this.hos_1, existingAllocationsForSubmitter); this.eos_1.i1(ARGUMENT_2); this.hd_1 = 2; continue $sm; case 7: var ARGUMENT_3 = this.eos_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.aos_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).tk1(VOID, new Long(0, 0))); } while (inductionVariable <= last); } if (this.zor_1) { var this_1 = this.bos_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.hfp_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.yor_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.hfp_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.ifp_1.equals(allocation.ifp_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.hfp_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.ifp_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.uos_1 = db; this.vos_1 = systemImpl; } protoOf(UpdatePeerReviewAllocationUseCase).wos = function (_this__u8e3s4, maxSize) { return _this__u8e3s4.u() <= maxSize ? _this__u8e3s4 : _this__u8e3s4.z(0, maxSize); }; protoOf(UpdatePeerReviewAllocationUseCase).xos = function (existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion) { var tmp = new $invokeCOROUTINE$34(this, existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UpdatePeerReviewAllocationUseCase).yos = function (existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion, $super) { resetAllocations = resetAllocations === VOID ? false : resetAllocations; return $super === VOID ? this.xos(existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion) : $super.xos.call(this, existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion); }; function AddNewPersonUseCase$invoke$slambda($effectiveDb, $person, $systemPermissions, $createPersonParentApprovalIfMinor, $addedByPersonUid, $relationship, resultContinuation) { this.hot_1 = $effectiveDb; this.iot_1 = $person; this.jot_1 = $systemPermissions; this.kot_1 = $createPersonParentApprovalIfMinor; this.lot_1 = $addedByPersonUid; this.mot_1 = $relationship; CoroutineImpl.call(this, resultContinuation); } protoOf(AddNewPersonUseCase$invoke$slambda).wnt = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddNewPersonUseCase$invoke$slambda).he = function (p1, $completion) { return this.wnt(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.hot_1.a7d().insertAsync(this.iot_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.oot_1 = suspendResult; this.pot_1 = this.iot_1.s95_1.equals(new Long(0, 0)) ? this.oot_1 : this.iot_1.s95_1; this.hd_1 = 2; suspendResult = this.hot_1.c7f().qhr(new SystemPermission(VOID, this.pot_1, VOID, this.jot_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: if (isDateOfBirthAMinor(Companion_getInstance_6().kls(this.iot_1.b96_1)) ? this.kot_1 : false) { this.hd_1 = 3; var tmp_0 = this.hot_1.k7e(); var tmp1_ppjApprovalTiemstamp = systemTimeInMillis(); suspendResult = tmp_0.xgl(new PersonParentJoin(VOID, VOID, VOID, VOID, VOID, this.lot_1, this.pot_1, this.mot_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.pot_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).pn8 = function (it, completion) { var i = new AddNewPersonUseCase$invoke$slambda(this.hot_1, this.iot_1, this.jot_1, this.kot_1, this.lot_1, this.mot_1, completion); i.not_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.wnt(it, $completion); }; l.$arity = 1; return l; } function AddNewPersonUseCase(db, repo) { this.qot_1 = db; this.rot_1 = repo; } protoOf(AddNewPersonUseCase).sot = function (person, addedByPersonUid, createPersonParentApprovalIfMinor, systemPermissions, relationship, $completion) { var tmp0_elvis_lhs = this.rot_1; var effectiveDb = tmp0_elvis_lhs == null ? this.qot_1 : tmp0_elvis_lhs; return withDoorTransactionAsync(effectiveDb, VOID, AddNewPersonUseCase$invoke$slambda_0(effectiveDb, person, systemPermissions, createPersonParentApprovalIfMinor, addedByPersonUid, relationship, null), $completion); }; protoOf(AddNewPersonUseCase).tot = 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.sot(person, addedByPersonUid, createPersonParentApprovalIfMinor, systemPermissions, relationship, $completion) : $super.sot.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.uot_1 = errors; } function $serializer_37() { $serializer_instance_37 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.person.bulkadd.BulkAddPersonsDataError', this, 3); tmp0_serialDesc.g4f('lineNum', false); tmp0_serialDesc.g4f('colName', false); tmp0_serialDesc.g4f('invalidValue', false); this.vot_1 = tmp0_serialDesc; } protoOf($serializer_37).d44 = function () { return this.vot_1; }; protoOf($serializer_37).x4f = 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_37).f44 = function (decoder) { var tmp0_desc = this.vot_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.v47(tmp0_desc); if (tmp7_input.k48()) { tmp4_local0 = tmp7_input.a48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.a48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.w47(tmp0_desc); return BulkAddPersonsDataError_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_37).wot = function (encoder, value) { var tmp0_desc = this.vot_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.e49(tmp0_desc, 0, value.xot_1); tmp1_output.j49(tmp0_desc, 1, value.yot_1); tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.zot_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_37).e44 = function (encoder, value) { return this.wot(encoder, value instanceof BulkAddPersonsDataError ? value : THROW_CCE()); }; var $serializer_instance_37; function $serializer_getInstance_49() { if ($serializer_instance_37 == null) new $serializer_37(); return $serializer_instance_37; } function BulkAddPersonsDataError_init_$Init$(seen1, lineNum, colName, invalidValue, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_49().vot_1); } $this.xot_1 = lineNum; $this.yot_1 = colName; $this.zot_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.xot_1 + ', colName=' + this.yot_1 + ', invalidValue=' + this.zot_1 + ')'; }; protoOf(BulkAddPersonsDataError).hashCode = function () { var result = this.xot_1; result = imul(result, 31) + getStringHashCode(this.yot_1) | 0; result = imul(result, 31) + (this.zot_1 == null ? 0 : getStringHashCode(this.zot_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.xot_1 === tmp0_other_with_cast.xot_1)) return false; if (!(this.yot_1 === tmp0_other_with_cast.yot_1)) return false; if (!(this.zot_1 == tmp0_other_with_cast.zot_1)) return false; return true; }; function BulkAddPersonsFromLocalUriUseCase() { } function Companion_46() { } var Companion_instance_95; function Companion_getInstance_63() { return Companion_instance_95; } function $serializer_38() { $serializer_instance_38 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.person.bulkadd.BulkAddPersonsUseCase.BulkAddUsersResult', this, 1); tmp0_serialDesc.g4f('numImported', false); this.bou_1 = tmp0_serialDesc; } protoOf($serializer_38).d44 = function () { return this.bou_1; }; protoOf($serializer_38).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance()]; }; protoOf($serializer_38).f44 = function (decoder) { var tmp0_desc = this.bou_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_input = decoder.v47(tmp0_desc); if (tmp5_input.k48()) { tmp4_local0 = tmp5_input.a48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.a48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.w47(tmp0_desc); return BulkAddUsersResult_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_38).cou = function (encoder, value) { var tmp0_desc = this.bou_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.e49(tmp0_desc, 0, value.dou_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_38).e44 = function (encoder, value) { return this.cou(encoder, value instanceof BulkAddUsersResult ? value : THROW_CCE()); }; var $serializer_instance_38; function $serializer_getInstance_50() { if ($serializer_instance_38 == null) new $serializer_38(); return $serializer_instance_38; } function BulkAddUsersResult_init_$Init$(seen1, numImported, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_50().bou_1); } $this.dou_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.dou_1 = numImported; } protoOf(BulkAddUsersResult).toString = function () { return 'BulkAddUsersResult(numImported=' + this.dou_1 + ')'; }; protoOf(BulkAddUsersResult).hashCode = function () { return this.dou_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.dou_1 === tmp0_other_with_cast.dou_1)) return false; return true; }; function IPhoneNumberUtil() { } function formatInternationalOrNull(_this__u8e3s4, number) { var tmp; try { tmp = _this__u8e3s4.fou(_this__u8e3s4.eou(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.gou_1 = showPoweredBy; } protoOf(GetShowPoweredByUseCase).xom = function () { return this.gou_1; }; function Companion_47() { this.hou_1 = 'en'; } var Companion_instance_96; function Companion_getInstance_64() { return Companion_instance_96; } function $invokeCOROUTINE$35(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qou_1 = _this__u8e3s4; } 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 = 2; this.rou_1 = plus(listOf_0(this.qou_1.zou_1.you_1), this.qou_1.zou_1.sou_1); this.hd_1 = 1; suspendResult = this.qou_1.aov_1.j7e().ahj(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.rou_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.zou_1 = supportedLangConfig; this.aov_1 = repo; } protoOf(GetLocaleForSiteTermsUseCase).bov = function ($completion) { var tmp = new $invokeCOROUTINE$35(this, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function OnClickSendSmsUseCase() { } function Companion_48() { this.cov_1 = 'dismissed-social-warning-'; } var Companion_instance_97; function Companion_getInstance_65() { return Companion_instance_97; } function DismissSocialWarningUseCase(settings) { this.dov_1 = settings; } protoOf(DismissSocialWarningUseCase).kob = function (username) { var key = 'dismissed-social-warning-' + (username == null ? 'guest' : username); // Inline function 'com.russhwolf.settings.set' call this.dov_1.elj(key, true); }; function Companion_49() { this.eov_1 = 'dismissed-social-warning-'; this.fov_1 = 'https://beinternetawesome.withgoogle.com'; } var Companion_instance_98; function Companion_getInstance_66() { return Companion_instance_98; } function ShowSocialWarningUseCase(settings) { this.gov_1 = settings; } protoOf(ShowSocialWarningUseCase).xnr = function (username) { var key = 'dismissed-social-warning-' + (username == null ? 'guest' : username); return !this.gov_1.flj(key, false); }; function DeleteUrisUseCase() { } function IsTempFileCheckerUseCase() { } function ChunkIterator(chunkInfo) { this.hov_1 = chunkInfo; this.iov_1 = 0; } protoOf(ChunkIterator).f = function () { return this.iov_1 < this.hov_1.nov_1; }; protoOf(ChunkIterator).e = function () { // Inline function 'kotlin.also' call var this_0 = this.hov_1.v(this.iov_1); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.upload.ChunkIterator.next.' call this.iov_1 = this.iov_1 + 1 | 0; return this_0; }; function Chunk(start, end, isLastChunk, size) { size = size === VOID ? end.mc(start).mb() : size; this.oov_1 = start; this.pov_1 = end; this.qov_1 = isLastChunk; this.rov_1 = size; } protoOf(Chunk).toString = function () { return 'Chunk(start=' + this.oov_1.toString() + ', end=' + this.pov_1.toString() + ', isLastChunk=' + this.qov_1 + ', size=' + this.rov_1 + ')'; }; protoOf(Chunk).hashCode = function () { var result = this.oov_1.hashCode(); result = imul(result, 31) + this.pov_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.qov_1) | 0; result = imul(result, 31) + this.rov_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.oov_1.equals(tmp0_other_with_cast.oov_1)) return false; if (!this.pov_1.equals(tmp0_other_with_cast.pov_1)) return false; if (!(this.qov_1 === tmp0_other_with_cast.qov_1)) return false; if (!(this.rov_1 === tmp0_other_with_cast.rov_1)) return false; return true; }; function ChunkInfo(totalSize, chunkSize, fromByte) { fromByte = fromByte === VOID ? new Long(0, 0) : fromByte; this.jov_1 = totalSize; this.kov_1 = chunkSize; this.lov_1 = fromByte; this.mov_1 = this.jov_1.mc(this.lov_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.mov_1; var other = this.kov_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.mov_1; var other_0 = this.kov_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.nov_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.kov_1)).lc(this.lov_1); // Inline function 'kotlin.math.min' call // Inline function 'kotlin.Long.plus' call var other = this.kov_1; var a = start.lc(toLong(other)); var b = this.jov_1; var end = a.c7(b) <= 0 ? a : b; var isLastChunk = index === (this.nov_1 - 1 | 0); return new Chunk(start, end, isLastChunk); }; function UploadProgress(bytesTransferred, totalBytes) { this.sov_1 = bytesTransferred; this.tov_1 = totalBytes; } protoOf(UploadProgress).toString = function () { return 'UploadProgress(bytesTransferred=' + this.sov_1.toString() + ', totalBytes=' + this.tov_1.toString() + ')'; }; protoOf(UploadProgress).hashCode = function () { var result = this.sov_1.hashCode(); result = imul(result, 31) + this.tov_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.sov_1.equals(tmp0_other_with_cast.sov_1)) return false; if (!this.tov_1.equals(tmp0_other_with_cast.tov_1)) return false; return true; }; function LastChunkResponse(body, statusCode, headers) { this.uov_1 = body; this.vov_1 = statusCode; this.wov_1 = headers; } protoOf(LastChunkResponse).toString = function () { return 'LastChunkResponse(body=' + this.uov_1 + ', statusCode=' + this.vov_1 + ', headers=' + this.wov_1 + ')'; }; protoOf(LastChunkResponse).hashCode = function () { var result = this.uov_1 == null ? 0 : getStringHashCode(this.uov_1); result = imul(result, 31) + this.vov_1 | 0; result = imul(result, 31) + hashCode(this.wov_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.uov_1 == tmp0_other_with_cast.uov_1)) return false; if (!(this.vov_1 === tmp0_other_with_cast.vov_1)) return false; if (!equals(this.wov_1, tmp0_other_with_cast.wov_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_50() { this.zov_1 = 524288; } var Companion_instance_99; function Companion_getInstance_67() { return Companion_instance_99; } 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.aow_1 = accountManager; } protoOf(StartUserSessionUseCase).bow = function (session, nextDest, navController, goOptions, dontSetCurrentSession) { // Inline function 'kotlin.takeIf' call var this_0 = this.aow_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.fn7(session); } navigateToViewUri(navController, appendSelectedAccount(nextDest, session.en4_1.s95_1, session.fn4_1), goOptions); }; protoOf(StartUserSessionUseCase).cow = function (session, nextDest, navController, goOptions, dontSetCurrentSession, $super) { var tmp; if (nextDest === VOID) { Companion_getInstance_132(); 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.bow(session, nextDest, navController, goOptions, dontSetCurrentSession); tmp_0 = Unit_instance; } else { tmp_0 = $super.bow.call(this, session, nextDest, navController, goOptions, dontSetCurrentSession); } return tmp_0; }; function ValidateEmailUseCase() { } protoOf(ValidateEmailUseCase).xnr = 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 isAnonymous(_this__u8e3s4) { return ((_this__u8e3s4.qis_1 == null ? _this__u8e3s4.ois_1 == null : false) ? _this__u8e3s4.ris_1 == null : false) ? _this__u8e3s4.pis_1 == null : false; } function _get_isIdOnly__t0wrie(_this__u8e3s4, $this) { var tmp; var tmp_0; if (_this__u8e3s4.oig_1 == null ? _this__u8e3s4.pig_1 == null : false) { var tmp_1 = _this__u8e3s4.qig_1; tmp_0 = tmp_1 === 0; } else { tmp_0 = false; } if (tmp_0) { tmp = _this__u8e3s4.rig_1 == null; } else { tmp = false; } return tmp; } function StoreActivitiesUseCase$invoke$slambda($activityEntities, $timeNow, this$0, resultContinuation) { this.low_1 = $activityEntities; this.mow_1 = $timeNow; this.now_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(StoreActivitiesUseCase$invoke$slambda).tox = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(StoreActivitiesUseCase$invoke$slambda).he = function (p1, $completion) { return this.tox(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.low_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.uox_1.jkb(VOID, VOID, VOID, VOID, VOID, VOID, this.mow_1)); } tmp_0.pow_1 = destination; this.hd_1 = 1; suspendResult = this.now_1.aoy_1.u7d().hig(this.pow_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this; var this_1 = this.pow_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.now_1)) { destination_0.i1(element); } } tmp_1.qow_1 = destination_0; this.row_1 = this.qow_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.row_1.f()) { this.hd_1 = 5; continue $sm; } this.sow_1 = this.row_1.e(); var tmp_2 = this; tmp_2.tow_1 = this.sow_1; this.hd_1 = 3; suspendResult = this.now_1.aoy_1.u7d().iig(this.tow_1.mig_1, this.tow_1.pig_1, this.mow_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.hd_1 = 4; suspendResult = this.now_1.aoy_1.u7d().jig(this.tow_1.mig_1, this.tow_1.oig_1, this.tow_1.pig_1, this.tow_1.qig_1, this.tow_1.rig_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.low_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.vox_1; addAll(destination_1, list); } tmp_3.uow_1 = destination_1; var tmp_4 = this; var this_3 = this.low_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.wox_1; addAll(destination_2, list_0); } tmp_4.vow_1 = destination_2; this.hd_1 = 6; var tmp_5 = this.now_1.zox_1.j7f(); var this_4 = this.vow_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.wil_1); } suspendResult = tmp_5.til(toList(distinct(destination_3)), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.wow_1 = suspendResult; this.xow_1 = toSet(this.wow_1); this.hd_1 = 7; var tmp_6 = this.now_1.aoy_1.j7f(); var this_5 = this.vow_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.xow_1.a1(element_2.wil_1)) { destination_4.i1(element_2); } } suspendResult = tmp_6.sil(destination_4, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: var tmp_7 = this; var this_6 = this.uow_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.aio_1.equals(new Long(0, 0))) { first.i1(element_3); } else { second.i1(element_3); } } tmp_7.yow_1 = new Pair(first, second); this.zow_1 = this.yow_1.y6(); this.aox_1 = this.yow_1.z6(); this.hd_1 = 8; suspendResult = this.now_1.aoy_1.i7f().rin(this.zow_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: var tmp_8 = this; tmp_8.box_1 = this.aox_1; this.cox_1 = this.box_1.w(); this.hd_1 = 9; continue $sm; case 9: if (!this.cox_1.f()) { this.hd_1 = 11; continue $sm; } this.dox_1 = this.cox_1.e(); var tmp_9 = this; tmp_9.eox_1 = this.dox_1; this.fox_1 = this.now_1.aoy_1.i7f(); this.gox_1 = this.eox_1.win_1; this.hox_1 = this.eox_1.aio_1; this.iox_1 = this.eox_1.zin_1; this.jox_1 = this.eox_1.yin_1; this.kox_1 = this.eox_1.xin_1; this.hd_1 = 10; suspendResult = this.fox_1.sin(this.gox_1, this.kox_1, this.jox_1, this.iox_1, this.hox_1, this.mow_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.lox_1 = this.uow_1; this.mox_1 = this.lox_1.w(); this.hd_1 = 12; continue $sm; case 12: if (!this.mox_1.f()) { this.hd_1 = 14; continue $sm; } this.nox_1 = this.mox_1.e(); var tmp_11 = this; tmp_11.oox_1 = this.nox_1; this.hd_1 = 13; suspendResult = this.now_1.aoy_1.i7f().tin(this.oox_1.win_1, this.oox_1.xin_1, this.oox_1.zin_1, this.mow_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.now_1.aoy_1.k7f(); var this_7 = this.low_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.xox_1; addAll(destination_5, list_1); } suspendResult = tmp_12.oik(destination_5, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 15: var tmp_13 = this; var this_8 = this.low_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.yox_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.pox_1 = tmp_14; if (this.pox_1 == null) { this.qox_1 = null; this.hd_1 = 17; continue $sm; } else { var tmp_15 = this; tmp_15.rox_1 = this.pox_1; var tmp_16 = this; tmp_16.sox_1 = this.rox_1; this.hd_1 = 16; suspendResult = this.now_1.aoy_1.l7f().yj1(this.sox_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 16: this.qox_1 = this.rox_1; this.hd_1 = 17; continue $sm; case 17: return this.qox_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).pn8 = function (it, completion) { var i = new StoreActivitiesUseCase$invoke$slambda(this.low_1, this.mow_1, this.now_1, completion); i.oow_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.tox(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$39(_this__u8e3s4, activityEntities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.joy_1 = _this__u8e3s4; this.koy_1 = activityEntities; } protoOf($invokeCOROUTINE$39).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.loy_1 = systemTimeInMillis(); this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.joy_1.aoy_1, VOID, StoreActivitiesUseCase$invoke$slambda_0(this.koy_1, this.loy_1, this.joy_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.zox_1 = db; var tmp = this; tmp.aoy_1 = repo == null ? this.zox_1 : repo; } protoOf(StoreActivitiesUseCase).moy = function (activityEntities, $completion) { var tmp = new $invokeCOROUTINE$39(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.noy_1 = responseCode; } function XapiJson$_init_$lambda_lhwgtd($this$Json) { $this$Json.q4p_1 = false; $this$Json.s4p_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.ooy_1 = json; } protoOf(XapiJson).toString = function () { return 'XapiJson(json=' + this.ooy_1 + ')'; }; protoOf(XapiJson).hashCode = function () { return hashCode(this.ooy_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.ooy_1, tmp0_other_with_cast.ooy_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().b2r(timestampStr).jls(); } 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().b2r(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.poy_1 = statementUuids; } protoOf(StatementStoreResult).toString = function () { return 'StatementStoreResult(statementUuids=' + this.poy_1 + ')'; }; protoOf(StatementStoreResult).hashCode = function () { return hashCode(this.poy_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.poy_1, tmp0_other_with_cast.poy_1)) return false; return true; }; function storeStatements($this, statements, xapiSession, $completion) { var tmp = new $storeStatementsCOROUTINE$40($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.moz_1 = $statementEntities; this.noz_1 = this$0; this.ooz_1 = $xapiSession; CoroutineImpl.call(this, resultContinuation); } protoOf(XapiStatementResource$storeStatements$slambda).on8 = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(XapiStatementResource$storeStatements$slambda).he = function (p1, $completion) { return this.on8(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.moz_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.jp0_1; var tmp_1; if (tmp0_safe_receiver == null) { tmp_1 = null; } else { tmp_1 = tmp0_safe_receiver.kj4_1 ? tmp0_safe_receiver.sj3_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.qoz_1 = this.noz_1.inu_1.m7f(); this.roz_1 = this.ooz_1.ujb_1; this.soz_1 = systemTimeInMillis(); this.hd_1 = 1; suspendResult = this.qoz_1.mjb(true, this.soz_1, this.roz_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.noz_1.inu_1.w7d(); var this_1 = this.moz_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.jp0_1; if (tmp0_safe_receiver_0 == null) null; else { destination.i1(tmp0_safe_receiver_0); } } suspendResult = tmp_2.dj3(destination, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.hd_1 = 4; var tmp_3 = this.noz_1.inu_1.n7f(); var this_2 = this.moz_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.kp0_1; if (tmp0_safe_receiver_1 == null) null; else { destination_0.i1(tmp0_safe_receiver_1); } } suspendResult = tmp_3.fj8(destination_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var tmp_4 = this; var this_3 = this.moz_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.lp0_1; var list = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs; addAll(destination_1, list); } tmp_4.toz_1 = destination_1; var tmp_5 = this; var this_4 = this.toz_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.op0_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.vis_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.uoz_1 = tmp_7; if (this.uoz_1 == null) { this.voz_1 = null; this.hd_1 = 6; continue $sm; } else { var tmp_8 = this; tmp_8.woz_1 = this.uoz_1; var tmp_9 = this; tmp_9.xoz_1 = this.woz_1; this.hd_1 = 5; suspendResult = insertOrUpdateActorsIfNameChanged(this.noz_1.inu_1.x7d(), this.xoz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 5: this.voz_1 = this.woz_1; this.hd_1 = 6; continue $sm; case 6: var tmp_10 = this; var this_5 = this.toz_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.op0_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.vis_1; if (tmp_11 === 2) { destination_5.i1(element_4); } } tmp_10.yoz_1 = destination_5; this.hd_1 = 7; var tmp_12 = this.noz_1.dnu_1.x7d(); var this_6 = this.yoz_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.lis_1); } suspendResult = tmp_12.rir(destination_6, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.zoz_1 = suspendResult; var tmp_13 = this; var this_7 = this.toz_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.pp0_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.lis_1, element_6); } tmp_13.ap0_1 = destination_8; var tmp_14 = this; tmp_14.bp0_1 = this.yoz_1; this.cp0_1 = this.bp0_1.w(); this.hd_1 = 8; continue $sm; case 8: if (!this.cp0_1.f()) { this.hd_1 = 14; continue $sm; } this.dp0_1 = this.cp0_1.e(); var tmp_15 = this; tmp_15.ep0_1 = this.dp0_1; var tmp_16 = this; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_10 = this.zoz_1.w(); while (tmp0_iterator_10.f()) { var element_7 = tmp0_iterator_10.e(); if (element_7.nit_1.equals(this.ep0_1.lis_1)) { tmp$ret$2 = element_7; break l$ret$3; } } tmp$ret$2 = null; } while (false); tmp_16.fp0_1 = tmp$ret$2; var tmp_17 = this; var tmp_18; if (!isAnonymous(this.ep0_1)) { var tmp_19 = this.ep0_1.tis_1; var tmp0_safe_receiver_2 = this.fp0_1; tmp_18 = !tmp_19.equals(tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.oit_1); } else { tmp_18 = true; } tmp_17.gp0_1 = tmp_18; var tmp_20 = this; var this_8 = this.toz_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.qp0_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.iix_1.equals(this.ep0_1.lis_1)) { destination_10.i1(element_9); } } tmp_20.hp0_1 = destination_10; var tmp_21 = this; var this_9 = this.hp0_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.ap0_1.q(element_10.jix_1); if (tmp0_safe_receiver_3 == null) null; else { destination_11.i1(tmp0_safe_receiver_3); } } tmp_21.ip0_1 = destination_11; this.hd_1 = 9; suspendResult = insertOrUpdateActorsIfNameChanged(this.noz_1.inu_1.x7d(), this.ip0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 9: if (!this.gp0_1 ? !(this.fp0_1 == null) : false) { this.hd_1 = 12; var tmp_22 = this.noz_1.inu_1.h7f(); var this_10 = this.hp0_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.fkc(VOID, VOID, this.fp0_1.pit_1)); } suspendResult = insertOrUpdateIfLastModChanged(tmp_22, destination_12, this.fp0_1.pit_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 10; suspendResult = this.noz_1.inu_1.x7d().pir(listOf_0(this.ep0_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 10: this.hd_1 = 11; suspendResult = this.noz_1.inu_1.h7f().eix(this.hp0_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.noz_1.inu_1.t7d(); var this_11 = this.moz_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.mp0_1; var tmp0_safe_receiver_5 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.rp0_1; if (tmp0_safe_receiver_5 == null) null; else { destination_13.i1(tmp0_safe_receiver_5); } } suspendResult = tmp_23.hj9(destination_13, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 15: this.hd_1 = 16; var tmp_24 = this.noz_1.inu_1.g7f(); var this_12 = this.moz_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.mp0_1; var tmp1_elvis_lhs = tmp0_safe_receiver_6 == null ? null : tmp0_safe_receiver_6.sp0_1; var list_2 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs; addAll(destination_14, list_2); } suspendResult = tmp_24.jja(destination_14, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 16: this.hd_1 = 17; var this_13 = this.moz_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.np0_1; var list_3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0; addAll(destination_15, list_3); } suspendResult = this.noz_1.hnu_1.moy(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).pn8 = function (it, completion) { var i = new XapiStatementResource$storeStatements$slambda(this.moz_1, this.noz_1, this.ooz_1, completion); i.poz_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.on8(it, $completion); }; l.$arity = 1; return l; } function $storeStatementsCOROUTINE$40(_this__u8e3s4, statements, xapiSession, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.yoy_1 = _this__u8e3s4; this.zoy_1 = statements; this.aoz_1 = xapiSession; } protoOf($storeStatementsCOROUTINE$40).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.boz_1 = identifierHash(agent(this.aoz_1, this.yoy_1.fnu_1), this.yoy_1.enu_1); var tmp_0 = this; var it = knownActorUidToPersonUidsMap(this.aoz_1, this.yoy_1.jnu_1); var tmp_1; if (!it.r(this.boz_1)) { tmp_1 = plus_3(it, to(this.boz_1, this.aoz_1.zjb_1)); } else { tmp_1 = it; } tmp_0.coz_1 = tmp_1; var tmp_2 = this; var this_0 = this.zoy_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.dlp().toString(); var tmp1_elvis_lhs = element.zp0_1; var tmp4_timestamp = tmp1_elvis_lhs == null ? timeNowStr : tmp1_elvis_lhs; var tmp0_elvis_lhs = xapiRequireValidUuidOrNullAsString(element.tp0_1); var tmp5_id = tmp0_elvis_lhs == null ? randomUuidAsString() : tmp0_elvis_lhs; var tmp2_name = this.aoz_1.bjc_1; var tmp3_homePage = this.yoy_1.fnu_1.in3_1; var tmp6_authority = new XapiAgent(VOID, VOID, VOID, VOID, VOID, new XapiAccount(tmp3_homePage, tmp2_name)); var exactStatement = element.fp1(tmp5_id, VOID, VOID, VOID, VOID, VOID, tmp4_timestamp, timeNowStr, tmp6_authority); var tmp7_stringHasher = this.yoy_1.enu_1; var tmp8_exactJson = this.yoy_1.jnu_1.e45(Companion_getInstance_82().a4r(), exactStatement); var tmp9_primaryKeyManager = get_doorPrimaryKeyManager(this.yoy_1.dnu_1); var tmp10_hasherFactory = this.yoy_1.gnu_1; var tmp11_json = this.yoy_1.jnu_1; var tmp12_learningSpace = this.yoy_1.fnu_1; var list = toEntities_3(exactStatement, tmp7_stringHasher, tmp9_primaryKeyManager, tmp10_hasherFactory, tmp11_json, this.aoz_1, this.coz_1, tmp8_exactJson, false, tmp12_learningSpace); addAll(destination, list); } tmp_2.doz_1 = destination; this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.yoy_1.inu_1, VOID, XapiStatementResource$storeStatements$slambda_0(this.doz_1, this.yoy_1, this.aoz_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_1 = this.doz_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.jp0_1; var tmp_3; if (tmp0_safe_receiver == null) { tmp_3 = null; } else { tmp_3 = Uuid_init_$Create$(tmp0_safe_receiver.ij3_1, tmp0_safe_receiver.jj3_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$42(_this__u8e3s4, statements, xapiSession, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.pp1_1 = _this__u8e3s4; this.qp1_1 = statements; this.rp1_1 = xapiSession; } protoOf($postCOROUTINE$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.hd_1 = 1; suspendResult = storeStatements(this.pp1_1, this.qp1_1, this.rp1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return ARGUMENT.poy_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.dnu_1 = db; this.enu_1 = xxHasher; this.fnu_1 = learningSpace; this.gnu_1 = hasherFactory; this.hnu_1 = storeActivitiesUseCase; var tmp = this; tmp.inu_1 = repo == null ? this.dnu_1 : repo; this.jnu_1 = xapiJson.ooy_1; } protoOf(XapiStatementResource).knu = function (statements, xapiSession, $completion) { var tmp = new $postCOROUTINE$42(this, statements, xapiSession, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function XapiGroupAndPersonUidMap(group, actorUidToPersonUidMap) { this.xnv_1 = group; this.ynv_1 = actorUidToPersonUidMap; } protoOf(XapiGroupAndPersonUidMap).toString = function () { return 'XapiGroupAndPersonUidMap(group=' + this.xnv_1 + ', actorUidToPersonUidMap=' + this.ynv_1 + ')'; }; protoOf(XapiGroupAndPersonUidMap).hashCode = function () { var result = this.xnv_1.hashCode(); result = imul(result, 31) + hashCode(this.ynv_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.xnv_1.equals(tmp0_other_with_cast.xnv_1)) return false; if (!equals(this.ynv_1, tmp0_other_with_cast.ynv_1)) return false; return true; }; function $invokeCOROUTINE$44(_this__u8e3s4, groupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ap2_1 = _this__u8e3s4; this.bp2_1 = groupSetUid; this.cp2_1 = groupNum; this.dp2_1 = clazzUid; this.ep2_1 = assignmentUid; this.fp2_1 = accountPersonUid; } protoOf($invokeCOROUTINE$44).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.ap2_1.tnv_1.f7d().ocy(this.bp2_1, this.cp2_1, this.dp2_1, this.ep2_1, this.fp2_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.vd0_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toXapiAgent(tmp0_safe_receiver, this.ap2_1.unv_1); var tmp_0; if (tmp1_safe_receiver == null) { tmp_0 = null; } else { var tmp0_safe_receiver_0 = element.ud0_1; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.lcz_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.ap2_1.unv_1.in3_1, 'cgs-' + this.bp2_1.toString() + '-' + this.cp2_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.ap2_1.vnv_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.tnv_1 = repo; this.unv_1 = learningSpace; this.vnv_1 = stringHasher; } protoOf(CreateXapiGroupForCourseGroupUseCase).wnv = function (groupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) { var tmp = new $invokeCOROUTINE$44(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$45(_this__u8e3s4, actors, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $insertOrUpdateActorsIfNameChangedCOROUTINE$45(_this__u8e3s4, actors, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.op2_1 = _this__u8e3s4; this.pp2_1 = actors; } protoOf($insertOrUpdateActorsIfNameChangedCOROUTINE$45).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.op2_1.oir(this.pp2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.qp2_1 = systemTimeInMillis(); var tmp_0 = this; tmp_0.rp2_1 = this.pp2_1; this.sp2_1 = this.rp2_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.sp2_1.f()) { this.hd_1 = 4; continue $sm; } this.tp2_1 = this.sp2_1.e(); var tmp_1 = this; tmp_1.up2_1 = this.tp2_1; this.hd_1 = 3; suspendResult = this.op2_1.qir(this.up2_1.lis_1, this.up2_1.nis_1, this.qp2_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$46(_this__u8e3s4, memberJoins, lastModTime, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $insertOrUpdateIfLastModChangedCOROUTINE$46(_this__u8e3s4, memberJoins, lastModTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dp3_1 = _this__u8e3s4; this.ep3_1 = memberJoins; this.fp3_1 = lastModTime; } protoOf($insertOrUpdateIfLastModChangedCOROUTINE$46).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.dp3_1.dix(this.ep3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_0 = this; tmp_0.gp3_1 = this.ep3_1; this.hp3_1 = this.gp3_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.hp3_1.f()) { this.hd_1 = 4; continue $sm; } this.ip3_1 = this.hp3_1.e(); var tmp_1 = this; tmp_1.jp3_1 = this.ip3_1; this.hd_1 = 3; suspendResult = this.dp3_1.fix(this.jp3_1.iix_1, this.jp3_1.jix_1, this.fp3_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.in3_1, _this__u8e3s4.bjc_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.mjc_1; if (charSequenceLength(this_0) > 0) { tmp = json.f45(MapSerializer(serializer_1(Companion_getInstance_2()), serializer_1(Companion_getInstance_2())), _this__u8e3s4.mjc_1); } else { tmp = emptyMap(); } return tmp; } function authorizationHeader(_this__u8e3s4) { return 'Basic ' + encodeBase64(_this__u8e3s4.ujb_1.toString() + ':' + _this__u8e3s4.kjc_1); } function get_registrationUuid(_this__u8e3s4) { return Uuid_init_$Create$(_this__u8e3s4.wjb_1, _this__u8e3s4.xjb_1); } function get_resultProgressExtension(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.xp0_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pp3_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 Companion_51() { Companion_instance_100 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.qp3_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null, null, null]; } var Companion_instance_100; function Companion_getInstance_68() { if (Companion_instance_100 == null) new Companion_51(); return Companion_instance_100; } function $serializer_39() { $serializer_instance_39 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.Attachment', this, 6); tmp0_serialDesc.g4f('usageType', true); tmp0_serialDesc.g4f('display', true); tmp0_serialDesc.g4f('description', true); tmp0_serialDesc.g4f('contentType', true); tmp0_serialDesc.g4f('length', true); tmp0_serialDesc.g4f('sha2', true); this.rp3_1 = tmp0_serialDesc; } protoOf($serializer_39).d44 = function () { return this.rp3_1; }; protoOf($serializer_39).x4f = function () { var tmp0_cached = Companion_getInstance_68().qp3_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_39).f44 = function (decoder) { var tmp0_desc = this.rp3_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.v47(tmp0_desc); var tmp11_cached = Companion_getInstance_68().qp3_1; if (tmp10_input.k48()) { tmp4_local0 = tmp10_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.j48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.b48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.j48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.b48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.w47(tmp0_desc); return Attachment_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_39).sp3 = function (encoder, value) { var tmp0_desc = this.rp3_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_68().qp3_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.tp3_1 == null)) { tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.tp3_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.up3_1 == null)) { tmp1_output.n49(tmp0_desc, 1, tmp2_cached[1], value.up3_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.vp3_1 == null)) { tmp1_output.n49(tmp0_desc, 2, tmp2_cached[2], value.vp3_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.wp3_1 == null)) { tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.wp3_1); } if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.xp3_1.equals(new Long(0, 0))) { tmp1_output.f49(tmp0_desc, 4, value.xp3_1); } if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.yp3_1 == null)) { tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.yp3_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_39).e44 = function (encoder, value) { return this.sp3(encoder, value instanceof Attachment ? value : THROW_CCE()); }; var $serializer_instance_39; function $serializer_getInstance_51() { if ($serializer_instance_39 == null) new $serializer_39(); return $serializer_instance_39; } function Attachment_init_$Init$(seen1, usageType, display, description, contentType, length, sha2, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_51().rp3_1); } if (0 === (seen1 & 1)) $this.tp3_1 = null; else $this.tp3_1 = usageType; if (0 === (seen1 & 2)) $this.up3_1 = null; else $this.up3_1 = display; if (0 === (seen1 & 4)) $this.vp3_1 = null; else $this.vp3_1 = description; if (0 === (seen1 & 8)) $this.wp3_1 = null; else $this.wp3_1 = contentType; if (0 === (seen1 & 16)) $this.xp3_1 = new Long(0, 0); else $this.xp3_1 = length; if (0 === (seen1 & 32)) $this.yp3_1 = null; else $this.yp3_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_68(); 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.tp3_1 = usageType; this.up3_1 = display; this.vp3_1 = description; this.wp3_1 = contentType; this.xp3_1 = length; this.yp3_1 = sha2; } protoOf(Attachment).toString = function () { return 'Attachment(usageType=' + this.tp3_1 + ', display=' + this.up3_1 + ', description=' + this.vp3_1 + ', contentType=' + this.wp3_1 + ', length=' + this.xp3_1.toString() + ', sha2=' + this.yp3_1 + ')'; }; protoOf(Attachment).hashCode = function () { var result = this.tp3_1 == null ? 0 : getStringHashCode(this.tp3_1); result = imul(result, 31) + (this.up3_1 == null ? 0 : hashCode(this.up3_1)) | 0; result = imul(result, 31) + (this.vp3_1 == null ? 0 : hashCode(this.vp3_1)) | 0; result = imul(result, 31) + (this.wp3_1 == null ? 0 : getStringHashCode(this.wp3_1)) | 0; result = imul(result, 31) + this.xp3_1.hashCode() | 0; result = imul(result, 31) + (this.yp3_1 == null ? 0 : getStringHashCode(this.yp3_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.tp3_1 == tmp0_other_with_cast.tp3_1)) return false; if (!equals(this.up3_1, tmp0_other_with_cast.up3_1)) return false; if (!equals(this.vp3_1, tmp0_other_with_cast.vp3_1)) return false; if (!(this.wp3_1 == tmp0_other_with_cast.wp3_1)) return false; if (!this.xp3_1.equals(tmp0_other_with_cast.xp3_1)) return false; if (!(this.yp3_1 == tmp0_other_with_cast.yp3_1)) return false; return true; }; function Companion_52() { } var Companion_instance_101; function Companion_getInstance_69() { return Companion_instance_101; } function $serializer_40() { $serializer_instance_40 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiAccount', this, 2); tmp0_serialDesc.g4f('homePage', false); tmp0_serialDesc.g4f('name', false); this.zp3_1 = tmp0_serialDesc; } protoOf($serializer_40).d44 = function () { return this.zp3_1; }; protoOf($serializer_40).x4f = 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_40).f44 = function (decoder) { var tmp0_desc = this.zp3_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.v47(tmp0_desc); if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return XapiAccount_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_40).ap4 = function (encoder, value) { var tmp0_desc = this.zp3_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.j49(tmp0_desc, 0, value.bp4_1); tmp1_output.j49(tmp0_desc, 1, value.cp4_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_40).e44 = function (encoder, value) { return this.ap4(encoder, value instanceof XapiAccount ? value : THROW_CCE()); }; var $serializer_instance_40; function $serializer_getInstance_52() { if ($serializer_instance_40 == null) new $serializer_40(); return $serializer_instance_40; } function XapiAccount_init_$Init$(seen1, homePage, name, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_52().zp3_1); } $this.bp4_1 = homePage; $this.cp4_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.bp4_1 = homePage; this.cp4_1 = name; } protoOf(XapiAccount).toString = function () { return 'XapiAccount(homePage=' + this.bp4_1 + ', name=' + this.cp4_1 + ')'; }; protoOf(XapiAccount).hashCode = function () { var result = getStringHashCode(this.bp4_1); result = imul(result, 31) + getStringHashCode(this.cp4_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.bp4_1 === tmp0_other_with_cast.bp4_1)) return false; if (!(this.cp4_1 === tmp0_other_with_cast.cp4_1)) return false; return true; }; function Companion_53() { Companion_instance_102 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.dp4_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; } var Companion_instance_102; function Companion_getInstance_70() { if (Companion_instance_102 == null) new Companion_53(); return Companion_instance_102; } function $serializer_41() { $serializer_instance_41 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiActivity.Interaction', this, 2); tmp0_serialDesc.g4f('id', true); tmp0_serialDesc.g4f('description', true); this.ep4_1 = tmp0_serialDesc; } protoOf($serializer_41).d44 = function () { return this.ep4_1; }; protoOf($serializer_41).x4f = function () { var tmp0_cached = Companion_getInstance_70().dp4_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_41).f44 = function (decoder) { var tmp0_desc = this.ep4_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.v47(tmp0_desc); var tmp7_cached = Companion_getInstance_70().dp4_1; if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return Interaction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_41).fp4 = function (encoder, value) { var tmp0_desc = this.ep4_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_70().dp4_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.gp4_1 == null)) { tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.gp4_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.hp4_1 == null)) { tmp1_output.n49(tmp0_desc, 1, tmp2_cached[1], value.hp4_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_41).e44 = function (encoder, value) { return this.fp4(encoder, value instanceof Interaction ? value : THROW_CCE()); }; var $serializer_instance_41; function $serializer_getInstance_53() { if ($serializer_instance_41 == null) new $serializer_41(); return $serializer_instance_41; } function Interaction_init_$Init$(seen1, id, description, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_53().ep4_1); } if (0 === (seen1 & 1)) $this.gp4_1 = null; else $this.gp4_1 = id; if (0 === (seen1 & 2)) $this.hp4_1 = null; else $this.hp4_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_70(); id = id === VOID ? null : id; description = description === VOID ? null : description; this.gp4_1 = id; this.hp4_1 = description; } protoOf(Interaction).toString = function () { return 'Interaction(id=' + this.gp4_1 + ', description=' + this.hp4_1 + ')'; }; protoOf(Interaction).hashCode = function () { var result = this.gp4_1 == null ? 0 : getStringHashCode(this.gp4_1); result = imul(result, 31) + (this.hp4_1 == null ? 0 : hashCode(this.hp4_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.gp4_1 == tmp0_other_with_cast.gp4_1)) return false; if (!equals(this.hp4_1, tmp0_other_with_cast.hp4_1)) return false; return true; }; function Companion_54() { Companion_instance_103 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.ip4_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_53()), new ArrayListSerializer($serializer_getInstance_53()), new ArrayListSerializer($serializer_getInstance_53()), new ArrayListSerializer($serializer_getInstance_53()), new ArrayListSerializer($serializer_getInstance_53())]; } var Companion_instance_103; function Companion_getInstance_71() { if (Companion_instance_103 == null) new Companion_54(); return Companion_instance_103; } function $serializer_42() { $serializer_instance_42 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('Activity', this, 12); tmp0_serialDesc.g4f('name', true); tmp0_serialDesc.g4f('description', true); tmp0_serialDesc.g4f('type', true); tmp0_serialDesc.g4f('extensions', true); tmp0_serialDesc.g4f('moreInfo', true); tmp0_serialDesc.g4f('interactionType', true); tmp0_serialDesc.g4f('correctResponsePattern', true); tmp0_serialDesc.g4f('choices', true); tmp0_serialDesc.g4f('scale', true); tmp0_serialDesc.g4f('source', true); tmp0_serialDesc.g4f('target', true); tmp0_serialDesc.g4f('steps', true); this.jp4_1 = tmp0_serialDesc; } protoOf($serializer_42).d44 = function () { return this.jp4_1; }; protoOf($serializer_42).x4f = function () { var tmp0_cached = Companion_getInstance_71().ip4_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_42).f44 = function (decoder) { var tmp0_desc = this.jp4_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.v47(tmp0_desc); var tmp17_cached = Companion_getInstance_71().ip4_1; if (tmp16_input.k48()) { tmp4_local0 = tmp16_input.j48(tmp0_desc, 0, tmp17_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp16_input.j48(tmp0_desc, 1, tmp17_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp16_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp16_input.j48(tmp0_desc, 3, tmp17_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp16_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp16_input.j48(tmp0_desc, 5, XapiInteractionTypeSerializer_instance, tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp16_input.j48(tmp0_desc, 6, tmp17_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp16_input.j48(tmp0_desc, 7, tmp17_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp16_input.j48(tmp0_desc, 8, tmp17_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp16_input.j48(tmp0_desc, 9, tmp17_cached[9], tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp16_input.j48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp16_input.j48(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; } else while (tmp1_flag) { tmp2_index = tmp16_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp16_input.j48(tmp0_desc, 0, tmp17_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp16_input.j48(tmp0_desc, 1, tmp17_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp16_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp16_input.j48(tmp0_desc, 3, tmp17_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp16_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp16_input.j48(tmp0_desc, 5, XapiInteractionTypeSerializer_instance, tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp16_input.j48(tmp0_desc, 6, tmp17_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp16_input.j48(tmp0_desc, 7, tmp17_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp16_input.j48(tmp0_desc, 8, tmp17_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp16_input.j48(tmp0_desc, 9, tmp17_cached[9], tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp16_input.j48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp16_input.j48(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp16_input.w47(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_42).kp4 = function (encoder, value) { var tmp0_desc = this.jp4_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_71().ip4_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.lp4_1 == null)) { tmp1_output.n49(tmp0_desc, 0, tmp2_cached[0], value.lp4_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.mp4_1 == null)) { tmp1_output.n49(tmp0_desc, 1, tmp2_cached[1], value.mp4_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.np4_1 == null)) { tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.np4_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.op4_1 == null)) { tmp1_output.n49(tmp0_desc, 3, tmp2_cached[3], value.op4_1); } if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.pp4_1 == null)) { tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.pp4_1); } if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.qp4_1 == null)) { tmp1_output.n49(tmp0_desc, 5, XapiInteractionTypeSerializer_instance, value.qp4_1); } if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.rp4_1 == null)) { tmp1_output.n49(tmp0_desc, 6, tmp2_cached[6], value.rp4_1); } if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.sp4_1 == null)) { tmp1_output.n49(tmp0_desc, 7, tmp2_cached[7], value.sp4_1); } if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.tp4_1 == null)) { tmp1_output.n49(tmp0_desc, 8, tmp2_cached[8], value.tp4_1); } if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.up4_1 == null)) { tmp1_output.n49(tmp0_desc, 9, tmp2_cached[9], value.up4_1); } if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.vp4_1 == null)) { tmp1_output.n49(tmp0_desc, 10, tmp2_cached[10], value.vp4_1); } if (tmp1_output.r49(tmp0_desc, 11) ? true : !(value.wp4_1 == null)) { tmp1_output.n49(tmp0_desc, 11, tmp2_cached[11], value.wp4_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_42).e44 = function (encoder, value) { return this.kp4(encoder, value instanceof XapiActivity ? value : THROW_CCE()); }; var $serializer_instance_42; function $serializer_getInstance_54() { if ($serializer_instance_42 == null) new $serializer_42(); return $serializer_instance_42; } 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_54().jp4_1); } if (0 === (seen1 & 1)) $this.lp4_1 = null; else $this.lp4_1 = name; if (0 === (seen1 & 2)) $this.mp4_1 = null; else $this.mp4_1 = description; if (0 === (seen1 & 4)) $this.np4_1 = null; else $this.np4_1 = type; if (0 === (seen1 & 8)) $this.op4_1 = null; else $this.op4_1 = extensions; if (0 === (seen1 & 16)) $this.pp4_1 = null; else $this.pp4_1 = moreInfo; if (0 === (seen1 & 32)) $this.qp4_1 = null; else $this.qp4_1 = interactionType; if (0 === (seen1 & 64)) $this.rp4_1 = null; else $this.rp4_1 = correctResponsePattern; if (0 === (seen1 & 128)) $this.sp4_1 = null; else $this.sp4_1 = choices; if (0 === (seen1 & 256)) $this.tp4_1 = null; else $this.tp4_1 = scale; if (0 === (seen1 & 512)) $this.up4_1 = null; else $this.up4_1 = source; if (0 === (seen1 & 1024)) $this.vp4_1 = null; else $this.vp4_1 = target; if (0 === (seen1 & 2048)) $this.wp4_1 = null; else $this.wp4_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_71(); 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.lp4_1 = name; this.mp4_1 = description; this.np4_1 = type; this.op4_1 = extensions; this.pp4_1 = moreInfo; this.qp4_1 = interactionType; this.rp4_1 = correctResponsePattern; this.sp4_1 = choices; this.tp4_1 = scale; this.up4_1 = source; this.vp4_1 = target; this.wp4_1 = steps; } protoOf(XapiActivity).toString = function () { return 'XapiActivity(name=' + this.lp4_1 + ', description=' + this.mp4_1 + ', type=' + this.np4_1 + ', extensions=' + this.op4_1 + ', moreInfo=' + this.pp4_1 + ', interactionType=' + this.qp4_1 + ', correctResponsePattern=' + this.rp4_1 + ', choices=' + this.sp4_1 + ', scale=' + this.tp4_1 + ', source=' + this.up4_1 + ', target=' + this.vp4_1 + ', steps=' + this.wp4_1 + ')'; }; protoOf(XapiActivity).hashCode = function () { var result = this.lp4_1 == null ? 0 : hashCode(this.lp4_1); result = imul(result, 31) + (this.mp4_1 == null ? 0 : hashCode(this.mp4_1)) | 0; result = imul(result, 31) + (this.np4_1 == null ? 0 : getStringHashCode(this.np4_1)) | 0; result = imul(result, 31) + (this.op4_1 == null ? 0 : hashCode(this.op4_1)) | 0; result = imul(result, 31) + (this.pp4_1 == null ? 0 : getStringHashCode(this.pp4_1)) | 0; result = imul(result, 31) + (this.qp4_1 == null ? 0 : this.qp4_1.hashCode()) | 0; result = imul(result, 31) + (this.rp4_1 == null ? 0 : hashCode(this.rp4_1)) | 0; result = imul(result, 31) + (this.sp4_1 == null ? 0 : hashCode(this.sp4_1)) | 0; result = imul(result, 31) + (this.tp4_1 == null ? 0 : hashCode(this.tp4_1)) | 0; result = imul(result, 31) + (this.up4_1 == null ? 0 : hashCode(this.up4_1)) | 0; result = imul(result, 31) + (this.vp4_1 == null ? 0 : hashCode(this.vp4_1)) | 0; result = imul(result, 31) + (this.wp4_1 == null ? 0 : hashCode(this.wp4_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.lp4_1, tmp0_other_with_cast.lp4_1)) return false; if (!equals(this.mp4_1, tmp0_other_with_cast.mp4_1)) return false; if (!(this.np4_1 == tmp0_other_with_cast.np4_1)) return false; if (!equals(this.op4_1, tmp0_other_with_cast.op4_1)) return false; if (!(this.pp4_1 == tmp0_other_with_cast.pp4_1)) return false; if (!equals(this.qp4_1, tmp0_other_with_cast.qp4_1)) return false; if (!equals(this.rp4_1, tmp0_other_with_cast.rp4_1)) return false; if (!equals(this.sp4_1, tmp0_other_with_cast.sp4_1)) return false; if (!equals(this.tp4_1, tmp0_other_with_cast.tp4_1)) return false; if (!equals(this.up4_1, tmp0_other_with_cast.up4_1)) return false; if (!equals(this.vp4_1, tmp0_other_with_cast.vp4_1)) return false; if (!equals(this.wp4_1, tmp0_other_with_cast.wp4_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.uox_1 = activityEntity; this.vox_1 = activityLangMapEntries; this.wox_1 = activityInteractionEntities; this.xox_1 = activityExtensionEntities; this.yox_1 = statementContextActivityJoin; } protoOf(ActivityEntities).xp4 = function (activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin) { return new ActivityEntities(activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin); }; protoOf(ActivityEntities).yp4 = function (activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin, $super) { activityEntity = activityEntity === VOID ? this.uox_1 : activityEntity; activityLangMapEntries = activityLangMapEntries === VOID ? this.vox_1 : activityLangMapEntries; activityInteractionEntities = activityInteractionEntities === VOID ? this.wox_1 : activityInteractionEntities; activityExtensionEntities = activityExtensionEntities === VOID ? this.xox_1 : activityExtensionEntities; statementContextActivityJoin = statementContextActivityJoin === VOID ? this.yox_1 : statementContextActivityJoin; return $super === VOID ? this.xp4(activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin) : $super.xp4.call(this, activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin); }; protoOf(ActivityEntities).toString = function () { return 'ActivityEntities(activityEntity=' + this.uox_1 + ', activityLangMapEntries=' + this.vox_1 + ', activityInteractionEntities=' + this.wox_1 + ', activityExtensionEntities=' + this.xox_1 + ', statementContextActivityJoin=' + this.yox_1 + ')'; }; protoOf(ActivityEntities).hashCode = function () { var result = this.uox_1.hashCode(); result = imul(result, 31) + hashCode(this.vox_1) | 0; result = imul(result, 31) + hashCode(this.wox_1) | 0; result = imul(result, 31) + hashCode(this.xox_1) | 0; result = imul(result, 31) + (this.yox_1 == null ? 0 : this.yox_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.uox_1.equals(tmp0_other_with_cast.uox_1)) return false; if (!equals(this.vox_1, tmp0_other_with_cast.vox_1)) return false; if (!equals(this.wox_1, tmp0_other_with_cast.wox_1)) return false; if (!equals(this.xox_1, tmp0_other_with_cast.xox_1)) return false; if (!equals(this.yox_1, tmp0_other_with_cast.yox_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.mli(activityId); var tmp9_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.sp4_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.tp4_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.up4_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.vp4_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.wp4_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.np4_1; var tmp_9 = _this__u8e3s4 == null ? null : _this__u8e3s4.pp4_1; var tmp13_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.qp4_1; var tmp14_elvis_lhs = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.cp5_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.rp4_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.g45(); // 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.e45(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.lp4_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.mp4_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.op4_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.mli(key), xapiRequireValidIRI(key, activityId + ' extension ' + key + ' is not a valid IRI'), json.e45(Companion_instance_23.a4r(), 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.mli(propName + '-' + lang), lang, text, almeAieHash); destination.i1(tmp$ret$2); } return destination; } function toEntities$toEntities(_this__u8e3s4, $stringHasher, activityUid, propId, propName) { var aieHash = $stringHasher.mli('' + propId + _this__u8e3s4.gp4_1); var tmp = new ActivityInteractionEntity(activityUid, aieHash, propId, _this__u8e3s4.gp4_1); var tmp0_safe_receiver = _this__u8e3s4.hp4_1; return to(tmp, toEmptyIfNull(tmp0_safe_receiver == null ? null : toEntities$toLangMapEntries(tmp0_safe_receiver, activityUid, $stringHasher, propName + '-' + _this__u8e3s4.gp4_1, aieHash))); } function Companion_55() { } protoOf(Companion_55).a4r = function () { return XapiActorSerializer_getInstance(); }; protoOf(Companion_55).i4g = function (typeParamsSerializers) { return this.a4r(); }; var Companion_instance_104; function Companion_getInstance_72() { return Companion_instance_104; } function XapiActor() { } function XapiActorSerializer() { XapiActorSerializer_instance = this; JsonContentPolymorphicSerializer.call(this, getKClass(XapiActor)); } protoOf(XapiActorSerializer).y4q = 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.t3a(); 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_105.a4r(); break; case 4: tmp_0 = Companion_getInstance_77().a4r(); 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.gp5() == null)) { var tmp0_safe_receiver = _this__u8e3s4.gp5(); var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cp4_1; var tmp1_safe_receiver = _this__u8e3s4.gp5(); tmp = '' + tmp_0 + '@' + (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.bp4_1); } else if (!(_this__u8e3s4.dp5() == null)) { tmp = _this__u8e3s4.dp5(); } else if (!(_this__u8e3s4.ep5() == null)) { tmp = _this__u8e3s4.ep5(); } else if (!(_this__u8e3s4.fp5() == null)) { tmp = _this__u8e3s4.fp5(); } 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.mli(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.op0_1 = actor; this.pp0_1 = groupMemberAgents; this.qp0_1 = groupMemberJoins; } protoOf(ActorEntities).toString = function () { return 'ActorEntities(actor=' + this.op0_1 + ', groupMemberAgents=' + this.pp0_1 + ', groupMemberJoins=' + this.qp0_1 + ')'; }; protoOf(ActorEntities).hashCode = function () { var result = this.op0_1.hashCode(); result = imul(result, 31) + hashCode(this.pp0_1) | 0; result = imul(result, 31) + hashCode(this.qp0_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.op0_1.equals(tmp0_other_with_cast.op0_1)) return false; if (!equals(this.pp0_1, tmp0_other_with_cast.pp0_1)) return false; if (!equals(this.qp0_1, tmp0_other_with_cast.qp0_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_56() { } protoOf(Companion_56).a4r = function () { return $serializer_getInstance_55(); }; var Companion_instance_105; function Companion_getInstance_73() { return Companion_instance_105; } function $serializer_43() { $serializer_instance_43 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiAgent', this, 6); tmp0_serialDesc.g4f('name', true); tmp0_serialDesc.g4f('mbox', true); tmp0_serialDesc.g4f('mbox_sha1sum', true); tmp0_serialDesc.g4f('openid', true); tmp0_serialDesc.g4f('objectType', true); tmp0_serialDesc.g4f('account', true); this.kp5_1 = tmp0_serialDesc; } protoOf($serializer_43).d44 = function () { return this.kp5_1; }; protoOf($serializer_43).x4f = 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_52())]; }; protoOf($serializer_43).f44 = function (decoder) { var tmp0_desc = this.kp5_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.v47(tmp0_desc); if (tmp10_input.k48()) { tmp4_local0 = tmp10_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.j48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.j48(tmp0_desc, 5, $serializer_getInstance_52(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.j48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.j48(tmp0_desc, 5, $serializer_getInstance_52(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.w47(tmp0_desc); return XapiAgent_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_43).lp5 = function (encoder, value) { var tmp0_desc = this.kp5_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.mp5_1 == null)) { tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.mp5_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.np5_1 == null)) { tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.np5_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.op5_1 == null)) { tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.op5_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.pp5_1 == null)) { tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.pp5_1); } if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.qp5_1 == null)) { tmp1_output.n49(tmp0_desc, 4, XapiObjectTypeSerializer_instance, value.qp5_1); } if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.rp5_1 == null)) { tmp1_output.n49(tmp0_desc, 5, $serializer_getInstance_52(), value.rp5_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_43).e44 = function (encoder, value) { return this.lp5(encoder, value instanceof XapiAgent ? value : THROW_CCE()); }; var $serializer_instance_43; function $serializer_getInstance_55() { if ($serializer_instance_43 == null) new $serializer_43(); return $serializer_instance_43; } function XapiAgent_init_$Init$(seen1, name, mbox, mbox_sha1sum, openid, objectType, account, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_55().kp5_1); } if (0 === (seen1 & 1)) $this.mp5_1 = null; else $this.mp5_1 = name; if (0 === (seen1 & 2)) $this.np5_1 = null; else $this.np5_1 = mbox; if (0 === (seen1 & 4)) $this.op5_1 = null; else $this.op5_1 = mbox_sha1sum; if (0 === (seen1 & 8)) $this.pp5_1 = null; else $this.pp5_1 = openid; if (0 === (seen1 & 16)) $this.qp5_1 = null; else $this.qp5_1 = objectType; if (0 === (seen1 & 32)) $this.rp5_1 = null; else $this.rp5_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.mp5_1 = name; this.np5_1 = mbox; this.op5_1 = mbox_sha1sum; this.pp5_1 = openid; this.qp5_1 = objectType; this.rp5_1 = account; } protoOf(XapiAgent).dp5 = function () { return this.np5_1; }; protoOf(XapiAgent).ep5 = function () { return this.op5_1; }; protoOf(XapiAgent).fp5 = function () { return this.pp5_1; }; protoOf(XapiAgent).sp5 = function () { return this.qp5_1; }; protoOf(XapiAgent).gp5 = function () { return this.rp5_1; }; protoOf(XapiAgent).toString = function () { return 'XapiAgent(name=' + this.mp5_1 + ', mbox=' + this.np5_1 + ', mbox_sha1sum=' + this.op5_1 + ', openid=' + this.pp5_1 + ', objectType=' + this.qp5_1 + ', account=' + this.rp5_1 + ')'; }; protoOf(XapiAgent).hashCode = function () { var result = this.mp5_1 == null ? 0 : getStringHashCode(this.mp5_1); result = imul(result, 31) + (this.np5_1 == null ? 0 : getStringHashCode(this.np5_1)) | 0; result = imul(result, 31) + (this.op5_1 == null ? 0 : getStringHashCode(this.op5_1)) | 0; result = imul(result, 31) + (this.pp5_1 == null ? 0 : getStringHashCode(this.pp5_1)) | 0; result = imul(result, 31) + (this.qp5_1 == null ? 0 : this.qp5_1.hashCode()) | 0; result = imul(result, 31) + (this.rp5_1 == null ? 0 : this.rp5_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.mp5_1 == tmp0_other_with_cast.mp5_1)) return false; if (!(this.np5_1 == tmp0_other_with_cast.np5_1)) return false; if (!(this.op5_1 == tmp0_other_with_cast.op5_1)) return false; if (!(this.pp5_1 == tmp0_other_with_cast.pp5_1)) return false; if (!equals(this.qp5_1, tmp0_other_with_cast.qp5_1)) return false; if (!equals(this.rp5_1, tmp0_other_with_cast.rp5_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.np5_1; var tmp7_actorMbox_sha1sum = _this__u8e3s4.op5_1; var tmp8_actorOpenid = _this__u8e3s4.pp5_1; var tmp1_safe_receiver = _this__u8e3s4.rp5_1; var tmp9_actorAccountName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.cp4_1; var tmp2_safe_receiver = _this__u8e3s4.rp5_1; var tmp10_actorAccountHomePage = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.bp4_1; var tmp3_safe_receiver = _this__u8e3s4.mp5_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.mli(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_57() { Companion_instance_106 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.tp5_1 = [null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), JsonElementSerializer_getInstance())]; } var Companion_instance_106; function Companion_getInstance_74() { if (Companion_instance_106 == null) new Companion_57(); return Companion_instance_106; } function $serializer_44() { $serializer_instance_44 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiContext', this, 9); tmp0_serialDesc.g4f('instructor', true); tmp0_serialDesc.g4f('registration', true); tmp0_serialDesc.g4f('language', true); tmp0_serialDesc.g4f('platform', true); tmp0_serialDesc.g4f('revision', true); tmp0_serialDesc.g4f('team', true); tmp0_serialDesc.g4f('statement', true); tmp0_serialDesc.g4f('contextActivities', true); tmp0_serialDesc.g4f('extensions', true); this.up5_1 = tmp0_serialDesc; } protoOf($serializer_44).d44 = function () { return this.up5_1; }; protoOf($serializer_44).x4f = function () { var tmp0_cached = Companion_getInstance_74().tp5_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_62()), get_nullable(XapiContextActivitiesSerializer_getInstance()), get_nullable(tmp0_cached[8])]; }; protoOf($serializer_44).f44 = function (decoder) { var tmp0_desc = this.up5_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.v47(tmp0_desc); var tmp14_cached = Companion_getInstance_74().tp5_1; if (tmp13_input.k48()) { tmp4_local0 = tmp13_input.j48(tmp0_desc, 0, XapiActorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.j48(tmp0_desc, 5, XapiActorSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.j48(tmp0_desc, 6, $serializer_getInstance_62(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.j48(tmp0_desc, 7, XapiContextActivitiesSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.j48(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.j48(tmp0_desc, 0, XapiActorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.j48(tmp0_desc, 5, XapiActorSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.j48(tmp0_desc, 6, $serializer_getInstance_62(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.j48(tmp0_desc, 7, XapiContextActivitiesSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.j48(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.w47(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_44).vp5 = function (encoder, value) { var tmp0_desc = this.up5_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_74().tp5_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.wp5_1 == null)) { tmp1_output.n49(tmp0_desc, 0, XapiActorSerializer_getInstance(), value.wp5_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.xp5_1 == null)) { tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.xp5_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.yp5_1 == null)) { tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.yp5_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.zp5_1 == null)) { tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.zp5_1); } if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.ap6_1 == null)) { tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.ap6_1); } if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.bp6_1 == null)) { tmp1_output.n49(tmp0_desc, 5, XapiActorSerializer_getInstance(), value.bp6_1); } if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.cp6_1 == null)) { tmp1_output.n49(tmp0_desc, 6, $serializer_getInstance_62(), value.cp6_1); } if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.dp6_1 == null)) { tmp1_output.n49(tmp0_desc, 7, XapiContextActivitiesSerializer_getInstance(), value.dp6_1); } if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.ep6_1 == null)) { tmp1_output.n49(tmp0_desc, 8, tmp2_cached[8], value.ep6_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_44).e44 = function (encoder, value) { return this.vp5(encoder, value instanceof XapiContext ? value : THROW_CCE()); }; var $serializer_instance_44; function $serializer_getInstance_56() { if ($serializer_instance_44 == null) new $serializer_44(); return $serializer_instance_44; } 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_56().up5_1); } if (0 === (seen1 & 1)) $this.wp5_1 = null; else $this.wp5_1 = instructor; if (0 === (seen1 & 2)) $this.xp5_1 = null; else $this.xp5_1 = registration; if (0 === (seen1 & 4)) $this.yp5_1 = null; else $this.yp5_1 = language; if (0 === (seen1 & 8)) $this.zp5_1 = null; else $this.zp5_1 = platform; if (0 === (seen1 & 16)) $this.ap6_1 = null; else $this.ap6_1 = revision; if (0 === (seen1 & 32)) $this.bp6_1 = null; else $this.bp6_1 = team; if (0 === (seen1 & 64)) $this.cp6_1 = null; else $this.cp6_1 = statement; if (0 === (seen1 & 128)) $this.dp6_1 = null; else $this.dp6_1 = contextActivities; if (0 === (seen1 & 256)) $this.ep6_1 = null; else $this.ep6_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_74(); 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.wp5_1 = instructor; this.xp5_1 = registration; this.yp5_1 = language; this.zp5_1 = platform; this.ap6_1 = revision; this.bp6_1 = team; this.cp6_1 = statement; this.dp6_1 = contextActivities; this.ep6_1 = extensions; } protoOf(XapiContext).toString = function () { return 'XapiContext(instructor=' + this.wp5_1 + ', registration=' + this.xp5_1 + ', language=' + this.yp5_1 + ', platform=' + this.zp5_1 + ', revision=' + this.ap6_1 + ', team=' + this.bp6_1 + ', statement=' + this.cp6_1 + ', contextActivities=' + this.dp6_1 + ', extensions=' + this.ep6_1 + ')'; }; protoOf(XapiContext).hashCode = function () { var result = this.wp5_1 == null ? 0 : hashCode(this.wp5_1); result = imul(result, 31) + (this.xp5_1 == null ? 0 : getStringHashCode(this.xp5_1)) | 0; result = imul(result, 31) + (this.yp5_1 == null ? 0 : getStringHashCode(this.yp5_1)) | 0; result = imul(result, 31) + (this.zp5_1 == null ? 0 : getStringHashCode(this.zp5_1)) | 0; result = imul(result, 31) + (this.ap6_1 == null ? 0 : getStringHashCode(this.ap6_1)) | 0; result = imul(result, 31) + (this.bp6_1 == null ? 0 : hashCode(this.bp6_1)) | 0; result = imul(result, 31) + (this.cp6_1 == null ? 0 : this.cp6_1.hashCode()) | 0; result = imul(result, 31) + (this.dp6_1 == null ? 0 : this.dp6_1.hashCode()) | 0; result = imul(result, 31) + (this.ep6_1 == null ? 0 : hashCode(this.ep6_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.wp5_1, tmp0_other_with_cast.wp5_1)) return false; if (!(this.xp5_1 == tmp0_other_with_cast.xp5_1)) return false; if (!(this.yp5_1 == tmp0_other_with_cast.yp5_1)) return false; if (!(this.zp5_1 == tmp0_other_with_cast.zp5_1)) return false; if (!(this.ap6_1 == tmp0_other_with_cast.ap6_1)) return false; if (!equals(this.bp6_1, tmp0_other_with_cast.bp6_1)) return false; if (!equals(this.cp6_1, tmp0_other_with_cast.cp6_1)) return false; if (!equals(this.dp6_1, tmp0_other_with_cast.dp6_1)) return false; if (!equals(this.ep6_1, tmp0_other_with_cast.ep6_1)) return false; return true; }; function Companion_58() { } var Companion_instance_107; function Companion_getInstance_75() { return Companion_instance_107; } 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.fp6_1 = parent; this.gp6_1 = grouping; this.hp6_1 = category; this.ip6_1 = other; } protoOf(XapiContextActivities).toString = function () { return 'XapiContextActivities(parent=' + this.fp6_1 + ', grouping=' + this.gp6_1 + ', category=' + this.hp6_1 + ', other=' + this.ip6_1 + ')'; }; protoOf(XapiContextActivities).hashCode = function () { var result = this.fp6_1 == null ? 0 : hashCode(this.fp6_1); result = imul(result, 31) + (this.gp6_1 == null ? 0 : hashCode(this.gp6_1)) | 0; result = imul(result, 31) + (this.hp6_1 == null ? 0 : hashCode(this.hp6_1)) | 0; result = imul(result, 31) + (this.ip6_1 == null ? 0 : hashCode(this.ip6_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.fp6_1, tmp0_other_with_cast.fp6_1)) return false; if (!equals(this.gp6_1, tmp0_other_with_cast.gp6_1)) return false; if (!equals(this.hp6_1, tmp0_other_with_cast.hp6_1)) return false; if (!equals(this.ip6_1, tmp0_other_with_cast.ip6_1)) return false; return true; }; function deserialize$propertyToObjectList(jsonObject, jsonDecoder, propName) { var jsonElement = jsonObject.ba(propName); var tmp; if (!(jsonElement == null)) { tmp = decodeListOrSingleObjectAsList(jsonDecoder.z4q(), Companion_instance_115.a4r(), jsonElement); } else { tmp = null; } return tmp; } function XapiContextActivitiesSerializer() { XapiContextActivitiesSerializer_instance = this; this.jp6_1 = Companion_getInstance_76().a4r().d44(); } protoOf(XapiContextActivitiesSerializer).d44 = function () { return this.jp6_1; }; protoOf(XapiContextActivitiesSerializer).lp6 = function (encoder, value) { encoder.m49(Companion_getInstance_76().a4r(), toSurrogate(value)); }; protoOf(XapiContextActivitiesSerializer).e44 = function (encoder, value) { return this.lp6(encoder, value instanceof XapiContextActivities ? value : THROW_CCE()); }; protoOf(XapiContextActivitiesSerializer).f44 = 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.x4q(); 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_59() { Companion_instance_108 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.kp6_1 = [new ArrayListSerializer($serializer_getInstance_62()), new ArrayListSerializer($serializer_getInstance_62()), new ArrayListSerializer($serializer_getInstance_62()), new ArrayListSerializer($serializer_getInstance_62())]; } protoOf(Companion_59).a4r = function () { return $serializer_getInstance_57(); }; var Companion_instance_108; function Companion_getInstance_76() { if (Companion_instance_108 == null) new Companion_59(); return Companion_instance_108; } function $serializer_45() { $serializer_instance_45 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('XapiContextActivities', this, 4); tmp0_serialDesc.g4f('parent', true); tmp0_serialDesc.g4f('grouping', true); tmp0_serialDesc.g4f('category', true); tmp0_serialDesc.g4f('other', true); this.mp6_1 = tmp0_serialDesc; } protoOf($serializer_45).d44 = function () { return this.mp6_1; }; protoOf($serializer_45).x4f = function () { var tmp0_cached = Companion_getInstance_76().kp6_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_45).f44 = function (decoder) { var tmp0_desc = this.mp6_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.v47(tmp0_desc); var tmp9_cached = Companion_getInstance_76().kp6_1; if (tmp8_input.k48()) { tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.w47(tmp0_desc); return XapiContextActivitiesSurrogate_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_45).np6 = function (encoder, value) { var tmp0_desc = this.mp6_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_76().kp6_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.op6_1 == null)) { tmp1_output.n49(tmp0_desc, 0, tmp2_cached[0], value.op6_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.pp6_1 == null)) { tmp1_output.n49(tmp0_desc, 1, tmp2_cached[1], value.pp6_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.qp6_1 == null)) { tmp1_output.n49(tmp0_desc, 2, tmp2_cached[2], value.qp6_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.rp6_1 == null)) { tmp1_output.n49(tmp0_desc, 3, tmp2_cached[3], value.rp6_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_45).e44 = function (encoder, value) { return this.np6(encoder, value instanceof XapiContextActivitiesSurrogate ? value : THROW_CCE()); }; var $serializer_instance_45; function $serializer_getInstance_57() { if ($serializer_instance_45 == null) new $serializer_45(); return $serializer_instance_45; } function XapiContextActivitiesSurrogate_init_$Init$(seen1, parent, grouping, category, other, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_57().mp6_1); } if (0 === (seen1 & 1)) $this.op6_1 = null; else $this.op6_1 = parent; if (0 === (seen1 & 2)) $this.pp6_1 = null; else $this.pp6_1 = grouping; if (0 === (seen1 & 4)) $this.qp6_1 = null; else $this.qp6_1 = category; if (0 === (seen1 & 8)) $this.rp6_1 = null; else $this.rp6_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_76(); parent = parent === VOID ? null : parent; grouping = grouping === VOID ? null : grouping; category = category === VOID ? null : category; other = other === VOID ? null : other; this.op6_1 = parent; this.pp6_1 = grouping; this.qp6_1 = category; this.rp6_1 = other; } function toSurrogate(_this__u8e3s4) { return new XapiContextActivitiesSurrogate(_this__u8e3s4.fp6_1, _this__u8e3s4.gp6_1, _this__u8e3s4.hp6_1, _this__u8e3s4.ip6_1); } function toEntities_1(_this__u8e3s4, stringHasher, json, statementUuid) { var tmp = toEntities$toEntitiesInternal(_this__u8e3s4.fp6_1, stringHasher, json, statementUuid, 1); var tmp_0 = plus(tmp, toEntities$toEntitiesInternal(_this__u8e3s4.gp6_1, stringHasher, json, statementUuid, 2)); var tmp_1 = plus(tmp_0, toEntities$toEntitiesInternal(_this__u8e3s4.hp6_1, stringHasher, json, statementUuid, 3)); return plus(tmp_1, toEntities$toEntitiesInternal(_this__u8e3s4.ip6_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.mli(item.tp6_1); var scajToHash = stringHasher.mli('' + contextType + '-' + item.tp6_1); var statementContextActivityJoin = new StatementContextActivityJoin(statementUuid.alp(), statementUuid.blp(), scajToHash, contextType, activityUid, item.tp6_1); var tmp0_safe_receiver = item.up6_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toEntities(tmp0_safe_receiver, item.tp6_1, stringHasher, json); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.yp4(VOID, VOID, VOID, VOID, statementContextActivityJoin); var tmp$ret$0 = tmp2_elvis_lhs == null ? new ActivityEntities(new ActivityEntity(activityUid, item.tp6_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_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.jp5_1 = [null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_55())]; } protoOf(Companion_60).a4r = function () { return $serializer_getInstance_58(); }; var Companion_instance_109; function Companion_getInstance_77() { if (Companion_instance_109 == null) new Companion_60(); return Companion_instance_109; } function $serializer_46() { $serializer_instance_46 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiGroup', this, 7); tmp0_serialDesc.g4f('name', true); tmp0_serialDesc.g4f('mbox', true); tmp0_serialDesc.g4f('mbox_sha1sum', true); tmp0_serialDesc.g4f('openid', true); tmp0_serialDesc.g4f('objectType', true); tmp0_serialDesc.g4f('account', true); tmp0_serialDesc.g4f('member', true); this.vp6_1 = tmp0_serialDesc; } protoOf($serializer_46).d44 = function () { return this.vp6_1; }; protoOf($serializer_46).x4f = function () { var tmp0_cached = Companion_getInstance_77().jp5_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_52()), tmp0_cached[6]]; }; protoOf($serializer_46).f44 = function (decoder) { var tmp0_desc = this.vp6_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.v47(tmp0_desc); var tmp12_cached = Companion_getInstance_77().jp5_1; if (tmp11_input.k48()) { tmp4_local0 = tmp11_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.j48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.j48(tmp0_desc, 5, $serializer_getInstance_52(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.h48(tmp0_desc, 6, tmp12_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.j48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.j48(tmp0_desc, 5, $serializer_getInstance_52(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.h48(tmp0_desc, 6, tmp12_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.w47(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_46).wp6 = function (encoder, value) { var tmp0_desc = this.vp6_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_77().jp5_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.xp6_1 == null)) { tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.xp6_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.yp6_1 == null)) { tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.yp6_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.zp6_1 == null)) { tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.zp6_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.ap7_1 == null)) { tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.ap7_1); } if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.bp7_1 == null)) { tmp1_output.n49(tmp0_desc, 4, XapiObjectTypeSerializer_instance, value.bp7_1); } if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.cp7_1 == null)) { tmp1_output.n49(tmp0_desc, 5, $serializer_getInstance_52(), value.cp7_1); } if (tmp1_output.r49(tmp0_desc, 6) ? true : !equals(value.dp7_1, emptyList())) { tmp1_output.l49(tmp0_desc, 6, tmp2_cached[6], value.dp7_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_46).e44 = function (encoder, value) { return this.wp6(encoder, value instanceof XapiGroup ? value : THROW_CCE()); }; var $serializer_instance_46; function $serializer_getInstance_58() { if ($serializer_instance_46 == null) new $serializer_46(); return $serializer_instance_46; } function XapiGroup_init_$Init$(seen1, name, mbox, mbox_sha1sum, openid, objectType, account, member, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_58().vp6_1); } if (0 === (seen1 & 1)) $this.xp6_1 = null; else $this.xp6_1 = name; if (0 === (seen1 & 2)) $this.yp6_1 = null; else $this.yp6_1 = mbox; if (0 === (seen1 & 4)) $this.zp6_1 = null; else $this.zp6_1 = mbox_sha1sum; if (0 === (seen1 & 8)) $this.ap7_1 = null; else $this.ap7_1 = openid; if (0 === (seen1 & 16)) $this.bp7_1 = null; else $this.bp7_1 = objectType; if (0 === (seen1 & 32)) $this.cp7_1 = null; else $this.cp7_1 = account; if (0 === (seen1 & 64)) $this.dp7_1 = emptyList(); else $this.dp7_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_77(); 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.xp6_1 = name; this.yp6_1 = mbox; this.zp6_1 = mbox_sha1sum; this.ap7_1 = openid; this.bp7_1 = objectType; this.cp7_1 = account; this.dp7_1 = member; } protoOf(XapiGroup).dp5 = function () { return this.yp6_1; }; protoOf(XapiGroup).ep5 = function () { return this.zp6_1; }; protoOf(XapiGroup).fp5 = function () { return this.ap7_1; }; protoOf(XapiGroup).sp5 = function () { return this.bp7_1; }; protoOf(XapiGroup).gp5 = function () { return this.cp7_1; }; protoOf(XapiGroup).toString = function () { return 'XapiGroup(name=' + this.xp6_1 + ', mbox=' + this.yp6_1 + ', mbox_sha1sum=' + this.zp6_1 + ', openid=' + this.ap7_1 + ', objectType=' + this.bp7_1 + ', account=' + this.cp7_1 + ', member=' + this.dp7_1 + ')'; }; protoOf(XapiGroup).hashCode = function () { var result = this.xp6_1 == null ? 0 : getStringHashCode(this.xp6_1); result = imul(result, 31) + (this.yp6_1 == null ? 0 : getStringHashCode(this.yp6_1)) | 0; result = imul(result, 31) + (this.zp6_1 == null ? 0 : getStringHashCode(this.zp6_1)) | 0; result = imul(result, 31) + (this.ap7_1 == null ? 0 : getStringHashCode(this.ap7_1)) | 0; result = imul(result, 31) + (this.bp7_1 == null ? 0 : this.bp7_1.hashCode()) | 0; result = imul(result, 31) + (this.cp7_1 == null ? 0 : this.cp7_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.dp7_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.xp6_1 == tmp0_other_with_cast.xp6_1)) return false; if (!(this.yp6_1 == tmp0_other_with_cast.yp6_1)) return false; if (!(this.zp6_1 == tmp0_other_with_cast.zp6_1)) return false; if (!(this.ap7_1 == tmp0_other_with_cast.ap7_1)) return false; if (!equals(this.bp7_1, tmp0_other_with_cast.bp7_1)) return false; if (!equals(this.cp7_1, tmp0_other_with_cast.cp7_1)) return false; if (!equals(this.dp7_1, tmp0_other_with_cast.dp7_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.dp7_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.lli(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.oli(toByteArray(element.w6_1)); } var memberHash = hasher.pli(); var tmp_0; if (get_isAnonymous(_this__u8e3s4)) { tmp_0 = primaryKeyManager.a62(68); } else { tmp_0 = identifierHash(_this__u8e3s4, stringHasher); } var tmp2_actorUid = tmp_0; var tmp4_actorName = _this__u8e3s4.xp6_1; var tmp5_actorMbox = _this__u8e3s4.yp6_1; var tmp6_actorMbox_sha1sum = _this__u8e3s4.zp6_1; var tmp7_actorOpenid = _this__u8e3s4.ap7_1; var tmp0_safe_receiver = _this__u8e3s4.cp7_1; var tmp8_actorAccountName = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cp4_1; var tmp1_safe_receiver = _this__u8e3s4.cp7_1; var tmp9_actorAccountHomePage = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.bp4_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.lis_1, item_1.x6_1.lis_1, modTime); destination_1.i1(tmp$ret$8); } return new ActorEntities(groupActor, tmp_1, destination_1); } function get_isAnonymous(_this__u8e3s4) { return (_this__u8e3s4.yp6_1 == null ? _this__u8e3s4.ap7_1 == null : false) ? _this__u8e3s4.cp7_1 == null : false; } function sam$kotlin_Comparator$0_0(function_0) { this.ep7_1 = function_0; } protoOf(sam$kotlin_Comparator$0_0).pa = function (a, b) { return this.ep7_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.fp7_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_61() { Companion_instance_110 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.fp7_1 = lazy(tmp_0, XapiInteractionType$Companion$_anonymous__3zafad); } protoOf(Companion_61).gp7 = 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.bp5_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_61).a4r = function () { return _get_$cachedSerializer__te6jhj_0(this); }; protoOf(Companion_61).i4g = function (typeParamsSerializers) { return this.a4r(); }; var Companion_instance_110; function Companion_getInstance_78() { XapiInteractionType_initEntries(); if (Companion_instance_110 == null) new Companion_61(); return Companion_instance_110; } 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_78(); } var $ENTRIES_0; function XapiInteractionType(name, ordinal, jsonFieldValue, dbFlag) { Enum.call(this, name, ordinal); this.bp5_1 = jsonFieldValue; this.cp5_1 = dbFlag; } function XapiInteractionTypeSerializer() { } protoOf(XapiInteractionTypeSerializer).d44 = 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()).d44(); }; protoOf(XapiInteractionTypeSerializer).f44 = function (decoder) { return Companion_getInstance_78().gp7(decoder.q47()); }; protoOf(XapiInteractionTypeSerializer).hp7 = function (encoder, value) { encoder.y48(value.bp5_1); }; protoOf(XapiInteractionTypeSerializer).e44 = function (encoder, value) { return this.hp7(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.ip7_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_62() { Companion_instance_111 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.ip7_1 = lazy(tmp_0, XapiObjectType$Companion$_anonymous__v4av7w); } protoOf(Companion_62).a4r = function () { return _get_$cachedSerializer__te6jhj_1(this); }; protoOf(Companion_62).i4g = function (typeParamsSerializers) { return this.a4r(); }; var Companion_instance_111; function Companion_getInstance_79() { XapiObjectType_initEntries(); if (Companion_instance_111 == null) new Companion_62(); return Companion_instance_111; } 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_79(); } function XapiObjectType(name, ordinal) { Enum.call(this, name, ordinal); } function XapiObjectTypeSerializer() { } protoOf(XapiObjectTypeSerializer).d44 = 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()).d44(); }; protoOf(XapiObjectTypeSerializer).f44 = function (decoder) { var strValue = decoder.q47(); return valueOf(strValue); }; protoOf(XapiObjectTypeSerializer).jp7 = function (encoder, value) { encoder.y48(value.toString()); }; protoOf(XapiObjectTypeSerializer).e44 = function (encoder, value) { return this.jp7(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_63() { } var Companion_instance_112; function Companion_getInstance_80() { return Companion_instance_112; } function $serializer_47() { $serializer_instance_47 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiResult.Score', this, 4); tmp0_serialDesc.g4f('scaled', true); tmp0_serialDesc.g4f('raw', true); tmp0_serialDesc.g4f('min', true); tmp0_serialDesc.g4f('max', true); this.kp7_1 = tmp0_serialDesc; } protoOf($serializer_47).d44 = function () { return this.kp7_1; }; protoOf($serializer_47).x4f = 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_47).f44 = function (decoder) { var tmp0_desc = this.kp7_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.v47(tmp0_desc); if (tmp8_input.k48()) { tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, FloatSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, FloatSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, FloatSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, FloatSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.w47(tmp0_desc); return Score_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_47).lp7 = function (encoder, value) { var tmp0_desc = this.kp7_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.mp7_1 == null)) { tmp1_output.n49(tmp0_desc, 0, FloatSerializer_getInstance(), value.mp7_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.np7_1 == null)) { tmp1_output.n49(tmp0_desc, 1, FloatSerializer_getInstance(), value.np7_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.op7_1 == null)) { tmp1_output.n49(tmp0_desc, 2, FloatSerializer_getInstance(), value.op7_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.pp7_1 == null)) { tmp1_output.n49(tmp0_desc, 3, FloatSerializer_getInstance(), value.pp7_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_47).e44 = function (encoder, value) { return this.lp7(encoder, value instanceof Score ? value : THROW_CCE()); }; var $serializer_instance_47; function $serializer_getInstance_59() { if ($serializer_instance_47 == null) new $serializer_47(); return $serializer_instance_47; } function Score_init_$Init$(seen1, scaled, raw, min, max, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_59().kp7_1); } if (0 === (seen1 & 1)) $this.mp7_1 = null; else $this.mp7_1 = scaled; if (0 === (seen1 & 2)) $this.np7_1 = null; else $this.np7_1 = raw; if (0 === (seen1 & 4)) $this.op7_1 = null; else $this.op7_1 = min; if (0 === (seen1 & 8)) $this.pp7_1 = null; else $this.pp7_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.mp7_1 = scaled; this.np7_1 = raw; this.op7_1 = min; this.pp7_1 = max; } protoOf(Score).toString = function () { return 'Score(scaled=' + this.mp7_1 + ', raw=' + this.np7_1 + ', min=' + this.op7_1 + ', max=' + this.pp7_1 + ')'; }; protoOf(Score).hashCode = function () { var result = this.mp7_1 == null ? 0 : getNumberHashCode(this.mp7_1); result = imul(result, 31) + (this.np7_1 == null ? 0 : getNumberHashCode(this.np7_1)) | 0; result = imul(result, 31) + (this.op7_1 == null ? 0 : getNumberHashCode(this.op7_1)) | 0; result = imul(result, 31) + (this.pp7_1 == null ? 0 : getNumberHashCode(this.pp7_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.mp7_1, tmp0_other_with_cast.mp7_1)) return false; if (!equals(this.np7_1, tmp0_other_with_cast.np7_1)) return false; if (!equals(this.op7_1, tmp0_other_with_cast.op7_1)) return false; if (!equals(this.pp7_1, tmp0_other_with_cast.pp7_1)) return false; return true; }; 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.qp7_1 = [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_48() { $serializer_instance_48 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiResult', this, 6); tmp0_serialDesc.g4f('completion', true); tmp0_serialDesc.g4f('success', true); tmp0_serialDesc.g4f('score', true); tmp0_serialDesc.g4f('duration', true); tmp0_serialDesc.g4f('response', true); tmp0_serialDesc.g4f('extensions', true); this.rp7_1 = tmp0_serialDesc; } protoOf($serializer_48).d44 = function () { return this.rp7_1; }; protoOf($serializer_48).x4f = function () { var tmp0_cached = Companion_getInstance_81().qp7_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_59()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[5])]; }; protoOf($serializer_48).f44 = function (decoder) { var tmp0_desc = this.rp7_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.v47(tmp0_desc); var tmp11_cached = Companion_getInstance_81().qp7_1; if (tmp10_input.k48()) { tmp4_local0 = tmp10_input.j48(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.j48(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.j48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.j48(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.j48(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.j48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.w47(tmp0_desc); return XapiResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_48).sp7 = function (encoder, value) { var tmp0_desc = this.rp7_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_81().qp7_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.kp3_1 == null)) { tmp1_output.n49(tmp0_desc, 0, BooleanSerializer_getInstance(), value.kp3_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.lp3_1 == null)) { tmp1_output.n49(tmp0_desc, 1, BooleanSerializer_getInstance(), value.lp3_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.mp3_1 == null)) { tmp1_output.n49(tmp0_desc, 2, $serializer_getInstance_59(), value.mp3_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.np3_1 == null)) { tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.np3_1); } if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.op3_1 == null)) { tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.op3_1); } if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.pp3_1 == null)) { tmp1_output.n49(tmp0_desc, 5, tmp2_cached[5], value.pp3_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_48).e44 = function (encoder, value) { return this.sp7(encoder, value instanceof XapiResult ? value : THROW_CCE()); }; var $serializer_instance_48; function $serializer_getInstance_60() { if ($serializer_instance_48 == null) new $serializer_48(); return $serializer_instance_48; } function XapiResult_init_$Init$(seen1, completion, success, score, duration, response, extensions, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_60().rp7_1); } if (0 === (seen1 & 1)) $this.kp3_1 = null; else $this.kp3_1 = completion; if (0 === (seen1 & 2)) $this.lp3_1 = null; else $this.lp3_1 = success; if (0 === (seen1 & 4)) $this.mp3_1 = null; else $this.mp3_1 = score; if (0 === (seen1 & 8)) $this.np3_1 = null; else $this.np3_1 = duration; if (0 === (seen1 & 16)) $this.op3_1 = null; else $this.op3_1 = response; if (0 === (seen1 & 32)) $this.pp3_1 = null; else $this.pp3_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_81(); 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.kp3_1 = completion; this.lp3_1 = success; this.mp3_1 = score; this.np3_1 = duration; this.op3_1 = response; this.pp3_1 = extensions; } protoOf(XapiResult).toString = function () { return 'XapiResult(completion=' + this.kp3_1 + ', success=' + this.lp3_1 + ', score=' + this.mp3_1 + ', duration=' + this.np3_1 + ', response=' + this.op3_1 + ', extensions=' + this.pp3_1 + ')'; }; protoOf(XapiResult).hashCode = function () { var result = this.kp3_1 == null ? 0 : getBooleanHashCode(this.kp3_1); result = imul(result, 31) + (this.lp3_1 == null ? 0 : getBooleanHashCode(this.lp3_1)) | 0; result = imul(result, 31) + (this.mp3_1 == null ? 0 : this.mp3_1.hashCode()) | 0; result = imul(result, 31) + (this.np3_1 == null ? 0 : getStringHashCode(this.np3_1)) | 0; result = imul(result, 31) + (this.op3_1 == null ? 0 : getStringHashCode(this.op3_1)) | 0; result = imul(result, 31) + (this.pp3_1 == null ? 0 : hashCode(this.pp3_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.kp3_1 == tmp0_other_with_cast.kp3_1)) return false; if (!(this.lp3_1 == tmp0_other_with_cast.lp3_1)) return false; if (!equals(this.mp3_1, tmp0_other_with_cast.mp3_1)) return false; if (!(this.np3_1 == tmp0_other_with_cast.np3_1)) return false; if (!(this.op3_1 == tmp0_other_with_cast.op3_1)) return false; if (!equals(this.pp3_1, tmp0_other_with_cast.pp3_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_65() { Companion_instance_114 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.gp1_1 = [null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_51()), null]; } protoOf(Companion_65).a4r = function () { return $serializer_getInstance_61(); }; var Companion_instance_114; function Companion_getInstance_82() { if (Companion_instance_114 == null) new Companion_65(); return Companion_instance_114; } function $serializer_49() { $serializer_instance_49 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiStatement', this, 12); tmp0_serialDesc.g4f('id', true); tmp0_serialDesc.g4f('actor', false); tmp0_serialDesc.g4f('verb', false); tmp0_serialDesc.g4f('object', false); tmp0_serialDesc.g4f('result', true); tmp0_serialDesc.g4f('context', true); tmp0_serialDesc.g4f('timestamp', true); tmp0_serialDesc.g4f('stored', true); tmp0_serialDesc.g4f('authority', true); tmp0_serialDesc.g4f('version', true); tmp0_serialDesc.g4f('attachments', true); tmp0_serialDesc.g4f('objectType', true); this.tp7_1 = tmp0_serialDesc; } protoOf($serializer_49).d44 = function () { return this.tp7_1; }; protoOf($serializer_49).x4f = function () { var tmp0_cached = Companion_getInstance_82().gp1_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_64(), XapiStatementObjectSerializer_getInstance(), get_nullable($serializer_getInstance_60()), get_nullable($serializer_getInstance_56()), 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_49).f44 = function (decoder) { var tmp0_desc = this.tp7_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.v47(tmp0_desc); var tmp17_cached = Companion_getInstance_82().gp1_1; if (tmp16_input.k48()) { tmp4_local0 = tmp16_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp16_input.h48(tmp0_desc, 1, XapiActorSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp16_input.h48(tmp0_desc, 2, $serializer_getInstance_64(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp16_input.h48(tmp0_desc, 3, XapiStatementObjectSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp16_input.j48(tmp0_desc, 4, $serializer_getInstance_60(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp16_input.j48(tmp0_desc, 5, $serializer_getInstance_56(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp16_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp16_input.j48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp16_input.j48(tmp0_desc, 8, XapiActorSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp16_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp16_input.j48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp16_input.j48(tmp0_desc, 11, XapiObjectTypeSerializer_instance, tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; } else while (tmp1_flag) { tmp2_index = tmp16_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp16_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp16_input.h48(tmp0_desc, 1, XapiActorSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp16_input.h48(tmp0_desc, 2, $serializer_getInstance_64(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp16_input.h48(tmp0_desc, 3, XapiStatementObjectSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp16_input.j48(tmp0_desc, 4, $serializer_getInstance_60(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp16_input.j48(tmp0_desc, 5, $serializer_getInstance_56(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp16_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp16_input.j48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp16_input.j48(tmp0_desc, 8, XapiActorSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp16_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp16_input.j48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp16_input.j48(tmp0_desc, 11, XapiObjectTypeSerializer_instance, tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp16_input.w47(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_49).up7 = function (encoder, value) { var tmp0_desc = this.tp7_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_82().gp1_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.tp0_1 == null)) { tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.tp0_1); } tmp1_output.l49(tmp0_desc, 1, XapiActorSerializer_getInstance(), value.up0_1); tmp1_output.l49(tmp0_desc, 2, $serializer_getInstance_64(), value.vp0_1); tmp1_output.l49(tmp0_desc, 3, XapiStatementObjectSerializer_getInstance(), value.wp0_1); if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.xp0_1 == null)) { tmp1_output.n49(tmp0_desc, 4, $serializer_getInstance_60(), value.xp0_1); } if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.yp0_1 == null)) { tmp1_output.n49(tmp0_desc, 5, $serializer_getInstance_56(), value.yp0_1); } if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.zp0_1 == null)) { tmp1_output.n49(tmp0_desc, 6, StringSerializer_getInstance(), value.zp0_1); } if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.ap1_1 == null)) { tmp1_output.n49(tmp0_desc, 7, StringSerializer_getInstance(), value.ap1_1); } if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.bp1_1 == null)) { tmp1_output.n49(tmp0_desc, 8, XapiActorSerializer_getInstance(), value.bp1_1); } if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.cp1_1 == null)) { tmp1_output.n49(tmp0_desc, 9, StringSerializer_getInstance(), value.cp1_1); } if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.dp1_1 == null)) { tmp1_output.n49(tmp0_desc, 10, tmp2_cached[10], value.dp1_1); } if (tmp1_output.r49(tmp0_desc, 11) ? true : !(value.ep1_1 == null)) { tmp1_output.n49(tmp0_desc, 11, XapiObjectTypeSerializer_instance, value.ep1_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_49).e44 = function (encoder, value) { return this.up7(encoder, value instanceof XapiStatement ? value : THROW_CCE()); }; var $serializer_instance_49; function $serializer_getInstance_61() { if ($serializer_instance_49 == null) new $serializer_49(); return $serializer_instance_49; } 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_61().tp7_1); } if (0 === (seen1 & 1)) $this.tp0_1 = null; else $this.tp0_1 = id; $this.up0_1 = actor; $this.vp0_1 = verb; $this.wp0_1 = object; if (0 === (seen1 & 16)) $this.xp0_1 = null; else $this.xp0_1 = result; if (0 === (seen1 & 32)) $this.yp0_1 = null; else $this.yp0_1 = context; if (0 === (seen1 & 64)) $this.zp0_1 = null; else $this.zp0_1 = timestamp; if (0 === (seen1 & 128)) $this.ap1_1 = null; else $this.ap1_1 = stored; if (0 === (seen1 & 256)) $this.bp1_1 = null; else $this.bp1_1 = authority; if (0 === (seen1 & 512)) $this.cp1_1 = null; else $this.cp1_1 = version; if (0 === (seen1 & 1024)) $this.dp1_1 = null; else $this.dp1_1 = attachments; if (0 === (seen1 & 2048)) $this.ep1_1 = null; else $this.ep1_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_82(); 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.tp0_1 = id; this.up0_1 = actor; this.vp0_1 = verb; this.wp0_1 = object; this.xp0_1 = result; this.yp0_1 = context; this.zp0_1 = timestamp; this.ap1_1 = stored; this.bp1_1 = authority; this.cp1_1 = version; this.dp1_1 = attachments; this.ep1_1 = objectType; } protoOf(XapiStatement).sp5 = function () { return this.ep1_1; }; protoOf(XapiStatement).vp7 = 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).fp1 = function (id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType, $super) { id = id === VOID ? this.tp0_1 : id; actor = actor === VOID ? this.up0_1 : actor; verb = verb === VOID ? this.vp0_1 : verb; object = object === VOID ? this.wp0_1 : object; result = result === VOID ? this.xp0_1 : result; context = context === VOID ? this.yp0_1 : context; timestamp = timestamp === VOID ? this.zp0_1 : timestamp; stored = stored === VOID ? this.ap1_1 : stored; authority = authority === VOID ? this.bp1_1 : authority; version = version === VOID ? this.cp1_1 : version; attachments = attachments === VOID ? this.dp1_1 : attachments; objectType = objectType === VOID ? this.ep1_1 : objectType; return $super === VOID ? this.vp7(id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType) : $super.vp7.call(this, id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType); }; protoOf(XapiStatement).toString = function () { return 'XapiStatement(id=' + this.tp0_1 + ', actor=' + this.up0_1 + ', verb=' + this.vp0_1 + ', object=' + this.wp0_1 + ', result=' + this.xp0_1 + ', context=' + this.yp0_1 + ', timestamp=' + this.zp0_1 + ', stored=' + this.ap1_1 + ', authority=' + this.bp1_1 + ', version=' + this.cp1_1 + ', attachments=' + this.dp1_1 + ', objectType=' + this.ep1_1 + ')'; }; protoOf(XapiStatement).hashCode = function () { var result = this.tp0_1 == null ? 0 : getStringHashCode(this.tp0_1); result = imul(result, 31) + hashCode(this.up0_1) | 0; result = imul(result, 31) + this.vp0_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.wp0_1) | 0; result = imul(result, 31) + (this.xp0_1 == null ? 0 : this.xp0_1.hashCode()) | 0; result = imul(result, 31) + (this.yp0_1 == null ? 0 : this.yp0_1.hashCode()) | 0; result = imul(result, 31) + (this.zp0_1 == null ? 0 : getStringHashCode(this.zp0_1)) | 0; result = imul(result, 31) + (this.ap1_1 == null ? 0 : getStringHashCode(this.ap1_1)) | 0; result = imul(result, 31) + (this.bp1_1 == null ? 0 : hashCode(this.bp1_1)) | 0; result = imul(result, 31) + (this.cp1_1 == null ? 0 : getStringHashCode(this.cp1_1)) | 0; result = imul(result, 31) + (this.dp1_1 == null ? 0 : hashCode(this.dp1_1)) | 0; result = imul(result, 31) + (this.ep1_1 == null ? 0 : this.ep1_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.tp0_1 == tmp0_other_with_cast.tp0_1)) return false; if (!equals(this.up0_1, tmp0_other_with_cast.up0_1)) return false; if (!this.vp0_1.equals(tmp0_other_with_cast.vp0_1)) return false; if (!equals(this.wp0_1, tmp0_other_with_cast.wp0_1)) return false; if (!equals(this.xp0_1, tmp0_other_with_cast.xp0_1)) return false; if (!equals(this.yp0_1, tmp0_other_with_cast.yp0_1)) return false; if (!(this.zp0_1 == tmp0_other_with_cast.zp0_1)) return false; if (!(this.ap1_1 == tmp0_other_with_cast.ap1_1)) return false; if (!equals(this.bp1_1, tmp0_other_with_cast.bp1_1)) return false; if (!(this.cp1_1 == tmp0_other_with_cast.cp1_1)) return false; if (!equals(this.dp1_1, tmp0_other_with_cast.dp1_1)) return false; if (!equals(this.ep1_1, tmp0_other_with_cast.ep1_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.jp0_1 = statementEntity; this.kp0_1 = statementEntityJson; this.lp0_1 = actorEntities; this.mp0_1 = verbEntities; this.np0_1 = activityEntities; } protoOf(StatementEntities).toString = function () { return 'StatementEntities(statementEntity=' + this.jp0_1 + ', statementEntityJson=' + this.kp0_1 + ', actorEntities=' + this.lp0_1 + ', verbEntities=' + this.mp0_1 + ', activityEntities=' + this.np0_1 + ')'; }; protoOf(StatementEntities).hashCode = function () { var result = this.jp0_1 == null ? 0 : this.jp0_1.hashCode(); result = imul(result, 31) + (this.kp0_1 == null ? 0 : this.kp0_1.hashCode()) | 0; result = imul(result, 31) + (this.lp0_1 == null ? 0 : hashCode(this.lp0_1)) | 0; result = imul(result, 31) + (this.mp0_1 == null ? 0 : this.mp0_1.hashCode()) | 0; result = imul(result, 31) + (this.np0_1 == null ? 0 : hashCode(this.np0_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.jp0_1, tmp0_other_with_cast.jp0_1)) return false; if (!equals(this.kp0_1, tmp0_other_with_cast.kp0_1)) return false; if (!equals(this.lp0_1, tmp0_other_with_cast.lp0_1)) return false; if (!equals(this.mp0_1, tmp0_other_with_cast.mp0_1)) return false; if (!equals(this.np0_1, tmp0_other_with_cast.np0_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.tp0_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.wp0_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.yp0_1; var contextRegistration = xapiRequireValidUuidOrNull(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.xp5_1, 'Invalid context registration uuid'); var statementActorEntities = toEntities_0(_this__u8e3s4.up0_1, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); var tmp3_safe_receiver = _this__u8e3s4.bp1_1; var authorityActor = tmp3_safe_receiver == null ? null : toEntities_0(tmp3_safe_receiver, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); var tmp4_safe_receiver = _this__u8e3s4.yp0_1; var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.wp5_1; var contextInstructorActorEntities = tmp5_safe_receiver == null ? null : toEntities_0(tmp5_safe_receiver, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); var statementObjectForeignKeys = objectForeignKeys(_this__u8e3s4.wp0_1, stringHasher, statementUuid); var tmp34_statementIdHi = statementUuid.alp(); var tmp35_statementIdLo = statementUuid.blp(); var tmp_3; var tmp_4; var tmp6_safe_receiver = _this__u8e3s4.up0_1.gp5(); if ((tmp6_safe_receiver == null ? null : tmp6_safe_receiver.bp4_1) === learningSpace.in3_1) { var tmp7_safe_receiver = _this__u8e3s4.up0_1.gp5(); tmp_4 = (tmp7_safe_receiver == null ? null : tmp7_safe_receiver.cp4_1) === xapiSession.bjc_1; } else { tmp_4 = false; } if (tmp_4) { tmp_3 = xapiSession.zjb_1; } else { tmp_3 = new Long(0, 0); } var tmp36_statementActorPersonUid = tmp_3; var tmp37_statementActorUid = statementActorEntities.op0_1.lis_1; var tmp9_safe_receiver = authorityActor == null ? null : authorityActor.op0_1; var tmp10_elvis_lhs = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.lis_1; var tmp38_authorityActorUid = tmp10_elvis_lhs == null ? new Long(0, 0) : tmp10_elvis_lhs; var tmp39_statementVerbUid = stringHasher.mli(xapiRequireValidIRI(_this__u8e3s4.vp0_1.wp7_1, 'Statement ' + statementUuid + ' VerbID ' + _this__u8e3s4.vp0_1.wp7_1 + ' is not a valid IRI')); var tmp11_safe_receiver = _this__u8e3s4.xp0_1; var tmp40_resultCompletion = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.kp3_1; var tmp12_safe_receiver = _this__u8e3s4.xp0_1; var tmp41_resultSuccess = tmp12_safe_receiver == null ? null : tmp12_safe_receiver.lp3_1; var tmp13_safe_receiver = _this__u8e3s4.xp0_1; var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.mp3_1; var tmp42_resultScoreScaled = tmp14_safe_receiver == null ? null : tmp14_safe_receiver.mp7_1; var tmp15_safe_receiver = _this__u8e3s4.xp0_1; var tmp16_safe_receiver = tmp15_safe_receiver == null ? null : tmp15_safe_receiver.mp3_1; var tmp43_resultScoreRaw = tmp16_safe_receiver == null ? null : tmp16_safe_receiver.np7_1; var tmp17_safe_receiver = _this__u8e3s4.xp0_1; var tmp18_safe_receiver = tmp17_safe_receiver == null ? null : tmp17_safe_receiver.mp3_1; var tmp44_resultScoreMin = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.op7_1; var tmp19_safe_receiver = _this__u8e3s4.xp0_1; var tmp20_safe_receiver = tmp19_safe_receiver == null ? null : tmp19_safe_receiver.mp3_1; var tmp45_resultScoreMax = tmp20_safe_receiver == null ? null : tmp20_safe_receiver.pp7_1; var tmp21_safe_receiver = _this__u8e3s4.xp0_1; var tmp46_resultDuration = xapiRequireDurationOrNullAsLong(tmp21_safe_receiver == null ? null : tmp21_safe_receiver.np3_1); var tmp22_safe_receiver = _this__u8e3s4.xp0_1; var tmp47_resultResponse = tmp22_safe_receiver == null ? null : tmp22_safe_receiver.op3_1; var tmp23_safe_receiver = _this__u8e3s4.zp0_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.alp(); var tmp50_contextRegistrationHi = tmp26_elvis_lhs == null ? new Long(0, 0) : tmp26_elvis_lhs; var tmp28_elvis_lhs = contextRegistration == null ? null : contextRegistration.blp(); var tmp51_contextRegistrationLo = tmp28_elvis_lhs == null ? new Long(0, 0) : tmp28_elvis_lhs; var tmp29_safe_receiver = _this__u8e3s4.yp0_1; var tmp52_contextPlatform = tmp29_safe_receiver == null ? null : tmp29_safe_receiver.zp5_1; var tmp31_safe_receiver = contextInstructorActorEntities == null ? null : contextInstructorActorEntities.op0_1; var tmp32_elvis_lhs = tmp31_safe_receiver == null ? null : tmp31_safe_receiver.lis_1; var tmp53_contextInstructorActorUid = tmp32_elvis_lhs == null ? new Long(0, 0) : tmp32_elvis_lhs; var tmp54_statementContentEntryUid = xapiSession.ejc_1; var tmp55_statementClazzUid = xapiSession.cjc_1; var tmp56_statementCbUid = xapiSession.djc_1; var tmp_6; if (isCompletionOrProgress(_this__u8e3s4)) { var tmp_7; if (xapiSession.ejc_1.equals(new Long(0, 0))) { tmp_7 = true; } else { var tmp_8 = _this__u8e3s4.wp0_1; var tmp33_safe_receiver = tmp_8 instanceof XapiActivityStatementObject ? tmp_8 : null; tmp_7 = (tmp33_safe_receiver == null ? null : tmp33_safe_receiver.tp6_1) === xapiSession.gjc_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.wp0_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.alp(), statementUuid.blp(), 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.vp0_1, stringHasher); var tmp62_safe_receiver = _this__u8e3s4.yp0_1; var tmp63_safe_receiver = tmp62_safe_receiver == null ? null : tmp62_safe_receiver.dp6_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.wp0_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.xp0_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kp3_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).y4q = 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.t3a(); 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_115.a4r(); break; case 3: tmp_2 = Companion_instance_105.a4r(); break; case 4: tmp_2 = Companion_getInstance_77().a4r(); break; case 0: tmp_2 = Companion_instance_116.a4r(); break; case 1: tmp_2 = Companion_getInstance_82().a4r(); 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_66() { } protoOf(Companion_66).a4r = function () { return $serializer_getInstance_62(); }; var Companion_instance_115; function Companion_getInstance_83() { return Companion_instance_115; } function $serializer_50() { $serializer_instance_50 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiActivityStatementObject', this, 3); tmp0_serialDesc.g4f('objectType', true); tmp0_serialDesc.g4f('id', false); tmp0_serialDesc.g4f('definition', true); this.ap8_1 = tmp0_serialDesc; } protoOf($serializer_50).d44 = function () { return this.ap8_1; }; protoOf($serializer_50).x4f = 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_54())]; }; protoOf($serializer_50).f44 = function (decoder) { var tmp0_desc = this.ap8_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.v47(tmp0_desc); if (tmp7_input.k48()) { tmp4_local0 = tmp7_input.j48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.j48(tmp0_desc, 2, $serializer_getInstance_54(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.j48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.j48(tmp0_desc, 2, $serializer_getInstance_54(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.w47(tmp0_desc); return XapiActivityStatementObject_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_50).bp8 = function (encoder, value) { var tmp0_desc = this.ap8_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.sp6_1 == null)) { tmp1_output.n49(tmp0_desc, 0, XapiObjectTypeSerializer_instance, value.sp6_1); } tmp1_output.j49(tmp0_desc, 1, value.tp6_1); if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.up6_1 == null)) { tmp1_output.n49(tmp0_desc, 2, $serializer_getInstance_54(), value.up6_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_50).e44 = function (encoder, value) { return this.bp8(encoder, value instanceof XapiActivityStatementObject ? value : THROW_CCE()); }; var $serializer_instance_50; function $serializer_getInstance_62() { if ($serializer_instance_50 == null) new $serializer_50(); return $serializer_instance_50; } function XapiActivityStatementObject_init_$Init$(seen1, objectType, id, definition, serializationConstructorMarker, $this) { if (!(2 === (2 & seen1))) { throwMissingFieldException(seen1, 2, $serializer_getInstance_62().ap8_1); } if (0 === (seen1 & 1)) $this.sp6_1 = null; else $this.sp6_1 = objectType; $this.tp6_1 = id; if (0 === (seen1 & 4)) $this.up6_1 = null; else $this.up6_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.sp6_1 = objectType; this.tp6_1 = id; this.up6_1 = definition; } protoOf(XapiActivityStatementObject).sp5 = function () { return this.sp6_1; }; protoOf(XapiActivityStatementObject).toString = function () { return 'XapiActivityStatementObject(objectType=' + this.sp6_1 + ', id=' + this.tp6_1 + ', definition=' + this.up6_1 + ')'; }; protoOf(XapiActivityStatementObject).hashCode = function () { var result = this.sp6_1 == null ? 0 : this.sp6_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.tp6_1) | 0; result = imul(result, 31) + (this.up6_1 == null ? 0 : this.up6_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.sp6_1, tmp0_other_with_cast.sp6_1)) return false; if (!(this.tp6_1 === tmp0_other_with_cast.tp6_1)) return false; if (!equals(this.up6_1, tmp0_other_with_cast.up6_1)) return false; return true; }; function objectForeignKeys(_this__u8e3s4, stringHasher, statementUuid) { var tmp; if (_this__u8e3s4 instanceof XapiActivityStatementObject) { tmp = new Pair(stringHasher.mli(_this__u8e3s4.tp6_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.dp8_1); tmp = new Pair(uuid.alp(), uuid.blp()); } else { if (_this__u8e3s4 instanceof XapiStatement) { var tmp_0 = statementUuid.alp(); // Inline function 'kotlin.Long.plus' call var tmp$ret$0 = statementUuid.blp().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.up6_1, _this__u8e3s4.tp6_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.alp(); // Inline function 'kotlin.Long.plus' call var tmp$ret$0 = parentStatementUuid.blp().lc(toLong(1)); tmp = toEntities_3(_this__u8e3s4.fp1(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.sp5(); 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_67() { } protoOf(Companion_67).a4r = function () { return $serializer_getInstance_63(); }; var Companion_instance_116; function Companion_getInstance_84() { return Companion_instance_116; } function $serializer_51() { $serializer_instance_51 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiStatementRef', this, 2); tmp0_serialDesc.g4f('objectType', false); tmp0_serialDesc.g4f('id', false); this.ep8_1 = tmp0_serialDesc; } protoOf($serializer_51).d44 = function () { return this.ep8_1; }; protoOf($serializer_51).x4f = 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_51).f44 = function (decoder) { var tmp0_desc = this.ep8_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.v47(tmp0_desc); if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.h48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.h48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.f48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return XapiStatementRef_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_51).fp8 = function (encoder, value) { var tmp0_desc = this.ep8_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.l49(tmp0_desc, 0, XapiObjectTypeSerializer_instance, value.cp8_1); tmp1_output.j49(tmp0_desc, 1, value.dp8_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_51).e44 = function (encoder, value) { return this.fp8(encoder, value instanceof XapiStatementRef ? value : THROW_CCE()); }; var $serializer_instance_51; function $serializer_getInstance_63() { if ($serializer_instance_51 == null) new $serializer_51(); return $serializer_instance_51; } function XapiStatementRef_init_$Init$(seen1, objectType, id, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_63().ep8_1); } $this.cp8_1 = objectType; $this.dp8_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).sp5 = function () { return this.cp8_1; }; protoOf(XapiStatementRef).toString = function () { return 'XapiStatementRef(objectType=' + this.cp8_1 + ', id=' + this.dp8_1 + ')'; }; protoOf(XapiStatementRef).hashCode = function () { var result = this.cp8_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.dp8_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.cp8_1.equals(tmp0_other_with_cast.cp8_1)) return false; if (!(this.dp8_1 === tmp0_other_with_cast.dp8_1)) return false; return true; }; function Companion_68() { Companion_instance_117 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.gp8_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; } var Companion_instance_117; function Companion_getInstance_85() { if (Companion_instance_117 == null) new Companion_68(); return Companion_instance_117; } function $serializer_52() { $serializer_instance_52 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiVerb', this, 2); tmp0_serialDesc.g4f('id', true); tmp0_serialDesc.g4f('display', true); this.hp8_1 = tmp0_serialDesc; } protoOf($serializer_52).d44 = function () { return this.hp8_1; }; protoOf($serializer_52).x4f = function () { var tmp0_cached = Companion_getInstance_85().gp8_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_52).f44 = function (decoder) { var tmp0_desc = this.hp8_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.v47(tmp0_desc); var tmp7_cached = Companion_getInstance_85().gp8_1; if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return XapiVerb_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_52).ip8 = function (encoder, value) { var tmp0_desc = this.hp8_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_85().gp8_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.wp7_1 == null)) { tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.wp7_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.xp7_1 == null)) { tmp1_output.n49(tmp0_desc, 1, tmp2_cached[1], value.xp7_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_52).e44 = function (encoder, value) { return this.ip8(encoder, value instanceof XapiVerb ? value : THROW_CCE()); }; var $serializer_instance_52; function $serializer_getInstance_64() { if ($serializer_instance_52 == null) new $serializer_52(); return $serializer_instance_52; } function XapiVerb_init_$Init$(seen1, id, display, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_64().hp8_1); } if (0 === (seen1 & 1)) $this.wp7_1 = null; else $this.wp7_1 = id; if (0 === (seen1 & 2)) $this.xp7_1 = null; else $this.xp7_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_85(); id = id === VOID ? null : id; display = display === VOID ? null : display; this.wp7_1 = id; this.xp7_1 = display; } protoOf(XapiVerb).toString = function () { return 'XapiVerb(id=' + this.wp7_1 + ', display=' + this.xp7_1 + ')'; }; protoOf(XapiVerb).hashCode = function () { var result = this.wp7_1 == null ? 0 : getStringHashCode(this.wp7_1); result = imul(result, 31) + (this.xp7_1 == null ? 0 : hashCode(this.xp7_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.wp7_1 == tmp0_other_with_cast.wp7_1)) return false; if (!equals(this.xp7_1, tmp0_other_with_cast.xp7_1)) return false; return true; }; function get_VERB_COMPLETED() { return VERB_COMPLETED; } var VERB_COMPLETED; function VerbEntities(verbEntity, verbLangMapEntries) { this.rp0_1 = verbEntity; this.sp0_1 = verbLangMapEntries; } protoOf(VerbEntities).toString = function () { return 'VerbEntities(verbEntity=' + this.rp0_1 + ', verbLangMapEntries=' + this.sp0_1 + ')'; }; protoOf(VerbEntities).hashCode = function () { var result = this.rp0_1.hashCode(); result = imul(result, 31) + hashCode(this.sp0_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.rp0_1.equals(tmp0_other_with_cast.rp0_1)) return false; if (!equals(this.sp0_1, tmp0_other_with_cast.sp0_1)) return false; return true; }; function toVerbEntities(_this__u8e3s4, xxHasher) { var verbIri = xapiRequireValidIRI(_this__u8e3s4.wp7_1); var verbUid = xxHasher.mli(verbIri); var tmp = new VerbEntity(verbUid, _this__u8e3s4.wp7_1); var tmp0_safe_receiver = _this__u8e3s4.xp7_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.mli(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.mp8_1, $this.pp8_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.op8_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.tp8(false); var tmp$ret$1; $l$block: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_0 = $this.qp8_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.rp8_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$slambda(this$0, $usageDurationVal, $timeSinceActive, resultContinuation) { this.cp9_1 = this$0; this.dp9_1 = $usageDurationVal; this.ep9_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.cp9_1.lp8_1.knu(listOf_0(createXapiStatement(this.cp9_1, this.dp9_1.lc(this.ep9_1), 100, true)), this.cp9_1.mp8_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.cp9_1, this.dp9_1, this.ep9_1, completion); i.fp9_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.jp8_1 = saveStatementOnClearUseCase; this.kp8_1 = saveStatementOnUnloadUseCase; this.lp8_1 = xapiStatementResource; this.mp8_1 = xapiSession; this.np8_1 = scope; this.op8_1 = xapiActivityProvider; this.pp8_1 = learningSpace; this.qp8_1 = atomic$long$1(new Long(0, 0)); this.rp8_1 = atomic$int$1(0); this.sp8_1 = atomic$long$1(new Long(0, 0)); } protoOf(NonInteractiveContentXapiStatementRecorder).tp8 = function (active) { var tmp = Napier_getInstance(); tmp.r5d(VOID, VOID, NonInteractiveContentXapiStatementRecorder$onActiveChanged$lambda(active)); if (active) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.sp8_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.sp8_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.qp8_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).gp9 = function (progress) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.rp8_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).hp9 = function () { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_0 = this.qp8_1; while (true) { var cur = this_0.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.onComplete.' 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.sp8_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 activeStartTimeVal = tmp$ret$3; var tmp; if (!activeStartTimeVal.equals(new Long(0, 0))) { tmp = systemTimeInMillis().mc(activeStartTimeVal); } else { tmp = new Long(0, 0); } var timeSinceActive = tmp; $l$block_1: { // Inline function 'kotlinx.atomicfu.update' call var this_2 = this.rp8_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 = 0; if (this_2.atomicfu$compareAndSet(cur_1, upd_1)) { break $l$block_1; } } } launch(this.np8_1, VOID, VOID, NonInteractiveContentXapiStatementRecorder$onComplete$slambda_0(this, usageDurationVal, timeSinceActive, null)); }; protoOf(NonInteractiveContentXapiStatementRecorder).zli = function () { this.jp8_1.ip9(listOf_0(createFinalStatement(this)), this.mp8_1); }; protoOf(NonInteractiveContentXapiStatementRecorder).jp9 = function () { var tmp0_safe_receiver = this.kp8_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.ip9(listOf_0(createFinalStatement(this)), this.mp8_1); } }; function NonInteractiveContentXapiStatementRecorderFactory(saveStatementOnClearUseCase, saveStatementOnUnloadUseCase, xapiStatementResource, learningSpace) { this.kp9_1 = saveStatementOnClearUseCase; this.lp9_1 = saveStatementOnUnloadUseCase; this.mp9_1 = xapiStatementResource; this.np9_1 = learningSpace; } protoOf(NonInteractiveContentXapiStatementRecorderFactory).op9 = function (xapiSession, scope, xapiActivityProvider) { return new NonInteractiveContentXapiStatementRecorder(this.kp9_1, this.lp9_1, this.mp9_1, xapiSession, scope, xapiActivityProvider, this.np9_1); }; function SaveStatementOnClearUseCase() { } function SaveStatementOnUnloadUseCase() { } function Companion_69() { Companion_instance_118 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.pp9_1 = [new ArrayListSerializer($serializer_getInstance_61()), null]; } protoOf(Companion_69).a4r = function () { return $serializer_getInstance_65(); }; var Companion_instance_118; function Companion_getInstance_86() { if (Companion_instance_118 == null) new Companion_69(); return Companion_instance_118; } function $serializer_53() { $serializer_instance_53 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.savestatementonclear.XapiStatementsAndSession', this, 2); tmp0_serialDesc.g4f('statements', false); tmp0_serialDesc.g4f('session', false); this.qp9_1 = tmp0_serialDesc; } protoOf($serializer_53).d44 = function () { return this.qp9_1; }; protoOf($serializer_53).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_86().pp9_1[0], $serializer_getInstance_6()]; }; protoOf($serializer_53).f44 = function (decoder) { var tmp0_desc = this.qp9_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.v47(tmp0_desc); var tmp7_cached = Companion_getInstance_86().pp9_1; if (tmp6_input.k48()) { tmp4_local0 = tmp6_input.h48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.h48(tmp0_desc, 1, $serializer_getInstance_6(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.h48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.h48(tmp0_desc, 1, $serializer_getInstance_6(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.w47(tmp0_desc); return XapiStatementsAndSession_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_53).rp9 = function (encoder, value) { var tmp0_desc = this.qp9_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_86().pp9_1; tmp1_output.l49(tmp0_desc, 0, tmp2_cached[0], value.sp9_1); tmp1_output.l49(tmp0_desc, 1, $serializer_getInstance_6(), value.tp9_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_53).e44 = function (encoder, value) { return this.rp9(encoder, value instanceof XapiStatementsAndSession ? value : THROW_CCE()); }; var $serializer_instance_53; function $serializer_getInstance_65() { if ($serializer_instance_53 == null) new $serializer_53(); return $serializer_instance_53; } function XapiStatementsAndSession_init_$Init$(seen1, statements, session, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_65().qp9_1); } $this.sp9_1 = statements; $this.tp9_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_86(); this.sp9_1 = statements; this.tp9_1 = session; } protoOf(XapiStatementsAndSession).toString = function () { return 'XapiStatementsAndSession(statements=' + this.sp9_1 + ', session=' + this.tp9_1 + ')'; }; protoOf(XapiStatementsAndSession).hashCode = function () { var result = hashCode(this.sp9_1); result = imul(result, 31) + this.tp9_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.sp9_1, tmp0_other_with_cast.sp9_1)) return false; if (!this.tp9_1.equals(tmp0_other_with_cast.tp9_1)) return false; return true; }; function ResumeOrStartXapiSessionUseCase() { } function UstadMobileConstants() { UstadMobileConstants_instance = this; this.up9_1 = 'UTF-8'; this.vp9_1 = 0; this.wp9_1 = 'UTC'; this.xp9_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.yp9_1 = ['ar', 'arc', 'dv', 'fa', 'ha', 'he', 'khw', 'ks', 'ku', 'ps', 'ur', 'yi']; this.zp9_1 = 13; this.apa_1 = 18; this.bpa_1 = 10000; this.cpa_1 = 512; } var UstadMobileConstants_instance; function UstadMobileConstants_getInstance() { if (UstadMobileConstants_instance == null) new UstadMobileConstants(); return UstadMobileConstants_instance; } function Companion_70() { Companion_instance_119 = this; this.dpa_1 = new UstadGoOptions(null, false); } var Companion_instance_119; function Companion_getInstance_87() { if (Companion_instance_119 == null) new Companion_70(); return Companion_instance_119; } function UstadGoOptions(popUpToViewName, popUpToInclusive, clearStack, serializer) { Companion_getInstance_87(); popUpToViewName = popUpToViewName === VOID ? null : popUpToViewName; popUpToInclusive = popUpToInclusive === VOID ? false : popUpToInclusive; clearStack = clearStack === VOID ? false : clearStack; serializer = serializer === VOID ? null : serializer; this.epa_1 = popUpToViewName; this.fpa_1 = popUpToInclusive; this.gpa_1 = clearStack; this.hpa_1 = serializer; } protoOf(UstadGoOptions).toString = function () { return 'UstadGoOptions(popUpToViewName=' + this.epa_1 + ', popUpToInclusive=' + this.fpa_1 + ', clearStack=' + this.gpa_1 + ', serializer=' + this.hpa_1 + ')'; }; protoOf(UstadGoOptions).hashCode = function () { var result = this.epa_1 == null ? 0 : getStringHashCode(this.epa_1); result = imul(result, 31) + getBooleanHashCode(this.fpa_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.gpa_1) | 0; result = imul(result, 31) + (this.hpa_1 == null ? 0 : hashCode(this.hpa_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.epa_1 == tmp0_other_with_cast.epa_1)) return false; if (!(this.fpa_1 === tmp0_other_with_cast.fpa_1)) return false; if (!(this.gpa_1 === tmp0_other_with_cast.gpa_1)) return false; if (!equals(this.hpa_1, tmp0_other_with_cast.hpa_1)) return false; return true; }; function UiLanguage(langCode, langDisplay) { this.ipa_1 = langCode; this.jpa_1 = langDisplay; } protoOf(UiLanguage).toString = function () { return 'UiLanguage(langCode=' + this.ipa_1 + ', langDisplay=' + this.jpa_1 + ')'; }; protoOf(UiLanguage).hashCode = function () { var result = getStringHashCode(this.ipa_1); result = imul(result, 31) + getStringHashCode(this.jpa_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.ipa_1 === tmp0_other_with_cast.ipa_1)) return false; if (!(this.jpa_1 === tmp0_other_with_cast.jpa_1)) return false; return true; }; function Companion_71() { Companion_instance_120 = this; this.kpa_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.kpa_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.lpa_1 = destination; this.mpa_1 = 'ustadmobileContent'; this.npa_1 = ''; this.PREFKEY_LOCALE = 'locale'; this.opa_1 = 2; this.ppa_1 = 4; this.qpa_1 = 'ref'; this.rpa_1 = 67108864; this.spa_1 = 'dlenabled'; this.tpa_1 = 16; this.upa_1 = 32; this.vpa_1 = 64; this.wpa_1 = 'umclient'; this.xpa_1 = '/umapp/#/'; this.ypa_1 = 'sitedata'; this.zpa_1 = 'container'; this.apb_1 = 'attachments'; this.bpb_1 = 'rootViewName'; this.cpb_1 = 'client_id'; } protoOf(Companion_71).dpb = function () { return this.PREFKEY_LOCALE; }; var Companion_instance_120; function Companion_getInstance_88() { if (Companion_instance_120 == null) new Companion_71(); return Companion_instance_120; } function UstadMobileSystemCommon(settings, langConfig) { Companion_getInstance_88(); this.epb_1 = settings; this.fpb_1 = langConfig; this.gpb_1 = null; } protoOf(UstadMobileSystemCommon).hpb = function () { Companion_getInstance_132(); return 'CourseListHome'; }; protoOf(UstadMobileSystemCommon).ipb = 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.ant(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.jpb_1 = visible; this.kpb_1 = text; this.lpb_1 = enabled; this.mpb_1 = onClick; } protoOf(ActionBarButtonUiState).npb = function (visible, text, enabled, onClick) { return new ActionBarButtonUiState(visible, text, enabled, onClick); }; protoOf(ActionBarButtonUiState).opb = function (visible, text, enabled, onClick, $super) { visible = visible === VOID ? this.jpb_1 : visible; text = text === VOID ? this.kpb_1 : text; enabled = enabled === VOID ? this.lpb_1 : enabled; onClick = onClick === VOID ? this.mpb_1 : onClick; return $super === VOID ? this.npb(visible, text, enabled, onClick) : $super.npb.call(this, visible, text, enabled, onClick); }; protoOf(ActionBarButtonUiState).toString = function () { return 'ActionBarButtonUiState(visible=' + this.jpb_1 + ', text=' + this.kpb_1 + ', enabled=' + this.lpb_1 + ', onClick=' + this.mpb_1 + ')'; }; protoOf(ActionBarButtonUiState).hashCode = function () { var result = getBooleanHashCode(this.jpb_1); result = imul(result, 31) + (this.kpb_1 == null ? 0 : getStringHashCode(this.kpb_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.lpb_1) | 0; result = imul(result, 31) + hashCode(this.mpb_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.jpb_1 === tmp0_other_with_cast.jpb_1)) return false; if (!(this.kpb_1 == tmp0_other_with_cast.kpb_1)) return false; if (!(this.lpb_1 === tmp0_other_with_cast.lpb_1)) return false; if (!equals(this.mpb_1, tmp0_other_with_cast.mpb_1)) return false; return true; }; function AppActionButton(icon, contentDescription, onClick, id) { this.ppb_1 = icon; this.qpb_1 = contentDescription; this.rpb_1 = onClick; this.spb_1 = id; } protoOf(AppActionButton).toString = function () { return 'AppActionButton(icon=' + this.ppb_1 + ', contentDescription=' + this.qpb_1 + ', onClick=' + this.rpb_1 + ', id=' + this.spb_1 + ')'; }; protoOf(AppActionButton).hashCode = function () { var result = this.ppb_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.qpb_1) | 0; result = imul(result, 31) + hashCode(this.rpb_1) | 0; result = imul(result, 31) + getStringHashCode(this.spb_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.ppb_1.equals(tmp0_other_with_cast.ppb_1)) return false; if (!(this.qpb_1 === tmp0_other_with_cast.qpb_1)) return false; if (!equals(this.rpb_1, tmp0_other_with_cast.rpb_1)) return false; if (!(this.spb_1 === tmp0_other_with_cast.spb_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.tpb_1 = visible; this.upb_1 = searchText; this.vpb_1 = onSearchTextChanged; } protoOf(AppBarSearchUiState).wpb = function (visible, searchText, onSearchTextChanged) { return new AppBarSearchUiState(visible, searchText, onSearchTextChanged); }; protoOf(AppBarSearchUiState).xpb = function (visible, searchText, onSearchTextChanged, $super) { visible = visible === VOID ? this.tpb_1 : visible; searchText = searchText === VOID ? this.upb_1 : searchText; onSearchTextChanged = onSearchTextChanged === VOID ? this.vpb_1 : onSearchTextChanged; return $super === VOID ? this.wpb(visible, searchText, onSearchTextChanged) : $super.wpb.call(this, visible, searchText, onSearchTextChanged); }; protoOf(AppBarSearchUiState).toString = function () { return 'AppBarSearchUiState(visible=' + this.tpb_1 + ', searchText=' + this.upb_1 + ', onSearchTextChanged=' + this.vpb_1 + ')'; }; protoOf(AppBarSearchUiState).hashCode = function () { var result = getBooleanHashCode(this.tpb_1); result = imul(result, 31) + getStringHashCode(this.upb_1) | 0; result = imul(result, 31) + hashCode(this.vpb_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.tpb_1 === tmp0_other_with_cast.tpb_1)) return false; if (!(this.upb_1 === tmp0_other_with_cast.upb_1)) return false; if (!equals(this.vpb_1, tmp0_other_with_cast.vpb_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.ypb_1 = fabState; this.zpb_1 = loadingState; this.apc_1 = title; this.bpc_1 = navigationVisible; this.cpc_1 = hideBottomNavigation; this.dpc_1 = hideSettingsIcon; this.epc_1 = userAccountIconVisible; this.fpc_1 = searchState; this.gpc_1 = actionBarButtonState; this.hpc_1 = overflowItems; this.ipc_1 = hideAppBar; this.jpc_1 = actionButtons; this.kpc_1 = leadingActionButton; this.lpc_1 = appBarColors; } protoOf(AppUiState).mpc = 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).npc = function (fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors, $super) { fabState = fabState === VOID ? this.ypb_1 : fabState; loadingState = loadingState === VOID ? this.zpb_1 : loadingState; title = title === VOID ? this.apc_1 : title; navigationVisible = navigationVisible === VOID ? this.bpc_1 : navigationVisible; hideBottomNavigation = hideBottomNavigation === VOID ? this.cpc_1 : hideBottomNavigation; hideSettingsIcon = hideSettingsIcon === VOID ? this.dpc_1 : hideSettingsIcon; userAccountIconVisible = userAccountIconVisible === VOID ? this.epc_1 : userAccountIconVisible; searchState = searchState === VOID ? this.fpc_1 : searchState; actionBarButtonState = actionBarButtonState === VOID ? this.gpc_1 : actionBarButtonState; overflowItems = overflowItems === VOID ? this.hpc_1 : overflowItems; hideAppBar = hideAppBar === VOID ? this.ipc_1 : hideAppBar; actionButtons = actionButtons === VOID ? this.jpc_1 : actionButtons; leadingActionButton = leadingActionButton === VOID ? this.kpc_1 : leadingActionButton; appBarColors = appBarColors === VOID ? this.lpc_1 : appBarColors; return $super === VOID ? this.mpc(fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors) : $super.mpc.call(this, fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors); }; protoOf(AppUiState).toString = function () { return 'AppUiState(fabState=' + this.ypb_1 + ', loadingState=' + this.zpb_1 + ', title=' + this.apc_1 + ', navigationVisible=' + this.bpc_1 + ', hideBottomNavigation=' + this.cpc_1 + ', hideSettingsIcon=' + this.dpc_1 + ', userAccountIconVisible=' + this.epc_1 + ', searchState=' + this.fpc_1 + ', actionBarButtonState=' + this.gpc_1 + ', overflowItems=' + this.hpc_1 + ', hideAppBar=' + this.ipc_1 + ', actionButtons=' + this.jpc_1 + ', leadingActionButton=' + this.kpc_1 + ', appBarColors=' + this.lpc_1 + ')'; }; protoOf(AppUiState).hashCode = function () { var result = this.ypb_1.hashCode(); result = imul(result, 31) + this.zpb_1.hashCode() | 0; result = imul(result, 31) + (this.apc_1 == null ? 0 : getStringHashCode(this.apc_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.bpc_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.cpc_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.dpc_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.epc_1) | 0; result = imul(result, 31) + this.fpc_1.hashCode() | 0; result = imul(result, 31) + this.gpc_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.hpc_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ipc_1) | 0; result = imul(result, 31) + hashCode(this.jpc_1) | 0; result = imul(result, 31) + (this.kpc_1 == null ? 0 : this.kpc_1.hashCode()) | 0; result = imul(result, 31) + this.lpc_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.ypb_1.equals(tmp0_other_with_cast.ypb_1)) return false; if (!this.zpb_1.equals(tmp0_other_with_cast.zpb_1)) return false; if (!(this.apc_1 == tmp0_other_with_cast.apc_1)) return false; if (!(this.bpc_1 === tmp0_other_with_cast.bpc_1)) return false; if (!(this.cpc_1 === tmp0_other_with_cast.cpc_1)) return false; if (!(this.dpc_1 === tmp0_other_with_cast.dpc_1)) return false; if (!(this.epc_1 === tmp0_other_with_cast.epc_1)) return false; if (!this.fpc_1.equals(tmp0_other_with_cast.fpc_1)) return false; if (!this.gpc_1.equals(tmp0_other_with_cast.gpc_1)) return false; if (!equals(this.hpc_1, tmp0_other_with_cast.hpc_1)) return false; if (!(this.ipc_1 === tmp0_other_with_cast.ipc_1)) return false; if (!equals(this.jpc_1, tmp0_other_with_cast.jpc_1)) return false; if (!equals(this.kpc_1, tmp0_other_with_cast.kpc_1)) return false; if (!this.lpc_1.equals(tmp0_other_with_cast.lpc_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.opc_1 = visible; this.ppc_1 = text; this.qpc_1 = icon; this.rpc_1 = onClick; } protoOf(FabUiState).spc = function (visible, text, icon, onClick) { return new FabUiState(visible, text, icon, onClick); }; protoOf(FabUiState).tpc = function (visible, text, icon, onClick, $super) { visible = visible === VOID ? this.opc_1 : visible; text = text === VOID ? this.ppc_1 : text; icon = icon === VOID ? this.qpc_1 : icon; onClick = onClick === VOID ? this.rpc_1 : onClick; return $super === VOID ? this.spc(visible, text, icon, onClick) : $super.spc.call(this, visible, text, icon, onClick); }; protoOf(FabUiState).toString = function () { return 'FabUiState(visible=' + this.opc_1 + ', text=' + this.ppc_1 + ', icon=' + this.qpc_1 + ', onClick=' + this.rpc_1 + ')'; }; protoOf(FabUiState).hashCode = function () { var result = getBooleanHashCode(this.opc_1); result = imul(result, 31) + (this.ppc_1 == null ? 0 : getStringHashCode(this.ppc_1)) | 0; result = imul(result, 31) + this.qpc_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.rpc_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.opc_1 === tmp0_other_with_cast.opc_1)) return false; if (!(this.ppc_1 == tmp0_other_with_cast.ppc_1)) return false; if (!this.qpc_1.equals(tmp0_other_with_cast.qpc_1)) return false; if (!equals(this.rpc_1, tmp0_other_with_cast.rpc_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_72() { Companion_instance_121 = this; this.upc_1 = new LoadingUiState(State_INDETERMINATE_getInstance()); this.vpc_1 = new LoadingUiState(State_NOT_LOADING_getInstance()); } var Companion_instance_121; function Companion_getInstance_89() { if (Companion_instance_121 == null) new Companion_72(); return Companion_instance_121; } 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_89(); loadingState = loadingState === VOID ? State_NOT_LOADING_getInstance() : loadingState; this.wpc_1 = loadingState; } protoOf(LoadingUiState).toString = function () { return 'LoadingUiState(loadingState=' + this.wpc_1 + ')'; }; protoOf(LoadingUiState).hashCode = function () { return this.wpc_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.wpc_1.equals(tmp0_other_with_cast.wpc_1)) return false; return true; }; function OverflowItem(label, onClick) { this.xpc_1 = label; this.ypc_1 = onClick; } protoOf(OverflowItem).toString = function () { return 'OverflowItem(label=' + this.xpc_1 + ', onClick=' + this.ypc_1 + ')'; }; protoOf(OverflowItem).hashCode = function () { var result = getStringHashCode(this.xpc_1); result = imul(result, 31) + hashCode(this.ypc_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.xpc_1 === tmp0_other_with_cast.xpc_1)) return false; if (!equals(this.ypc_1, tmp0_other_with_cast.ypc_1)) return false; return true; }; function Snack(message, action, onAction) { action = action === VOID ? null : action; onAction = onAction === VOID ? null : onAction; this.zpc_1 = message; this.apd_1 = action; this.bpd_1 = onAction; } protoOf(Snack).toString = function () { return 'Snack(message=' + this.zpc_1 + ', action=' + this.apd_1 + ', onAction=' + this.bpd_1 + ')'; }; protoOf(Snack).hashCode = function () { var result = getStringHashCode(this.zpc_1); result = imul(result, 31) + (this.apd_1 == null ? 0 : getStringHashCode(this.apd_1)) | 0; result = imul(result, 31) + (this.bpd_1 == null ? 0 : hashCode(this.bpd_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.zpc_1 === tmp0_other_with_cast.zpc_1)) return false; if (!(this.apd_1 == tmp0_other_with_cast.apd_1)) return false; if (!equals(this.bpd_1, tmp0_other_with_cast.bpd_1)) return false; return true; }; function SnackBarDispatcher() { } function TabItem(viewName, args, label) { this.dpd_1 = viewName; this.epd_1 = args; this.fpd_1 = label; } protoOf(TabItem).toString = function () { return 'TabItem(viewName=' + this.dpd_1 + ', args=' + this.epd_1 + ', label=' + this.fpd_1 + ')'; }; protoOf(TabItem).hashCode = function () { var result = getStringHashCode(this.dpd_1); result = imul(result, 31) + hashCode(this.epd_1) | 0; result = imul(result, 31) + getStringHashCode(this.fpd_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.dpd_1 === tmp0_other_with_cast.dpd_1)) return false; if (!equals(this.epd_1, tmp0_other_with_cast.epd_1)) return false; if (!(this.fpd_1 === tmp0_other_with_cast.fpd_1)) return false; return true; }; function UstadContextMenuItem(label, onClick) { this.gpd_1 = label; this.hpd_1 = onClick; } protoOf(UstadContextMenuItem).toString = function () { return 'UstadContextMenuItem(label=' + this.gpd_1 + ', onClick=' + this.hpd_1 + ')'; }; protoOf(UstadContextMenuItem).hashCode = function () { var result = getStringHashCode(this.gpd_1); result = imul(result, 31) + hashCode(this.hpd_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.gpd_1 === tmp0_other_with_cast.gpd_1)) return false; if (!equals(this.hpd_1, tmp0_other_with_cast.hpd_1)) return false; return true; }; function BuildConfigMap(delegate) { this.ipd_1 = delegate; } protoOf(BuildConfigMap).ba = function (key) { return this.ipd_1.q(key); }; function Companion_73() { this.jpd_1 = '1,2,4'; } var Companion_instance_122; function Companion_getInstance_90() { return Companion_instance_122; } 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.kpd_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().npd_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.kpd_1.a1(element_0.qpd_1)) { destination_1.i1(element_0); } } tmp_0.lpd_1 = destination_1; var tmp_1 = this; var tmp_2 = strings_getInstance().mlt_1; tmp_1.mpd_1 = plus(this.lpd_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.rpd_1 = settings; } protoOf(SettingsLocaleSettingDelegate).spd = function (value) { if (!(value == null)) { this.rpd_1.clj('locale', value); } else { this.rpd_1.n2n('locale'); } }; protoOf(SettingsLocaleSettingDelegate).tpd = function () { return this.rpd_1.dlj('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.upd().ipa_1; } else { tmp = setting; } return tmp; } function Companion_74() { this.vpd_1 = 'locale'; this.wpd_1 = 'com.ustadmobile.presetlocale'; this.xpd_1 = 'localePresetDone'; this.ypd_1 = 'en,fa,ps,ar,tg,bn,ne,my,rw,ru'; this.zpd_1 = ''; } var Companion_instance_123; function Companion_getInstance_91() { return Companion_instance_123; } 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.sou_1 = systemLocales; this.tou_1 = localeSettingDelegate; this.uou_1 = availableLanguagesConfig; this.vou_1 = fallbackLocaleCode; var tmp = this; // Inline function 'kotlin.collections.map' call var this_0 = sorted(split(this.uou_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().xp9_1.q(item); var tmp$ret$0 = new UiLanguage(item, tmp0_elvis_lhs == null ? item : tmp0_elvis_lhs); destination.i1(tmp$ret$0); } tmp.wou_1 = destination; var tmp_0 = this; // Inline function 'kotlin.collections.associateBy' call var this_1 = this.wou_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.ipa_1; destination_0.s(tmp$ret$3, element); } tmp_0.xou_1 = destination_0; this.you_1 = displayLocaleForLangSetting(this, this.tpd()); if (!this.xou_1.r(this.vou_1)) throw IllegalStateException_init_$Create$('available languages ' + this.uou_1 + ' does not ' + ("include fallback: '" + this.vou_1 + "'")); } protoOf(SupportedLanguagesConfig).spd = function (value) { this.tou_1.spd(value); this.you_1 = displayLocaleForLangSetting(this, value); }; protoOf(SupportedLanguagesConfig).tpd = function () { return this.tou_1.tpd(); }; protoOf(SupportedLanguagesConfig).ape = function (systemImpl) { var tmp0_elvis_lhs = this.tpd(); 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.bpe(systemImpl).w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.config.SupportedLanguagesConfig.getCurrentLanguage.' call if (element.ipa_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).cpe = function (useDeviceLangDisplay) { Companion_getInstance_88(); return plus(listOf_0(new UiLanguage('', useDeviceLangDisplay)), this.wou_1); }; protoOf(SupportedLanguagesConfig).bpe = function (systemImpl) { return this.cpe(systemImpl.ant(strings_getInstance().fmf_1)); }; protoOf(SupportedLanguagesConfig).dpe = function (preferredLocales) { // Inline function 'kotlin.collections.map' call var this_0 = this.wou_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.ipa_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.xou_1.q(tmp$ret$8)); } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? ensureNotNull(this.xou_1.q(this.vou_1)) : tmp1_elvis_lhs; }; protoOf(SupportedLanguagesConfig).upd = function (preferredLocales, $super) { preferredLocales = preferredLocales === VOID ? this.sou_1 : preferredLocales; return $super === VOID ? this.dpe(preferredLocales) : $super.dpe.call(this, preferredLocales); }; function Companion_75() { } protoOf(Companion_75).epe = 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_124; function Companion_getInstance_92() { return Companion_instance_124; } function SystemUrlConfig(systemBaseUrl, passkeyRpId, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl) { presetLearningSpaceUrl = presetLearningSpaceUrl === VOID ? null : presetLearningSpaceUrl; newPersonalAccountsLearningSpaceUrl = newPersonalAccountsLearningSpaceUrl === VOID ? null : newPersonalAccountsLearningSpaceUrl; this.fnk_1 = systemBaseUrl; this.gnk_1 = passkeyRpId; this.hnk_1 = presetLearningSpaceUrl; this.ink_1 = newPersonalAccountsLearningSpaceUrl; this.jnk_1 = this.hnk_1 == null; } protoOf(SystemUrlConfig).fpe = function (systemBaseUrl, passkeyRpId, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl) { return new SystemUrlConfig(systemBaseUrl, passkeyRpId, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl); }; protoOf(SystemUrlConfig).gpe = function (systemBaseUrl, passkeyRpId, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl, $super) { systemBaseUrl = systemBaseUrl === VOID ? this.fnk_1 : systemBaseUrl; passkeyRpId = passkeyRpId === VOID ? this.gnk_1 : passkeyRpId; presetLearningSpaceUrl = presetLearningSpaceUrl === VOID ? this.hnk_1 : presetLearningSpaceUrl; newPersonalAccountsLearningSpaceUrl = newPersonalAccountsLearningSpaceUrl === VOID ? this.ink_1 : newPersonalAccountsLearningSpaceUrl; return $super === VOID ? this.fpe(systemBaseUrl, passkeyRpId, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl) : $super.fpe.call(this, systemBaseUrl, passkeyRpId, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl); }; protoOf(SystemUrlConfig).toString = function () { return 'SystemUrlConfig(systemBaseUrl=' + this.fnk_1 + ', passkeyRpId=' + this.gnk_1 + ', presetLearningSpaceUrl=' + this.hnk_1 + ', newPersonalAccountsLearningSpaceUrl=' + this.ink_1 + ')'; }; protoOf(SystemUrlConfig).hashCode = function () { var result = getStringHashCode(this.fnk_1); result = imul(result, 31) + getStringHashCode(this.gnk_1) | 0; result = imul(result, 31) + (this.hnk_1 == null ? 0 : getStringHashCode(this.hnk_1)) | 0; result = imul(result, 31) + (this.ink_1 == null ? 0 : getStringHashCode(this.ink_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.fnk_1 === tmp0_other_with_cast.fnk_1)) return false; if (!(this.gnk_1 === tmp0_other_with_cast.gnk_1)) return false; if (!(this.hnk_1 == tmp0_other_with_cast.hnk_1)) return false; if (!(this.ink_1 == tmp0_other_with_cast.ink_1)) return false; return true; }; function Companion_76() { this.hpe_1 = 'com.ustadmobile.gopts'; this.ipe_1 = 'com.ustadmobile.showpoweredbymsg'; this.jpe_1 = 'com.ustadmobile.system.systemBaseUrl'; this.kpe_1 = 'com.ustadmobile.system.presetLsUrl'; this.lpe_1 = 'com.ustadmobile.system.passkeyRpId'; this.mpe_1 = 'com.ustadmobile.system.newPersonalAccountsLsUrl'; } var Companion_instance_125; function Companion_getInstance_93() { return Companion_instance_125; } function UstadBuildConfig() { } function commonDomainDiModule(endpointScope) { return Module_init_$Create$('CommonDomain', VOID, VOID, commonDomainDiModule$lambda(endpointScope)); } function commonDomainDiModule$lambda$lambda($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.s57(); // 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.q57(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.s57(); // 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.q57(tmp$ret$2, null); return new EnrolIntoCourseUseCase(tmp_1, tmp$ret$3.fjf_1); } function commonDomainDiModule$lambda$lambda_0($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.s57(); // 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.q57(tmp$ret$0, null).fjf_1; // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$provider.s57(); // 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.q57(tmp$ret$2, 1); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.s57(); // 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.q57(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.s57(); // 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.q57(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.s57(); // 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.q57(tmp$ret$2, null).fjf_1; // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$provider.s57(); // 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.q57(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.s57(); // 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.q57(tmp$ret$0, null).ijf(); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.s57(); // 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.q57(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.s57(); // 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.q57(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.s57(); // 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.q57(tmp$ret$2, null); return new GetLocaleForSiteTermsUseCase(tmp_1, tmp$ret$3.ijf()); } 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.s57(); // 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.q57(tmp$ret$0, null); return new RequestEnrolmentUseCase(tmp$ret$1.ijf()); } 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.s57(); // 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.q57(tmp$ret$0, null); return new CreateNewClazzUseCase(tmp$ret$1.ijf()); } function commonDomainDiModule$lambda$lambda_8($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.s57(); // 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.q57(tmp$ret$0, null); var tmp_2 = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.s57(); // 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.q57(tmp$ret$2, null); return new ContactToServerUseCase(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.s57(); // 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.q57(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.s57(); // 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.q57(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.s57(); // 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.q57(tmp$ret$0, null).ijf(); var tmp_2 = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.s57(); // 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.q57(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$provider.s57(); // 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.q57(tmp$ret$4, null); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$provider.s57(); // 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.q57(tmp$ret$6, null); // Inline function 'org.kodein.di.instance' call var tmp_12 = $this$provider.s57(); // 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.q57(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.s57(); // 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.q57(tmp$ret$0, null).ijf(); var tmp_2 = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.s57(); // 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.q57(tmp$ret$2, null); return new CreateXapiGroupForCourseGroupUseCase(tmp_1, tmp_2, tmp$ret$3); } function commonDomainDiModule$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(EnrolIntoCourseUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE(); var tmp_0 = $this$$receiver.b56(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 = commonDomainDiModule$lambda$lambda; var tmp_2 = this_0.o55(); // 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.p5a(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.b56(tmp$ret$6, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_0 = $endpointScope; // 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.o55(); // 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.p5a(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.b56(tmp$ret$12, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_1 = $endpointScope; // 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.o55(); // 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.p5a(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.b56(tmp$ret$18, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_2 = $endpointScope; // 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.o55(); // 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.p5a(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.b56(tmp$ret$24, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_3 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_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.o55(); // 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.p5a(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.b56(tmp$ret$30, 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_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.o55(); // 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.p5a(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.b56(tmp$ret$36, 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_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.o55(); // 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.p5a(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.b56(tmp$ret$42, 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_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.p55(); var tmp_38 = this_7.o55(); var tmp_39 = this_7.q55(); // 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.p5a(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.b56(tmp$ret$48, 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_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.p55(); var tmp_45 = this_8.o55(); var tmp_46 = this_8.q55(); // 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.p5a(tmp$ret$53); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_48 = typeToken(createKType(getKClass(ContactToServerUseCase), arrayOf([]), false)); var tmp$ret$54 = isInterface(tmp_48, TypeToken) ? tmp_48 : THROW_CCE(); var tmp_49 = $this$$receiver.b56(tmp$ret$54, 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_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.o55(); // Inline function 'org.kodein.type.generic' call var tmp_52 = typeToken(createKType(getKClass(ContactToServerUseCase), 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.p5a(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.b56(tmp$ret$60, null, null); // Inline function 'org.kodein.di.singleton' call var creator_9 = commonDomainDiModule$lambda$lambda_9; var tmp_55 = $this$$receiver.p55(); var tmp_56 = $this$$receiver.o55(); var tmp_57 = $this$$receiver.q55(); // 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.p5a(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.b56(tmp$ret$64, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_9 = $endpointScope; // 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.o55(); // 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.p5a(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.b56(tmp$ret$70, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_10 = $endpointScope; // 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.o55(); // 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.p5a(tmp$ret$75); return Unit_instance; }; } function CourseTerminologyStrings_init_$Init$(courseTerminology, systemImpl, json, $this) { CourseTerminologyStrings.call($this, toTerminologyEntries(courseTerminology, json, systemImpl), courseTerminology.c8g_1); return $this; } function CourseTerminologyStrings_init_$Create$(courseTerminology, systemImpl, json) { return CourseTerminologyStrings_init_$Init$(courseTerminology, systemImpl, json, objectCreate(protoOf(CourseTerminologyStrings))); } function Companion_77() { Companion_instance_126 = this; this.npe_1 = new CourseTerminologyStrings(emptyList()); } var Companion_instance_126; function Companion_getInstance_94() { if (Companion_instance_126 == null) new Companion_77(); return Companion_instance_126; } function CourseTerminologyStrings(terminologyEntries, terminologyKey) { Companion_getInstance_94(); terminologyKey = terminologyKey === VOID ? null : terminologyKey; this.ope_1 = terminologyEntries; this.ppe_1 = terminologyKey; } protoOf(CourseTerminologyStrings).qpe = function (messageId) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.ope_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.locale.CourseTerminologyStrings.get.' call if (element.spe_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.tpe_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.ope_1, this.ope_1); }; protoOf(CourseTerminologyStrings).hashCode = function () { return hashCode(this.ope_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.qpe(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.rpe_1 = id; this.spe_1 = stringResource; this.tpe_1 = term; this.upe_1 = errorMessage; } protoOf(TerminologyEntry).vpe = function (id, stringResource, term, errorMessage) { return new TerminologyEntry(id, stringResource, term, errorMessage); }; protoOf(TerminologyEntry).wpe = function (id, stringResource, term, errorMessage, $super) { id = id === VOID ? this.rpe_1 : id; stringResource = stringResource === VOID ? this.spe_1 : stringResource; term = term === VOID ? this.tpe_1 : term; errorMessage = errorMessage === VOID ? this.upe_1 : errorMessage; return $super === VOID ? this.vpe(id, stringResource, term, errorMessage) : $super.vpe.call(this, id, stringResource, term, errorMessage); }; protoOf(TerminologyEntry).toString = function () { return 'TerminologyEntry(id=' + this.rpe_1 + ', stringResource=' + this.spe_1 + ', term=' + this.tpe_1 + ', errorMessage=' + this.upe_1 + ')'; }; protoOf(TerminologyEntry).hashCode = function () { var result = getStringHashCode(this.rpe_1); result = imul(result, 31) + this.spe_1.hashCode() | 0; result = imul(result, 31) + (this.tpe_1 == null ? 0 : getStringHashCode(this.tpe_1)) | 0; result = imul(result, 31) + (this.upe_1 == null ? 0 : getStringHashCode(this.upe_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.rpe_1 === 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 == tmp0_other_with_cast.tpe_1)) return false; if (!(this.upe_1 == tmp0_other_with_cast.upe_1)) return false; return true; }; function ClazzEnrolmentListConstants() { ClazzEnrolmentListConstants_instance = this; var tmp = this; var tmp_0 = to(1000, strings_getInstance().zmf_1); var tmp_1 = to(1001, strings_getInstance().mm9_1); var tmp_2 = to(1003, strings_getInstance().imq_1); tmp.xpe_1 = mapOf([tmp_0, tmp_1, tmp_2, to(1002, strings_getInstance().fmj_1)]); var tmp_3 = this; var tmp_4 = to(202, strings_getInstance().bm9_1); var tmp_5 = to(201, strings_getInstance().lm8_1); var tmp_6 = to(203, strings_getInstance().mm8_1); tmp_3.ype_1 = mapOf([tmp_4, tmp_5, tmp_6, to(200, strings_getInstance().am9_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().um3_1; var tmp_1 = new MessageIdOption2(tmp_0, 200); var tmp_2 = strings_getInstance().vm3_1; var tmp_3 = new MessageIdOption2(tmp_2, 201); var tmp_4 = strings_getInstance().wm3_1; var tmp_5 = new MessageIdOption2(tmp_4, 202); var tmp_6 = strings_getInstance().xm3_1; var tmp_7 = new MessageIdOption2(tmp_6, 203); var tmp_8 = strings_getInstance().am4_1; var tmp_9 = new MessageIdOption2(tmp_8, 205); var tmp_10 = strings_getInstance().ym3_1; var tmp_11 = new MessageIdOption2(tmp_10, 206); var tmp_12 = strings_getInstance().zm3_1; tmp.zpe_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().jlx_1; var tmp_1 = new MessageIdOption2(tmp_0, 100); var tmp_2 = strings_getInstance().glx_1; var tmp_3 = new MessageIdOption2(tmp_2, 102); var tmp_4 = strings_getInstance().flx_1; tmp.apf_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().nms_1; Companion_getInstance_4(); var tmp_1 = new MessageIdOption2(tmp_0, 102); var tmp_2 = strings_getInstance().nmu_1; Companion_getInstance_4(); tmp.bpf_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().om3_1; var tmp_1 = new MessageIdOption2(tmp_0, 100); var tmp_2 = strings_getInstance().pm3_1; var tmp_3 = new MessageIdOption2(tmp_2, 101); var tmp_4 = strings_getInstance().qm3_1; var tmp_5 = new MessageIdOption2(tmp_4, 102); var tmp_6 = strings_getInstance().rm3_1; var tmp_7 = new MessageIdOption2(tmp_6, 103); var tmp_8 = strings_getInstance().sm3_1; var tmp_9 = new MessageIdOption2(tmp_8, 104); var tmp_10 = strings_getInstance().tm3_1; var tmp_11 = new MessageIdOption2(tmp_10, 105); var tmp_12 = strings_getInstance().ym8_1; var tmp_13 = new MessageIdOption2(tmp_12, 106); var tmp_14 = strings_getInstance().zm8_1; tmp.cpf_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().dm5_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().em5_1; var tmp_3 = new MessageIdOption2(tmp_2, 2); var tmp_4 = strings_getInstance().fm5_1; var tmp_5 = new MessageIdOption2(tmp_4, 3); var tmp_6 = strings_getInstance().gm5_1; var tmp_7 = new MessageIdOption2(tmp_6, 4); var tmp_8 = strings_getInstance().jm5_1; var tmp_9 = new MessageIdOption2(tmp_8, 5); var tmp_10 = strings_getInstance().hm5_1; var tmp_11 = new MessageIdOption2(tmp_10, 6); var tmp_12 = strings_getInstance().im5_1; var tmp_13 = new MessageIdOption2(tmp_12, 7); var tmp_14 = strings_getInstance().tlv_1; var tmp_15 = new MessageIdOption2(tmp_14, 8); var tmp_16 = strings_getInstance().km5_1; var tmp_17 = new MessageIdOption2(tmp_16, 9); var tmp_18 = strings_getInstance().ulv_1; tmp.dpf_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().am9_1; var tmp_1 = new MessageIdOption2(tmp_0, 200); var tmp_2 = strings_getInstance().lm8_1; var tmp_3 = new MessageIdOption2(tmp_2, 201); var tmp_4 = strings_getInstance().flx_1; var tmp_5 = new MessageIdOption2(tmp_4, 202); var tmp_6 = strings_getInstance().mm8_1; tmp.epf_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().slv_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().rlv_1; var tmp_3 = new MessageIdOption2(tmp_2, 2); var tmp_4 = strings_getInstance().tlv_1; tmp.npd_1 = listOf([tmp_1, tmp_3, new MessageIdOption2(tmp_4, 4)]); var tmp_5 = this; var tmp_6 = strings_getInstance().ulv_1; tmp_5.opd_1 = plus(listOf_0(new MessageIdOption2(tmp_6, 0)), this.npd_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().fm6_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().em6_1; var tmp_3 = new MessageIdOption2(tmp_2, 2); var tmp_4 = strings_getInstance().dmm_1; var tmp_5 = new MessageIdOption2(tmp_4, 4); var tmp_6 = strings_getInstance().tlv_1; tmp.fpf_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().zmf_1; var tmp_1 = new MessageIdOption2(tmp_0, 1000); var tmp_2 = strings_getInstance().mm9_1; tmp.gpf_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.hpf_1 = listOf([new MessageIdOption2(strings_getInstance().om7_1, Companion_instance_29.kk7_1), new MessageIdOption2(strings_getInstance().pm7_1, Companion_instance_29.ek7_1), new MessageIdOption2(strings_getInstance().qm7_1, Companion_instance_29.fk7_1), new MessageIdOption2(strings_getInstance().rm7_1, Companion_instance_29.gk7_1), new MessageIdOption2(strings_getInstance().sm7_1, Companion_instance_29.hk7_1), new MessageIdOption2(strings_getInstance().tm7_1, Companion_instance_29.ik7_1), new MessageIdOption2(strings_getInstance().um7_1, Companion_instance_29.jk7_1)]); var tmp = this; // Inline function 'kotlin.collections.map' call var this_0 = this.hpf_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.qpd_1, item.ppd_1); destination.i1(tmp$ret$0); } tmp.ipf_1 = toMap(destination); this.jpf_1 = mapOf([to(Companion_instance_29.zk6_1, strings_getInstance().lm7_1), to(Companion_instance_29.ak7_1, strings_getInstance().jm7_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().pmu_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().qmu_1; tmp.kpf_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.lpf_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.mpf_1 = asSharedFlow(this.lpf_1); } protoOf(CommandFlowUstadNavController).npf = function (viewName, args, goOptions) { this.lpf_1.i1h(new NavigateNavCommand(viewName, args, goOptions)); }; protoOf(CommandFlowUstadNavController).opf = function (viewName, inclusive) { this.lpf_1.i1h(new PopNavCommand(viewName, inclusive)); }; function NavCommand(timestamp) { this.ppf_1 = timestamp; } function NavigateNavCommand(viewName, args, goOptions) { NavCommand.call(this, systemTimeInMillis()); this.rpf_1 = viewName; this.spf_1 = args; this.tpf_1 = goOptions; } protoOf(NavigateNavCommand).toString = function () { return 'NavigateNavCommand(viewName=' + this.rpf_1 + ', args=' + this.spf_1 + ', goOptions=' + this.tpf_1 + ')'; }; protoOf(NavigateNavCommand).hashCode = function () { var result = getStringHashCode(this.rpf_1); result = imul(result, 31) + hashCode(this.spf_1) | 0; result = imul(result, 31) + this.tpf_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.rpf_1 === tmp0_other_with_cast.rpf_1)) return false; if (!equals(this.spf_1, tmp0_other_with_cast.spf_1)) return false; if (!this.tpf_1.equals(tmp0_other_with_cast.tpf_1)) return false; return true; }; function PopNavCommand(viewName, inclusive) { NavCommand.call(this, systemTimeInMillis()); this.vpf_1 = viewName; this.wpf_1 = inclusive; } protoOf(PopNavCommand).toString = function () { return 'PopNavCommand(viewName=' + this.vpf_1 + ', inclusive=' + this.wpf_1 + ')'; }; protoOf(PopNavCommand).hashCode = function () { var result = getStringHashCode(this.vpf_1); result = imul(result, 31) + getBooleanHashCode(this.wpf_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.vpf_1 === tmp0_other_with_cast.vpf_1)) return false; if (!(this.wpf_1 === tmp0_other_with_cast.wpf_1)) return false; return true; }; function NavResult(key, timestamp, result) { this.xpf_1 = key; this.ypf_1 = timestamp; this.zpf_1 = result; } protoOf(NavResult).toString = function () { return 'NavResult(key=' + this.xpf_1 + ', timestamp=' + this.ypf_1.toString() + ', result=' + toString_0(this.zpf_1) + ')'; }; protoOf(NavResult).hashCode = function () { var result = getStringHashCode(this.xpf_1); result = imul(result, 31) + this.ypf_1.hashCode() | 0; result = imul(result, 31) + (this.zpf_1 == null ? 0 : hashCode(this.zpf_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.xpf_1 === tmp0_other_with_cast.xpf_1)) return false; if (!this.ypf_1.equals(tmp0_other_with_cast.ypf_1)) return false; if (!equals(this.zpf_1, tmp0_other_with_cast.zpf_1)) return false; return true; }; function NavResultDest(viewName, key) { this.apg_1 = viewName; this.bpg_1 = key; } function NavResultReturner() { } function NavResultReturnerImpl$resultFlowForKey$o$collect$slambda($$this$unsafeFlow, $key, resultContinuation) { this.mpg_1 = $$this$unsafeFlow; this.npg_1 = $key; CoroutineImpl.call(this, resultContinuation); } protoOf(NavResultReturnerImpl$resultFlowForKey$o$collect$slambda).spg = function (value, $completion) { var tmp = this.tpg(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.spg(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.qpg_1 = this.mpg_1; var tmp_1 = this; tmp_1.rpg_1 = this.opg_1; if (this.rpg_1.xpf_1 === this.npg_1) { this.hd_1 = 3; suspendResult = this.qpg_1.t1d(this.rpg_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.ppg_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).tpg = function (value, completion) { var i = new NavResultReturnerImpl$resultFlowForKey$o$collect$slambda(this.mpg_1, this.npg_1, completion); i.opg_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.spg(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$47(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cph_1 = _this__u8e3s4; this.dph_1 = collector; } protoOf($collectCOROUTINE$47).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.eph_1 = this.dph_1; this.hd_1 = 1; var tmp_1 = NavResultReturnerImpl$resultFlowForKey$o$collect$slambda_0(this.eph_1, this.cph_1.gph_1, null); suspendResult = this.cph_1.fph_1.z1b(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.hph_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).t1d = function (value, $completion) { return this.hph_1(value, $completion); }; function _no_name_provided__qut3iv_0($this, $key) { this.fph_1 = $this; this.gph_1 = $key; } protoOf(_no_name_provided__qut3iv_0).iph = function (collector, $completion) { var tmp = new $collectCOROUTINE$47(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_0).z1b = function (collector, $completion) { return this.iph(collector, $completion); }; function NavResultReturnerImpl() { this.jph_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); } protoOf(NavResultReturnerImpl).cpg = function (key) { // Inline function 'kotlinx.coroutines.flow.filter' call // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call var this_0 = this.jph_1; // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call return new _no_name_provided__qut3iv_0(this_0, key); }; protoOf(NavResultReturnerImpl).dpg = function (result) { this.jph_1.i1h(result); }; function UstadNavController() { } function BitmaskFlag(flagVal, stringResource, enabled) { enabled = enabled === VOID ? false : enabled; this.kph_1 = flagVal; this.lph_1 = stringResource; this.mph_1 = enabled; } protoOf(BitmaskFlag).nph = function (flagVal, stringResource, enabled) { return new BitmaskFlag(flagVal, stringResource, enabled); }; protoOf(BitmaskFlag).oph = function (flagVal, stringResource, enabled, $super) { flagVal = flagVal === VOID ? this.kph_1 : flagVal; stringResource = stringResource === VOID ? this.lph_1 : stringResource; enabled = enabled === VOID ? this.mph_1 : enabled; return $super === VOID ? this.nph(flagVal, stringResource, enabled) : $super.nph.call(this, flagVal, stringResource, enabled); }; protoOf(BitmaskFlag).toString = function () { return 'BitmaskFlag(flagVal=' + this.kph_1.toString() + ', stringResource=' + this.lph_1 + ', enabled=' + this.mph_1 + ')'; }; protoOf(BitmaskFlag).hashCode = function () { var result = this.kph_1.hashCode(); result = imul(result, 31) + this.lph_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.mph_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.kph_1.equals(tmp0_other_with_cast.kph_1)) return false; if (!this.lph_1.equals(tmp0_other_with_cast.lph_1)) return false; if (!(this.mph_1 === tmp0_other_with_cast.mph_1)) return false; return true; }; function ListPagingSource(list) { PagingSource.call(this); this.qph_1 = list; } protoOf(ListPagingSource).p5r = function (params, $completion) { var tmp0_elvis_lhs = params.s2(); var startFrom = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs; var loadSize = params.u53_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.qph_1.u(); var b = startFrom + loadSize | 0; var tmp$ret$0 = Math.min(a, b); var subList = this.qph_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.qph_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).c54 = function (params, $completion) { return this.p5r(params, $completion); }; function RefreshCommand(time) { time = time === VOID ? systemTimeInMillis() : time; this.rph_1 = time; } function generateUid(_this__u8e3s4) { return toLong(_this__u8e3s4.w9z_1.hashCode()).rc(32).vc(toLong(_this__u8e3s4.x9z_1.hashCode())); } function get_totalAttendeeStatusRecorded(_this__u8e3s4) { return (_this__u8e3s4.ca0_1 + _this__u8e3s4.ea0_1 | 0) + _this__u8e3s4.da0_1 | 0; } function Activity(id, aType, lang) { lang = lang === VOID ? 'en' : lang; this.zoi_1 = aType; this.aoj_1 = lang; this.coj_1 = null; this.doj_1 = null; this.eoj_1 = null; this.foj_1 = null; this.goj_1 = new JsonObject(mapOf_0(to('id', JsonPrimitive_0(id)))); this.boj_1 = id; } protoOf(Activity).sph = function (key, value) { // Inline function 'kotlin.collections.isNullOrEmpty' call var this_0 = this.foj_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.foj_1 = LinkedHashMap_init_$Create$(); } // Inline function 'kotlin.collections.set' call ensureNotNull(this.foj_1).s(key, value); }; function Companion_78() { this.uoi_1 = 1; } protoOf(Companion_78).tph = function (xpp, parseFlags) { var tcxml = new TinCanXML(); var activity = null; var evtType = xpp.y7c(); var storeActivities = (parseFlags & this.uoi_1) === this.uoi_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.x7c() == null); } else { tmp = false; } if (tmp) { tagName = ensureNotNull(xpp.x7c()); if (!inExtensions) { if (tagName === 'activity') { activity = new Activity(ensureNotNull(xpp.z7c(null, 'id')), ensureNotNull(xpp.z7c(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).eoj_1 = xpp.w7c(); } 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).doj_1 = xpp.w7c(); } 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).coj_1 = xpp.w7c(); } else { if (xpp.x7c() === 'extensions') { inExtensions = true; } } } } } } else { if (tagName === 'extension') { extKey = ensureNotNull(xpp.z7c(null, 'key')); var tmp_7; var tmp_8 = xpp.e(); if (tmp_8 === 4) { var tmp0_elvis_lhs = xpp.w7c(); tmp_7 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; } else { tmp_7 = ''; } extVal = tmp_7; ensureNotNull(activity).sph(extKey, extVal); } } } else { var tmp_9 = evtType; if (tmp_9 === 3) { if (!(xpp.x7c() == null)) { if (xpp.x7c() === 'activity') { if (!(ensureNotNull(activity).eoj_1 == null)) { tcxml.woi_1 = activity; if (!storeActivities) { break $l$1; } } } else if (xpp.x7c() === 'extensions') { inExtensions = false; } } } } evtType = xpp.e(); } while (false); var tmp_10 = evtType; } while (!(tmp_10 === 1)); return tcxml; }; protoOf(Companion_78).voi = function (xpp, parseFlags, $super) { parseFlags = parseFlags === VOID ? 0 : parseFlags; return $super === VOID ? this.tph(xpp, parseFlags) : $super.tph.call(this, xpp, parseFlags); }; var Companion_instance_127; function Companion_getInstance_95() { return Companion_instance_127; } function TinCanXML() { this.woi_1 = null; this.xoi_1 = false; this.yoi_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.bnq_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.entryByUri.' call if (element.fnq_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.nnq_1; } function requireBodyUrlForUri(_this__u8e3s4, uri) { return requireEntryByUri(_this__u8e3s4, uri).nnq_1; } function DiTag() { this.uph_1 = 13; this.vph_1 = 81; this.wph_1 = 1; this.xph_1 = 0; this.yph_1 = 32; this.zph_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.ipi_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.ipi_1.kpi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ipi_1.opi_1 = null; this.hd_1 = 2; suspendResult = this.ipi_1.mpi_1(tryReceiveAll(this.ipi_1.npi_1, this.ipi_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.ipi_1, completion); i.jpi_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.kpi_1 = maxWaitTime; this.lpi_1 = coroutineScope; this.mpi_1 = onCollate; this.npi_1 = Channel(capacity, onBufferOverflow); this.opi_1 = null; } protoOf(EventCollator2).f6x = function (event) { this.npi_1.w19(event); if (this.opi_1 == null) { var tmp = this; tmp.opi_1 = launch(this.lpi_1, VOID, VOID, EventCollator2$receiveEvent$slambda_0(this, null)); } }; function ExceptionWithStringResource() { } function Companion_79() { Companion_instance_128 = this; this.ppi_1 = -1; this.qpi_1 = new MessageIdOption2(strings_getInstance().ulv_1, this.ppi_1); } var Companion_instance_128; function Companion_getInstance_96() { if (Companion_instance_128 == null) new Companion_79(); return Companion_instance_128; } function MessageIdOption2(stringResource, value) { Companion_getInstance_96(); this.ppd_1 = stringResource; this.qpd_1 = value; } protoOf(MessageIdOption2).toString = function () { return 'MessageIdOption2(stringResource=' + this.ppd_1 + ', value=' + this.qpd_1 + ')'; }; protoOf(MessageIdOption2).hashCode = function () { var result = this.ppd_1.hashCode(); result = imul(result, 31) + this.qpd_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.ppd_1.equals(tmp0_other_with_cast.ppd_1)) return false; if (!(this.qpd_1 === tmp0_other_with_cast.qpd_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.rpi_1 = fieldMessageId; this.spi_1 = flag; this.tpi_1 = order; } protoOf(SortOrderOption).toString = function () { return 'SortOrderOption(fieldMessageId=' + this.rpi_1 + ', flag=' + this.spi_1 + ', order=' + this.tpi_1 + ')'; }; protoOf(SortOrderOption).hashCode = function () { var result = this.rpi_1.hashCode(); result = imul(result, 31) + this.spi_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.tpi_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.rpi_1.equals(tmp0_other_with_cast.rpi_1)) return false; if (!(this.spi_1 === tmp0_other_with_cast.spi_1)) return false; if (!(this.tpi_1 === tmp0_other_with_cast.tpi_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.ioj_1 = _Char___init__impl__6a9atx(47); this.joj_1 = 'file:///'; this.koj_1 = new Long(1073741824, 0); this.loj_1 = new Long(1048576, 0); this.moj_1 = new Long(1024, 0); } protoOf(UMFileUtil).joq = 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).noj = 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).upi = 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.upi(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_247.vpi(item.s2()), Companion_instance_247.vpi(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_247.wpi(key)).z5(_Char___init__impl__6a9atx(61)); var tmp = Companion_instance_247; var tmp_0 = ht.q(key); sb.y5(tmp.wpi((!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : THROW_CCE())); } return sb.toString(); }; protoOf(UMFileUtil).xpi = 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).ypi = 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_80() { this.zpi_1 = '/#/'; } protoOf(Companion_80).apj = 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_80).bpj = function (url, divider, $super) { divider = divider === VOID ? '/#/' : divider; return $super === VOID ? this.apj(url, divider) : $super.apj.call(this, url, divider); }; var Companion_instance_129; function Companion_getInstance_97() { return Companion_instance_129; } function UstadUrlComponents$arguments$delegate$lambda(this$0) { return function () { var parsedParams = UMFileUtil_getInstance().upi(this$0.bnw_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_247.vpi(item.s2()), Companion_instance_247.vpi(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.bnw_1; if (charSequenceLength(this_0) === 0) { tmp = this$0.anw_1; } else { tmp = this$0.anw_1 + '?' + this$0.bnw_1; } return tmp; }; } function UstadUrlComponents(learningSpace, viewName, queryString) { this.znv_1 = learningSpace; this.anw_1 = viewName; this.bnw_1 = queryString; var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.cnw_1 = lazy(tmp_0, UstadUrlComponents$arguments$delegate$lambda(this)); var tmp_1 = this; tmp_1.dnw_1 = lazy_0(UstadUrlComponents$viewUri$delegate$lambda(this)); } protoOf(UstadUrlComponents).cpj = function () { // Inline function 'kotlin.getValue' call var this_0 = this.dnw_1; viewUri$factory(); return this_0.t2(); }; protoOf(UstadUrlComponents).dpj = function (divider) { return UMFileUtil_getInstance().joq([this.znv_1, divider, this.cpj()]); }; protoOf(UstadUrlComponents).enw = function (divider, $super) { var tmp; if (divider === VOID) { Companion_getInstance_88(); tmp = '/umapp/#/'; } else { tmp = divider; } divider = tmp; return $super === VOID ? this.dpj(divider) : $super.dpj.call(this, divider); }; protoOf(UstadUrlComponents).toString = function () { return 'UstadUrlComponents(learningSpace=' + this.znv_1 + ', viewName=' + this.anw_1 + ', queryString=' + this.bnw_1 + ')'; }; protoOf(UstadUrlComponents).hashCode = function () { var result = getStringHashCode(this.znv_1); result = imul(result, 31) + getStringHashCode(this.anw_1) | 0; result = imul(result, 31) + getStringHashCode(this.bnw_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.znv_1 === tmp0_other_with_cast.znv_1)) return false; if (!(this.anw_1 === tmp0_other_with_cast.anw_1)) return false; if (!(this.bnw_1 === tmp0_other_with_cast.bnw_1)) return false; return true; }; function viewUri$factory() { return getPropertyCallableRef('viewUri', 1, KProperty1, function (receiver) { return receiver.cpj(); }, 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.f45(ListSerializer(Companion_instance_80.a4r()), tmp1_safe_receiver); } return tmp_0; } function paramMap(_this__u8e3s4, json) { var tmp0_safe_receiver = _this__u8e3s4.xb7_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.f45(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.gbr_1 * 100 / (_this__u8e3s4.ebr_1 + _this__u8e3s4.gbr_1); return roundToInt(this_0); } function textLength(_this__u8e3s4, limitType) { var tmp; if (limitType === 1) { var tmp0_safe_receiver = _this__u8e3s4.hbx_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.hbx_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.q7x_1) ? _this__u8e3s4.q7x_1.c7(_this__u8e3s4.o7x_1) > 0 : false) return _this__u8e3s4.q7x_1; else return _this__u8e3s4.o7x_1; } function maxScoreSummedIfModule(_this__u8e3s4, allBlocks) { var tmp = _this__u8e3s4.h7x_1; if (!(tmp === 100)) return _this__u8e3s4.r7x_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.j7x_1.equals(_this__u8e3s4.g7x_1)) { numModBlocks = numModBlocks + 1 | 0; var tmp_0 = totalModPoints; var tmp1_elvis_lhs = element.r7x_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.b8g_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().wnr_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.ant(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.tpe_1; var tmp$ret$0 = to(item.rpe_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).s57(); // 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.q57(tmp$ret$0, null).nnk(); var trigger = _this__u8e3s4.q56(); // 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.u56(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().pm7_1; case 1: return strings_getInstance().qm7_1; case 2: return strings_getInstance().rm7_1; case 3: return strings_getInstance().sm7_1; case 4: return strings_getInstance().tm7_1; case 5: return strings_getInstance().um7_1; case 6: return strings_getInstance().om7_1; default: return strings_getInstance().mlt_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.hon(); 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.ant(tmp1_safe_receiver); } var tmp3_elvis_lhs = tmp; var tmp_0; if (tmp3_elvis_lhs == null) { var tmp_1 = systemImpl.ant(strings_getInstance().vlt_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$48(_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.l3s($timeout); return Unit_instance; }; } function $verifySiteCOROUTINE$48(_this__u8e3s4, endpointUrl, timeout, json, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mpj_1 = _this__u8e3s4; this.npj_1 = endpointUrl; this.opj_1 = timeout; this.ppj_1 = json; } protoOf($verifySiteCOROUTINE$48).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.qpj_1 = UMFileUtil_getInstance().joq([this.npj_1, 'Site', 'verify']); var tmp_0 = this; tmp_0.rpj_1 = this.mpj_1; var tmp_1 = this; tmp_1.spj_1 = this.qpj_1; var tmp_2 = this; tmp_2.tpj_1 = this.rpj_1; var tmp_3 = this; tmp_3.upj_1 = this.tpj_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.spj_1); header(this_0, 'cache-control', 'no-cache'); timeout(this_0, verifySite$lambda(this.opj_1)); tmp_4.vpj_1 = this_0; this.vpj_1.j38_1 = Companion_getInstance().y2w_1; var tmp_5 = this; tmp_5.wpj_1 = this.upj_1; var tmp_6 = this; tmp_6.xpj_1 = this.vpj_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.xpj_1, this.wpj_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ypj_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.ypj_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var responseStr = suspendResult; return this.ppj_1.f45(Companion_instance_31.a4r(), 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.zpj_1; } else { // Inline function 'kotlin.collections.map' call var this_0 = _this__u8e3s4.b2n(); // 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.a2n(item)); destination.i1(tmp$ret$0); } tmp = toMap(destination); } return tmp; } function toLocalMidnight(_this__u8e3s4, timeZoneId) { return toLocalMidnight_0(_this__u8e3s4, Companion_getInstance_9().als(timeZoneId)); } function toLocalEndOfDay(_this__u8e3s4, timeZoneId) { return toLocalEndOfDay_0(_this__u8e3s4, Companion_getInstance_9().als(timeZoneId)); } function isDateOfBirthAnAdult(_this__u8e3s4) { return ageInYears(_this__u8e3s4) >= UstadMobileConstants_getInstance().apa_1; } function isDateOfBirthAMinor(_this__u8e3s4) { return ageInYears(_this__u8e3s4) < UstadMobileConstants_getInstance().zp9_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.dlp(), Companion_getInstance_9().zlr_1).llp(); } function hasFlag(_this__u8e3s4, flag) { return (_this__u8e3s4 & flag) === flag; } function decodeStringMapFromString(_this__u8e3s4, string) { return _this__u8e3s4.f45(MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)), string); } function encodeStringMapToString(_this__u8e3s4, stringMap) { return _this__u8e3s4.e45(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.b4p(ListSerializer(serializer), element); } else { if (element instanceof JsonObject) { tmp = listOf_0(_this__u8e3s4.b4p(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 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.xls(), LocalTime_init_$Create$(0, 0, 0)); } function toLocalEndOfDay_1(_this__u8e3s4) { return LocalDateTime_init_$Create$(_this__u8e3s4.xls(), LocalTime_init_$Create$(23, 59, 59)); } function chopOffSeconds(_this__u8e3s4) { if (_this__u8e3s4.vls() > 0 ? true : _this__u8e3s4.wls() > 0) { return LocalDateTime_init_$Create$(_this__u8e3s4.xls(), LocalTime_init_$Create$(_this__u8e3s4.tls(), _this__u8e3s4.uls())); } else { return _this__u8e3s4; } } function chopOffSeconds_0(_this__u8e3s4) { if (_this__u8e3s4.vls() > 0 ? true : _this__u8e3s4.wls() > 0) return LocalTime_init_$Create$(_this__u8e3s4.tls(), _this__u8e3s4.uls()); 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_247.wpi(item.s2()) + '=' + Companion_instance_247.wpi(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.apk_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).t1d = function (value, $completion) { return this.apk_1(value, $completion); }; function whenSubscribed$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.jpk_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.lpk_1 = this.jpk_1; var tmp_1 = this; tmp_1.mpk_1 = this.kpk_1; this.hd_1 = 1; var it = this.mpk_1; suspendResult = this.lpk_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.jpk_1, completion); i.kpk_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$49(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vpk_1 = _this__u8e3s4; this.wpk_1 = collector; } protoOf($collectCOROUTINE$49).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.xpk_1 = this.wpk_1; this.hd_1 = 1; var tmp_1 = whenSubscribed$o$collect$slambda_0(this.xpk_1, null); suspendResult = this.vpk_1.ypk_1.z1b(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.ypk_1 = $this; } protoOf(_no_name_provided__qut3iv_1).zpk = function (collector, $completion) { var tmp = new $collectCOROUTINE$49(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_1).z1b = function (collector, $completion) { return this.zpk(collector, $completion); }; function whenSubscribed$slambda($block, resultContinuation) { this.ipl_1 = $block; CoroutineImpl.call(this, resultContinuation); } protoOf(whenSubscribed$slambda).kpl = function (active, $completion) { var tmp = this.lpl(active, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(whenSubscribed$slambda).he = function (p1, $completion) { return this.kpl((!(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.jpl_1) { this.hd_1 = 1; suspendResult = this.ipl_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).lpl = function (active, completion) { var i = new whenSubscribed$slambda(this.ipl_1, completion); i.jpl_1 = active; return i; }; function whenSubscribed$slambda_0($block, resultContinuation) { var i = new whenSubscribed$slambda($block, resultContinuation); var l = function (active, $completion) { return i.kpl(active, $completion); }; l.$arity = 1; return l; } function navigateToLink(_this__u8e3s4, link, accountManager, openExternalLinkUseCase, goOptions, forceAccountSelection, userCanSelectServer, accountName, scope, linkTarget, dontSetCurrentSession, repo, presetLearningSpaceUrl) { goOptions = goOptions === VOID ? Companion_getInstance_87().dpa_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; repo = repo === VOID ? null : repo; presetLearningSpaceUrl = presetLearningSpaceUrl === VOID ? null : presetLearningSpaceUrl; 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_129.bpj(link); learningSpaceUrl._v = urlComponents.znv_1; viewUri._v = urlComponents.cpj(); } else { if (!startsWithHttpProtocol(link)) { viewUri._v = link; } } var tmp_0; var tmp0_safe_receiver = viewUri._v; var tmp_1; if (tmp0_safe_receiver == null) { tmp_1 = null; } else { tmp_1 = startsWith(tmp0_safe_receiver, 'ParentalConsentManagement'); } if (tmp_1 === true) { tmp_0 = minus(System_instance.dlp(), UstadMobileConstants_getInstance().apa_1, Companion_getInstance_10().olq_1, Companion_getInstance_9().zlr_1).jls(); } 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.nnk().in3_1) : false) { openExternalLinkUseCase.ooq(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, presetLearningSpaceUrl, repo, 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.npf(viewName, args, goOptions); } function sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1(function_0) { this.mpl_1 = function_0; } protoOf(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1).lna = function (endpointUrl) { return this.mpl_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, $presetLearningSpaceUrl, $repo, resultContinuation) { this.vpl_1 = $accountName; this.wpl_1 = $learningSpaceUrl; this.xpl_1 = $accountManager; this.ypl_1 = $dontSetCurrentSession; this.zpl_1 = $this_navigateToLink; this.apm_1 = $viewUri; this.bpm_1 = $goOptions; this.cpm_1 = $forceAccountSelection; this.dpm_1 = $maxDateOfBirth; this.epm_1 = $presetLearningSpaceUrl; this.fpm_1 = $repo; 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.vpl_1 == null) ? !(this.wpl_1._v == null) : false) { this.hd_1 = 9; continue $sm; } else { if ((!this.cpm_1 ? !isTemporary(this.xpl_1.rnj().dn4_1) : false) ? this.wpl_1._v == null ? true : this.xpl_1.nnk().in3_1 === this.wpl_1._v : false) { navigateToViewUri(this.zpl_1, this.apm_1._v, this.bpm_1); this.hd_1 = 15; continue $sm; } else { if (!(this.wpl_1._v == null)) { this.hd_1 = 1; var tmp_0 = navigateToLink$slambda$lambda_0(this.wpl_1); suspendResult = this.xpl_1.onk(this.dpm_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.jpm_1 = false; this.hd_1 = 2; continue $sm; } } } case 1: this.kpm_1 = suspendResult; this.jpm_1 = this.kpm_1 === 0; this.hd_1 = 2; continue $sm; case 2: if (this.jpm_1) { this.ipm_1 = true; this.hd_1 = 5; continue $sm; } else { if (this.wpl_1._v == null) { this.hd_1 = 3; suspendResult = this.xpl_1.pnk(this.dpm_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.lpm_1 = false; this.hd_1 = 4; continue $sm; } } case 3: this.mpm_1 = suspendResult; this.lpm_1 = this.mpm_1 === 0; this.hd_1 = 4; continue $sm; case 4: this.ipm_1 = this.lpm_1; this.hd_1 = 5; continue $sm; case 5: if (this.ipm_1) { var tmp_1 = this; Companion_getInstance_108(); var tmp_2 = to('next', this.apm_1._v); Companion_getInstance_119(); tmp_1.npm_1 = mutableMapOf([tmp_2, to('noSessionChange', this.ypl_1.toString())]); if (!(this.wpl_1._v == null)) { var this_0 = this.npm_1; Companion_getInstance_108(); var key = 'learningSpaceUrl'; var value = this.wpl_1._v; this_0.s(key, value); } var tmp_3 = this; var tmp1_safe_receiver = this.epm_1; var tmp_4; if (tmp1_safe_receiver == null) { tmp_4 = null; } else { var tmp0_safe_receiver = this.fpm_1; var tmp_5; if (tmp0_safe_receiver == null) { tmp_5 = null; } else { tmp_5 = tmp0_safe_receiver(new LearningSpace(tmp1_safe_receiver)); } tmp_4 = tmp_5; } tmp_3.opm_1 = tmp_4; if (!(this.opm_1 == null)) { this.hd_1 = 6; suspendResult = this.opm_1.i7e().dhe(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ppm_1 = false; this.hd_1 = 7; continue $sm; } } else { Companion_getInstance_108(); var tmp_6 = to('next', this.apm_1._v); Companion_getInstance_119(); var args = mutableMapOf([tmp_6, to('noSessionChange', this.ypl_1.toString())]); if (!(this.wpl_1._v == null)) { var key_0 = 'filterByLearningSpace'; var value_0 = this.wpl_1._v; args.s(key_0, value_0); } var key_1 = 'activeAccountMode'; args.s(key_1, 'inlist'); Companion_getInstance_108(); var key_2 = 'listMode'; var value_1 = ListViewMode_PICKER_getInstance().toString(); args.s(key_2, value_1); Companion_getInstance_108(); var value_2 = this.dpm_1.toString(); args.s('maxDob', value_2); this.zpl_1.npf('AccountList', toMap_0(args), this.bpm_1); this.hd_1 = 15; continue $sm; } case 6: this.qpm_1 = suspendResult; this.rpm_1 = this.qpm_1 == null ? null : this.qpm_1.phe_1; this.ppm_1 = this.rpm_1 === false; this.hd_1 = 7; continue $sm; case 7: if (this.ppm_1) { var this_1 = LinkedHashMap_init_$Create$(); Companion_getInstance_201(); this_1.s('NewOrExistingUser', 'existing'); Companion_getInstance_108(); this_1.s('learningSpaceUrl', toString(this.epm_1)); var arg = this_1.f3(); this.zpl_1.fog('Login', arg); this.hd_1 = 8; continue $sm; } else { this.zpl_1.fog('addAccountSelectNewOrExisting', this.npm_1); this.hd_1 = 8; continue $sm; } case 8: this.hd_1 = 15; continue $sm; case 9: this.hd_1 = 10; var tmp_7 = navigateToLink$slambda$lambda(this.wpl_1); suspendResult = this.xpl_1.snj(new sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1(tmp_7), 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.en4_1.t95_1 === substringBefore_0(this.vpl_1, '@')) { this.hpm_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.hpm_1 = null; if (false) { this.hd_1 = 9; continue $sm; } this.hd_1 = 14; continue $sm; case 14: var session = this.hpm_1; if (!(session == null)) { var this_2 = this.xpl_1; var tmp_8; if (!this.ypl_1) { tmp_8 = this_2; } else { tmp_8 = null; } var tmp0_safe_receiver_0 = tmp_8; if (tmp0_safe_receiver_0 != null) { tmp0_safe_receiver_0.fn7(session); } navigateToViewUri(this.zpl_1, this.apm_1._v, this.bpm_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.vpl_1, this.wpl_1, this.xpl_1, this.ypl_1, this.zpl_1, this.apm_1, this.bpm_1, this.cpm_1, this.dpm_1, this.epm_1, this.fpm_1, completion); i.gpm_1 = $this$launch; return i; }; function navigateToLink$slambda_0($accountName, $learningSpaceUrl, $accountManager, $dontSetCurrentSession, $this_navigateToLink, $viewUri, $goOptions, $forceAccountSelection, $maxDateOfBirth, $presetLearningSpaceUrl, $repo, resultContinuation) { var i = new navigateToLink$slambda($accountName, $learningSpaceUrl, $accountManager, $dontSetCurrentSession, $this_navigateToLink, $viewUri, $goOptions, $forceAccountSelection, $maxDateOfBirth, $presetLearningSpaceUrl, $repo, 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.t95_1 == null; } function toUmAccount(_this__u8e3s4, endpointUrl) { return new UmAccount(_this__u8e3s4.s95_1, _this__u8e3s4.t95_1, '', endpointUrl, _this__u8e3s4.u95_1, _this__u8e3s4.v95_1); } function personFullName(_this__u8e3s4) { var tmp0_elvis_lhs = _this__u8e3s4.u95_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = _this__u8e3s4.v95_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.t95_1; var tmp1_name = tmp0_elvis_lhs == null ? _this__u8e3s4.s95_1.toString() : tmp0_elvis_lhs; var tmp2_homePage = learningSpace.in3_1; return new XapiAgent(tmp, VOID, VOID, VOID, VOID, new XapiAccount(tmp2_homePage, tmp1_name)); } function toggle(_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 appendSelectedAccount(_this__u8e3s4, personUid, learningSpace) { Companion_getInstance_119(); var tmp = to('selectedAccountPersonUid', personUid.toString()); Companion_getInstance_119(); return appendQueryArgs(_this__u8e3s4, mapOf([tmp, to('selectedAccountEndpointUrl', learningSpace.in3_1)])); } function requirePostfix(_this__u8e3s4, postFix, ignoreCase) { ignoreCase = ignoreCase === VOID ? false : ignoreCase; return endsWith(_this__u8e3s4, postFix, ignoreCase) ? _this__u8e3s4 : _this__u8e3s4 + postFix; } 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.dlp() : instant; return gmtOffsetString(offsetAt(_this__u8e3s4, instant)) + ' ' + _this__u8e3s4.dls(); } function get_progressAsFloat(_this__u8e3s4) { var tmp = _this__u8e3s4.uc6_1.zc(); // Inline function 'kotlin.takeIf' call var this_0 = _this__u8e3s4.tc6_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$50(_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$51(_this__u8e3s4, block, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function ScopedGrantResult(sgUid) { this.wpn_1 = sgUid; } protoOf(ScopedGrantResult).toString = function () { return 'ScopedGrantResult(sgUid=' + this.wpn_1.toString() + ')'; }; protoOf(ScopedGrantResult).hashCode = function () { return this.wpn_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.wpn_1.equals(tmp0_other_with_cast.wpn_1)) return false; return true; }; function grantScopedPermission(_this__u8e3s4, toPerson, permissions, scopeTableId, scopeEntityUid, $completion) { return grantScopedPermission_0(_this__u8e3s4, toPerson.e96_1, permissions, scopeTableId, scopeEntityUid, $completion); } function grantScopedPermission_0(_this__u8e3s4, toGroupUid, permissions, scopeTableId, scopeEntityUid, $completion) { var tmp = new $grantScopedPermissionCOROUTINE$52(_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$53(_this__u8e3s4, block, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $insertPersonAndGroupCOROUTINE$50(_this__u8e3s4, entity, groupFlag, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.apn_1 = _this__u8e3s4; this.bpn_1 = entity; this.cpn_1 = groupFlag; } protoOf($insertPersonAndGroupCOROUTINE$50).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.kg3_1 = 'Person individual group'; this_0.mg3_1 = this.cpn_1; tmp_0.dpn_1 = this_0; this.hd_1 = 1; suspendResult = this.apn_1.q7d().insertAsync(this.dpn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.epn_1 = suspendResult; this.dpn_1.fg3_1 = this.epn_1; this.bpn_1.e96_1 = this.dpn_1.fg3_1; this.hd_1 = 2; suspendResult = this.apn_1.a7d().insertAsync(this.bpn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.fpn_1 = suspendResult; this.bpn_1.s95_1 = this.fpn_1; this.hd_1 = 3; suspendResult = this.apn_1.r7d().insertAsync(PersonGroupMember_init_$Create$(this.bpn_1.s95_1, this.bpn_1.e96_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.apn_1, this.bpn_1, tmp_1, 9, this.bpn_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: return this.bpn_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$51(_this__u8e3s4, block, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.opn_1 = _this__u8e3s4; this.ppn_1 = block; } protoOf($localFirstThenRepoIfFalseCOROUTINE$51).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.opn_1; var tmp0_safe_receiver = isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : null; var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k5i(); tmp_0.qpn_1 = tmp_2 instanceof UmAppDatabase ? tmp_2 : null; this.rpn_1 = this.qpn_1; if (this.rpn_1 == null) { this.spn_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_3 = this; tmp_3.tpn_1 = this.rpn_1; var tmp_4 = this; tmp_4.upn_1 = this.tpn_1; this.hd_1 = 1; suspendResult = this.ppn_1(this.upn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.spn_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.vpn_1 = this.spn_1; if (this.vpn_1 === true) return this.vpn_1; this.hd_1 = 3; suspendResult = this.ppn_1(this.opn_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$52(_this__u8e3s4, toGroupUid, permissions, scopeTableId, scopeEntityUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fpo_1 = _this__u8e3s4; this.gpo_1 = toGroupUid; this.hpo_1 = permissions; this.ipo_1 = scopeTableId; this.jpo_1 = scopeEntityUid; } protoOf($grantScopedPermissionCOROUTINE$52).ud = function () { var 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.fpo_1.l7e(); var this_0 = new ScopedGrant(); this_0.lhc_1 = this.gpo_1; this_0.khc_1 = this.hpo_1; this_0.ihc_1 = this.ipo_1; this_0.jhc_1 = this.jpo_1; suspendResult = tmp_0.ohb(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$53(_this__u8e3s4, block, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.spo_1 = _this__u8e3s4; this.tpo_1 = block; } protoOf($localFirstThenRepoIfNullCOROUTINE$53).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var tmp_1 = this.spo_1; var tmp0_safe_receiver = isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : null; var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k5i(); tmp_0.upo_1 = tmp_2 instanceof UmAppDatabase ? tmp_2 : null; this.vpo_1 = this.upo_1; if (this.vpo_1 == null) { this.wpo_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_3 = this; tmp_3.xpo_1 = this.vpo_1; var tmp_4 = this; tmp_4.ypo_1 = this.xpo_1; this.hd_1 = 1; suspendResult = this.tpo_1(this.ypo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.wpo_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.zpo_1 = this.wpo_1; if (!(this.zpo_1 == null)) return this.zpo_1; this.hd_1 = 3; suspendResult = this.tpo_1(this.spo_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.yia_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.wia_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.via_1; var tmp_0 = tmp & 8; return tmp_0 === 8; } function setIfNoValueSetYet(_this__u8e3s4, key, value) { if (_this__u8e3s4.ba(key) == null) { _this__u8e3s4.app(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.hlt() / 3600 | 0; // Inline function 'kotlin.mod' call var r = _this__u8e3s4.hlt() % 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 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.ukg(); while (!((_this__u8e3s4.e().equals(EventType_END_ELEMENT_getInstance()) ? _this__u8e3s4.ukg() === (initDepth - 1 | 0) : false) ? _this__u8e3s4.dc().equals(initTagName) : false)) { switch (_this__u8e3s4.zkg().za_1) { case 1: if (_this__u8e3s4.dc().qkk() === 'img') { var tmp1_elvis_lhs = _this__u8e3s4.z7c(null, 'alt'); var textVal = tmp1_elvis_lhs == null ? _this__u8e3s4.z7c(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.xkg())); break; default: break; } } return this_0.toString(); } function emptyStringValues() { return new MapStringValues(emptyMap()); } function Companion_81() { } protoOf(Companion_81).o4d = function () { return new MapStringValues(emptyMap()); }; protoOf(Companion_81).a4r = function () { return new StringValuesSerializer(); }; protoOf(Companion_81).i4g = function (typeParamsSerializers) { return this.a4r(); }; var Companion_instance_130; function Companion_getInstance_98() { return Companion_instance_130; } function IStringValues() { } function MapStringValues(map) { this.zpj_1 = map; } protoOf(MapStringValues).a2n = function (key) { // Inline function 'kotlin.collections.flatMap' call // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.zpj_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).b2n = function () { return this.zpj_1.o2(); }; function asIStringValues(_this__u8e3s4) { return new MapStringValues(_this__u8e3s4); } function StringValuesSerializer() { this.bpp_1 = MapSerializer(serializer_0(StringCompanionObject_instance), ListSerializer(serializer_0(StringCompanionObject_instance))); this.cpp_1 = SerialDescriptor('StringValuesSerializer', this.bpp_1.d44()); } protoOf(StringValuesSerializer).d44 = function () { return this.cpp_1; }; protoOf(StringValuesSerializer).f44 = function (decoder) { var stringMap = decoder.u47(this.bpp_1); return new MapStringValues(stringMap); }; protoOf(StringValuesSerializer).dpp = function (encoder, value) { encoder.m49(this.bpp_1, toMap_1(value)); }; protoOf(StringValuesSerializer).e44 = function (encoder, value) { return this.dpp(encoder, (!(value == null) ? isInterface(value, IStringValues) : false) ? value : THROW_CCE()); }; function Companion_82() { this.epp_1 = 'errCode'; this.fpp_1 = 'msg'; this.gpp_1 = 'stacktraceKey'; this.hpp_1 = 'fromUri'; this.ipp_1 = 'ErrorReport'; } var Companion_instance_131; function Companion_getInstance_99() { return Companion_instance_131; } function Companion_83() { this.jpp_1 = 'HolidayCalendarDetail'; } var Companion_instance_132; function Companion_getInstance_100() { return Companion_instance_132; } function Companion_84() { this.kpp_1 = 'InviteViaLink'; } var Companion_instance_133; function Companion_getInstance_101() { return Companion_instance_133; } function Companion_85() { this.lpp_1 = 'JoinWithCode'; } var Companion_instance_134; function Companion_getInstance_102() { return Companion_instance_134; } function Companion_86() { this.mpp_1 = 'LanguageDetailView'; } var Companion_instance_135; function Companion_getInstance_103() { return Companion_instance_135; } function Companion_87() { this.npp_1 = 'LanguageEditEditView'; } var Companion_instance_136; function Companion_getInstance_104() { return Companion_instance_136; } function Companion_88() { this.opp_1 = 'ScopedGrantDetail'; } var Companion_instance_137; function Companion_getInstance_105() { return Companion_instance_137; } function Companion_89() { this.ppp_1 = 'SiteTermsDetailView'; this.qpp_1 = 'SiteTermsDetailAcceptTerms'; this.rpp_1 = 'useDisplayLocale'; this.spp_1 = 'showAccept'; } var Companion_instance_138; function Companion_getInstance_106() { return Companion_instance_138; } function Companion_90() { Companion_instance_139 = this; this.tpp_1 = 'entity'; this.upp_1 = new Long(200, 0); } var Companion_instance_139; function Companion_getInstance_107() { if (Companion_instance_139 == null) new Companion_90(); return Companion_instance_139; } 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.xpp_1 = mode; } function ListViewMode_BROWSER_getInstance() { ListViewMode_initEntries(); return ListViewMode_BROWSER_instance; } function ListViewMode_PICKER_getInstance() { ListViewMode_initEntries(); return ListViewMode_PICKER_instance; } function Companion_91() { Companion_instance_140 = this; this.ypp_1 = 'entityUid'; this.zpp_1 = 'containerUid'; this.apq_1 = 'parentUid'; this.bpq_1 = 'parentTitle'; this.cpq_1 = 'entryid'; this.dpq_1 = 'learnerGroupUid'; this.epq_1 = 'noiframe'; this.fpq_1 = 'schoolUid'; this.gpq_1 = 'content_type'; this.hpq_1 = 'filterBySchoolUid'; this.ipq_1 = 'filterByRole'; this.jpq_1 = 'listMode'; this.kpq_1 = 'getResultMode'; this.lpq_1 = 'listAddMode'; this.mpq_1 = 'filterByPermission'; this.npq_1 = 'clazzUid'; this.opq_1 = 'filterByPersonGroupUid'; this.ppq_1 = 'filterByEnrolmentRole'; this.qpq_1 = 'clazzAssignmentUid'; this.rpq_1 = 'clazzAssignmentSubmitterUid'; this.spq_1 = 'personUid'; this.tpq_1 = 'next'; this.upq_1 = 'site'; this.vpq_1 = 'learningSpaceUrl'; this.wpq_1 = 'openLink'; this.xpq_1 = 'account'; this.ypq_1 = 'accountEndpoint'; this.zpq_1 = 'snack_message'; this.apr_1 = 'argCode'; this.bpr_1 = 'argCodeTable'; this.cpr_1 = 'argEntityName'; this.dpr_1 = ''; this.epr_1 = 'root'; this.fpr_1 = 'current'; this.gpr_1 = 'goToComplete'; this.hpr_1 = 'saveDb'; this.ipr_1 = 'popUpToOnFinish'; this.jpr_1 = 'result_dest'; this.kpr_1 = 'result_viewname'; this.lpr_1 = 'registration_allowed'; this.mpr_1 = 'result_key'; this.npr_1 = 'intMsg'; this.opr_1 = 'title'; this.ppr_1 = 'navChild'; this.qpr_1 = 'activeTabIndex'; this.rpr_1 = 'maxDob'; this.spr_1 = new Long(1, -955361223); } var Companion_instance_140; function Companion_getInstance_108() { if (Companion_instance_140 == null) new Companion_91(); return Companion_instance_140; } function _get_apiUrlConfig__mldllg_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ops_1; apiUrlConfig$factory_2(); return this_0.t2(); } function Companion_92() { this.rps_1 = 'AddAccountSelectNewUserType'; } var Companion_instance_141; function Companion_getInstance_109() { return Companion_instance_141; } function AddAccountSelectNewOrExistingUserTypeViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'AddAccountSelectNewUserType'); 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.ops_1 = Instance(this, tmp$ret$0, null).n5c(this, apiUrlConfig$factory_1()); this.pps_1 = MutableStateFlow(new AddAccountSelectNewOrExistingUserTypeUiState()); var tmp_1 = this; Companion_getInstance_201(); tmp_1.qps_1 = savedStateHandle.ba('NewOrExistingUser') === 'new'; var tmp0_title = this.qps_1 ? this.npt().ant(strings_getInstance().rn0_1) : this.npt().ant(strings_getInstance().sn0_1); this.bpt_1.x1k(new AppUiState(VOID, VOID, tmp0_title, false, VOID, VOID, false, VOID, VOID, VOID, false)); if (!(_get_apiUrlConfig__mldllg_0(this).ink_1 == null)) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.pps_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.AddAccountSelectNewOrExistingUserTypeViewModel.' call var nextValue = prevValue.c6s(true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } } protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).ppt = function () { return asStateFlow(this.pps_1); }; protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).qpt = function () { var tmp; Companion_getInstance_201(); if (this.xps_1.ba('NewOrExistingUser') === '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.AddAccountSelectNewOrExistingUserTypeViewModel.onClickPersonalAccount.' call this.ypt(this_0, Companion_getInstance_201().wpt_1); Companion_getInstance_201(); this_0.s('personalAccount', 'true'); Companion_getInstance_108(); var tmp0_safe_receiver = _get_apiUrlConfig__mldllg_0(this).ink_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : requireHttpPrefix(tmp0_safe_receiver); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : requirePostfix(tmp1_safe_receiver, '/'); this_0.s('learningSpaceUrl', tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); var tmp$ret$2 = this_0.f3(); this.zps_1.fog(viewName, tmp$ret$2); }; protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).zpt = 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.AddAccountSelectNewOrExistingUserTypeViewModel.onClickJoinLearningSpace.' call this.ypt(this_0, Companion_getInstance_201().wpt_1); var tmp$ret$2 = this_0.f3(); this.zps_1.fog('LearningSpaceList', tmp$ret$2); }; protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).apu = function () { }; function AddAccountSelectNewOrExistingUserTypeUiState(showAddPersonalAccount) { showAddPersonalAccount = showAddPersonalAccount === VOID ? false : showAddPersonalAccount; this.opt_1 = showAddPersonalAccount; } protoOf(AddAccountSelectNewOrExistingUserTypeUiState).c6s = function (showAddPersonalAccount) { return new AddAccountSelectNewOrExistingUserTypeUiState(showAddPersonalAccount); }; protoOf(AddAccountSelectNewOrExistingUserTypeUiState).toString = function () { return 'AddAccountSelectNewOrExistingUserTypeUiState(showAddPersonalAccount=' + this.opt_1 + ')'; }; protoOf(AddAccountSelectNewOrExistingUserTypeUiState).hashCode = function () { return getBooleanHashCode(this.opt_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.opt_1 === tmp0_other_with_cast.opt_1)) return false; return true; }; function apiUrlConfig$factory_1() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_0(receiver); }, null); } function apiUrlConfig$factory_2() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_0(receiver); }, null); } function _get_supportLangConfig__jc22wi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.vpv_1; supportLangConfig$factory_0(); return this_0.t2(); } function _get_setLanguageUseCase__st7nci($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wpv_1; setLanguageUseCase$factory_0(); return this_0.t2(); } function _get_apiUrlConfig__mldllg_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xpv_1; apiUrlConfig$factory_4(); return this_0.t2(); } function Companion_93() { this.ypv_1 = 'addAccountSelectNewOrExisting'; } var Companion_instance_142; function Companion_getInstance_110() { return Companion_instance_142; } function AddAccountSelectNewOrExistingViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'addAccountSelectNewOrExisting'); this.upv_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.vpv_1 = Instance(this, tmp$ret$0, null).n5c(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.wpv_1 = Instance(this, tmp$ret$2, null).n5c(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.xpv_1 = Instance(this, tmp$ret$4, null).n5c(this, apiUrlConfig$factory_3()); this.bpt_1.x1k(new AppUiState(VOID, VOID, VOID, false, VOID, VOID, false, VOID, VOID, VOID, true)); var allLanguages = _get_supportLangConfig__jc22wi(this).bpe(this.npt()); var currentLanguage = _get_supportLangConfig__jc22wi(this).ape(this.npt()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.upv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.AddAccountSelectNewOrExistingViewModel.' call var nextValue = new AddAccountSelectNewOrExistingUiState(currentLanguage, allLanguages); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } protoOf(AddAccountSelectNewOrExistingViewModel).ppt = function () { return asStateFlow(this.upv_1); }; protoOf(AddAccountSelectNewOrExistingViewModel).zpv = function () { this.apw(true); }; protoOf(AddAccountSelectNewOrExistingViewModel).bpw = function () { this.apw(false); }; protoOf(AddAccountSelectNewOrExistingViewModel).apw = function (isNewUser) { var userType = isNewUser ? 'new' : 'existing'; // 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.AddAccountSelectNewOrExistingViewModel.navigateUser.' call this.ypt(this_0, Companion_getInstance_201().wpt_1); Companion_getInstance_201(); this_0.s('NewOrExistingUser', userType); var tmp0_safe_receiver = _get_apiUrlConfig__mldllg_1(this).hnk_1; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call Companion_getInstance_108(); this_0.s('learningSpaceUrl', tmp0_safe_receiver); } var arg = this_0.f3(); var tmp; // Inline function 'kotlin.text.isNullOrEmpty' call var this_1 = _get_apiUrlConfig__mldllg_1(this).hnk_1; // Inline function 'kotlin.contracts.contract' call if (!(this_1 == null ? true : charSequenceLength(this_1) === 0)) { var tmp_0; if (isNewUser) { tmp_0 = 'RegisterAgeRedirect'; } else { tmp_0 = 'Login'; } tmp = tmp_0; } else { // Inline function 'kotlin.text.isNullOrEmpty' call var this_2 = _get_apiUrlConfig__mldllg_1(this).ink_1; // Inline function 'kotlin.contracts.contract' call if (this_2 == null ? true : charSequenceLength(this_2) === 0) { tmp = 'LearningSpaceList'; } else { tmp = 'AddAccountSelectNewUserType'; } } var destination = tmp; this.zps_1.fog(destination, arg); }; protoOf(AddAccountSelectNewOrExistingViewModel).cpw = function (uiLanguage) { if (!uiLanguage.equals(this.upv_1.t2().dpw_1)) { var result = _get_setLanguageUseCase__st7nci(this).boq(uiLanguage, 'addAccountSelectNewOrExisting', this.zps_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.upv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.AddAccountSelectNewOrExistingViewModel.onLanguageSelected.' call var nextValue = prevValue.gpw(uiLanguage, VOID, result.zop_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.dpw_1 = currentLanguage; this.epw_1 = languageList; this.fpw_1 = showWaitForRestart; } protoOf(AddAccountSelectNewOrExistingUiState).hpw = function (currentLanguage, languageList, showWaitForRestart) { return new AddAccountSelectNewOrExistingUiState(currentLanguage, languageList, showWaitForRestart); }; protoOf(AddAccountSelectNewOrExistingUiState).gpw = function (currentLanguage, languageList, showWaitForRestart, $super) { currentLanguage = currentLanguage === VOID ? this.dpw_1 : currentLanguage; languageList = languageList === VOID ? this.epw_1 : languageList; showWaitForRestart = showWaitForRestart === VOID ? this.fpw_1 : showWaitForRestart; return $super === VOID ? this.hpw(currentLanguage, languageList, showWaitForRestart) : $super.hpw.call(this, currentLanguage, languageList, showWaitForRestart); }; protoOf(AddAccountSelectNewOrExistingUiState).toString = function () { return 'AddAccountSelectNewOrExistingUiState(currentLanguage=' + this.dpw_1 + ', languageList=' + this.epw_1 + ', showWaitForRestart=' + this.fpw_1 + ')'; }; protoOf(AddAccountSelectNewOrExistingUiState).hashCode = function () { var result = this.dpw_1.hashCode(); result = imul(result, 31) + hashCode(this.epw_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.fpw_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.dpw_1.equals(tmp0_other_with_cast.dpw_1)) return false; if (!equals(this.epw_1, tmp0_other_with_cast.epw_1)) return false; if (!(this.fpw_1 === tmp0_other_with_cast.fpw_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_3() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_1(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_4() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_1(receiver); }, null); } function DetailViewModel(di, savedStateHandle, destinationName) { UstadViewModel.call(this, di, savedStateHandle, destinationName); var tmp = this; Companion_getInstance_108(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.dpx_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.hpx_1 = errorReport; this.ipx_1 = fieldsEnabled; } protoOf(ErrorReportUiState).toString = function () { return 'ErrorReportUiState(errorReport=' + this.hpx_1 + ', fieldsEnabled=' + this.ipx_1 + ')'; }; protoOf(ErrorReportUiState).hashCode = function () { var result = this.hpx_1 == null ? 0 : hashCode(this.hpx_1); result = imul(result, 31) + getBooleanHashCode(this.ipx_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.hpx_1, tmp0_other_with_cast.hpx_1)) return false; if (!(this.ipx_1 === tmp0_other_with_cast.ipx_1)) return false; return true; }; function HolidayCalendarDetailUIState(holidayCalendar, holidayList) { holidayCalendar = holidayCalendar === VOID ? null : holidayCalendar; holidayList = holidayList === VOID ? emptyList() : holidayList; this.jpx_1 = holidayCalendar; this.kpx_1 = holidayList; } protoOf(HolidayCalendarDetailUIState).toString = function () { return 'HolidayCalendarDetailUIState(holidayCalendar=' + this.jpx_1 + ', holidayList=' + this.kpx_1 + ')'; }; protoOf(HolidayCalendarDetailUIState).hashCode = function () { var result = this.jpx_1 == null ? 0 : hashCode(this.jpx_1); result = imul(result, 31) + hashCode(this.kpx_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.jpx_1, tmp0_other_with_cast.jpx_1)) return false; if (!equals(this.kpx_1, tmp0_other_with_cast.kpx_1)) return false; return true; }; function Companion_94() { this.lpx_1 = 'HolidayCalendarEdit'; } var Companion_instance_143; function Companion_getInstance_111() { return Companion_instance_143; } function HolidayCalendarEditUiState(holidayCalendar, fieldsEnabled, holidayList) { holidayCalendar = holidayCalendar === VOID ? null : holidayCalendar; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; holidayList = holidayList === VOID ? emptyList() : holidayList; this.mpx_1 = holidayCalendar; this.npx_1 = fieldsEnabled; this.opx_1 = holidayList; } protoOf(HolidayCalendarEditUiState).toString = function () { return 'HolidayCalendarEditUiState(holidayCalendar=' + this.mpx_1 + ', fieldsEnabled=' + this.npx_1 + ', holidayList=' + this.opx_1 + ')'; }; protoOf(HolidayCalendarEditUiState).hashCode = function () { var result = this.mpx_1 == null ? 0 : hashCode(this.mpx_1); result = imul(result, 31) + getBooleanHashCode(this.npx_1) | 0; result = imul(result, 31) + (this.opx_1 == null ? 0 : hashCode(this.opx_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.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; return true; }; function Companion_95() { this.ppx_1 = 'HolidayCalendarList'; } var Companion_instance_144; function Companion_getInstance_112() { return Companion_instance_144; } function HolidayCalendarListUiState(holidayCalendarList) { var tmp; if (holidayCalendarList === VOID) { // Inline function 'kotlin.collections.listOf' call tmp = emptyList(); } else { tmp = holidayCalendarList; } holidayCalendarList = tmp; this.qpx_1 = holidayCalendarList; } protoOf(HolidayCalendarListUiState).toString = function () { return 'HolidayCalendarListUiState(holidayCalendarList=' + this.qpx_1 + ')'; }; protoOf(HolidayCalendarListUiState).hashCode = function () { return hashCode(this.qpx_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.qpx_1, tmp0_other_with_cast.qpx_1)) return false; return true; }; function LanguageDetailUiState(language) { language = language === VOID ? null : language; this.rpx_1 = language; } protoOf(LanguageDetailUiState).toString = function () { return 'LanguageDetailUiState(language=' + this.rpx_1 + ')'; }; protoOf(LanguageDetailUiState).hashCode = function () { return this.rpx_1 == null ? 0 : this.rpx_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.rpx_1, tmp0_other_with_cast.rpx_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.spx_1 = language; this.tpx_1 = fieldsEnabled; this.upx_1 = languageNameError; this.vpx_1 = twoLettersCodeError; this.wpx_1 = threeLettersCodeError; } protoOf(LanguageEditUiState).toString = function () { return 'LanguageEditUiState(language=' + this.spx_1 + ', fieldsEnabled=' + this.tpx_1 + ', languageNameError=' + this.upx_1 + ', twoLettersCodeError=' + this.vpx_1 + ', threeLettersCodeError=' + this.wpx_1 + ')'; }; protoOf(LanguageEditUiState).hashCode = function () { var result = this.spx_1 == null ? 0 : this.spx_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.tpx_1) | 0; result = imul(result, 31) + (this.upx_1 == null ? 0 : getStringHashCode(this.upx_1)) | 0; result = imul(result, 31) + (this.vpx_1 == null ? 0 : getStringHashCode(this.vpx_1)) | 0; result = imul(result, 31) + (this.wpx_1 == null ? 0 : getStringHashCode(this.wpx_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.spx_1, tmp0_other_with_cast.spx_1)) return false; if (!(this.tpx_1 === tmp0_other_with_cast.tpx_1)) return false; if (!(this.upx_1 == tmp0_other_with_cast.upx_1)) return false; if (!(this.vpx_1 == tmp0_other_with_cast.vpx_1)) return false; if (!(this.wpx_1 == tmp0_other_with_cast.wpx_1)) return false; return true; }; function Companion_96() { this.xpx_1 = 'LanguageList'; } var Companion_instance_145; function Companion_getInstance_113() { return Companion_instance_145; } function LanguageListUiState(languageList, sortOptions, sortOrder) { languageList = languageList === VOID ? emptyList() : languageList; var tmp; if (sortOptions === VOID) { var tmp_0 = strings_getInstance().plv_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().plv_1; var tmp_3 = new SortOrderOption(tmp_2, 2, false); var tmp_4 = strings_getInstance().clw_1; var tmp_5 = new SortOrderOption(tmp_4, 3, true); var tmp_6 = strings_getInstance().clw_1; var tmp_7 = new SortOrderOption(tmp_6, 4, false); var tmp_8 = strings_getInstance().dlw_1; var tmp_9 = new SortOrderOption(tmp_8, 5, true); var tmp_10 = strings_getInstance().dlw_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.ypx_1 = languageList; this.zpx_1 = sortOptions; this.apy_1 = sortOrder; } protoOf(LanguageListUiState).toString = function () { return 'LanguageListUiState(languageList=' + this.ypx_1 + ', sortOptions=' + this.zpx_1 + ', sortOrder=' + this.apy_1 + ')'; }; protoOf(LanguageListUiState).hashCode = function () { var result = hashCode(this.ypx_1); result = imul(result, 31) + hashCode(this.zpx_1) | 0; result = imul(result, 31) + this.apy_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.ypx_1, tmp0_other_with_cast.ypx_1)) return false; if (!equals(this.zpx_1, tmp0_other_with_cast.zpx_1)) return false; if (!this.apy_1.equals(tmp0_other_with_cast.apy_1)) return false; return true; }; function LeavingReasonEditViewModel$slambda$slambda($savedStateHandle, resultContinuation) { this.jpy_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$slambda$slambda).lpy = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LeavingReasonEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.lpy(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.kpy_1.h7d(); Companion_getInstance_108(); var tmp0_safe_receiver = this.jpy_1.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); suspendResult = tmp_0.qfc(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).pn8 = function (it, completion) { var i = new LeavingReasonEditViewModel$slambda$slambda(this.jpy_1, completion); i.kpy_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.lpy(it, $completion); }; l.$arity = 1; return l; } function LeavingReasonEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$slambda$slambda_1).upy = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LeavingReasonEditViewModel$slambda$slambda_1).z77 = function ($completion) { return this.upy($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.h94_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).y77 = 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.upy($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.spz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.LeavingReasonEditViewModel...' call var nextValue = prevValue.xpz(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_97() { this.ypz_1 = 'LeavingReasonEdit'; } var Companion_instance_146; function Companion_getInstance_114() { return Companion_instance_146; } function LeavingReasonEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.hq0_1 = this$0; this.iq0_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.kq0_1 = Companion_getInstance_11().a4r(); this.hd_1 = 1; var tmp_0 = LeavingReasonEditViewModel$slambda$slambda_0(this.iq0_1, null); var tmp_1 = LeavingReasonEditViewModel$slambda$slambda_2(null); suspendResult = this.hq0_1.rpu(this.kq0_1, VOID, VOID, tmp_0, tmp_1, LeavingReasonEditViewModel$slambda$lambda(this.hq0_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.hq0_1.spz_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xpz(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.hq0_1, this.iq0_1, completion); i.jq0_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.tq0_1 = $commitDelay; this.uq0_1 = $entity; this.vq0_1 = $this; this.wq0_1 = $key; this.xq0_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.tq0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.uq0_1 == null)) { this.hd_1 = 2; suspendResult = this.vq0_1.npu(this.vq0_1.xps_1, this.wq0_1, this.xq0_1, this.uq0_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.tq0_1, this.uq0_1, this.vq0_1, this.wq0_1, this.xq0_1, completion); i.yq0_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.spz_1 = MutableStateFlow(new LeavingReasonEditUiState(VOID, VOID, false)); this.tpz_1 = asStateFlow(this.spz_1); var tmp = this.cpu(); launch(tmp, VOID, VOID, LeavingReasonEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(LeavingReasonEditViewModel).zq0 = function (leavingReason) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.spz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.LeavingReasonEditViewModel.onEntityChanged.' call var nextValue = prevValue.xpz(leavingReason); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_11().a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver = this.vq1_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.cpu(); tmp.vq1_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.upz_1 = leavingReason; this.vpz_1 = reasonTitleError; this.wpz_1 = fieldsEnabled; } protoOf(LeavingReasonEditUiState).aq2 = function (leavingReason, reasonTitleError, fieldsEnabled) { return new LeavingReasonEditUiState(leavingReason, reasonTitleError, fieldsEnabled); }; protoOf(LeavingReasonEditUiState).xpz = function (leavingReason, reasonTitleError, fieldsEnabled, $super) { leavingReason = leavingReason === VOID ? this.upz_1 : leavingReason; reasonTitleError = reasonTitleError === VOID ? this.vpz_1 : reasonTitleError; fieldsEnabled = fieldsEnabled === VOID ? this.wpz_1 : fieldsEnabled; return $super === VOID ? this.aq2(leavingReason, reasonTitleError, fieldsEnabled) : $super.aq2.call(this, leavingReason, reasonTitleError, fieldsEnabled); }; protoOf(LeavingReasonEditUiState).toString = function () { return 'LeavingReasonEditUiState(leavingReason=' + this.upz_1 + ', reasonTitleError=' + this.vpz_1 + ', fieldsEnabled=' + this.wpz_1 + ')'; }; protoOf(LeavingReasonEditUiState).hashCode = function () { var result = this.upz_1 == null ? 0 : hashCode(this.upz_1); result = imul(result, 31) + (this.vpz_1 == null ? 0 : getStringHashCode(this.vpz_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.wpz_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.upz_1, tmp0_other_with_cast.upz_1)) return false; if (!(this.vpz_1 == tmp0_other_with_cast.vpz_1)) return false; if (!(this.wpz_1 === tmp0_other_with_cast.wpz_1)) return false; return true; }; function Companion_98() { this.bq2_1 = 'ReportFilterEdit'; } var Companion_instance_147; function Companion_getInstance_115() { return Companion_instance_147; } 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.cq2_1 = fieldError; this.dq2_1 = conditionsError; this.eq2_1 = valuesError; this.fq2_1 = fieldsEnabled; this.gq2_1 = reportFilter; this.hq2_1 = uidAndLabelList; this.iq2_1 = createNewFilter; this.jq2_1 = reportFilterValueVisible; this.kq2_1 = reportFilterBetweenValueVisible; this.lq2_1 = reportFilterUidAndLabelListVisible; } protoOf(ReportFilterEditUiState).toString = function () { return 'ReportFilterEditUiState(fieldError=' + this.cq2_1 + ', conditionsError=' + this.dq2_1 + ', valuesError=' + this.eq2_1 + ', fieldsEnabled=' + this.fq2_1 + ', reportFilter=' + this.gq2_1 + ', uidAndLabelList=' + this.hq2_1 + ', createNewFilter=' + this.iq2_1 + ', reportFilterValueVisible=' + this.jq2_1 + ', reportFilterBetweenValueVisible=' + this.kq2_1 + ', reportFilterUidAndLabelListVisible=' + this.lq2_1 + ')'; }; protoOf(ReportFilterEditUiState).hashCode = function () { var result = this.cq2_1 == null ? 0 : getStringHashCode(this.cq2_1); result = imul(result, 31) + (this.dq2_1 == null ? 0 : getStringHashCode(this.dq2_1)) | 0; result = imul(result, 31) + (this.eq2_1 == null ? 0 : getStringHashCode(this.eq2_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.fq2_1) | 0; result = imul(result, 31) + (this.gq2_1 == null ? 0 : this.gq2_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.hq2_1) | 0; result = imul(result, 31) + getStringHashCode(this.iq2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.jq2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.kq2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.lq2_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.cq2_1 == tmp0_other_with_cast.cq2_1)) return false; if (!(this.dq2_1 == tmp0_other_with_cast.dq2_1)) return false; if (!(this.eq2_1 == tmp0_other_with_cast.eq2_1)) return false; if (!(this.fq2_1 === tmp0_other_with_cast.fq2_1)) return false; if (!equals(this.gq2_1, tmp0_other_with_cast.gq2_1)) return false; if (!equals(this.hq2_1, tmp0_other_with_cast.hq2_1)) return false; if (!(this.iq2_1 === tmp0_other_with_cast.iq2_1)) return false; if (!(this.jq2_1 === tmp0_other_with_cast.jq2_1)) return false; if (!(this.kq2_1 === tmp0_other_with_cast.kq2_1)) return false; if (!(this.lq2_1 === tmp0_other_with_cast.lq2_1)) return false; return true; }; function ScopedGrantDetailUiState(entity, bitmaskList) { entity = entity === VOID ? null : entity; bitmaskList = bitmaskList === VOID ? emptyList() : bitmaskList; this.mq2_1 = entity; this.nq2_1 = bitmaskList; } protoOf(ScopedGrantDetailUiState).toString = function () { return 'ScopedGrantDetailUiState(entity=' + this.mq2_1 + ', bitmaskList=' + this.nq2_1 + ')'; }; protoOf(ScopedGrantDetailUiState).hashCode = function () { var result = this.mq2_1 == null ? 0 : hashCode(this.mq2_1); result = imul(result, 31) + hashCode(this.nq2_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.mq2_1, tmp0_other_with_cast.mq2_1)) return false; if (!equals(this.nq2_1, tmp0_other_with_cast.nq2_1)) return false; return true; }; function Companion_99() { this.oq2_1 = 'ScopedGrantEdit'; this.pq2_1 = 'grantToGroup'; this.qq2_1 = 'grantToName'; this.rq2_1 = 'grantTableId'; this.sq2_1 = 'grantEntityUid'; this.tq2_1 = 'permissionList'; } var Companion_instance_148; function Companion_getInstance_116() { return Companion_instance_148; } 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.uq2_1 = entity; this.vq2_1 = bitmaskList; } protoOf(ScopedGrantEditUiState).toString = function () { return 'ScopedGrantEditUiState(entity=' + this.uq2_1 + ', bitmaskList=' + this.vq2_1 + ')'; }; protoOf(ScopedGrantEditUiState).hashCode = function () { var result = this.uq2_1 == null ? 0 : hashCode(this.uq2_1); result = imul(result, 31) + hashCode(this.vq2_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.uq2_1, tmp0_other_with_cast.uq2_1)) return false; if (!equals(this.vq2_1, tmp0_other_with_cast.vq2_1)) return false; return true; }; function Companion_100() { Companion_instance_149 = this; this.wq2_1 = new Long(200, 0); this.xq2_1 = 'initPicUri'; } var Companion_instance_149; function Companion_getInstance_117() { if (Companion_instance_149 == null) new Companion_100(); return Companion_instance_149; } function UstadEditViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_117(); UstadViewModel.call(this, di, savedStateHandle, destinationName); this.vq1_1 = null; var tmp = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.wq1_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; } protoOf(UstadEditViewModel).xq1 = function (detailViewName, entityUid, result, detailViewExtraArgs) { Companion_getInstance_108(); var popUpToViewName = this.xps_1.ba('result_viewname'); Companion_getInstance_108(); var saveToKey = this.xps_1.ba('result_key'); Companion_getInstance_119(); var createdNewEntity = this.xps_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_119(); this_0.s('entityUid', entityUid.toString()); var tmp = this_0.f3(); Companion_getInstance_108(); this.zps_1.npf(detailViewName, tmp, new UstadGoOptions('', true)); } else { this.zq1(result); } }; protoOf(UstadEditViewModel).yq1 = function (detailViewName, entityUid, result, detailViewExtraArgs, $super) { detailViewExtraArgs = detailViewExtraArgs === VOID ? emptyMap() : detailViewExtraArgs; var tmp; if ($super === VOID) { this.xq1(detailViewName, entityUid, result, detailViewExtraArgs); tmp = Unit_instance; } else { tmp = $super.xq1.call(this, detailViewName, entityUid, result, detailViewExtraArgs); } return tmp; }; protoOf(UstadEditViewModel).yq2 = function (newEntityStringResource, editEntityStringResource) { var tmp; if (!this.wq1_1.equals(new Long(0, 0))) { tmp = true; } else { Companion_getInstance_107(); tmp = !(this.xps_1.ba('entity') == null); } var isEditing = tmp; var tmp_0 = this.npt(); var tmp_1; if (isEditing) { tmp_1 = editEntityStringResource; } else { tmp_1 = newEntityStringResource; } return tmp_0.ant(tmp_1); }; protoOf(UstadEditViewModel).zq2 = function (prevFieldValue, currentFieldValue, currentErrorMessage) { return currentErrorMessage == null ? null : !equals(prevFieldValue, currentFieldValue) ? null : currentErrorMessage; }; function UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda(this$0, $fabStringResource, $onSetAddListItemVisibility, resultContinuation) { this.kq3_1 = this$0; this.lq3_1 = $fabStringResource; this.mq3_1 = $onSetAddListItemVisibility; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda).kpl = function (hasAddPermission, $completion) { var tmp = this.lpl(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.kpl((!(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.kq3_1, this.nq3_1, this.lq3_1, this.mq3_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).lpl = function (hasAddPermission, completion) { var i = new UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda(this.kq3_1, this.lq3_1, this.mq3_1, completion); i.nq3_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.kpl(hasAddPermission, $completion); }; l.$arity = 1; return l; } function setAddNewItemUiState($this, hasAddPermission, fabStringResource, onSetAddItemVisibility) { var tmp; if (hasAddPermission ? $this.oq4().equals(ListViewMode_BROWSER_getInstance()) : false) { var tmp_0 = $this.npt().ant(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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadListViewModel.setAddNewItemUiState.' call var nextValue = prevValue.npc(fabState); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } onSetAddItemVisibility(hasAddPermission ? $this.oq4().equals(ListViewMode_PICKER_getInstance()) : false); } function Companion_101() { this.pq4_1 = 'listMode'; } var Companion_instance_150; function Companion_getInstance_118() { return Companion_instance_150; } function sam$kotlinx_coroutines_flow_FlowCollector$0_3(function_0) { this.qq4_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).t1d = function (value, $completion) { return this.qq4_1(value, $completion); }; function UstadListViewModel$searchEvtCollator$slambda(this$0, resultContinuation) { this.zq4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadListViewModel$searchEvtCollator$slambda).bq5 = function (it, $completion) { var tmp = this.cq5(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadListViewModel$searchEvtCollator$slambda).he = function (p1, $completion) { return this.bq5((!(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.aq5_1); this.zq4_1.dq5(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).cq5 = function (it, completion) { var i = new UstadListViewModel$searchEvtCollator$slambda(this.zq4_1, completion); i.aq5_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.bq5(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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadListViewModel.createSearchEnabledState..' call var nextValue = prevValue.npc(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.fpc_1.xpb(VOID, searchText)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this$0.nq4_1.f6x(searchText); return Unit_instance; }; } function UstadListViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.eq5(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda($hasPermissionFlow, this$0, $fabStringResource, $onSetAddListItemVisibility, resultContinuation) { this.nq5_1 = $hasPermissionFlow; this.oq5_1 = this$0; this.pq5_1 = $fabStringResource; this.qq5_1 = $onSetAddListItemVisibility; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda).z77 = function ($completion) { return this.w86($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.nq5_1()); var tmp_1 = UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda_0(this.oq5_1, this.pq5_1, this.qq5_1, null); suspendResult = tmp_0.z1b(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).y77 = function (completion) { return new UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda(this.nq5_1, this.oq5_1, this.pq5_1, this.qq5_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.w86($completion); }; l.$arity = 0; return l; } function UstadListViewModel$onClickAdd$ref_0($boundThis) { var l = function () { $boundThis.eq5(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function UstadListViewModel(di, savedStateHandle, initialState, destinationName) { UstadViewModel.call(this, di, savedStateHandle, destinationName); this.jq4_1 = MutableStateFlow(initialState); this.kq4_1 = asStateFlow(this.jq4_1); this.lq4_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.mq4_1 = asSharedFlow(this.lq4_1); var tmp = this; var tmp_0 = new Long(200, 0); var tmp_1 = this.cpu(); var tmp_2 = BufferOverflow_DROP_OLDEST_getInstance(); tmp.nq4_1 = new EventCollator2(tmp_0, tmp_1, 1, tmp_2, UstadListViewModel$searchEvtCollator$slambda_0(this, null)); } protoOf(UstadListViewModel).oq4 = function () { var tmp; var tmp_0; Companion_getInstance_108(); if (this.xps_1.ba('listMode') === ListViewMode_PICKER_getInstance().xpp_1) { tmp_0 = true; } else { var tmp_1; Companion_getInstance_108(); if (!(this.xps_1.ba('result_viewname') == null)) { Companion_getInstance_108(); tmp_1 = !(this.xps_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).rq5 = function (visible) { return new AppBarSearchUiState(visible, VOID, UstadListViewModel$createSearchEnabledState$lambda(this)); }; protoOf(UstadListViewModel).sq5 = function (visible, $super) { visible = visible === VOID ? true : visible; return $super === VOID ? this.rq5(visible) : $super.rq5.call(this, visible); }; protoOf(UstadListViewModel).tq5 = function (hasPermissionFlow, fabStringResource, onSetAddListItemVisibility, $completion) { return whenSubscribed(this.jq4_1, UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda_0(hasPermissionFlow, this, fabStringResource, onSetAddListItemVisibility, null), $completion); }; protoOf(UstadListViewModel).uq5 = function (hasAddPermission, stringResource, onClick) { var tmp; if (hasAddPermission ? this.oq4().equals(ListViewMode_BROWSER_getInstance()) : false) { tmp = new FabUiState(true, this.npt().ant(stringResource), FabIcon_ADD_getInstance(), onClick); } else { tmp = new FabUiState(false); } return tmp; }; protoOf(UstadListViewModel).vq5 = 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.uq5(hasAddPermission, stringResource, onClick) : $super.uq5.call(this, hasAddPermission, stringResource, onClick); }; protoOf(UstadListViewModel).wq5 = function (editViewName, extraArgs) { var resultDest = this.lpu(); var tmp; if (!(resultDest == null)) { Companion_getInstance_108(); var tmp_0 = to('result_viewname', resultDest.apg_1); Companion_getInstance_108(); tmp = plus_0(mapOf([tmp_0, to('result_key', resultDest.bpg_1)]), extraArgs); } else { tmp = extraArgs; } var args = tmp; this.zps_1.fog(editViewName, args); }; protoOf(UstadListViewModel).xq5 = function (editViewName, extraArgs, $super) { extraArgs = extraArgs === VOID ? emptyMap() : extraArgs; var tmp; if ($super === VOID) { this.wq5(editViewName, extraArgs); tmp = Unit_instance; } else { tmp = $super.wq5.call(this, editViewName, extraArgs); } return tmp; }; protoOf(UstadListViewModel).yq5 = function (detailViewName, entityUid, result, extraArgs) { var resultDest = this.lpu(); if (!(resultDest == null)) { this.zq1(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_119(); this_0.s('entityUid', entityUid.toString()); var tmp$ret$2 = this_0.f3(); this.zps_1.fog(detailViewName, tmp$ret$2); } }; protoOf(UstadListViewModel).zq5 = function (detailViewName, entityUid, result, extraArgs, $super) { extraArgs = extraArgs === VOID ? emptyMap() : extraArgs; var tmp; if ($super === VOID) { this.yq5(detailViewName, entityUid, result, extraArgs); tmp = Unit_instance; } else { tmp = $super.yq5.call(this, detailViewName, entityUid, result, extraArgs); } return tmp; }; protoOf(UstadListViewModel).aq6 = function (browseStringResource, selectStringResource) { var tmp = this.npt(); var tmp_0; if (this.oq4().equals(ListViewMode_BROWSER_getInstance())) { tmp_0 = browseStringResource; } else { tmp_0 = selectStringResource; } return tmp.ant(tmp_0); }; function UstadViewModel$filteredResultFlowForKey$o$collect$slambda($$this$unsafeFlow, this$0, resultContinuation) { this.jq6_1 = $$this$unsafeFlow; this.kq6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$filteredResultFlowForKey$o$collect$slambda).spg = function (value, $completion) { var tmp = this.tpg(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.spg(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.nq6_1 = this.jq6_1; var tmp_1 = this; tmp_1.oq6_1 = this.lq6_1; var it = this.oq6_1; var isNew = it.ypf_1.c7(this.kq6_1.mpt_1) > 0; if (isNew) { _set_lastNavResultTimestampCollected__txfbew(this.kq6_1, it.ypf_1); } if (isNew) { this.hd_1 = 3; suspendResult = this.nq6_1.t1d(this.oq6_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.mq6_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).tpg = function (value, completion) { var i = new UstadViewModel$filteredResultFlowForKey$o$collect$slambda(this.jq6_1, this.kq6_1, completion); i.lq6_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.spg(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$57(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xq6_1 = _this__u8e3s4; this.yq6_1 = collector; } protoOf($collectCOROUTINE$57).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.zq6_1 = this.yq6_1; this.hd_1 = 1; var tmp_1 = UstadViewModel$filteredResultFlowForKey$o$collect$slambda_0(this.zq6_1, this.xq6_1.bq7_1, null); suspendResult = this.xq6_1.aq7_1.z1b(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.mpt_1 = value; $this.xps_1.app('collectedTs', value.toString()); } function Companion_102() { Companion_instance_151 = this; this.cq7_1 = 'entityState'; this.dq7_1 = 'collectedTs'; this.eq7_1 = 'initState'; this.fq7_1 = 'timeZone'; this.gq7_1 = 'parentUid'; this.hq7_1 = 'courseBlockUid'; this.iq7_1 = 'entityUid'; this.jq7_1 = 'serverUrl'; this.kq7_1 = 'next'; this.lq7_1 = 'maxDob'; var tmp = this; Companion_getInstance_132(); Companion_getInstance_158(); Companion_getInstance_179(); Companion_getInstance_193(); tmp.mq7_1 = listOf(['CourseListHome', 'ContentEntryListHome', 'ConversationListHome', 'PersonListHome']); this.nq7_1 = 'openLink'; this.oq7_1 = 'account'; this.pq7_1 = 'popUpToOnFinish'; this.qq7_1 = 'inviteCode'; this.rq7_1 = 'clazzUid'; this.sq7_1 = 'entryid'; this.tq7_1 = 'personUid'; this.uq7_1 = 't'; this.vq7_1 = 'noSessionChange'; this.wq7_1 = 'selectedAccountPersonUid'; this.xq7_1 = 'selectedAccountEndpointUrl'; this.yq7_1 = 'result_viewname'; this.zq7_1 = 'result_key'; } var Companion_instance_151; function Companion_getInstance_119() { if (Companion_instance_151 == null) new Companion_102(); return Companion_instance_151; } function sam$kotlinx_coroutines_flow_FlowCollector$0_4(function_0) { this.aq8_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).t1d = function (value, $completion) { return this.aq8_1(value, $completion); }; function sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0(function_0) { this.bq8_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0).ooq = function (url, target) { return this.bq8_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.bpu(); // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(this$0.n56()).s57(); // 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.q57(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(this$0.n56()).s57(); // 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.q57(tmp$ret$2, null); return OnClickLinkUseCase_init_$Create$(this$0.zps_1, tmp, tmp_2, tmp$ret$3); }; } function _no_name_provided__qut3iv_2($this, this$0) { this.aq7_1 = $this; this.bq7_1 = this$0; } protoOf(_no_name_provided__qut3iv_2).iph = function (collector, $completion) { var tmp = new $collectCOROUTINE$57(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_2).z1b = function (collector, $completion) { return this.iph(collector, $completion); }; function UstadViewModel$getJson$slambda(this$0, $deserializer, $jsonStr, resultContinuation) { this.kq8_1 = this$0; this.lq8_1 = $deserializer; this.mq8_1 = $jsonStr; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$getJson$slambda).oq8 = 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.oq8((!(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.kq8_1.z4q().f45(this.lq8_1, this.mq8_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.kq8_1, this.lq8_1, this.mq8_1, completion); i.nq8_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.oq8($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadViewModel$setJson$slambda(this$0, $serializer, $value, resultContinuation) { this.xq8_1 = this$0; this.yq8_1 = $serializer; this.zq8_1 = $value; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$setJson$slambda).bq9 = 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.bq9((!(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.xq8_1.z4q().e45(this.yq8_1, this.zq8_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.xq8_1, this.yq8_1, this.zq8_1, completion); i.aq9_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.bq9($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadViewModel$launchIfHasPermission$slambda(this$0, $permissionCheck, $block, $onSetFieldsEnabled, resultContinuation) { this.kq9_1 = this$0; this.lq9_1 = $permissionCheck; this.mq9_1 = $block; this.nq9_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.qq9_1 = this.kq9_1.gpu(); if (this.qq9_1 == null) { this.rq9_1 = null; this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = localFirstThenRepoIfFalse(this.qq9_1, this.lq9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.rq9_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: this.sq9_1 = this.rq9_1; if (this.sq9_1 === false) { this.kq9_1.zps_1.npf('Error', emptyMap(), new UstadGoOptions(this.kq9_1.yps_1, true)); this.hd_1 = 5; continue $sm; } else { this.hd_1 = 4; suspendResult = this.mq9_1(this.oq9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.hd_1 = 5; continue $sm; case 5: this.pq9_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.kq9_1.bpt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.npc(VOID, Companion_getInstance_89().vpc_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$5; } } } while (false); var tmp1_safe_receiver = this.nq9_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.kq9_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.npc(VOID, Companion_getInstance_89().vpc_1); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); var tmp1_safe_receiver_0 = this.nq9_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.kq9_1, this.lq9_1, this.mq9_1, this.nq9_1, completion); i.oq9_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.bqa_1 = $onSetFieldsEnabled; this.cqa_1 = this$0; this.dqa_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.bqa_1(false); l$ret$1: do { var this_0 = this.cqa_1.bpt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.npc(VOID, Companion_getInstance_89().upc_1, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.gpc_1.opb(VOID, VOID, false)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 2; suspendResult = this.dqa_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.fqa_1 = suspendResult; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.bqa_1(true); l$ret$7: do { var this_1 = this.cqa_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.npc(VOID, Companion_getInstance_89().vpc_1, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.gpc_1.opb(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.bqa_1(true); l$ret$5: do { var this_2 = this.cqa_1.bpt_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.npc(VOID, Companion_getInstance_89().vpc_1, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_1.gpc_1.opb(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.bqa_1, this.cqa_1, this.dqa_1, completion); i.eqa_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$54(_this__u8e3s4, _this__u8e3s4_0, key, deserializer, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.oqa_1 = _this__u8e3s4; this.pqa_1 = _this__u8e3s4_0; this.qqa_1 = key; this.rqa_1 = deserializer; } protoOf($getJsonCOROUTINE$54).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.sqa_1 = this.pqa_1.ba(this.qqa_1); if (!(this.sqa_1 == null)) { this.hd_1 = 1; var tmp_0 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_0, UstadViewModel$getJson$slambda_0(this.oqa_1, this.rqa_1, this.sqa_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this; tmp_1.tqa_1 = null; this.hd_1 = 2; continue $sm; } case 1: this.tqa_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.tqa_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$55(_this__u8e3s4, _this__u8e3s4_0, key, serializer, value, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cqb_1 = _this__u8e3s4; this.dqb_1 = _this__u8e3s4_0; this.eqb_1 = key; this.fqb_1 = serializer; this.gqb_1 = value; } protoOf($setJsonCOROUTINE$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 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_0, UstadViewModel$setJson$slambda_0(this.cqb_1, this.fqb_1, this.gqb_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var jsonStr = suspendResult; this.dqb_1.app(this.eqb_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$56(_this__u8e3s4, serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.pqb_1 = _this__u8e3s4; this.qqb_1 = serializer; this.rqb_1 = loadFromStateKeys; this.sqb_1 = savedStateKey; this.tqb_1 = onLoadFromDb; this.uqb_1 = makeDefault; this.vqb_1 = uiUpdate; } protoOf($loadEntityCOROUTINE$56).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.wqb_1 = this.rqb_1; this.xqb_1 = this.wqb_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.xqb_1.f()) { this.hd_1 = 3; continue $sm; } this.yqb_1 = this.xqb_1.e(); var tmp_1 = this; tmp_1.zqb_1 = this.yqb_1; this.hd_1 = 2; suspendResult = this.pqb_1.mpu(this.pqb_1.xps_1, this.zqb_1, this.qqb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.aqc_1 = suspendResult; if (!(this.aqc_1 == null)) { this.vqb_1(this.aqc_1); return this.aqc_1; } this.hd_1 = 1; continue $sm; case 3: this.bqc_1 = this.tqb_1; if (this.bqc_1 == null) { this.cqc_1 = null; this.hd_1 = 5; continue $sm; } else { this.hd_1 = 4; suspendResult = this.bqc_1(this.pqb_1.fpu(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.cqc_1 = suspendResult; this.hd_1 = 5; continue $sm; case 5: this.dqc_1 = this.cqc_1; if (!(this.dqc_1 == null)) { this.vqb_1(this.dqc_1); } this.id_1 = 13; this.fqc_1 = this.pqb_1.gpu(); if (this.fqc_1 == null) { this.gqc_1 = null; this.hd_1 = 8; continue $sm; } else { var tmp_2 = this; tmp_2.hqc_1 = this.fqc_1; var tmp_3 = this; tmp_3.iqc_1 = this.hqc_1; this.jqc_1 = this.tqb_1; if (this.jqc_1 == null) { this.kqc_1 = null; this.hd_1 = 7; continue $sm; } else { this.hd_1 = 6; suspendResult = this.jqc_1(this.iqc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 6: this.kqc_1 = suspendResult; this.hd_1 = 7; continue $sm; case 7: this.gqc_1 = this.kqc_1; this.hd_1 = 8; continue $sm; case 8: this.lqc_1 = this.gqc_1; if (this.lqc_1 == null) { this.hd_1 = 9; suspendResult = this.uqb_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.mqc_1 = this.lqc_1; this.hd_1 = 10; continue $sm; } case 9: this.mqc_1 = suspendResult; this.hd_1 = 10; continue $sm; case 10: this.nqc_1 = this.mqc_1; if (!(this.nqc_1 == null)) { this.hd_1 = 11; suspendResult = this.pqb_1.npu(this.pqb_1.xps_1, this.sqb_1, this.qqb_1, this.nqc_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.vqb_1(this.nqc_1); this.eqc_1 = this.nqc_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.oqc_1 = this.kd_1; if (!(this.dqc_1 == null)) { this.hd_1 = 14; suspendResult = this.pqb_1.npu(this.pqb_1.xps_1, this.sqb_1, this.qqb_1, this.dqc_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.pqc_1 = this.dqc_1; if (this.pqc_1 == null) { this.hd_1 = 16; suspendResult = this.uqb_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.qqc_1 = this.pqc_1; this.hd_1 = 17; continue $sm; } case 16: var this_0 = suspendResult; this.vqb_1(this_0); this.qqc_1 = this_0; this.hd_1 = 17; continue $sm; case 17: this.eqc_1 = this.qqc_1; this.hd_1 = 18; continue $sm; case 18: this.id_1 = 19; return this.eqc_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_119(); ViewModel_init_$Init$(this); this.wps_1 = di; this.xps_1 = savedStateHandle; this.yps_1 = destinationName; this.zps_1 = new CommandFlowUstadNavController(); this.apt_1 = this.zps_1.mpf_1; this.bpt_1 = MutableStateFlow(new AppUiState()); this.cpt_1 = asStateFlow(this.bpt_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.dpt_1 = Instance(this, tmp$ret$0, null).n5c(this, accountManager$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.bpu().nnk(); var trigger = this.q56(); // 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.u56(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.ept_1 = Instance(this_0, tmp$ret$5, null).n5c(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.bpu().nnk(); var trigger_0 = this.q56(); // 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.u56(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.fpt_1 = Instance(this_1, tmp$ret$10, 1).n5c(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.gpt_1 = Instance(this, tmp$ret$12, null).n5c(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.hpt_1 = Instance(this, tmp$ret$14, null).n5c(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.ipt_1 = Instance(this, tmp$ret$16, null).n5c(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.jpt_1 = Instance(this, tmp$ret$18, null).n5c(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.kpt_1 = Instance(this, tmp$ret$20, null).n5c(this, systemImpl$factory()); var tmp_19 = this; tmp_19.lpt_1 = lazy_0(UstadViewModel$onClickLinkUseCase$delegate$lambda(this)); var tmp_20 = this; var tmp0_safe_receiver = this.xps_1.ba('collectedTs'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_20.mpt_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; if (this.mpt_1.equals(new Long(0, 0))) { _set_lastNavResultTimestampCollected__txfbew(this, systemTimeInMillis()); } } protoOf(UstadViewModel).n56 = function () { return this.wps_1; }; protoOf(UstadViewModel).bpu = function () { // Inline function 'kotlin.getValue' call var this_0 = this.dpt_1; accountManager$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).cpu = function () { return get_viewModelScope(this); }; protoOf(UstadViewModel).dpu = function () { return this.bpu().rnj().en4_1.s95_1; }; protoOf(UstadViewModel).epu = function () { // Inline function 'kotlin.getValue' call var this_0 = this.ept_1; activeDataLayer$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).fpu = function () { // Inline function 'kotlin.getValue' call var this_0 = this.fpt_1; activeDb$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).gpu = function () { return this.epu().fjf_1; }; protoOf(UstadViewModel).hpu = function () { return this.epu().ijf(); }; protoOf(UstadViewModel).ipu = function () { // Inline function 'kotlin.getValue' call var this_0 = this.gpt_1; navResultReturner$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).z4q = function () { // Inline function 'kotlin.getValue' call var this_0 = this.hpt_1; json$factory_2(); return this_0.t2(); }; protoOf(UstadViewModel).jpu = function () { // Inline function 'kotlin.getValue' call var this_0 = this.ipt_1; snackDispatcher$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).kpu = function () { // Inline function 'kotlin.getValue' call var this_0 = this.jpt_1; resultReturner$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).npt = function () { // Inline function 'kotlin.getValue' call var this_0 = this.kpt_1; systemImpl$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).lpu = function () { var popUpToViewName = this.xps_1.ba('result_viewname'); var saveToKey = this.xps_1.ba('result_key'); var tmp; if (!(popUpToViewName == null) ? !(saveToKey == null) : false) { tmp = new NavResultDest(popUpToViewName, saveToKey); } else { tmp = null; } return tmp; }; protoOf(UstadViewModel).epx = function (value) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadViewModel..' call var nextValue = prevValue.npc(VOID, value); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(UstadViewModel).fpx = function () { return this.bpt_1.t2().zpb_1; }; protoOf(UstadViewModel).gpx = function (_this__u8e3s4, key) { // Inline function 'kotlinx.coroutines.flow.filter' call // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call var this_0 = _this__u8e3s4.cpg(key); // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call return new _no_name_provided__qut3iv_2(this_0, this); }; protoOf(UstadViewModel).mpu = function (_this__u8e3s4, key, deserializer, $completion) { var tmp = new $getJsonCOROUTINE$54(this, _this__u8e3s4, key, deserializer, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel).npu = function (_this__u8e3s4, key, serializer, value, $completion) { var tmp = new $setJsonCOROUTINE$55(this, _this__u8e3s4, key, serializer, value, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel).aq3 = 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.npf(viewName, args, goOptions); }; protoOf(UstadViewModel).zq1 = function (result) { var resultDest = this.lpu(); if (!(resultDest == null)) { this.ipu().dpg(new NavResult(resultDest.bpg_1, systemTimeInMillis(), result)); this.zps_1.opf(resultDest.apg_1, false); } else { Companion_getInstance_108(); this.zps_1.opf('', true); } }; protoOf(UstadViewModel).opu = 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.upu(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.upu(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.yps_1; navArgs.s(key_1, value); } if (!(currentValue == null)) { // Inline function 'kotlin.collections.set' call Companion_getInstance_107(); var value_0 = this.z4q().e45(serializer, currentValue); navArgs.s('entity', value_0); } this.zps_1.npf(nextViewName, toMap_0(navArgs), goOptions); }; protoOf(UstadViewModel).ppu = function (nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination, $super) { args = args === VOID ? emptyMap() : args; goOptions = goOptions === VOID ? Companion_getInstance_87().dpa_1 : goOptions; var tmp; if (overwriteDestination === VOID) { tmp = this instanceof UstadEditViewModel; } else { tmp = overwriteDestination; } overwriteDestination = tmp; var tmp_0; if ($super === VOID) { this.opu(nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination); tmp_0 = Unit_instance; } else { tmp_0 = $super.opu.call(this, nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination); } return tmp_0; }; protoOf(UstadViewModel).qpu = function (serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion) { var tmp = new $loadEntityCOROUTINE$56(this, serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel).rpu = function (serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion, $super) { var tmp; if (loadFromStateKeys === VOID) { Companion_getInstance_107(); tmp = listOf(['entityState', 'entity']); } else { tmp = loadFromStateKeys; } loadFromStateKeys = tmp; savedStateKey = savedStateKey === VOID ? first_0(loadFromStateKeys) : savedStateKey; return $super === VOID ? this.qpu(serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion) : $super.qpu.call(this, serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion); }; protoOf(UstadViewModel).spu = function (permissionCheck, setLoadingState, onSetFieldsEnabled, block) { if (setLoadingState) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadViewModel.launchIfHasPermission.' call var nextValue = prevValue.npc(VOID, Companion_getInstance_89().upc_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } if (onSetFieldsEnabled == null) null; else onSetFieldsEnabled(false); var tmp = this.cpu(); launch(tmp, VOID, VOID, UstadViewModel$launchIfHasPermission$slambda_0(this, permissionCheck, block, onSetFieldsEnabled, null)); }; protoOf(UstadViewModel).tpu = function (permissionCheck, setLoadingState, onSetFieldsEnabled, block, $super) { setLoadingState = setLoadingState === VOID ? false : setLoadingState; onSetFieldsEnabled = onSetFieldsEnabled === VOID ? null : onSetFieldsEnabled; var tmp; if ($super === VOID) { this.spu(permissionCheck, setLoadingState, onSetFieldsEnabled, block); tmp = Unit_instance; } else { tmp = $super.spu.call(this, permissionCheck, setLoadingState, onSetFieldsEnabled, block); } return tmp; }; protoOf(UstadViewModel).upu = function (_this__u8e3s4, key) { putFromSavedStateIfPresent(_this__u8e3s4, this.xps_1, key); }; protoOf(UstadViewModel).ypt = 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.putFromSavedStateIfPresent.' call this.upu(_this__u8e3s4, element); } }; protoOf(UstadViewModel).bq3 = function (onSetFieldsEnabled, block) { var tmp = this.cpu(); launch(tmp, VOID, VOID, UstadViewModel$launchWithLoadingIndicator$slambda_0(onSetFieldsEnabled, this, block, null)); }; protoOf(UstadViewModel).vpu = 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).n5c(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.bpu().rnj().en4_1; if (isGuestUser(it) ? true : requireAdultAccount ? !isDateOfBirthAnAdult(Companion_getInstance_6().kls(it.b96_1)) : false) { var tmp_0 = this.yps_1 + '?' + toQueryString(args); var tmp_1 = this.bpu(); var tmp_2 = UstadViewModel$ifLoggedInElseNavigateToLoginWithNextDestSet$lambda; navigateToLink(this.zps_1, tmp_0, tmp_1, new sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0(tmp_2), new UstadGoOptions(this.yps_1, true), VOID, ifLoggedInElseNavigateToLoginWithNextDestSet$lambda(apiUrlConfig$delegate).jnk_1); } else { block(); } }; protoOf(UstadViewModel).wpu = function (requireAdultAccount, args, block, $super) { requireAdultAccount = requireAdultAccount === VOID ? false : requireAdultAccount; var tmp; if ($super === VOID) { this.vpu(requireAdultAccount, args, block); tmp = Unit_instance; } else { tmp = $super.vpu.call(this, requireAdultAccount, args, block); } return tmp; }; protoOf(UstadViewModel).xpu = function (contentEntryUid, clazzUid, cbUid) { var registrationUuid = uuid4(); var activityId = this.bpu().nnk().in3_1 + 'ns/xapi/contentEntry/' + contentEntryUid.toString(); // Inline function 'org.kodein.di.instance' call var tmp = get_direct(this.n56()).s57(); // 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.q57(tmp$ret$0, null); var tmp_1 = get_doorPrimaryKeyManager(this.fpu()); var tmp1_xseUid = tmp_1.a62(400122); var tmp2_xseAccountPersonUid = this.dpu(); var tmp0_elvis_lhs = this.bpu().rnj().en4_1.t95_1; var tmp3_xseAccountUsername = tmp0_elvis_lhs == null ? 'anonymous' : tmp0_elvis_lhs; var tmp4_xseRootActivityUid = xxStringHasher.mli(activityId); var tmp5_xseRegistrationHi = registrationUuid.alp(); var tmp6_xseRegistrationLo = registrationUuid.blp(); 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).ypu = function (contentEntryUid, clazzUid, cbUid, $super) { contentEntryUid = contentEntryUid === VOID ? new Long(0, 0) : contentEntryUid; var tmp; if (clazzUid === VOID) { var tmp0_safe_receiver = this.xps_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.xps_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.xpu(contentEntryUid, clazzUid, cbUid) : $super.xpu.call(this, contentEntryUid, clazzUid, cbUid); }; function accountManager$factory() { return getPropertyCallableRef('accountManager', 1, KProperty1, function (receiver) { return receiver.bpu(); }, null); } function activeDataLayer$factory() { return getPropertyCallableRef('activeDataLayer', 1, KProperty1, function (receiver) { return receiver.epu(); }, null); } function activeDb$factory() { return getPropertyCallableRef('activeDb', 1, KProperty1, function (receiver) { return receiver.fpu(); }, null); } function navResultReturner$factory() { return getPropertyCallableRef('navResultReturner', 1, KProperty1, function (receiver) { return receiver.ipu(); }, null); } function json$factory_1() { return getPropertyCallableRef('json', 1, KProperty1, function (receiver) { return receiver.z4q(); }, null); } function snackDispatcher$factory() { return getPropertyCallableRef('snackDispatcher', 1, KProperty1, function (receiver) { return receiver.jpu(); }, null); } function resultReturner$factory() { return getPropertyCallableRef('resultReturner', 1, KProperty1, function (receiver) { return receiver.kpu(); }, null); } function systemImpl$factory() { return getPropertyCallableRef('systemImpl', 1, KProperty1, function (receiver) { return receiver.npt(); }, null); } function accountManager$factory_0() { return getPropertyCallableRef('accountManager', 1, KProperty1, function (receiver) { return receiver.bpu(); }, null); } function activeDataLayer$factory_0() { return getPropertyCallableRef('activeDataLayer', 1, KProperty1, function (receiver) { return receiver.epu(); }, null); } function activeDb$factory_0() { return getPropertyCallableRef('activeDb', 1, KProperty1, function (receiver) { return receiver.fpu(); }, null); } function navResultReturner$factory_0() { return getPropertyCallableRef('navResultReturner', 1, KProperty1, function (receiver) { return receiver.ipu(); }, null); } function json$factory_2() { return getPropertyCallableRef('json', 1, KProperty1, function (receiver) { return receiver.z4q(); }, null); } function snackDispatcher$factory_0() { return getPropertyCallableRef('snackDispatcher', 1, KProperty1, function (receiver) { return receiver.jpu(); }, null); } function resultReturner$factory_0() { return getPropertyCallableRef('resultReturner', 1, KProperty1, function (receiver) { return receiver.kpu(); }, null); } function systemImpl$factory_0() { return getPropertyCallableRef('systemImpl', 1, KProperty1, function (receiver) { return receiver.npt(); }, null); } function Companion_103() { this.rqc_1 = 'OpenLicenses'; } var Companion_instance_152; function Companion_getInstance_120() { return Companion_instance_152; } function OpenLicensesViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'EpubContent'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.about.OpenLicensesViewModel.' call var tmp0_title = this.npt().ant(strings_getInstance().jmx_1); var nextValue = prevValue.npc(VOID, VOID, tmp0_title, false, true, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } function AccountListViewModel$slambda$slambda(this$0, resultContinuation) { this.aqd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda$slambda).rn7 = function (it, $completion) { var tmp = this.sn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$slambda$slambda).he = function (p1, $completion) { return this.rn7(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.aqd_1.dqe_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.rqe(this.bqd_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).sn7 = function (it, completion) { var i = new AccountListViewModel$slambda$slambda(this.aqd_1, completion); i.bqd_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.rn7(it, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.aqf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda$slambda$slambda).cqf = function (accountList, $completion) { var tmp = this.dqf(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.cqf((!(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.aqf_1.bpu().rnj().dn4_1.jia_1; var this_0 = this.bqf_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var isFilteredOutActiveAccount = this.aqf_1.zqd_1 === 'header' ? element.dn4_1.jia_1.equals(currentUserSessionUid) : false; var isFilteredOutByEndpoint = !(this.aqf_1.yqd_1 == null) ? !(element.fn4_1.in3_1 === this.aqf_1.yqd_1) : false; var isFilteredOutByDateOfBirth = this.aqf_1.aqe_1.c7(new Long(0, 0)) > 0 ? element.en4_1.b96_1.c7(this.aqf_1.aqe_1) > 0 : false; if (!(((isFilteredOutActiveAccount ? true : isFilteredOutByEndpoint) ? true : isFilteredOutByDateOfBirth) ? true : isTemporary(element.dn4_1))) { destination.i1(element); } } var accountsToDisplay = destination; l$ret$1: do { var this_1 = this.aqf_1.dqe_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.rqe(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).dqf = function (accountList, completion) { var i = new AccountListViewModel$slambda$slambda$slambda(this.aqf_1, completion); i.bqf_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.cqf(accountList, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.mqf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda$slambda_1).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$slambda$slambda_1).z77 = function ($completion) { return this.w86($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.mqf_1.bpu().mnk(); var tmp_1 = AccountListViewModel$slambda$slambda$slambda_0(this.mqf_1, null); suspendResult = tmp_0.z1b(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).y77 = function (completion) { return new AccountListViewModel$slambda$slambda_1(this.mqf_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.w86($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.n56(); var trigger = this_0.q56(); // 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.u56(tmp$ret$0, it); var tmp$ret$2 = On(this_0, tmp$ret$1, trigger); var tmp_1 = get_direct(tmp$ret$2).s57(); // 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(); return tmp_1.q57(tmp$ret$3, null).hjf(); }; } function _get_apiUrlConfig__mldllg_2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.bqe_1; apiUrlConfig$factory_6(); return this_0.t2(); } function _get_shareAppUseCase__louoas($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.cqe_1; shareAppUseCase$factory_0(); return this_0.t2(); } function _get_getVersionUseCase__n7x57g($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.fqe_1; getVersionUseCase$factory_0(); return this_0.t2(); } function _get_launchOpenLicensesUseCase__f5qz1z($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.gqe_1; launchOpenLicensesUseCase$factory_0(); return this_0.t2(); } function _get_getShowPoweredByUseCase__5l0p0e($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hqe_1; getShowPoweredByUseCase$factory_0(); return this_0.t2(); } function Companion_104() { this.nqf_1 = 'AccountList'; this.oqf_1 = 'filterByLearningSpace'; this.pqf_1 = 'activeAccountMode'; this.qqf_1 = 'header'; this.rqf_1 = 'inlist'; } var Companion_instance_153; function Companion_getInstance_121() { return Companion_instance_153; } function sam$kotlinx_coroutines_flow_FlowCollector$0_5(function_0) { this.sqf_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_5).t1d = function (value, $completion) { return this.sqf_1(value, $completion); }; function sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_0(function_0) { this.tqf_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_0).ooq = function (url, target) { return this.tqf_1(url, target); }; function AccountListViewModel$slambda(this$0, resultContinuation) { this.cqg_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.cqg_1.bpu().knk(); var tmp_1 = AccountListViewModel$slambda$slambda_0(this.cqg_1, null); suspendResult = tmp_0.z1b(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.cqg_1, completion); i.dqg_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.mqg_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.mqg_1.dqe_1, AccountListViewModel$slambda$slambda_2(this.mqg_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.mqg_1, completion); i.nqg_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.wqg_1 = this$0; this.xqg_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.wqg_1.bpu().vnk(this.xqg_1, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp0_$receiver = this.wqg_1.zps_1; Companion_getInstance_132(); var tmp1_link = 'CourseListHome'; var tmp2_accountManager = this.wqg_1.bpu(); 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.wqg_1).jnk_1; var tmp5_goOptions = new UstadGoOptions(VOID, VOID, true); var tmp6_presetLearningSpaceUrl = _get_apiUrlConfig__mldllg_2(this.wqg_1).hnk_1; navigateToLink(tmp0_$receiver, tmp1_link, tmp2_accountManager, tmp3_openExternalLinkUseCase, tmp5_goOptions, VOID, tmp4_userCanSelectServer, VOID, VOID, VOID, VOID, AccountListViewModel$onClickLogout$slambda$lambda_0(this.wqg_1), tmp6_presetLearningSpaceUrl); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.wqg_1, this.xqg_1, completion); i.yqg_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.hqh_1 = this$0; this.iqh_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.hqh_1.iqe_1 == null)) { this.hd_1 = 1; suspendResult = this.hqh_1.iqe_1.i7e().dhe(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.kqh_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.phe_1; this.kqh_1 = ARGUMENT === false; this.hd_1 = 2; continue $sm; case 2: if (this.kqh_1) { var this_0 = LinkedHashMap_init_$Create$(); this.hqh_1.ypt(this_0, Companion_getInstance_201().wpt_1); Companion_getInstance_201(); this_0.s('NewOrExistingUser', 'existing'); Companion_getInstance_108(); this_0.s('learningSpaceUrl', toString_0(_get_apiUrlConfig__mldllg_2(this.hqh_1).hnk_1)); var arg = this_0.f3(); this.hqh_1.zps_1.fog('Login', arg); this.hd_1 = 3; continue $sm; } else { this.hqh_1.zps_1.fog('addAccountSelectNewOrExisting', this.iqh_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.hqh_1, this.iqh_1, completion); i.jqh_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$onClickDeleteAccount$slambda(this$0, $session, resultContinuation) { this.tqh_1 = this$0; this.uqh_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.tqh_1.bpu().vnk(this.uqh_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.tqh_1, this.uqh_1, completion); i.vqh_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.eqi_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.eqi_1.w86(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.eqi_1, completion); i.fqi_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 AccountListViewModel(di, savedStateHandle, startUserSessionUseCase) { var tmp; if (startUserSessionUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(di).s57(); // 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.q57(tmp$ret$0, null); tmp = new StartUserSessionUseCase(tmp$ret$1); } else { tmp = startUserSessionUseCase; } startUserSessionUseCase = tmp; UstadViewModel.call(this, di, savedStateHandle, 'AccountList'); this.xqd_1 = startUserSessionUseCase; this.yqd_1 = savedStateHandle.ba('filterByLearningSpace'); var tmp_2 = this; var tmp0_elvis_lhs = savedStateHandle.ba('activeAccountMode'); tmp_2.zqd_1 = tmp0_elvis_lhs == null ? 'header' : tmp0_elvis_lhs; var tmp_3 = this; Companion_getInstance_108(); var tmp0_safe_receiver = savedStateHandle.ba('maxDob'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_3.aqe_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.bqe_1 = Instance(this, tmp$ret$2, null).n5c(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.cqe_1 = InstanceOrNull(this, tmp$ret$4, null).n5c(this, shareAppUseCase$factory()); this.dqe_1 = MutableStateFlow(new AccountListUiState(VOID, VOID, _get_apiUrlConfig__mldllg_2(this).jnk_1, VOID, VOID, !(_get_shareAppUseCase__louoas(this) == null))); this.eqe_1 = asStateFlow(this.dqe_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.fqe_1 = InstanceOrNull(this, tmp$ret$6, null).n5c(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.gqe_1 = InstanceOrNull(this, tmp$ret$8, null).n5c(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.hqe_1 = InstanceOrNull(this, tmp$ret$10, null).n5c(this, getShowPoweredByUseCase$factory()); var tmp_14 = this; var tmp0_safe_receiver_0 = _get_apiUrlConfig__mldllg_2(this).hnk_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.accountlist.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.q56(); // 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.u56(tmp$ret$12, context); var tmp$ret$14 = On(di, tmp$ret$13, trigger); var tmp_18 = get_direct(tmp$ret$14).s57(); // 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.q57(tmp$ret$15, null).fjf_1; } tmp_14.iqe_1 = tmp_15; var tmp_20 = this; Companion_getInstance_119(); 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.jqe_1 = tmp1_elvis_lhs_0 == null ? false : tmp1_elvis_lhs_0; var tmp_21; if (savedStateHandle.ba('listMode') === ListViewMode_PICKER_getInstance().xpp_1) { tmp_21 = this.npt().ant(strings_getInstance().hml_1); } else { tmp_21 = this.npt().ant(strings_getInstance().xlw_1); } var tmp0_title = tmp_21; this.bpt_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.dqe_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.accountlist.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.xom(); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.vom_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.xom(); var nextValue = prevValue.rqe(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.cpu(); // Inline function 'kotlin.contracts.contract' call var tmp_23; // Inline function 'com.ustadmobile.core.viewmodel.accountlist.AccountListViewModel.' call if (this.zqd_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.cpu(); launch(tmp_24, VOID, VOID, AccountListViewModel$slambda_2(this, null)); } protoOf(AccountListViewModel).gqi = function () { var tmp0_elvis_lhs = this.dqe_1.t2().kqe_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var currentSession = tmp; var tmp_0 = this.cpu(); launch(tmp_0, VOID, VOID, AccountListViewModel$onClickLogout$slambda_0(this, currentSession, null)); }; protoOf(AccountListViewModel).hqi = function () { var tmp0_safe_receiver = this.dqe_1.t2().kqe_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.en4_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s95_1; var tmp; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp2_elvis_lhs; } var personUid = tmp; Companion_getInstance_119(); this.zps_1.fog('PersonDetailView', mapOf_0(to('entityUid', personUid.toString()))); }; protoOf(AccountListViewModel).iqi = 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.accountlist.AccountListViewModel.onClickAddAccount.' call if (!(this.yqd_1 == null)) { Companion_getInstance_119(); this_0.s('serverUrl', this.yqd_1); } Companion_getInstance_119(); Companion_getInstance_119(); this.ypt(this_0, listOf(['next', 'noSessionChange'])); Companion_getInstance_119(); Companion_getInstance_119(); var tmp0_elvis_lhs = this.xps_1.ba('maxDob'); this_0.s('maxDob', tmp0_elvis_lhs == null ? '0' : tmp0_elvis_lhs); var args = this_0.f3(); var tmp = this.cpu(); launch(tmp, VOID, VOID, AccountListViewModel$onClickAddAccount$slambda_0(this, args, null)); }; protoOf(AccountListViewModel).jqi = function (sessionWithPersonAndLearningSpace) { var tmp; if (sessionWithPersonAndLearningSpace.en4_1.a96_1) { Companion_getInstance_158(); tmp = 'ContentEntryListHome'; } else { Companion_getInstance_132(); tmp = 'CourseListHome'; } var viewName = tmp; var tmp1_$this = this.xqd_1; var tmp2_navController = this.zps_1; Companion_getInstance_119(); var tmp0_elvis_lhs = this.xps_1.ba('next'); var tmp3_nextDest = tmp0_elvis_lhs == null ? viewName : tmp0_elvis_lhs; var tmp4_dontSetCurrentSession = this.jqe_1; tmp1_$this.cow(sessionWithPersonAndLearningSpace, tmp3_nextDest, tmp2_navController, VOID, tmp4_dontSetCurrentSession); }; protoOf(AccountListViewModel).kqi = function (session) { var tmp = this.cpu(); launch(tmp, VOID, VOID, AccountListViewModel$onClickDeleteAccount$slambda_0(this, session, null)); }; protoOf(AccountListViewModel).lqi = function () { var launchUseCaseVal = _get_launchOpenLicensesUseCase__f5qz1z(this); if (!(launchUseCaseVal == null)) { var tmp = this.cpu(); launch(tmp, VOID, VOID, AccountListViewModel$onClickOpenLicenses$slambda_0(launchUseCaseVal, null)); } else { this.zps_1.fog('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.kqe_1 = headerAccount; this.lqe_1 = accountsList; this.mqe_1 = showAccountEndpoint; this.nqe_1 = version; this.oqe_1 = showPoweredBy; this.pqe_1 = shareAppOptionVisible; this.qqe_1 = shareAppBottomSheetVisible; } protoOf(AccountListUiState).mqi = function () { return !(this.kqe_1 == null) ? !this.kqe_1.en4_1.s95_1.equals(new Long(0, 0)) : false; }; protoOf(AccountListUiState).nqi = function () { return !(this.kqe_1 == null) ? !isGuestUser(this.kqe_1.en4_1) : false; }; protoOf(AccountListUiState).oqi = function (headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible) { return new AccountListUiState(headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible); }; protoOf(AccountListUiState).rqe = function (headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible, $super) { headerAccount = headerAccount === VOID ? this.kqe_1 : headerAccount; accountsList = accountsList === VOID ? this.lqe_1 : accountsList; showAccountEndpoint = showAccountEndpoint === VOID ? this.mqe_1 : showAccountEndpoint; version = version === VOID ? this.nqe_1 : version; showPoweredBy = showPoweredBy === VOID ? this.oqe_1 : showPoweredBy; shareAppOptionVisible = shareAppOptionVisible === VOID ? this.pqe_1 : shareAppOptionVisible; shareAppBottomSheetVisible = shareAppBottomSheetVisible === VOID ? this.qqe_1 : shareAppBottomSheetVisible; return $super === VOID ? this.oqi(headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible) : $super.oqi.call(this, headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible); }; protoOf(AccountListUiState).toString = function () { return 'AccountListUiState(headerAccount=' + this.kqe_1 + ', accountsList=' + this.lqe_1 + ', showAccountEndpoint=' + this.mqe_1 + ', version=' + this.nqe_1 + ', showPoweredBy=' + this.oqe_1 + ', shareAppOptionVisible=' + this.pqe_1 + ', shareAppBottomSheetVisible=' + this.qqe_1 + ')'; }; protoOf(AccountListUiState).hashCode = function () { var result = this.kqe_1 == null ? 0 : this.kqe_1.hashCode(); result = imul(result, 31) + hashCode(this.lqe_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.mqe_1) | 0; result = imul(result, 31) + getStringHashCode(this.nqe_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.oqe_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.pqe_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.qqe_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.kqe_1, tmp0_other_with_cast.kqe_1)) return false; if (!equals(this.lqe_1, tmp0_other_with_cast.lqe_1)) return false; if (!(this.mqe_1 === tmp0_other_with_cast.mqe_1)) return false; if (!(this.nqe_1 === tmp0_other_with_cast.nqe_1)) return false; if (!(this.oqe_1 === tmp0_other_with_cast.oqe_1)) return false; if (!(this.pqe_1 === tmp0_other_with_cast.pqe_1)) return false; if (!(this.qqe_1 === tmp0_other_with_cast.qqe_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.n56()); // 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).n5c(null, getLocalDelegateReference('dataLayer', KProperty0, false, function () { return THROW_ISE(); })); // Inline function 'kotlin.takeIf' call var this_1 = _this__u8e3s4.cpu(); // 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.pqi_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_6).t1d = function (value, $completion) { return this.pqi_1(value, $completion); }; function launchSetTitleFromClazzUid$slambda$slambda($updateUi, resultContinuation) { this.yqi_1 = $updateUi; CoroutineImpl.call(this, resultContinuation); } protoOf(launchSetTitleFromClazzUid$slambda$slambda).aqj = function (it, $completion) { var tmp = this.bqj(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(launchSetTitleFromClazzUid$slambda$slambda).he = function (p1, $completion) { return this.aqj((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.yqi_1(this.zqi_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).bqj = function (it, completion) { var i = new launchSetTitleFromClazzUid$slambda$slambda(this.yqi_1, completion); i.zqi_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.aqj(it, $completion); }; l.$arity = 1; return l; } function launchSetTitleFromClazzUid$slambda($clazzUid, $dataLayer$delegate, $updateUi, resultContinuation) { this.kqj_1 = $clazzUid; this.lqj_1 = $dataLayer$delegate; this.mqj_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.lqj_1).ijf().b7d().m8c(this.kqj_1); var tmp_1 = launchSetTitleFromClazzUid$slambda$slambda_0(this.mqj_1, null); suspendResult = tmp_0.z1b(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.kqj_1, this.lqj_1, this.mqj_1, completion); i.nqj_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.ppe_1; if (!equals(tmp, terminology == null ? null : terminology.c8g_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.b7d().m8c(clazzUid); var tmp_0 = collectClazzNameAndUpdateTitle$slambda_0(appUiState, null); return tmp.z1b(new sam$kotlinx_coroutines_flow_FlowCollector$0_7(tmp_0), $completion); } function sam$kotlinx_coroutines_flow_FlowCollector$0_7(function_0) { this.oqj_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_7).t1d = function (value, $completion) { return this.oqj_1(value, $completion); }; function collectClazzNameAndUpdateTitle$slambda($appUiState, resultContinuation) { this.xqj_1 = $appUiState; CoroutineImpl.call(this, resultContinuation); } protoOf(collectClazzNameAndUpdateTitle$slambda).aqj = function (clazzTitle, $completion) { var tmp = this.bqj(clazzTitle, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(collectClazzNameAndUpdateTitle$slambda).he = function (p1, $completion) { return this.aqj((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.xqj_1; var tmp_0; if (!(this.xqj_1.t2().apc_1 == this.yqj_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.npc(VOID, VOID, this.yqj_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).bqj = function (clazzTitle, completion) { var i = new collectClazzNameAndUpdateTitle$slambda(this.xqj_1, completion); i.yqj_1 = clazzTitle; return i; }; function collectClazzNameAndUpdateTitle$slambda_0($appUiState, resultContinuation) { var i = new collectClazzNameAndUpdateTitle$slambda($appUiState, resultContinuation); var l = function (clazzTitle, $completion) { return i.aqj(clazzTitle, $completion); }; l.$arity = 1; return l; } function get_blockTypeStringResource(_this__u8e3s4) { var tmp0_subject = _this__u8e3s4.h7x_1; var tmp; if (tmp0_subject === 102) { tmp = strings_getInstance().nmd_1; } else { if (tmp0_subject === 104) { tmp = strings_getInstance().amf_1; } else { if (tmp0_subject === 100) { tmp = strings_getInstance().zmr_1; } else { if (tmp0_subject === 103) { tmp = strings_getInstance().nme_1; } else { if (tmp0_subject === 105) { tmp = strings_getInstance().ems_1; } else { tmp = strings_getInstance().mlt_1; } } } } } return tmp; } function CoursePermissionConstants() { CoursePermissionConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().cmy_1; PermissionFlags_getInstance(); var tmp_1 = to(tmp_0, new Long(1, 0)); var tmp_2 = strings_getInstance().imy_1; PermissionFlags_getInstance(); var tmp_3 = to(tmp_2, new Long(8192, 0)); var tmp_4 = strings_getInstance().zmt_1; PermissionFlags_getInstance(); var tmp_5 = to(tmp_4, new Long(2, 0)); var tmp_6 = strings_getInstance().dmy_1; PermissionFlags_getInstance(); var tmp_7 = to(tmp_6, new Long(4, 0)); var tmp_8 = strings_getInstance().emy_1; PermissionFlags_getInstance(); var tmp_9 = to(tmp_8, new Long(8, 0)); var tmp_10 = strings_getInstance().fmy_1; PermissionFlags_getInstance(); var tmp_11 = to(tmp_10, new Long(16, 0)); var tmp_12 = strings_getInstance().ymc_1; PermissionFlags_getInstance(); var tmp_13 = to(tmp_12, new Long(32, 0)); var tmp_14 = strings_getInstance().amd_1; PermissionFlags_getInstance(); var tmp_15 = to(tmp_14, new Long(64, 0)); var tmp_16 = strings_getInstance().gmy_1; PermissionFlags_getInstance(); var tmp_17 = to(tmp_16, new Long(128, 0)); var tmp_18 = strings_getInstance().hmy_1; PermissionFlags_getInstance(); tmp.zqj_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$58(_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.vdf_1; var tmp; if (tmp0_subject === 1000) { tmp = strings_getInstance().slw_1; } else { if (tmp0_subject === 1001) { tmp = strings_getInstance().pm9_1; } else { tmp = null; } } return tmp; } function getTitleForCoursePermission$slambda($entity, resultContinuation) { this.vqk_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(getTitleForCoursePermission$slambda).xqk = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(getTitleForCoursePermission$slambda).he = function (p1, $completion) { return this.xqk(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.wqk_1.d7d().ze1(this.vqk_1.udf_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).pn8 = function (it, completion) { var i = new getTitleForCoursePermission$slambda(this.vqk_1, completion); i.wqk_1 = it; return i; }; function getTitleForCoursePermission$slambda_0($entity, resultContinuation) { var i = new getTitleForCoursePermission$slambda($entity, resultContinuation); var l = function (it, $completion) { return i.xqk(it, $completion); }; l.$arity = 1; return l; } function getTitleForCoursePermission$slambda_1($entity, resultContinuation) { this.gql_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(getTitleForCoursePermission$slambda_1).iql = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(getTitleForCoursePermission$slambda_1).he = function (p1, $completion) { return this.iql(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.hql_1.a7d(); var tmp0_safe_receiver = this.gql_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wdf_1; suspendResult = tmp_0.pfx(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).pn8 = function (it, completion) { var i = new getTitleForCoursePermission$slambda_1(this.gql_1, completion); i.hql_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.iql(it, $completion); }; l.$arity = 1; return l; } function $getTitleForCoursePermissionCOROUTINE$58(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.iqk_1 = _this__u8e3s4; this.jqk_1 = entity; } protoOf($getTitleForCoursePermissionCOROUTINE$58).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.iqk_1.n56()).s57(); var tmp_2 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); tmp_0.kqk_1 = tmp_1.q57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), null); var tmp_3 = this; var tmp0_safe_receiver = this.jqk_1; tmp_3.lqk_1 = tmp0_safe_receiver == null ? null : titleStringResource(tmp0_safe_receiver); if (!(this.lqk_1 == null)) { this.hd_1 = 2; var tmp_4 = this.iqk_1.hpu(); suspendResult = localFirstThenRepoIfNull(tmp_4, getTitleForCoursePermission$slambda_0(this.jqk_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; var tmp_5 = this.iqk_1.hpu(); suspendResult = localFirstThenRepoIfNull(tmp_5, getTitleForCoursePermission$slambda_2(this.jqk_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp5_elvis_lhs = suspendResult; this.mqk_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.kqk_1, this.iqk_1.npt()); 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.spe_1.equals(this.lqk_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.tpe_1; tmp_6.mqk_1 = tmp4_elvis_lhs == null ? this.iqk_1.npt().ant(this.lqk_1) : tmp4_elvis_lhs; this.hd_1 = 3; continue $sm; case 3: return this.mqk_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.rql_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda$slambda$slambda$slambda).tql = function (it, $completion) { var tmp = this.uql(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.tql((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.sql_1; var clazz = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m8j_1; var tmp_0; if (clazz == null) { tmp_0 = emptyList(); } else { var tmp_1; var tmp_2 = clazz.o8d_1; Companion_getInstance_4(); if (hasFlag_0(tmp_2, new Long(1, 0))) { tmp_1 = this.sql_1.n8j_1; } else { tmp_1 = false; } tmp_0 = createTabList(this.rql_1, tmp_1, this.sql_1.o8j_1, this.sql_1.p8j_1); } var tabList = tmp_0; l$ret$1: do { var this_0 = this.rql_1.rqm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.uqm(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).uql = function (it, completion) { var i = new ClazzDetailViewModel$slambda$slambda$slambda$slambda(this.rql_1, completion); i.sql_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.tql(it, $completion); }; l.$arity = 1; return l; } function ClazzDetailViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.dqn_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.dqn_1.fpu().b7d().k8c(this.dqn_1.dpu(), this.dqn_1.dpx_1); var tmp_1 = ClazzDetailViewModel$slambda$slambda$slambda$slambda_0(this.dqn_1, null); suspendResult = tmp_0.z1b(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.dqn_1, completion); i.eqn_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.nqn_1 = $this_launch; this.oqn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.nqn_1, VOID, VOID, ClazzDetailViewModel$slambda$slambda$slambda_0(this.oqn_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).y77 = function (completion) { return new ClazzDetailViewModel$slambda$slambda(this.nqn_1, this.oqn_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.w86($completion); }; l.$arity = 0; return l; } function createTabList($this, showAttendance, showMembers, showProgressReport) { Companion_getInstance_108(); var tabs = mutableListOf([new TabItem('CourseDetailOverviewView', mapOf_0(to('entityUid', $this.dpx_1.toString())), $this.npt().ant(strings_getInstance().lmt_1))]); if (showMembers) { Companion_getInstance_108(); tabs.i1(new TabItem('CourseMembers', mapOf_0(to('clazzUid', $this.dpx_1.toString())), capitalizeFirstLetter($this.npt().ant(strings_getInstance().fmc_1)))); } if (showProgressReport) { Companion_getInstance_108(); tabs.i1(new TabItem('Gradebook', mapOf_0(to('clazzUid', $this.dpx_1.toString())), $this.npt().ant(strings_getInstance().bn0_1))); } if (showAttendance) { Companion_getInstance_108(); tabs.i1(new TabItem('CourseLogListAttendanceView', mapOf_0(to('clazzUid', $this.dpx_1.toString())), $this.npt().ant(strings_getInstance().llw_1))); } Companion_getInstance_108(); tabs.i1(new TabItem('CourseGroups', mapOf_0(to('clazzUid', $this.dpx_1.toString())), $this.npt().ant(strings_getInstance().pmb_1))); return toList(tabs); } function Companion_105() { this.pqn_1 = 'Course'; } var Companion_instance_154; function Companion_getInstance_122() { return Companion_instance_154; } function sam$kotlinx_coroutines_flow_FlowCollector$0_8(function_0) { this.qqn_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_8).t1d = function (value, $completion) { return this.qqn_1(value, $completion); }; function ClazzDetailViewModel$slambda(this$0, resultContinuation) { this.zqn_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.zqn_1.rqm_1, ClazzDetailViewModel$slambda$slambda_0(this.aqo_1, this.zqn_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.zqn_1, completion); i.aqo_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.rqm_1 = MutableStateFlow(new ClazzDetailUiState()); this.sqm_1 = asStateFlow(this.rqm_1); var tmp = this.cpu(); launch(tmp, VOID, VOID, ClazzDetailViewModel$slambda_0(this, null)); } function ClazzDetailUiState(tabs) { tabs = tabs === VOID ? emptyList() : tabs; this.tqm_1 = tabs; } protoOf(ClazzDetailUiState).uqm = function (tabs) { return new ClazzDetailUiState(tabs); }; protoOf(ClazzDetailUiState).toString = function () { return 'ClazzDetailUiState(tabs=' + this.tqm_1 + ')'; }; protoOf(ClazzDetailUiState).hashCode = function () { return hashCode(this.tqm_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.tqm_1, tmp0_other_with_cast.tqm_1)) return false; return true; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.jqo_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).nqo = function (value, $completion) { var tmp = this.oqo(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.nqo(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.lqo_1 = this.jqo_1; var tmp_1 = this; tmp_1.mqo_1 = this.kqo_1; this.hd_1 = 1; var it = this.mqo_1; suspendResult = this.lqo_1.t1d(it.qdi_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).oqo = function (value, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda(this.jqo_1, completion); i.kqo_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.nqo(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$59(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xqo_1 = _this__u8e3s4; this.yqo_1 = collector; } protoOf($collectCOROUTINE$59).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.zqo_1 = this.yqo_1; this.hd_1 = 1; var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_0(this.zqo_1, null); suspendResult = this.xqo_1.aqp_1.z1b(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.jqp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda).lqp = function (courseBlockList, $completion) { var tmp = this.mqp(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.lqp((!(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.jqp_1.jqq_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xqq(VOID, VOID, this.kqp_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).mqp = function (courseBlockList, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this.jqp_1, completion); i.kqp_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.lqp(courseBlockList, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.gqr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).iqr = function (blockStatuses, $completion) { var tmp = this.jqr(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.iqr((!(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.gqr_1.jqq_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xqq(VOID, VOID, VOID, this.hqr_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).jqr = function (blockStatuses, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(this.gqr_1, completion); i.hqr_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.iqr(blockStatuses, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.sqr_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.sqr_1.hpu().c7d().bcg(this.sqr_1.dpx_1, false, false, systemTimeInMillis(), this.sqr_1.dpu()); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_0(this.sqr_1, null); suspendResult = tmp_0.z1b(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.sqr_1, completion); i.tqr_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.cqs_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.cqs_1.hpu().w7d().fj3(this.cqs_1.dpx_1, listOf_0(this.cqs_1.dpu()), this.cqs_1.dpu()); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_2(this.cqs_1, null); suspendResult = tmp_0.z1b(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.cqs_1, completion); i.dqs_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.aqp_1 = $this; } protoOf(_no_name_provided__qut3iv_3).zpk = function (collector, $completion) { var tmp = new $collectCOROUTINE$59(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_3).z1b = function (collector, $completion) { return this.zpk(collector, $completion); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda($this_launch, this$0, resultContinuation) { this.mqs_1 = $this_launch; this.nqs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda).kpl = function (hasViewPermission, $completion) { var tmp = this.lpl(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.kpl((!(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.oqs_1) { launch(this.mqs_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_0(this.nqs_1, null)); launch(this.mqs_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_2(this.nqs_1, null)); } else { l$ret$1: do { var this_0 = this.nqs_1.jqq_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xqq(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).lpl = function (hasViewPermission, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda(this.mqs_1, this.nqs_1, completion); i.oqs_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.kpl(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.jqq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewViewModel......' call var nextValue = prevValue.xqq(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).zqs = function (clazzWithDisplayDetails, permissions, $completion) { var tmp = this.aqt(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.zqs(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.xqs_1; var tmp_0; if (this.yqs_1.qdi_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).aqt = function (clazzWithDisplayDetails, permissions, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(completion); i.xqs_1 = clazzWithDisplayDetails; i.yqs_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.zqs(clazzWithDisplayDetails, permissions, $completion); }; l.$arity = 2; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.jqt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).lqt = function (it, $completion) { var tmp = this.mqt(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.lqt((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.jqt_1.jqq_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xqq(this.kqt_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp1_currentTerminologyStrings = this.jqt_1.jqq_1.t2().uqq_1; var tmp0_safe_receiver = this.kqt_1; var tmp2_terminology = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d8k_1; var tmp3_json = this.jqt_1.z4q(); var tmp4_systemImpl = this.jqt_1.npt(); parseAndUpdateTerminologyStringsIfNeeded(tmp1_currentTerminologyStrings, tmp2_terminology, tmp4_systemImpl, tmp3_json, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$lambda(this.jqt_1)); l$ret$3: do { var this_1 = this.jqt_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver_0 = this.kqt_1; var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.c8k_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f8d_1; var nextValue_0 = prevValue_0.npc(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).mqt = function (it, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this.jqt_1, completion); i.kqt_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.lqt(it, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1($$this$unsafeFlow, resultContinuation) { this.vqt_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1).nqo = function (value, $completion) { var tmp = this.oqo(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.nqo(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.xqt_1 = this.vqt_1; var tmp_1 = this; tmp_1.yqt_1 = this.wqt_1; this.hd_1 = 1; var it = this.yqt_1; suspendResult = this.xqt_1.t1d(it.rdi_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).oqo = function (value, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1(this.vqt_1, completion); i.wqt_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.nqo(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$60(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hqu_1 = _this__u8e3s4; this.iqu_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.jqu_1 = this.iqu_1; this.hd_1 = 1; var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_2(this.jqu_1, null); suspendResult = this.hqu_1.kqu_1.z1b(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.kqu_1 = $this; } protoOf(_no_name_provided__qut3iv_4).zpk = 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_4).z1b = function (collector, $completion) { return this.zpk(collector, $completion); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.tqu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).kpl = function (hasEditPermission, $completion) { var tmp = this.lpl(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.kpl((!(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.tqu_1.bpt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.npc(prevValue.ypb_1.tpc(this.uqu_1)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.tqu_1.jqq_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.xqq(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.uqu_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).lpl = function (hasEditPermission, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this.tqu_1, completion); i.uqu_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.kpl(hasEditPermission, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3($$this$unsafeFlow, resultContinuation) { this.dqv_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3).nqo = function (value, $completion) { var tmp = this.oqo(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.nqo(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.fqv_1 = this.dqv_1; var tmp_1 = this; tmp_1.gqv_1 = this.eqv_1; this.hd_1 = 1; var it = this.gqv_1; suspendResult = this.fqv_1.t1d(it.sdi_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).oqo = function (value, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3(this.dqv_1, completion); i.eqv_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.nqo(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$61(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.pqv_1 = _this__u8e3s4; this.qqv_1 = collector; } protoOf($collectCOROUTINE$61).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.rqv_1 = this.qqv_1; this.hd_1 = 1; var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_4(this.rqv_1, null); suspendResult = this.pqv_1.sqv_1.z1b(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.sqv_1 = $this; } protoOf(_no_name_provided__qut3iv_5).zpk = function (collector, $completion) { var tmp = new $collectCOROUTINE$61(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_5).z1b = function (collector, $completion) { return this.zpk(collector, $completion); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.bqw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).kpl = function (canAddStudent, $completion) { var tmp = this.lpl(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.kpl((!(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.bqw_1.jqq_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xqq(VOID, VOID, VOID, VOID, this.cqw_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).lpl = function (canAddStudent, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this.bqw_1, completion); i.cqw_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.kpl(canAddStudent, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda($permissionFlow, this$0, resultContinuation) { this.lqw_1 = $permissionFlow; this.mqw_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.lqw_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_3(this_0)); suspendResult = collectLatest(tmp_0, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_0(this.nqw_1, this.mqw_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.lqw_1, this.mqw_1, completion); i.nqw_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.wqw_1 = this$0; this.xqw_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.wqw_1.hpu().b7d().l8c(this.wqw_1.dpx_1, systemTimeInMillis(), this.wqw_1.dpu()); var tmp_1 = combine(tmp_0, this.xqw_1, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(null)); var tmp_2 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this.wqw_1, null); suspendResult = tmp_1.z1b(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.wqw_1, this.xqw_1, completion); i.yqw_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.hqx_1 = $permissionFlow; this.iqx_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.hqx_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_4(this_0)); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this.iqx_1, null); suspendResult = tmp_0.z1b(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.hqx_1, this.iqx_1, completion); i.jqx_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.sqx_1 = $permissionFlow; this.tqx_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.sqx_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_5(this_0)); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this.tqx_1, null); suspendResult = tmp_0.z1b(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.sqx_1, this.tqx_1, completion); i.uqx_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.dqy_1 = $this_launch; this.eqy_1 = $permissionFlow; this.fqy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.dqy_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_0(this.eqy_1, this.fqy_1, null)); launch(this.dqy_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_2(this.fqy_1, this.eqy_1, null)); launch(this.dqy_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_4(this.eqy_1, this.fqy_1, null)); launch(this.dqy_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_6(this.eqy_1, this.fqy_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).y77 = function (completion) { return new ClazzDetailOverviewViewModel$slambda$slambda(this.dqy_1, this.eqy_1, this.fqy_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.w86($completion); }; l.$arity = 0; return l; } function _get_setClipboardStringUseCase__31i1s1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lqq_1; setClipboardStringUseCase$factory_0(); return this_0.t2(); } function onClickEdit($this) { Companion_getInstance_108(); $this.zps_1.fog('CourseEdit', mapOf_0(to('entityUid', $this.dpx_1.toString()))); } function Companion_106() { this.gqy_1 = 'CourseDetailOverviewView'; } var Companion_instance_155; function Companion_getInstance_123() { return Companion_instance_155; } function sam$kotlinx_coroutines_flow_FlowCollector$0_9(function_0) { this.hqy_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_9).t1d = function (value, $completion) { return this.hqy_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.qqy_1 = this$0; this.rqy_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.qqy_1.jqq_1, ClazzDetailOverviewViewModel$slambda$slambda_0(this.sqy_1, this.rqy_1, this.qqy_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.qqy_1, this.rqy_1, completion); i.sqy_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.jqq_1 = MutableStateFlow(new ClazzDetailOverviewUiState()); this.kqq_1 = asStateFlow(this.jqq_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.lqq_1 = Instance(this, tmp$ret$0, null).n5c(this, setClipboardStringUseCase$factory()); this.mqq_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.nqq_1 = asSharedFlow(this.mqq_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewViewModel.' call var tmp_1 = this.npt().ant(strings_getInstance().lm6_1); var tmp_2 = FabIcon_EDIT_getInstance(); var nextValue = prevValue.npc(new FabUiState(false, tmp_1, tmp_2, ClazzDetailOverviewViewModel$onClickEdit$ref(this))); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.hpu().b7f(); var tmp_4 = this.dpu(); 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.bdf(tmp_4, this.dpx_1, tmp_5, tmp_6, new Long(8, 0)), this.cpu(), Companion_getInstance_12().v1h()); var tmp_7 = this.cpu(); launch(tmp_7, VOID, VOID, ClazzDetailOverviewViewModel$slambda_0(this, permissionFlow, null)); } protoOf(ClazzDetailOverviewViewModel).tqy = function (code) { _get_setClipboardStringUseCase__31i1s1(this).kob(code); this.jpu().cpd(new Snack(this.npt().ant(strings_getInstance().jmj_1))); }; protoOf(ClazzDetailOverviewViewModel).uqy = function (courseBlock) { Companion_getInstance_119(); var tmp = to('entityUid', courseBlock.g7x_1.toString()); Companion_getInstance_119(); var navArgs = mapOf([tmp, to('clazzUid', this.dpx_1.toString())]); var tmp0_subject = courseBlock.h7x_1; if (tmp0_subject === 100) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jqq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewViewModel.onClickCourseBlock.' call var nextValue = prevValue.xqq(VOID, VOID, VOID, VOID, VOID, toggle(prevValue.tqq_1, courseBlock.g7x_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.mqq_1.i1h(new RefreshCommand()); } else { if (tmp0_subject === 102) { this.zps_1.fog('CourseText', navArgs); } else { if (tmp0_subject === 103) { this.zps_1.fog('CourseAssignment', navArgs); } else { if (tmp0_subject === 105) { this.zps_1.fog('CourseDiscussion', navArgs); } else { if (tmp0_subject === 104) { Companion_getInstance_152(); Companion_getInstance_119(); var tmp_0 = to('entityUid', courseBlock.y7x_1.toString()); Companion_getInstance_119(); var tmp_1 = to('clazzUid', this.dpx_1.toString()); Companion_getInstance_119(); this.zps_1.fog('ContentEntry', mapOf([tmp_0, tmp_1, to('courseBlockUid', courseBlock.g7x_1.toString())])); } } } } } }; protoOf(ClazzDetailOverviewViewModel).vqy = function () { Companion_getInstance_119(); this.zps_1.fog('CoursePermissionList', mapOf_0(to('clazzUid', this.dpx_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.qqq_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.sci_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j7x_1; if (!this$0.tqq_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.oqq_1 = clazzAndDetail; this.pqq_1 = scheduleList; this.qqq_1 = courseBlockList; this.rqq_1 = blockStatusesForActiveUser; this.sqq_1 = clazzCodeVisible; this.tqq_1 = collapsedBlockUids; this.uqq_1 = terminologyStrings; this.vqq_1 = managePermissionVisible; var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.wqq_1 = lazy(tmp_0, ClazzDetailOverviewUiState$displayBlockList$delegate$lambda(this)); } protoOf(ClazzDetailOverviewUiState).wqy = function () { var tmp0_safe_receiver = this.oqq_1; return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c8k_1; }; protoOf(ClazzDetailOverviewUiState).xqy = function () { var tmp; var tmp0_safe_receiver = this.oqq_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c8k_1; if (isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m8d_1)) { tmp = true; } else { var tmp2_safe_receiver = this.oqq_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.c8k_1; tmp = isDateSet(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.n8d_1); } return tmp; }; protoOf(ClazzDetailOverviewUiState).yqy = function () { var tmp0_safe_receiver = this.oqq_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f8k_1; return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; }; protoOf(ClazzDetailOverviewUiState).zqy = function () { var tmp0_safe_receiver = this.oqq_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g8k_1; return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; }; protoOf(ClazzDetailOverviewUiState).aqz = function () { var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = this.qqq_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.sci_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h7x_1; if (tmp_0 === 100) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } return tmp$ret$0; }; protoOf(ClazzDetailOverviewUiState).bqz = function () { var tmp2_safe_receiver = this.uqq_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.qpe(strings_getInstance().pm9_1); var tmp = (tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs) + ': ' + this.zqy() + ', '; var tmp0_safe_receiver = this.uqq_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qpe(strings_getInstance().slw_1); return tmp + ((tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs) + ': ' + this.yqy()); }; protoOf(ClazzDetailOverviewUiState).cqz = function () { return this.vqq_1; }; protoOf(ClazzDetailOverviewUiState).dqz = function () { // Inline function 'kotlin.getValue' call var this_0 = this.wqq_1; displayBlockList$factory(); return this_0.t2(); }; protoOf(ClazzDetailOverviewUiState).eqz = function (clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible) { return new ClazzDetailOverviewUiState(clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible); }; protoOf(ClazzDetailOverviewUiState).xqq = function (clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible, $super) { clazzAndDetail = clazzAndDetail === VOID ? this.oqq_1 : clazzAndDetail; scheduleList = scheduleList === VOID ? this.pqq_1 : scheduleList; courseBlockList = courseBlockList === VOID ? this.qqq_1 : courseBlockList; blockStatusesForActiveUser = blockStatusesForActiveUser === VOID ? this.rqq_1 : blockStatusesForActiveUser; clazzCodeVisible = clazzCodeVisible === VOID ? this.sqq_1 : clazzCodeVisible; collapsedBlockUids = collapsedBlockUids === VOID ? this.tqq_1 : collapsedBlockUids; terminologyStrings = terminologyStrings === VOID ? this.uqq_1 : terminologyStrings; managePermissionVisible = managePermissionVisible === VOID ? this.vqq_1 : managePermissionVisible; return $super === VOID ? this.eqz(clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible) : $super.eqz.call(this, clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible); }; protoOf(ClazzDetailOverviewUiState).toString = function () { return 'ClazzDetailOverviewUiState(clazzAndDetail=' + this.oqq_1 + ', scheduleList=' + this.pqq_1 + ', courseBlockList=' + this.qqq_1 + ', blockStatusesForActiveUser=' + this.rqq_1 + ', clazzCodeVisible=' + this.sqq_1 + ', collapsedBlockUids=' + this.tqq_1 + ', terminologyStrings=' + this.uqq_1 + ', managePermissionVisible=' + this.vqq_1 + ')'; }; protoOf(ClazzDetailOverviewUiState).hashCode = function () { var result = this.oqq_1 == null ? 0 : this.oqq_1.hashCode(); result = imul(result, 31) + hashCode(this.pqq_1) | 0; result = imul(result, 31) + hashCode(this.qqq_1) | 0; result = imul(result, 31) + hashCode(this.rqq_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.sqq_1) | 0; result = imul(result, 31) + hashCode(this.tqq_1) | 0; result = imul(result, 31) + (this.uqq_1 == null ? 0 : this.uqq_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.vqq_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.oqq_1, tmp0_other_with_cast.oqq_1)) return false; if (!equals(this.pqq_1, tmp0_other_with_cast.pqq_1)) return false; if (!equals(this.qqq_1, tmp0_other_with_cast.qqq_1)) return false; if (!equals(this.rqq_1, tmp0_other_with_cast.rqq_1)) return false; if (!(this.sqq_1 === tmp0_other_with_cast.sqq_1)) return false; if (!equals(this.tqq_1, tmp0_other_with_cast.tqq_1)) return false; if (!equals(this.uqq_1, tmp0_other_with_cast.uqq_1)) return false; if (!(this.vqq_1 === tmp0_other_with_cast.vqq_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.dqz(); }, null); } function ClazzEditViewModel$slambda$slambda$slambda$lambda(this$0) { return function ($this$shallowCopy) { $this$shallowCopy.y8f_1 = new CoursePicture(this$0.wq1_1); return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.nqz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda).rqz = function (it, $completion) { var tmp = this.pn8(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.rqz(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.oqz_1.b7d(); var tmp_1; if (!this.nqz_1.wq1_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.pqz_1 = tmp_1; if (this.pqz_1 == null) { this.qqz_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.pqz_1.h8c(this.nqz_1.wq1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.qqz_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var dbResult = this.qqz_1; var hasPicture = !((dbResult == null ? null : dbResult.y8f_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.nqz_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).pn8 = function (it, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda(this.nqz_1, completion); i.oqz_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.rqz(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.ar0_1 = this$0; this.br0_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_1).gr0 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_1).z77 = function ($completion) { return this.gr0($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.cr0_1 = new ClazzWithHolidayCalendarAndAndTerminology(); var tmp_1 = this; tmp_1.dr0_1 = this.cr0_1; this.dr0_1.e8d_1 = this.ar0_1.lr1_1; this.dr0_1.f8d_1 = ''; this.dr0_1.k8d_1 = true; this.dr0_1.m8d_1 = systemTimeInMillis(); this.dr0_1.w8d_1 = getDefaultTimeZoneId(); var tmp_2 = this.dr0_1; Companion_getInstance_108(); var tmp0_safe_receiver = this.br0_1.ba('schoolUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_2.p8d_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_3 = this; var this_0 = this.ar0_1.hpu().d7d(); var tmp_4; if (!this.dr0_1.r8d_1.equals(new Long(0, 0))) { tmp_4 = this_0; } else { tmp_4 = null; } tmp_3.er0_1 = tmp_4; if (this.er0_1 == null) { this.fr0_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.er0_1.ze1(this.dr0_1.r8d_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.fr0_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var ARGUMENT = this.fr0_1; this.dr0_1.x8f_1 = ARGUMENT; this.dr0_1.y8f_1 = new CoursePicture(this.ar0_1.lr1_1); this.dr0_1.c8e_1 = this.ar0_1.dpu(); return this.cr0_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).y77 = function (completion) { return new ClazzEditViewModel$slambda$slambda$slambda_1(this.ar0_1, this.br0_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.gr0($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.jr1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel....' call var nextValue = prevValue.vr1(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.er2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_3).ir2 = function (it, $completion) { var tmp = this.pn8(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.ir2(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.fr2_1.a7e(); var tmp_1; if (!this.er2_1.wq1_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.gr2_1 = tmp_1; if (this.gr2_1 == null) { this.hr2_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.gr2_1.nh5(this.er2_1.wq1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.hr2_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.hr2_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).pn8 = function (it, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_3(this.er2_1, completion); i.fr2_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.ir2(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).rr2 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).z77 = function ($completion) { return this.rr2($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).y77 = 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.rr2($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.jr1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel....' call var nextValue = prevValue.vr1(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.ar3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_7).ir3 = function (db, $completion) { var tmp = this.pn8(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.ir3(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.br3_1.c7d(); var tmp_1; if (!this.ar3_1.wq1_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.cr3_1 = tmp_1; if (this.cr3_1 == null) { this.dr3_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.cr3_1.acg(this.ar3_1.wq1_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.dr3_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.er3_1 = this.dr3_1; this.fr3_1 = this.er3_1 == null ? emptyList() : this.er3_1; var tmp_2 = this; var this_1 = this.br3_1.t7e(); var tmp_3; if (!this.ar3_1.wq1_1.equals(new Long(0, 0))) { tmp_3 = this_1; } else { tmp_3 = null; } tmp_2.gr3_1 = tmp_3; if (this.gr3_1 == null) { this.hr3_1 = null; this.hd_1 = 4; continue $sm; } else { this.hd_1 = 3; suspendResult = this.gr3_1.lfo(this.ar3_1.wq1_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 3: this.hr3_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: var tmp3_elvis_lhs = this.hr3_1; var assignmentPeerAllocations = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs; var this_2 = this.fr3_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.bci_1); var tmp0_elvis_lhs = item.cci_1; var tmp_5 = tmp0_elvis_lhs == null ? new CourseBlockPicture(ensureNotNull(item.bci_1).g7x_1) : tmp0_elvis_lhs; var tmp_6 = item.dci_1; var tmp_7 = item.eci_1; var tmp_8 = item.fci_1; var tmp_9 = item.gci_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.jfp_1; var tmp0_safe_receiver = item.fci_1; if (tmp_10.equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a7t_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).pn8 = function (db, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_7(this.ar3_1, completion); i.br3_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.ir3(db, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_9(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).rr3 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).z77 = function ($completion) { return this.rr3($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).y77 = 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.rr3($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.jr1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel....' call var nextValue = prevValue.vr1(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.hh6_1.equals($returnedSchedule.hh6_1); }; } function ClazzEditViewModel$slambda$slambda$slambda$slambda(this$0, $newSchedules, resultContinuation) { this.ar4_1 = this$0; this.br4_1 = $newSchedules; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda$slambda).bq9 = 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.bq9((!(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.ar4_1.z4q().e45(ListSerializer(Companion_instance_29.a4r()), this.br4_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.ar4_1, this.br4_1, completion); i.cr4_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.bq9($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_11(this$0, $savedStateHandle, resultContinuation) { this.lr4_1 = this$0; this.mr4_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_11).spg = function (result, $completion) { var tmp = this.tpg(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.spg(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.nr4_1.zpf_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.or4_1 = tmp_2; var tmp_3 = this; var tmp_4 = this.lr4_1.jr1_1.t2().sr1_1; tmp_3.pr4_1 = replaceOrAppend(tmp_4, this.or4_1, ClazzEditViewModel$slambda$slambda$slambda$lambda_0(this.or4_1)); l$ret$1: do { var this_0 = this.lr4_1.jr1_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vr1(VOID, VOID, VOID, VOID, VOID, this.pr4_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.lr4_1, this.pr4_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.mr4_1.app('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).tpg = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_11(this.lr4_1, this.mr4_1, completion); i.nr4_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.spg(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_13(this$0, resultContinuation) { this.yr4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_13).spg = function (result, $completion) { var tmp = this.tpg(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.spg(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.zr4_1.zpf_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.ar5_1 = tmp_2; var tmp_3 = this; var tmp_4 = this.yr4_1.jr1_1.t2().tr1_1; var tmp1_safe_receiver = this.yr4_1.jr1_1.t2().or1_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e8d_1; tmp_3.br5_1 = this.yr4_1.er1_1.zok(tmp_4, tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs, this.ar5_1); this.hd_1 = 1; suspendResult = updateCourseBlockList(this.yr4_1, this.br5_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).tpg = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_13(this.yr4_1, completion); i.zr4_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.spg(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_1($timeZoneId) { return function ($this$shallowCopy) { $this$shallowCopy.w8d_1 = $timeZoneId; return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_15(this$0, resultContinuation) { this.kr5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_15).spg = function (result, $completion) { var tmp = this.tpg(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.spg(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.lr5_1.zpf_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.kr5_1.jr1_1.t2().or1_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.kr5_1.mr5(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).tpg = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_15(this.kr5_1, completion); i.lr5_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.spg(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_2($newTerminology) { return function ($this$shallowCopy) { $this$shallowCopy.r8d_1 = $newTerminology.z8f_1; $this$shallowCopy.x8f_1 = $newTerminology; return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_17(this$0, resultContinuation) { this.vr5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_17).spg = function (result, $completion) { var tmp = this.tpg(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.spg(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.wr5_1.zpf_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.vr5_1.jr1_1.t2().or1_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.vr5_1.mr5(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).tpg = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_17(this.vr5_1, completion); i.wr5_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.spg(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_3($newDescription) { return function ($this$shallowCopy) { $this$shallowCopy.g8d_1 = $newDescription; return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_19(this$0, resultContinuation) { this.fr6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_19).spg = function (result, $completion) { var tmp = this.tpg(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.spg(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.gr6_1.zpf_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.fr6_1.jr1_1.t2().or1_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.fr6_1.mr5(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).tpg = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_19(this.fr6_1, completion); i.gr6_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.spg(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda(this$0, $savedStateHandle, resultContinuation) { this.pr6_1 = this$0; this.qr6_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda).sr6 = 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.sr6((!(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.a4r(); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_0(this.pr6_1, null); var tmp_2 = ClazzEditViewModel$slambda$slambda$slambda_2(this.pr6_1, this.qr6_1, null); suspendResult = this.pr6_1.rpu(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzEditViewModel$slambda$slambda$lambda(this.pr6_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_0 = suspendResult; Companion_getInstance_117(); var tmp1_safe_receiver = this_0 == null ? null : this_0.y8f_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f8g_1; setIfNoValueSetYet(this.qr6_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.pr6_1, this.qr6_1, completion); i.rr6_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.sr6($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.br7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_1).dr7 = 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.dr7((!(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.a4r()); var tmp_1 = listOf_0('schedule'); var tmp_2 = ClazzEditViewModel$slambda$slambda$slambda_4(this.br7_1, null); var tmp_3 = ClazzEditViewModel$slambda$slambda$slambda_6(null); suspendResult = this.br7_1.rpu(tmp_0, tmp_1, VOID, tmp_2, tmp_3, ClazzEditViewModel$slambda$slambda$lambda_0(this.br7_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.br7_1, completion); i.cr7_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.dr7($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.mr7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_3).or7 = 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.or7((!(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().a4r()); var tmp_1 = listOf_0('courseblocks'); var tmp_2 = ClazzEditViewModel$slambda$slambda$slambda_8(this.mr7_1, null); var tmp_3 = ClazzEditViewModel$slambda$slambda$slambda_10(null); suspendResult = this.mr7_1.rpu(tmp_0, tmp_1, VOID, tmp_2, tmp_3, ClazzEditViewModel$slambda$slambda$lambda_1(this.mr7_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.mr7_1, completion); i.nr7_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.or7($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_5(this$0, resultContinuation) { this.xr7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_5).bq9 = 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.bq9((!(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.xr7_1.z4q(); var value = this.xr7_1.jr1_1.t2(); var this_1 = this_0.g45(); var this_2 = serializer(this_1, createKType(getKClass(ClazzEditUiState), arrayOf([]), false)); return this_0.e45(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.xr7_1, completion); i.yr7_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.bq9($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_7(this$0, $savedStateHandle, resultContinuation) { this.hr8_1 = this$0; this.ir8_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.hr8_1.gpx(this.hr8_1.kpu(), 'Schedule'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_12(this.hr8_1, this.ir8_1, null); suspendResult = tmp_0.z1b(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.hr8_1, this.ir8_1, completion); i.jr8_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.sr8_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.sr8_1.gpx(this.sr8_1.kpu(), 'courseblock'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_14(this.sr8_1, null); suspendResult = tmp_0.z1b(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.sr8_1, completion); i.tr8_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.cr9_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.cr9_1.gpx(this.cr9_1.kpu(), 'timeZone'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_16(this.cr9_1, null); suspendResult = tmp_0.z1b(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.cr9_1, completion); i.dr9_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.mr9_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.mr9_1.gpx(this.mr9_1.kpu(), 'terminology'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_18(this.mr9_1, null); suspendResult = tmp_0.z1b(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.mr9_1, completion); i.nr9_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.wr9_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.wr9_1.gpx(this.wr9_1.kpu(), 'clazzDescriptionHtml'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_20(this.wr9_1, null); suspendResult = tmp_0.z1b(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.wr9_1, completion); i.xr9_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.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda($clazzUid) { return function ($this$shallowCopy) { $this$shallowCopy.oh6_1 = $clazzUid; return Unit_instance; }; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_0(it) { return it.hh6_1; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_1(it) { return it.zjk_1.g7x_1; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_2(it) { return it.a7t_1; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_3(it) { return it.gfp_1; } function ClazzEditViewModel$onClickSave$slambda$slambda(this$0, $initEntity, $updateImage, $coursePictureVal, $entity, $initState, $courseBlockListVal, $updatedCourseBlockPictures, resultContinuation) { this.hra_1 = this$0; this.ira_1 = $initEntity; this.jra_1 = $updateImage; this.kra_1 = $coursePictureVal; this.lra_1 = $entity; this.mra_1 = $initState; this.nra_1 = $courseBlockListVal; this.ora_1 = $updatedCourseBlockPictures; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onClickSave$slambda$slambda).on8 = function (it, $completion) { var tmp = this.pn8(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.on8(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.hra_1.wq1_1.equals(new Long(0, 0))) { this.hd_1 = 2; suspendResult = _get_createNewClazzUseCase__mo489e(this.hra_1).lo8(this.ira_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; suspendResult = this.hra_1.hpu().b7d().i8c(this.ira_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.jra_1 ? !(this.kra_1 == null) : false) { this.kra_1.e8g_1 = systemTimeInMillis(); this.hd_1 = 4; suspendResult = this.hra_1.fpu().q7e().zdy(this.kra_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.qra_1 = this.lra_1.e8d_1; var tmp_0 = this; var this_0 = this.hra_1.jr1_1.t2().sr1_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.qra_1))); } tmp_0.rra_1 = destination; this.hd_1 = 6; suspendResult = this.hra_1.hpu().a7e().lh5(this.rra_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.hd_1 = 7; var tmp_1 = this.hra_1.hpu().a7e(); suspendResult = deactivateByUids(tmp_1, findKeysNotInOtherList(this.mra_1.sr1_1, this.rra_1, ClazzEditViewModel$onClickSave$slambda$slambda$lambda_0), systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.sra_1 = this.hra_1.fr1_1.bol(this.nra_1); this.hd_1 = 8; var tmp_2 = this.hra_1.hpu().c7d(); var this_1 = this.sra_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.zjk_1); } suspendResult = tmp_2.dcg(destination_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: this.hd_1 = 9; var tmp_3 = this.hra_1.hpu().c7d(); suspendResult = deactivateByUids_0(tmp_3, findKeysNotInOtherList(this.mra_1.tr1_1, this.sra_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.nra_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.gjl_1; if (tmp0_safe_receiver == null) null; else { destination_1.i1(tmp0_safe_receiver); } } tmp_4.tra_1 = destination_1; this.hd_1 = 10; suspendResult = this.hra_1.hpu().d7e().e7s(this.tra_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: var tmp_5 = this; var this_3 = this.mra_1.tr1_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.gjl_1; if (tmp0_safe_receiver_0 == null) null; else { destination_2.i1(tmp0_safe_receiver_0); } } tmp_5.ura_1 = findKeysNotInOtherList(destination_2, this.tra_1, ClazzEditViewModel$onClickSave$slambda$slambda$lambda_2); var tmp_6 = this; var this_4 = this.hra_1.hpu().d7e(); var tmp_7; if (!this.ura_1.c1()) { tmp_7 = this_4; } else { tmp_7 = null; } tmp_6.vra_1 = tmp_7; if (this.vra_1 == null) { this.wra_1 = null; this.hd_1 = 12; continue $sm; } else { this.hd_1 = 11; suspendResult = this.vra_1.f7s(this.ura_1, false, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 11: var tmp_8 = this; tmp_8.wra_1 = Unit_instance; this.hd_1 = 12; continue $sm; case 12: var tmp_9 = this; var this_5 = this.nra_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.ijl_1; addAll(destination_3, list); } tmp_9.xra_1 = destination_3; var tmp_10 = this; var this_6 = this.mra_1.tr1_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.ijl_1; addAll(destination_4, list_0); } tmp_10.yra_1 = destination_4; this.hd_1 = 13; var tmp_11 = this.hra_1.hpu().t7e(); suspendResult = deactivateByUids_1(tmp_11, findKeysNotInOtherList(this.yra_1, this.xra_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.hra_1.hpu().t7e().mfo(this.xra_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 14: var tmp_12 = this; var this_7 = this.nra_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.djl_1; if (tmp0_safe_receiver_1 == null) null; else { destination_5.i1(tmp0_safe_receiver_1); } } tmp_12.zra_1 = destination_5; this.arb_1 = this.zra_1.w(); this.hd_1 = 15; continue $sm; case 15: if (!this.arb_1.f()) { this.hd_1 = 17; continue $sm; } this.brb_1 = this.arb_1.e(); var tmp_13 = this; tmp_13.crb_1 = this.brb_1; this.hd_1 = 16; suspendResult = this.hra_1.hr1_1.gof(this.crb_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.hra_1.fpu().d7f(); var tmp_15; if (!this.ora_1.c1()) { tmp_15 = this_8; } else { tmp_15 = null; } tmp_14.drb_1 = tmp_15; if (this.drb_1 == null) { this.erb_1 = null; this.hd_1 = 19; continue $sm; } else { this.hd_1 = 18; suspendResult = this.drb_1.acw(this.ora_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 18: var tmp_16 = this; tmp_16.erb_1 = Unit_instance; this.hd_1 = 19; continue $sm; case 19: Napier_getInstance().v5d('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).pn8 = function (it, completion) { var i = new ClazzEditViewModel$onClickSave$slambda$slambda(this.hra_1, this.ira_1, this.jra_1, this.kra_1, this.lra_1, this.mra_1, this.nra_1, this.ora_1, completion); i.pra_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.on8(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$updateCourseBlock$slambda$lambda($updatedBlock) { return function (it) { return it.zjk_1.g7x_1.equals($updatedBlock.zjk_1.g7x_1); }; } function _get_createNewClazzUseCase__mo489e($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.mr1_1; createNewClazzUseCase$factory_0(); return this_0.t2(); } function updateCourseBlockList($this, newCourseBlockList, $completion) { var tmp = new $updateCourseBlockListCOROUTINE$62($this, newCourseBlockList, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function hasErrors(_this__u8e3s4, $this) { return (!(_this__u8e3s4.pr1_1 == null) ? true : !(_this__u8e3s4.qr1_1 == null)) ? true : !(_this__u8e3s4.rr1_1 == null); } function updateCourseBlock($this, updatedBlock) { var tmp = $this.cpu(); launch(tmp, VOID, VOID, ClazzEditViewModel$updateCourseBlock$slambda_0($this, updatedBlock, null)); } function Companion_107() { this.qrb_1 = 'CourseEdit'; this.rrb_1 = 'Schedule'; this.srb_1 = 'schedule'; this.trb_1 = 'courseblock'; this.urb_1 = 'timeZone'; this.vrb_1 = 'terminology'; this.wrb_1 = 'courseblocks'; this.xrb_1 = 'clazzDescriptionHtml'; } var Companion_instance_156; function Companion_getInstance_124() { return Companion_instance_156; } function sam$kotlinx_coroutines_flow_FlowCollector$0_10(function_0) { this.yrb_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_10).t1d = function (value, $completion) { return this.yrb_1(value, $completion); }; function ClazzEditViewModel$slambda(this$0, resultContinuation) { this.hrc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda).krc = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda).he = function (p1, $completion) { return this.krc(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.hrc_1.wq1_1.equals(new Long(0, 0))) { this.hd_1 = 2; var tmp_0 = this.irc_1.b7f(); var tmp_1 = this.hrc_1.dpu(); PermissionFlags_getInstance(); suspendResult = tmp_0.cdf(tmp_1, this.hrc_1.wq1_1, new Long(2, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; var tmp_2 = this.irc_1.c7f(); var tmp_3 = this.hrc_1.dpu(); PermissionFlags_getInstance(); suspendResult = tmp_2.lhr(tmp_3, new Long(512, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.jrc_1 = suspendResult; this.hd_1 = 3; continue $sm; case 2: this.jrc_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: return this.jrc_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).pn8 = function (it, completion) { var i = new ClazzEditViewModel$slambda(this.hrc_1, completion); i.irc_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.krc(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda_1($savedStateHandle, this$0, resultContinuation) { this.trc_1 = $savedStateHandle; this.urc_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.vrc_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_0(this.urc_1, this.trc_1, null)); var tmp_1 = async(this.vrc_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_2(this.urc_1, null)); suspendResult = awaitAll([tmp_0, tmp_1, async(this.vrc_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_4(this.urc_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Companion_getInstance_119(); if (this.trc_1.ba('initState') == null) { var tmp_2 = this; Companion_getInstance_119(); tmp_2.wrc_1 = 'initState'; this.hd_1 = 2; var tmp_3 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_3, ClazzEditViewModel$slambda$slambda_6(this.urc_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.trc_1.app(this.wrc_1, ARGUMENT); this.hd_1 = 3; continue $sm; case 3: launch(this.vrc_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_8(this.urc_1, this.trc_1, null)); launch(this.vrc_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_10(this.urc_1, null)); launch(this.vrc_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_12(this.urc_1, null)); launch(this.vrc_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_14(this.urc_1, null)); launch(this.vrc_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_16(this.urc_1, null)); l$ret$1: do { var this_0 = this.urc_1.jr1_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vr1(true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.urc_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_4 = Companion_getInstance_89().vpc_1; var tmp_5 = this.urc_1.npt().ant(strings_getInstance().zmd_1); var nextValue_0 = prevValue_0.npc(VOID, tmp_4, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_5, VOID, ClazzEditViewModel$onClickSave$ref(this.urc_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.trc_1, this.urc_1, completion); i.vrc_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.frd_1 = this$0; this.grd_1 = $newCourseBlockList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$updateCourseBlockList$slambda).bq9 = 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.bq9((!(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.frd_1.z4q().e45(ListSerializer(Companion_getInstance_13().a4r()), this.grd_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.frd_1, this.grd_1, completion); i.hrd_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.bq9($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.qrd_1 = $commitDelay; this.rrd_1 = $entity; this.srd_1 = $this; this.trd_1 = $key; this.urd_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.qrd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.rrd_1 == null)) { this.hd_1 = 2; suspendResult = this.srd_1.npu(this.srd_1.xps_1, this.trd_1, this.urd_1, this.rrd_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.qrd_1, this.rrd_1, this.srd_1, this.trd_1, this.urd_1, completion); i.vrd_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.o8d_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.f8d_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.f8d_1 = tmp_0; var tmp_1 = $this$shallowCopy; var tmp_2 = Companion_getInstance_6().kls($initEntity.m8d_1); // Inline function 'com.ustadmobile.core.util.ext.effectiveTimeZone' call var tmp0_elvis_lhs = $initEntity.w8d_1; var tmp$ret$1 = tmp0_elvis_lhs == null ? 'UTC' : tmp0_elvis_lhs; tmp_1.m8d_1 = toLocalMidnight(tmp_2, tmp$ret$1).jls(); var tmp_3; var tmp_4 = $this$shallowCopy.n8d_1; Companion_getInstance_2(); if (!tmp_4.equals(new Long(-1, 2147483647))) { var tmp_5 = $this$shallowCopy; var tmp_6 = Companion_getInstance_6().kls($initEntity.n8d_1); // Inline function 'com.ustadmobile.core.util.ext.effectiveTimeZone' call var tmp0_elvis_lhs_0 = $initEntity.w8d_1; var tmp$ret$2 = tmp0_elvis_lhs_0 == null ? 'UTC' : tmp0_elvis_lhs_0; tmp_5.n8d_1 = toLocalEndOfDay(tmp_6, tmp$ret$2).jls(); 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.jr1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickSave..' call var nextValue = prevValue.vr1(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$onClickSave$slambda(this$0, $entity, $initEntity, resultContinuation) { this.ere_1 = this$0; this.fre_1 = $entity; this.gre_1 = $initEntity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onClickSave$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$onClickSave$slambda).z77 = function ($completion) { return this.w86($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_119(); suspendResult = this.ere_1.mpu(this.ere_1.xps_1, 'initState', Companion_getInstance_125().a4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hre_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.hre_1 == null) { return Unit_instance; } else { tmp_1 = this.hre_1; } tmp_0.ire_1 = tmp_1; Napier_getInstance().v5d('onClickSave: start transaction'); this.jre_1 = this.ere_1.jr1_1.t2().tr1_1; this.kre_1 = this.fre_1.y8f_1; var tmp_2 = this; var tmp_3; if (!(this.kre_1 == null)) { Companion_getInstance_117(); var tmp_4 = this.ere_1.xps_1.ba('initPicUri'); var tmp1_safe_receiver = this.fre_1.y8f_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f8g_1; tmp_3 = !(tmp_4 === (tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs)); } else { tmp_3 = false; } tmp_2.lre_1 = tmp_3; var tmp_5 = this; var this_0 = this.jre_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.ajl_1; var imageUriNow = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l7y_1; var tmp$ret$0; l$ret$1: do { var tmp0_iterator_0 = this.ire_1.tr1_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp0_safe_receiver_0 = element_0.ajl_1; var tmp_6 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.j7y_1; var tmp1_safe_receiver_0 = element.ajl_1; if (equals(tmp_6, tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.j7y_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.ajl_1; var initImageUri = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.l7y_1; var tmp3_safe_receiver = element.ajl_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.mre_1 = destination; this.hd_1 = 2; var tmp_9 = this.ere_1.fpu(); suspendResult = withDoorTransactionAsync(tmp_9, VOID, ClazzEditViewModel$onClickSave$slambda$slambda_0(this.ere_1, this.gre_1, this.lre_1, this.kre_1, this.fre_1, this.ire_1, this.jre_1, this.mre_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: Napier_getInstance().v5d('onClickSave: transaction done'); var tmp_10 = this; tmp_10.nre_1 = this.jre_1; this.ore_1 = this.nre_1.w(); this.hd_1 = 3; continue $sm; case 3: if (!this.ore_1.f()) { this.hd_1 = 6; continue $sm; } this.pre_1 = this.ore_1.e(); var tmp_11 = this; tmp_11.qre_1 = this.pre_1; this.rre_1 = this.qre_1.bjl_1; if (this.rre_1 == null) { this.sre_1 = null; this.hd_1 = 5; continue $sm; } else { var tmp_12 = this; tmp_12.tre_1 = this.rre_1; var tmp_13 = this; tmp_13.ure_1 = this.tre_1; this.hd_1 = 4; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_1 = this.ire_1.tr1_1.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); var tmp0_safe_receiver_2 = element_1.ajl_1; var tmp_14 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.j7y_1; var tmp1_safe_receiver_2 = this.qre_1.ajl_1; if (equals(tmp_14, tmp1_safe_receiver_2 == null ? null : tmp1_safe_receiver_2.j7y_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.ajl_1; suspendResult = this.ere_1.gr1_1.yok(this.ure_1, null, this.qre_1.cjl_1, tmp1_safe_receiver_3 == null ? null : tmp1_safe_receiver_3.l7y_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.sre_1 = this.tre_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.ere_1.ir1_1; var tmp_16; if (this.lre_1) { tmp_16 = this_1; } else { tmp_16 = null; } tmp_15.vre_1 = tmp_16; if (this.vre_1 == null) { this.wre_1 = null; this.hd_1 = 8; continue $sm; } else { this.hd_1 = 7; var tmp_17 = this.fre_1.e8d_1; var tmp3_safe_receiver_0 = this.kre_1; suspendResult = this.vre_1.po1(tmp_17, 125, tmp3_safe_receiver_0 == null ? null : tmp3_safe_receiver_0.f8g_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 7: var tmp_18 = this; tmp_18.wre_1 = Unit_instance; this.hd_1 = 8; continue $sm; case 8: var tmp_19 = this; tmp_19.xre_1 = this.mre_1; this.yre_1 = this.xre_1.w(); this.hd_1 = 9; continue $sm; case 9: if (!this.yre_1.f()) { this.hd_1 = 11; continue $sm; } this.zre_1 = this.yre_1.e(); var tmp_20 = this; tmp_20.arf_1 = this.zre_1; this.hd_1 = 10; var tmp_21 = this.arf_1.j7y_1; suspendResult = this.ere_1.ir1_1.po1(tmp_21, 6677, this.arf_1.l7y_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: this.hd_1 = 9; continue $sm; case 11: Napier_getInstance().v5d('onClickSave: done'); this.ere_1.yq1('Course', this.fre_1.e8d_1, this.fre_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).y77 = function (completion) { return new ClazzEditViewModel$onClickSave$slambda(this.ere_1, this.fre_1, this.gre_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.w86($completion); }; l.$arity = 0; return l; } function ClazzEditViewModel$onCourseBlockMoved$slambda(this$0, $newList, resultContinuation) { this.lrf_1 = this$0; this.mrf_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.lrf_1, this.mrf_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.lrf_1, this.mrf_1, completion); i.nrf_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.wrf_1 = this$0; this.xrf_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.wrf_1.jr1_1.t2().tr1_1; suspendResult = updateCourseBlockList(this.wrf_1, replace_0(tmp_0, this.xrf_1, ClazzEditViewModel$updateCourseBlock$slambda$lambda(this.xrf_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.wrf_1, this.xrf_1, completion); i.yrf_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.hrg_1 = this$0; this.irg_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.hrg_1.jr1_1.t2().tr1_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (!element.zjk_1.g7x_1.equals(this.irg_1.zjk_1.g7x_1)) { destination.i1(element); } } suspendResult = updateCourseBlockList(this.hrg_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.hrg_1, this.irg_1, completion); i.jrg_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$62(_this__u8e3s4, newCourseBlockList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nrb_1 = _this__u8e3s4; this.orb_1 = newCourseBlockList; } protoOf($updateCourseBlockListCOROUTINE$62).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.nrb_1.jr1_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vr1(VOID, VOID, VOID, VOID, VOID, VOID, this.orb_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.prb_1 = this.nrb_1.xps_1; this.hd_1 = 1; var tmp_0 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_0, ClazzEditViewModel$updateCourseBlockList$slambda_0(this.nrb_1, this.orb_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.prb_1.app('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)).s57(); // 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.q57(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(onActiveLearningSpace(di)).s57(); // 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.q57(tmp$ret$2, null).fjf_1; // Inline function 'org.kodein.di.instance' call var tmp_6 = get_direct(onActiveLearningSpace(di)).s57(); // 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.q57(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)).s57(); // 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.q57(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)).s57(); // 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.q57(tmp$ret$0_1, null); } else { tmp_11 = enqueueSavePictureUseCase; } enqueueSavePictureUseCase = tmp_11; UstadEditViewModel.call(this, di, savedStateHandle, 'CourseEdit'); this.er1_1 = addOrUpdateCourseBlockUseCase; this.fr1_1 = updateCourseBlocksOnReorderOrCommitUseCase; this.gr1_1 = saveContentEntryUseCase; this.hr1_1 = importContentUseCase; this.ir1_1 = enqueueSavePictureUseCase; this.jr1_1 = MutableStateFlow(new ClazzEditUiState()); this.kr1_1 = asStateFlow(this.jr1_1); var tmp_14 = this; Companion_getInstance_119(); 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.fpu()); Companion_getInstance_4(); tmp_15 = tmp_16.a62(6); } else { tmp_15 = tmp1_elvis_lhs; } tmp_14.lr1_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.mr1_1 = Instance(this_0, tmp$ret$10, null).n5c(this, createNewClazzUseCase$factory()); var title = this.yq2(strings_getInstance().xmt_1, strings_getInstance().zmt_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bpt_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.' call var tmp0_loadingState = Companion_getInstance_89().upc_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.tpu(tmp_19, VOID, VOID, ClazzEditViewModel$slambda_2(savedStateHandle, this, null)); } protoOf(ClazzEditViewModel).mr5 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jr1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onEntityChanged.' call var tmp2_safe_receiver = prevValue.or1_1; var tmp = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.n8d_1; var tmp6_clazzEndDateError = this.zq2(tmp, entity == null ? null : entity.n8d_1, prevValue.qr1_1); var tmp0_safe_receiver = prevValue.or1_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m8d_1; var tmp7_clazzStartDateError = this.zq2(tmp_0, entity == null ? null : entity.m8d_1, prevValue.pr1_1); var tmp4_safe_receiver = prevValue.or1_1; var tmp_1 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.f8d_1; var tmp8_clazzNameError = this.zq2(tmp_1, entity == null ? null : entity.f8d_1, prevValue.rr1_1); var nextValue = prevValue.vr1(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.a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this; var tmp_3 = this.cpu(); tmp_2.vq1_1 = launch(tmp_3, VOID, VOID, ClazzEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzEditViewModel).krg = function (checked) { var tmp0_safe_receiver = this.jr1_1.t2().or1_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = shallowCopy_3(tmp0_safe_receiver, ClazzEditViewModel$onCheckedAttendanceChanged$lambda(checked)); } this.mr5(tmp); }; protoOf(ClazzEditViewModel).lrg = function () { this.ppu('ScheduleEdit', 'Schedule', null, Companion_instance_29.a4r()); }; protoOf(ClazzEditViewModel).mrg = function (schedule) { this.ppu('ScheduleEdit', 'Schedule', schedule, Companion_instance_29.a4r()); }; protoOf(ClazzEditViewModel).nrg = function (schedule) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.jr1_1.t2().sr1_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.hh6_1.equals(schedule.hh6_1)) { destination.i1(element); } } var newSchedules = destination; this.xps_1.app('schedule', this.z4q().e45(ListSerializer(Companion_instance_29.a4r()), newSchedules)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.jr1_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickDeleteSchedule.' call var nextValue = prevValue.vr1(VOID, VOID, VOID, VOID, VOID, newSchedules); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzEditViewModel).org = function (blockType) { if (blockType === 104) { Companion_getInstance_158(); var tmp = Companion_getInstance_13().a4r(); Companion_getInstance_108(); var tmp_0 = to('listMode', ListViewMode_PICKER_getInstance().toString()); Companion_getInstance_108(); var tmp_1 = to('clazzUid', this.lr1_1.toString()); Companion_getInstance_163(); var tmp_2 = to('blockType', (104).toString()); this.ppu('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_163(); 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_163(); this_0.s('blockType', blockType.toString()); Companion_getInstance_108(); this_0.s('clazzUid', this.lr1_1.toString()); if (blockType === 103) { var tmp0_safe_receiver = this.jr1_1.t2().or1_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x8f_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.z4q().e45(Companion_instance_34.a4r(), tmp1_safe_receiver)); } } var tmp2_args = this_0.f3(); var tmp3_serializer = Companion_getInstance_13().a4r(); this.ppu(viewName, keyName, null, tmp3_serializer, tmp2_args); }; protoOf(ClazzEditViewModel).yr9 = function () { var tmp0_elvis_lhs = this.jr1_1.t2().or1_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var initEntity = tmp; if (this.fpx().equals(Companion_getInstance_89().upc_1)) { Napier_getInstance().v5d('onClickSave: indeterminate'); return Unit_instance; } if (initEntity.m8d_1.equals(new Long(0, 0))) { Napier_getInstance().v5d('onClickSave: clazzstarttime = 0'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jr1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickSave.' call var nextValue = prevValue.vr1(VOID, VOID, this.npt().ant(strings_getInstance().sly_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } if (initEntity.n8d_1.c7(initEntity.m8d_1) <= 0) { Napier_getInstance().v5d('onClickSave: endbeforestart'); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.jr1_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.vr1(VOID, VOID, VOID, this.npt().ant(strings_getInstance().dmw_1)); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } // Inline function 'kotlin.text.isNullOrBlank' call var this_2 = initEntity.f8d_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.jr1_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.vr1(VOID, VOID, VOID, VOID, this.npt().ant(strings_getInstance().nmw_1)); if (this_3.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } if (hasErrors(this.jr1_1.t2(), this)) { Napier_getInstance().v5d('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.jr1_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.vr1(VOID, entity); if (this_4.y1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } var tmp_0 = ClazzEditViewModel$onClickSave$lambda_0(this); this.bq3(tmp_0, ClazzEditViewModel$onClickSave$slambda_0(this, entity, initEntity, null)); }; protoOf(ClazzEditViewModel).prg = function (from, to) { // Inline function 'kotlin.apply' call var this_0 = toMutableList(this.jr1_1.t2().tr1_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.fr1_1.aol(reorderedList, to); var tmp = this.cpu(); launch(tmp, VOID, VOID, ClazzEditViewModel$onCourseBlockMoved$slambda_0(this, newList, null)); }; protoOf(ClazzEditViewModel).qrg = function () { Companion_getInstance_108(); var tmp = to('result_key', 'timeZone'); Companion_getInstance_108(); this.zps_1.fog('TimeZoneList', mapOf([tmp, to('result_viewname', this.yps_1)])); }; protoOf(ClazzEditViewModel).rrg = function () { }; protoOf(ClazzEditViewModel).srg = function () { this.ppu('CourseTerminologyList', 'terminology', null, Companion_instance_34.a4r()); }; protoOf(ClazzEditViewModel).trg = function (block) { updateCourseBlock(this, block.ljl(block.zjk_1.mjx(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true))); }; protoOf(ClazzEditViewModel).urg = function (block) { updateCourseBlock(this, block.ljl(block.zjk_1.mjx(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false))); }; protoOf(ClazzEditViewModel).vrg = function (block) { updateCourseBlock(this, block.ljl(block.zjk_1.mjx(VOID, VOID, block.zjk_1.i7x_1 + 1 | 0))); }; protoOf(ClazzEditViewModel).wrg = function (block) { updateCourseBlock(this, block.ljl(block.zjk_1.mjx(VOID, VOID, block.zjk_1.i7x_1 - 1 | 0))); }; protoOf(ClazzEditViewModel).xrg = function (block) { var tmp = this.cpu(); launch(tmp, VOID, VOID, ClazzEditViewModel$onClickDeleteCourseBlock$slambda_0(this, block, null)); }; protoOf(ClazzEditViewModel).yrg = function (block) { var tmp0_subject = block.zjk_1.h7x_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_163(); var tmp1_nextViewName = 'CourseBlockEdit'; var tmp2_key = 'courseblock'; var tmp3_serializer = Companion_getInstance_13().a4r(); this.ppu(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().a4r(); // 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_108(); this_0.s('clazzUid', this.lr1_1.toString()); var tmp0_safe_receiver = this.jr1_1.t2().or1_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x8f_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.z4q().e45(Companion_instance_34.a4r(), tmp1_safe_receiver)); } var tmp7_args = this_0.f3(); this.ppu(tmp4_nextViewName, tmp5_key, block, tmp6_serializer, tmp7_args); } } }; function CourseBlockUiState(block) { this.zrg_1 = block; } protoOf(CourseBlockUiState).arh = function () { var tmp; var tmp_0 = this.zrg_1.zjk_1.h7x_1; if (!(tmp_0 === 100)) { tmp = this.zrg_1.zjk_1.i7x_1 < 3; } else { tmp = false; } return tmp; }; protoOf(CourseBlockUiState).brh = function () { return this.zrg_1.zjk_1.i7x_1 > 0; }; protoOf(CourseBlockUiState).crh = function () { return !this.zrg_1.zjk_1.x7x_1; }; protoOf(CourseBlockUiState).drh = function () { return this.zrg_1.zjk_1.x7x_1; }; function Companion_108() { Companion_instance_157 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.brf_1 = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_7()), new ArrayListSerializer($serializer_getInstance_8()), null]; this.crf_1 = 3; } protoOf(Companion_108).a4r = function () { return $serializer_getInstance_66(); }; var Companion_instance_157; function Companion_getInstance_125() { if (Companion_instance_157 == null) new Companion_108(); return Companion_instance_157; } function $serializer_54() { $serializer_instance_54 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditUiState', this, 8); tmp0_serialDesc.g4f('fieldsEnabled', true); tmp0_serialDesc.g4f('entity', true); tmp0_serialDesc.g4f('clazzStartDateError', true); tmp0_serialDesc.g4f('clazzEndDateError', true); tmp0_serialDesc.g4f('clazzNameError', true); tmp0_serialDesc.g4f('clazzSchedules', true); tmp0_serialDesc.g4f('courseBlockList', true); tmp0_serialDesc.g4f('timeZone', true); this.erh_1 = tmp0_serialDesc; } protoOf($serializer_54).d44 = function () { return this.erh_1; }; protoOf($serializer_54).x4f = function () { var tmp0_cached = Companion_getInstance_125().brf_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_54).f44 = function (decoder) { var tmp0_desc = this.erh_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.v47(tmp0_desc); var tmp13_cached = Companion_getInstance_125().brf_1; if (tmp12_input.k48()) { tmp4_local0 = tmp12_input.x47(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.j48(tmp0_desc, 1, $serializer_getInstance_9(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.h48(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.h48(tmp0_desc, 6, tmp13_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.f48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.x47(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.j48(tmp0_desc, 1, $serializer_getInstance_9(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.h48(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.h48(tmp0_desc, 6, tmp13_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.f48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.w47(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_54).frh = function (encoder, value) { var tmp0_desc = this.erh_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_125().brf_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.nr1_1 === false)) { tmp1_output.b49(tmp0_desc, 0, value.nr1_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.or1_1 == null)) { tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_9(), value.or1_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.pr1_1 == null)) { tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.pr1_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.qr1_1 == null)) { tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.qr1_1); } if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.rr1_1 == null)) { tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.rr1_1); } if (tmp1_output.r49(tmp0_desc, 5) ? true : !equals(value.sr1_1, emptyList())) { tmp1_output.l49(tmp0_desc, 5, tmp2_cached[5], value.sr1_1); } if (tmp1_output.r49(tmp0_desc, 6) ? true : !equals(value.tr1_1, emptyList())) { tmp1_output.l49(tmp0_desc, 6, tmp2_cached[6], value.tr1_1); } if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.ur1_1 === 'UTC')) { tmp1_output.j49(tmp0_desc, 7, value.ur1_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_54).e44 = function (encoder, value) { return this.frh(encoder, value instanceof ClazzEditUiState ? value : THROW_CCE()); }; var $serializer_instance_54; function $serializer_getInstance_66() { if ($serializer_instance_54 == null) new $serializer_54(); return $serializer_instance_54; } function ClazzEditUiState_init_$Init$(seen1, fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_66().erh_1); } if (0 === (seen1 & 1)) $this.nr1_1 = false; else $this.nr1_1 = fieldsEnabled; if (0 === (seen1 & 2)) $this.or1_1 = null; else $this.or1_1 = entity; if (0 === (seen1 & 4)) $this.pr1_1 = null; else $this.pr1_1 = clazzStartDateError; if (0 === (seen1 & 8)) $this.qr1_1 = null; else $this.qr1_1 = clazzEndDateError; if (0 === (seen1 & 16)) $this.rr1_1 = null; else $this.rr1_1 = clazzNameError; if (0 === (seen1 & 32)) $this.sr1_1 = emptyList(); else $this.sr1_1 = clazzSchedules; if (0 === (seen1 & 64)) $this.tr1_1 = emptyList(); else $this.tr1_1 = courseBlockList; if (0 === (seen1 & 128)) $this.ur1_1 = 'UTC'; else $this.ur1_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_125(); 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.nr1_1 = fieldsEnabled; this.or1_1 = entity; this.pr1_1 = clazzStartDateError; this.qr1_1 = clazzEndDateError; this.rr1_1 = clazzNameError; this.sr1_1 = clazzSchedules; this.tr1_1 = courseBlockList; this.ur1_1 = timeZone; } protoOf(ClazzEditUiState).grh = function () { var tmp; var tmp0_safe_receiver = this.or1_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o8d_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).hrh = function (courseBlockAndEditEntities) { return new CourseBlockUiState(courseBlockAndEditEntities); }; protoOf(ClazzEditUiState).irh = function (fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone) { return new ClazzEditUiState(fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone); }; protoOf(ClazzEditUiState).vr1 = function (fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone, $super) { fieldsEnabled = fieldsEnabled === VOID ? this.nr1_1 : fieldsEnabled; entity = entity === VOID ? this.or1_1 : entity; clazzStartDateError = clazzStartDateError === VOID ? this.pr1_1 : clazzStartDateError; clazzEndDateError = clazzEndDateError === VOID ? this.qr1_1 : clazzEndDateError; clazzNameError = clazzNameError === VOID ? this.rr1_1 : clazzNameError; clazzSchedules = clazzSchedules === VOID ? this.sr1_1 : clazzSchedules; courseBlockList = courseBlockList === VOID ? this.tr1_1 : courseBlockList; timeZone = timeZone === VOID ? this.ur1_1 : timeZone; return $super === VOID ? this.irh(fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone) : $super.irh.call(this, fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone); }; protoOf(ClazzEditUiState).toString = function () { return 'ClazzEditUiState(fieldsEnabled=' + this.nr1_1 + ', entity=' + this.or1_1 + ', clazzStartDateError=' + this.pr1_1 + ', clazzEndDateError=' + this.qr1_1 + ', clazzNameError=' + this.rr1_1 + ', clazzSchedules=' + this.sr1_1 + ', courseBlockList=' + this.tr1_1 + ', timeZone=' + this.ur1_1 + ')'; }; protoOf(ClazzEditUiState).hashCode = function () { var result = getBooleanHashCode(this.nr1_1); result = imul(result, 31) + (this.or1_1 == null ? 0 : this.or1_1.hashCode()) | 0; result = imul(result, 31) + (this.pr1_1 == null ? 0 : getStringHashCode(this.pr1_1)) | 0; result = imul(result, 31) + (this.qr1_1 == null ? 0 : getStringHashCode(this.qr1_1)) | 0; result = imul(result, 31) + (this.rr1_1 == null ? 0 : getStringHashCode(this.rr1_1)) | 0; result = imul(result, 31) + hashCode(this.sr1_1) | 0; result = imul(result, 31) + hashCode(this.tr1_1) | 0; result = imul(result, 31) + getStringHashCode(this.ur1_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.nr1_1 === tmp0_other_with_cast.nr1_1)) return false; if (!equals(this.or1_1, tmp0_other_with_cast.or1_1)) return false; if (!(this.pr1_1 == tmp0_other_with_cast.pr1_1)) return false; if (!(this.qr1_1 == tmp0_other_with_cast.qr1_1)) return false; if (!(this.rr1_1 == tmp0_other_with_cast.rr1_1)) return false; if (!equals(this.sr1_1, tmp0_other_with_cast.sr1_1)) return false; if (!equals(this.tr1_1, tmp0_other_with_cast.tr1_1)) return false; if (!(this.ur1_1 === tmp0_other_with_cast.ur1_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.g7x_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.h7x_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.j7x_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.j7x_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.g7x_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.lat_1)) { var blockForStatus = moduleBlockUids.q(element_3.lat_1); if ((blockForStatus == null ? null : isCompleteable(blockForStatus)) === true) { numCompleteableBlocksInModule = numCompleteableBlocksInModule + 1 | 0; } var tmp3_safe_receiver = blockForStatus == null ? null : blockForStatus.r7x_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.pat_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.r7x_1; totalPointsScored = tmp_3 + tmp4_safe_receiver * (tmp1_elvis_lhs == null ? 0.0 : tmp1_elvis_lhs); numBlocksWithScoreResult = numBlocksWithScoreResult + 1 | 0; } if (element_3.nat_1) { numModsComplete = numModsComplete + 1 | 0; } var tmp6_safe_receiver = element_3.oat_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.kat_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.lat_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.h7x_1); } function markFor(_this__u8e3s4, maxPoints) { _init_properties_BlockStatusExt_kt__pb774u(); var scaledMarkVal = _this__u8e3s4.pat_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$63(_this__u8e3s4, params, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.rrh_1 = _this__u8e3s4; this.srh_1 = params; } protoOf($loadCOROUTINE$63).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.rrh_1.w6b(); this.hd_1 = 1; suspendResult = this.rrh_1.zrh_1.c54(this.srh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.trh_1 = suspendResult; this.hd_1 = 2; var tmp_0 = this.rrh_1.ari_1.w7d(); var tmp_1 = this.trh_1; var tmp0_safe_receiver = tmp_1 instanceof Page ? tmp_1 : null; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p53_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.n95_1; var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.s95_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.ej3(this.rrh_1.bri_1, tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs, this.rrh_1.cri_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var blockResults = suspendResult; var tmp3_subject = this.trh_1; var tmp_3; if (tmp3_subject instanceof Page) { var tmp_4 = this.trh_1; var studentListResultCasted = tmp_4 instanceof Page ? tmp_4 : THROW_CCE(); var this_0 = studentListResultCasted.p53_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.kat_1; var tmp0_safe_receiver_2 = item.n95_1; if (tmp_5.equals(tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.s95_1)) { destination_1.i1(element_0); } } destination_0.i1(new StudentAndBlockStatuses(item, destination_1)); } tmp_3 = new Page(destination_0, studentListResultCasted.q53_1, studentListResultCasted.r53_1, studentListResultCasted.s53_1, studentListResultCasted.t53_1); } else { if (tmp3_subject instanceof Error_0) { tmp_3 = new Error_0(this.trh_1.o53_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$64(_this__u8e3s4, params, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lri_1 = _this__u8e3s4; this.mri_1 = params; } protoOf($loadHttpCOROUTINE$64).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.lri_1.zrh_1; tmp_0.nri_1 = isInterface(tmp_1, PagingSourceWithHttpLoader) ? tmp_1 : null; if (this.nri_1 == null) { this.ori_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.nri_1.l6e(this.mri_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.ori_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var tmp1_elvis_lhs = this.ori_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.zrh_1 = studentListPagingSource; this.ari_1 = db; this.bri_1 = clazzUid; this.cri_1 = accountPersonUid; } protoOf(ClazzGradebookPagingSource).pri = function (params, $completion) { var tmp = new $loadCOROUTINE$63(this, params, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookPagingSource).c54 = function (params, $completion) { return this.pri(params, $completion); }; protoOf(ClazzGradebookPagingSource).k6e = function (params, $completion) { var tmp = new $loadHttpCOROUTINE$64(this, params, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookPagingSource).l6e = function (params, $completion) { return this.k6e(params, $completion); }; function ClazzGradebookViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.yri_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda).arj = function (courseBlockList, $completion) { var tmp = this.brj(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.arj((!(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.yri_1.jq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.irk(this.zri_1, this.yri_1.drk_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).brj = function (courseBlockList, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda$slambda(this.yri_1, completion); i.zri_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.arj(courseBlockList, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.rrk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1).aqj = function (it, $completion) { var tmp = this.bqj(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.aqj((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.rrk_1.bpt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.npc(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(ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1).bqj = function (it, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1(this.rrk_1, completion); i.srk_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.aqj(it, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.brl_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.brl_1.hpu().c7d().hcg(this.brl_1.crk_1)); var tmp_1 = ClazzGradebookViewModel$slambda$slambda$slambda$slambda_0(this.brl_1, null); suspendResult = tmp_0.z1b(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.brl_1, completion); i.crl_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.lrl_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.lrl_1.hpu().b7d().o8c(this.lrl_1.crk_1)); var tmp_1 = ClazzGradebookViewModel$slambda$slambda$slambda$slambda_2(this.lrl_1, null); suspendResult = tmp_0.z1b(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.lrl_1, completion); i.mrl_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.vrl_1 = $this_launch; this.wrl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.vrl_1, VOID, VOID, ClazzGradebookViewModel$slambda$slambda$slambda_0(this.wrl_1, null)); launch(this.vrl_1, VOID, VOID, ClazzGradebookViewModel$slambda$slambda$slambda_2(this.wrl_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).y77 = function (completion) { return new ClazzGradebookViewModel$slambda$slambda(this.vrl_1, this.wrl_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.w86($completion); }; l.$arity = 0; return l; } function Companion_109() { this.xrl_1 = 'Gradebook'; } var Companion_instance_158; function Companion_getInstance_126() { return Companion_instance_158; } function sam$kotlinx_coroutines_flow_FlowCollector$0_11(function_0) { this.yrl_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_11).t1d = function (value, $completion) { return this.yrl_1(value, $completion); }; function ClazzGradebookViewModel$studentPagingSource$lambda(this$0) { return function () { var tmp = this$0.hpu().g7d(); return new ClazzGradebookPagingSource(tmp.x92(this$0.crk_1, 1000, 1, '%', 0, this$0.dpu(), systemTimeInMillis()), this$0.fpu(), this$0.crk_1, this$0.dpu()); }; } function ClazzGradebookViewModel$slambda(this$0, resultContinuation) { this.hrm_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.hrm_1.jq4_1, ClazzGradebookViewModel$slambda$slambda_0(this.irm_1, this.hrm_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.hrm_1, completion); i.irm_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_119(); 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.crk_1 = tmp_0; var tmp_1 = this; tmp_1.drk_1 = ClazzGradebookViewModel$studentPagingSource$lambda(this); var tmp_2 = this.cpu(); launch(tmp_2, VOID, VOID, ClazzGradebookViewModel$slambda_0(this, null)); } protoOf(ClazzGradebookViewModel).dq5 = function (searchText) { }; protoOf(ClazzGradebookViewModel).eq5 = 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.erk_1 = courseBlocks; this.frk_1 = results; this.grk_1 = isFullScreen; this.hrk_1 = scale; } protoOf(ClazzGradebookUiState).jrm = function (courseBlocks, results, isFullScreen, scale) { return new ClazzGradebookUiState(courseBlocks, results, isFullScreen, scale); }; protoOf(ClazzGradebookUiState).irk = function (courseBlocks, results, isFullScreen, scale, $super) { courseBlocks = courseBlocks === VOID ? this.erk_1 : courseBlocks; results = results === VOID ? this.frk_1 : results; isFullScreen = isFullScreen === VOID ? this.grk_1 : isFullScreen; scale = scale === VOID ? this.hrk_1 : scale; return $super === VOID ? this.jrm(courseBlocks, results, isFullScreen, scale) : $super.jrm.call(this, courseBlocks, results, isFullScreen, scale); }; protoOf(ClazzGradebookUiState).toString = function () { return 'ClazzGradebookUiState(courseBlocks=' + this.erk_1 + ', results=' + this.frk_1 + ', isFullScreen=' + this.grk_1 + ', scale=' + this.hrk_1 + ')'; }; protoOf(ClazzGradebookUiState).hashCode = function () { var result = hashCode(this.erk_1); result = imul(result, 31) + hashCode(this.frk_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.grk_1) | 0; result = imul(result, 31) + getNumberHashCode(this.hrk_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.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; if (!equals(this.hrk_1, tmp0_other_with_cast.hrk_1)) return false; return true; }; function get_thumbnailUri(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.bck_1; var tmp2_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m7y_1; var tmp; if (tmp2_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.dck_1; tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.uas_1; } else { tmp = tmp2_elvis_lhs; } return tmp; } function maxScoreForBlock(_this__u8e3s4, block) { var blockVal = block.ack_1; var tmp; var tmp_0 = blockVal == null ? null : blockVal.h7x_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.ack_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j7x_1, blockVal.g7x_1)) { var tmp1_safe_receiver = element.ack_1; tmp_2 = !((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r7x_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.ack_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.r7x_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.ack_1; if (equals(tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.j7x_1, blockVal.g7x_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.r7x_1; } return tmp; } function ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda(this$0, resultContinuation) { this.srm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda).urm = function (inviteAndClazz, $completion) { var tmp = this.vrm(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.urm((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.srm_1.bpt_1; while (true) { var prevValue = this_0.t2(); var tmp_0; var tmp0_safe_receiver = this.trm_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z9m_1) == null)) { tmp_0 = Companion_getInstance_89().vpc_1; } else { tmp_0 = Companion_getInstance_89().upc_1; } var nextValue = prevValue.npc(VOID, tmp_0); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.srm_1.rrn_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver_0 = this.trm_1; var nextValue_0 = prevValue_0.yrn(this.trm_1, !((tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.z9m_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).vrm = function (inviteAndClazz, completion) { var i = new ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda(this.srm_1, completion); i.trm_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.urm(inviteAndClazz, $completion); }; l.$arity = 1; return l; } function ClazzInviteRedeemViewModel$lambda$slambda$slambda(this$0, resultContinuation) { this.hro_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda).z77 = function ($completion) { return this.w86($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.hro_1.hpu().r7f().x9l(this.hro_1.urn_1); var tmp_1 = ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda_0(this.hro_1, null); suspendResult = tmp_0.z1b(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).y77 = function (completion) { return new ClazzInviteRedeemViewModel$lambda$slambda$slambda(this.hro_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.w86($completion); }; l.$arity = 0; return l; } function _get_clazzInviteRedeemUseCase__c3cagh($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.trn_1; clazzInviteRedeemUseCase$factory_0(); return this_0.t2(); } function Companion_110() { this.iro_1 = 'ClazzInviteRedeem'; } var Companion_instance_159; function Companion_getInstance_127() { return Companion_instance_159; } function sam$kotlinx_coroutines_flow_FlowCollector$0_12(function_0) { this.jro_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_12).t1d = function (value, $completion) { return this.jro_1(value, $completion); }; function ClazzInviteRedeemViewModel$lambda$slambda(this$0, resultContinuation) { this.sro_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.sro_1.rrn_1, ClazzInviteRedeemViewModel$lambda$slambda$slambda_0(this.sro_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.sro_1, completion); i.tro_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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteredeem.ClazzInviteRedeemViewModel..' call var nextValue = prevValue.npc(VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this$0.cpu(); launch(tmp, VOID, VOID, ClazzInviteRedeemViewModel$lambda$slambda_0(this$0, null)); return Unit_instance; }; } function ClazzInviteRedeemViewModel$processDecision$slambda(this$0, $isAccepting, resultContinuation) { this.crp_1 = this$0; this.drp_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.crp_1.rrn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.yrn(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.crp_1).noo(this.crp_1.urn_1, this.drp_1, this.crp_1.bpu().lnk().yk9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var result = suspendResult; if (result.ooo_1) { this.crp_1.jpu().cpd(new Snack(result.poo_1)); } else { this.crp_1.jpu().cpd(new Snack(result.poo_1)); } Companion_getInstance_132(); this.crp_1.zps_1.npf('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.crp_1.rrn_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_errorText = stringResourceOrMessage(e, this.crp_1.npt()); var nextValue_0 = prevValue_0.yrn(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.crp_1, this.drp_1, completion); i.erp_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.rrn_1 = MutableStateFlow(new ClazzInviteRedeemUiState()); this.srn_1 = asStateFlow(this.rrn_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.trn_1 = Instance(this_0, tmp$ret$0, null).n5c(this, clazzInviteRedeemUseCase$factory()); var tmp_1 = this; Companion_getInstance_119(); 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.urn_1 = tmp_2; Companion_getInstance_119(); var tmp_3 = mapOf_0(to('inviteCode', this.urn_1)); this.vpu(true, tmp_3, ClazzInviteRedeemViewModel$lambda(this)); } protoOf(ClazzInviteRedeemViewModel).frp = function (isAccepting) { // Inline function 'kotlin.takeIf' call var this_0 = this.cpu(); // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteredeem.ClazzInviteRedeemViewModel.processDecision.' call if (this.rrn_1.t2().wrn_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.vrn_1 = clazzInvite; this.wrn_1 = enabled; this.xrn_1 = errorText; } protoOf(ClazzInviteRedeemUiState).grp = function () { var tmp0_safe_receiver = this.vrn_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z9m_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u9m_1; return tmp === 0; }; protoOf(ClazzInviteRedeemUiState).hrp = function () { var tmp; if (this.wrn_1) { var tmp0_safe_receiver = this.vrn_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z9m_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u9m_1; tmp = tmp_0 === 0; } else { tmp = false; } return tmp; }; protoOf(ClazzInviteRedeemUiState).irp = function () { var tmp; var tmp0_safe_receiver = this.vrn_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z9m_1) == null)) { var tmp1_safe_receiver = this.vrn_1.z9m_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u9m_1; tmp = !(tmp_0 === 0); } else { tmp = false; } return tmp; }; protoOf(ClazzInviteRedeemUiState).jrp = function (clazzInvite, enabled, errorText) { return new ClazzInviteRedeemUiState(clazzInvite, enabled, errorText); }; protoOf(ClazzInviteRedeemUiState).yrn = function (clazzInvite, enabled, errorText, $super) { clazzInvite = clazzInvite === VOID ? this.vrn_1 : clazzInvite; enabled = enabled === VOID ? this.wrn_1 : enabled; errorText = errorText === VOID ? this.xrn_1 : errorText; return $super === VOID ? this.jrp(clazzInvite, enabled, errorText) : $super.jrp.call(this, clazzInvite, enabled, errorText); }; protoOf(ClazzInviteRedeemUiState).toString = function () { return 'ClazzInviteRedeemUiState(clazzInvite=' + this.vrn_1 + ', enabled=' + this.wrn_1 + ', errorText=' + this.xrn_1 + ')'; }; protoOf(ClazzInviteRedeemUiState).hashCode = function () { var result = this.vrn_1 == null ? 0 : this.vrn_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.wrn_1) | 0; result = imul(result, 31) + (this.xrn_1 == null ? 0 : getStringHashCode(this.xrn_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.vrn_1, tmp0_other_with_cast.vrn_1)) return false; if (!(this.wrn_1 === tmp0_other_with_cast.wrn_1)) return false; if (!(this.xrn_1 == tmp0_other_with_cast.xrn_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_111() { } var Companion_instance_160; function Companion_getInstance_128() { return Companion_instance_160; } function $serializer_55() { $serializer_instance_55 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.clazz.inviteviaContact.InviteViaContactViewModel.InviteResult', this, 1); tmp0_serialDesc.g4f('inviteSent', false); this.krp_1 = tmp0_serialDesc; } protoOf($serializer_55).d44 = function () { return this.krp_1; }; protoOf($serializer_55).x4f = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_55).f44 = function (decoder) { var tmp0_desc = this.krp_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.v47(tmp0_desc); if (tmp5_input.k48()) { tmp4_local0 = tmp5_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.f48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.w47(tmp0_desc); return InviteResult_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_55).lrp = function (encoder, value) { var tmp0_desc = this.krp_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.j49(tmp0_desc, 0, value.mrp_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_55).e44 = function (encoder, value) { return this.lrp(encoder, value instanceof InviteResult ? value : THROW_CCE()); }; var $serializer_instance_55; function $serializer_getInstance_67() { if ($serializer_instance_55 == null) new $serializer_55(); return $serializer_instance_55; } function InviteResult_init_$Init$(seen1, inviteSent, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_67().krp_1); } $this.mrp_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.irq_1; parseInviteUseCase$factory_0(); return this_0.t2(); } function _get_contactToServerUseCase__1uhl02($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jrq_1; contactToServerUseCase$factory_0(); return this_0.t2(); } function sendContactsToServer($this, contacts, $completion) { var tmp = new $sendContactsToServerCOROUTINE$65($this, contacts, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_112() { this.zrq_1 = 'invite_via_contact'; this.arr_1 = 'person_role'; this.brr_1 = 'clazz_uid'; } var Companion_instance_161; function Companion_getInstance_129() { return Companion_instance_161; } function InviteResult(inviteSent) { this.mrp_1 = inviteSent; } protoOf(InviteResult).toString = function () { return 'InviteResult(inviteSent=' + this.mrp_1 + ')'; }; protoOf(InviteResult).hashCode = function () { return getStringHashCode(this.mrp_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.mrp_1 === tmp0_other_with_cast.mrp_1)) return false; return true; }; function InviteViaContactViewModel$OnClickSend$ref($boundThis) { var l = function () { $boundThis.crr(); return Unit_instance; }; l.callableName = 'OnClickSend'; return l; } function InviteViaContactViewModel$OnClickSend$slambda(this$0, resultContinuation) { this.lrr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(InviteViaContactViewModel$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(InviteViaContactViewModel$OnClickSend$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(InviteViaContactViewModel$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; l$ret$1: do { var this_0 = this.lrr_1.mrq_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vrr(VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.nrr_1 = this.lrr_1.mrq_1.t2().trr_1; if (this.nrr_1.c1()) { this.orr_1 = this.lrr_1.mrq_1.t2().urr_1; var this_1 = this.orr_1; if (!(this_1 == null ? true : isBlank(this_1))) { this.prr_1 = _get_parseInviteUseCase__fcfumo(this.lrr_1).xnr(this.orr_1); this.hd_1 = 4; suspendResult = sendContactsToServer(this.lrr_1, this.prr_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.lrr_1, this.nrr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: var noContactFoundMessage = this.lrr_1.npt().ant(strings_getInstance().rn1_1); l$ret$3: do { var this_2 = this.lrr_1.mrq_1; while (true) { var prevValue_0 = this_2.t2(); var nextValue_0 = prevValue_0.vrr(VOID, noContactFoundMessage); if (this_2.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.lrr_1.wrr(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(InviteViaContactViewModel$OnClickSend$slambda).v1m = function ($this$launch, completion) { var i = new InviteViaContactViewModel$OnClickSend$slambda(this.lrr_1, completion); i.mrr_1 = $this$launch; return i; }; function InviteViaContactViewModel$OnClickSend$slambda_0(this$0, resultContinuation) { var i = new InviteViaContactViewModel$OnClickSend$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function $sendContactsToServerCOROUTINE$65(_this__u8e3s4, contacts, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wrq_1 = _this__u8e3s4; this.xrq_1 = contacts; } protoOf($sendContactsToServerCOROUTINE$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; var this_0 = this.xrq_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.yrr_1) { destination.i1(element); } } tmp_0.yrq_1 = destination; if (this.yrq_1.c1()) { var noValidContactFoundMessage = this.wrq_1.npt().ant(strings_getInstance().qn1_1); l$ret$1: do { var this_1 = this.wrq_1.mrq_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.vrr(VOID, noValidContactFoundMessage); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.wrq_1.wrr(noValidContactFoundMessage); return Unit_instance; } this.hd_1 = 1; var tmp_1 = _get_contactToServerUseCase__1uhl02(this.wrq_1); var this_2 = this.yrq_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.xrr_1); } suspendResult = tmp_1.pop(destination_0, this.wrq_1.krq_1, this.wrq_1.lrq_1, this.wrq_1.bpu().rnj().en4_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var result = suspendResult; var this_3 = Default_getInstance(); var this_4 = this_3.g45(); var this_5 = serializer(this_4, createKType(getKClass(InviteResult), arrayOf([]), false)); var invitation = this_3.f45(isInterface(this_5, KSerializer) ? this_5 : THROW_CCE(), result); this.wrq_1.jpu().cpd(new Snack(invitation.mrp_1)); Companion_getInstance_193(); this.wrq_1.zps_1.opf('People', 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 InviteViaContactViewModel(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.irq_1 = Instance(this, tmp$ret$0, null).n5c(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(ContactToServerUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.jrq_1 = Instance(this_0, tmp$ret$2, null).n5c(this, contactToServerUseCase$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.krq_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.lrq_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; this.mrq_1 = MutableStateFlow(new InviteViaContactUiState()); this.nrq_1 = asStateFlow(this.mrq_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bpt_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviaContact.InviteViaContactViewModel.' call var nextValue = new AppUiState(VOID, VOID, this.npt().ant(strings_getInstance().mn1_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.bpt_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviaContact.InviteViaContactViewModel.' call var tmp_5 = this.npt().ant(strings_getInstance().zlw_1); var nextValue_0 = prevValue_0.npc(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_5, VOID, InviteViaContactViewModel$OnClickSend$ref(this))); if (this_2.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(InviteViaContactViewModel).crr = function () { var tmp = this.cpu(); launch(tmp, VOID, VOID, InviteViaContactViewModel$OnClickSend$slambda_0(this, null)); }; protoOf(InviteViaContactViewModel).wrr = function (error) { this.jpu().cpd(new Snack(error)); }; protoOf(InviteViaContactViewModel).ars = function (text) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.mrq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviaContact.InviteViaContactViewModel.onClickChipSubmit.' call var nextValue = prevValue.vrr(VOID, VOID, VOID, plus(prevValue.trr_1, _get_parseInviteUseCase__fcfumo(this).xnr(text))); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } return last(tmp$ret$1.trr_1); }; protoOf(InviteViaContactViewModel).brs = function (text) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.mrq_1.t2().trr_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.InviteViaContactViewModel.onChipRemoved.' call if (!(element.xrr_1 === text)) { destination.i1(element); } } var newChips = destination; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.mrq_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviaContact.InviteViaContactViewModel.onChipRemoved.' call var nextValue = prevValue.vrr(VOID, VOID, VOID, newChips); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(InviteViaContactViewModel).crs = function (newValue) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.mrq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviaContact.InviteViaContactViewModel.onTextFieldValueChanged.' call var nextValue = prevValue.vrr(VOID, VOID, VOID, VOID, newValue); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; function InviteViaContactUiState(fromContact, contactError, onSendClick, chips, textFieldValue) { fromContact = fromContact === VOID ? null : fromContact; contactError = contactError === VOID ? null : contactError; onSendClick = onSendClick === VOID ? null : onSendClick; chips = chips === VOID ? emptyList() : chips; textFieldValue = textFieldValue === VOID ? null : textFieldValue; this.qrr_1 = fromContact; this.rrr_1 = contactError; this.srr_1 = onSendClick; this.trr_1 = chips; this.urr_1 = textFieldValue; } protoOf(InviteViaContactUiState).drs = function (fromContact, contactError, onSendClick, chips, textFieldValue) { return new InviteViaContactUiState(fromContact, contactError, onSendClick, chips, textFieldValue); }; protoOf(InviteViaContactUiState).vrr = function (fromContact, contactError, onSendClick, chips, textFieldValue, $super) { fromContact = fromContact === VOID ? this.qrr_1 : fromContact; contactError = contactError === VOID ? this.rrr_1 : contactError; onSendClick = onSendClick === VOID ? this.srr_1 : onSendClick; chips = chips === VOID ? this.trr_1 : chips; textFieldValue = textFieldValue === VOID ? this.urr_1 : textFieldValue; return $super === VOID ? this.drs(fromContact, contactError, onSendClick, chips, textFieldValue) : $super.drs.call(this, fromContact, contactError, onSendClick, chips, textFieldValue); }; protoOf(InviteViaContactUiState).toString = function () { return 'InviteViaContactUiState(fromContact=' + this.qrr_1 + ', contactError=' + this.rrr_1 + ', onSendClick=' + this.srr_1 + ', chips=' + this.trr_1 + ', textFieldValue=' + this.urr_1 + ')'; }; protoOf(InviteViaContactUiState).hashCode = function () { var result = this.qrr_1 == null ? 0 : getStringHashCode(this.qrr_1); result = imul(result, 31) + (this.rrr_1 == null ? 0 : getStringHashCode(this.rrr_1)) | 0; result = imul(result, 31) + (this.srr_1 == null ? 0 : getBooleanHashCode(this.srr_1)) | 0; result = imul(result, 31) + hashCode(this.trr_1) | 0; result = imul(result, 31) + (this.urr_1 == null ? 0 : getStringHashCode(this.urr_1)) | 0; return result; }; protoOf(InviteViaContactUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof InviteViaContactUiState)) return false; var tmp0_other_with_cast = other instanceof InviteViaContactUiState ? other : THROW_CCE(); if (!(this.qrr_1 == tmp0_other_with_cast.qrr_1)) return false; if (!(this.rrr_1 == tmp0_other_with_cast.rrr_1)) return false; if (!(this.srr_1 == tmp0_other_with_cast.srr_1)) return false; if (!equals(this.trr_1, tmp0_other_with_cast.trr_1)) return false; if (!(this.urr_1 == tmp0_other_with_cast.urr_1)) return false; return true; }; function InviteViaContactChip(text, isValid, inviteType) { this.xrr_1 = text; this.yrr_1 = isValid; this.zrr_1 = inviteType; } protoOf(InviteViaContactChip).toString = function () { return 'InviteViaContactChip(text=' + this.xrr_1 + ', isValid=' + this.yrr_1 + ', inviteType=' + this.zrr_1 + ')'; }; protoOf(InviteViaContactChip).hashCode = function () { var result = getStringHashCode(this.xrr_1); result = imul(result, 31) + getBooleanHashCode(this.yrr_1) | 0; result = imul(result, 31) + this.zrr_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.xrr_1 === tmp0_other_with_cast.xrr_1)) return false; if (!(this.yrr_1 === tmp0_other_with_cast.yrr_1)) return false; if (!(this.zrr_1 === tmp0_other_with_cast.zrr_1)) return false; return true; }; function parseInviteUseCase$factory() { return getPropertyCallableRef('parseInviteUseCase', 1, KProperty1, function (receiver) { return _get_parseInviteUseCase__fcfumo(receiver); }, null); } function contactToServerUseCase$factory() { return getPropertyCallableRef('contactToServerUseCase', 1, KProperty1, function (receiver) { return _get_contactToServerUseCase__1uhl02(receiver); }, null); } function parseInviteUseCase$factory_0() { return getPropertyCallableRef('parseInviteUseCase', 1, KProperty1, function (receiver) { return _get_parseInviteUseCase__fcfumo(receiver); }, null); } function contactToServerUseCase$factory_0() { return getPropertyCallableRef('contactToServerUseCase', 1, KProperty1, function (receiver) { return _get_contactToServerUseCase__1uhl02(receiver); }, null); } function _get_makeLinkUseCase__qbv742($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.brt_1; makeLinkUseCase$factory_0(); return this_0.t2(); } function _get_setClipboardStringUseCase__31i1s1_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.drt_1; setClipboardStringUseCase$factory_2(); return this_0.t2(); } function _get_shareTextUseCase__god44g($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ert_1; shareTextUseCase$factory_0(); return this_0.t2(); } function Companion_113() { this.grt_1 = 'InviteWithLink'; } var Companion_instance_162; function Companion_getInstance_130() { return Companion_instance_162; } function InviteViaLinkViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'InviteWithLink'); this.zrs_1 = MutableStateFlow(new InviteViaLinkUiState()); this.art_1 = asStateFlow(this.zrs_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.brt_1 = Instance(this_0, tmp$ret$0, null).n5c(this, makeLinkUseCase$factory()); var tmp_1 = this; Companion_getInstance_119(); 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.crt_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.drt_1 = Instance(this, tmp$ret$2, null).n5c(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.ert_1 = InstanceOrNull(this, tmp$ret$4, null).n5c(this, shareTextUseCase$factory()); var tmp_7 = this; var tmp_8 = _get_makeLinkUseCase__qbv742(this); Companion_getInstance_119(); tmp_7.frt_1 = tmp_8.ioq('JoinWithCode', mapOf_0(to('inviteCode', this.crt_1))); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bpt_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.invitevialink.InviteViaLinkViewModel.' call var nextValue = prevValue.npc(VOID, VOID, this.npt().ant(strings_getInstance().omj_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.zrs_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.invitevialink.InviteViaLinkViewModel.' call var nextValue_0 = prevValue_0.jrt(this.frt_1, !(_get_shareTextUseCase__god44g(this) == null)); if (this_2.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(InviteViaLinkViewModel).krt = function () { _get_setClipboardStringUseCase__31i1s1_0(this).kob(this.frt_1); this.jpu().cpd(new Snack(this.npt().ant(strings_getInstance().jmj_1))); }; function InviteViaLinkUiState(inviteLink, showShareLinkButton) { inviteLink = inviteLink === VOID ? null : inviteLink; showShareLinkButton = showShareLinkButton === VOID ? false : showShareLinkButton; this.hrt_1 = inviteLink; this.irt_1 = showShareLinkButton; } protoOf(InviteViaLinkUiState).jrt = function (inviteLink, showShareLinkButton) { return new InviteViaLinkUiState(inviteLink, showShareLinkButton); }; protoOf(InviteViaLinkUiState).toString = function () { return 'InviteViaLinkUiState(inviteLink=' + this.hrt_1 + ', showShareLinkButton=' + this.irt_1 + ')'; }; protoOf(InviteViaLinkUiState).hashCode = function () { var result = this.hrt_1 == null ? 0 : getStringHashCode(this.hrt_1); result = imul(result, 31) + getBooleanHashCode(this.irt_1) | 0; return result; }; protoOf(InviteViaLinkUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof InviteViaLinkUiState)) return false; var tmp0_other_with_cast = other instanceof InviteViaLinkUiState ? other : THROW_CCE(); if (!(this.hrt_1 == tmp0_other_with_cast.hrt_1)) return false; if (!(this.irt_1 === tmp0_other_with_cast.irt_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.iru_1; requestEnrolmentUseCase$factory_0(); return this_0.t2(); } function Companion_114() { this.jru_1 = 'JoinWithCode'; } var Companion_instance_163; function Companion_getInstance_131() { return Companion_instance_163; } function JoinWithCodeViewModel$lambda(this$0) { return function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel..' call var nextValue = prevValue.npc(VOID, VOID, this$0.npt().ant(strings_getInstance().ymt_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.gru_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel.onClickJoin..' call var nextValue = prevValue.nru(VOID, VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function JoinWithCodeViewModel$onClickJoin$slambda(this$0, resultContinuation) { this.wru_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(JoinWithCodeViewModel$onClickJoin$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(JoinWithCodeViewModel$onClickJoin$slambda).z77 = function ($completion) { return this.w86($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.wru_1); var tmp_1 = this.wru_1.gru_1.t2().lru_1; var tmp_2 = this.wru_1.bpu().rnj().en4_1; suspendResult = tmp_0.job(tmp_1, tmp_2, 1000, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.wru_1.jpu().cpd(new Snack(this.wru_1.npt().ant(strings_getInstance().ymx_1))); if (!(this.wru_1.lpu() == null)) { this.wru_1.zq1(null); } else { Companion_getInstance_132(); this.wru_1.zps_1.npf('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().emz_1; } else { if (e instanceof AlreadyHasPendingRequestException) { tmp_4 = strings_getInstance().xmx_1; } else { if (e instanceof AlreadyEnroledInClassException) { tmp_4 = strings_getInstance().kml_1; } else { tmp_4 = strings_getInstance().vlt_1; } } } var errorMessage = tmp_4; l$ret$1: do { var this_0 = this.wru_1.gru_1; while (true) { var prevValue = this_0.t2(); var tmp_5 = this.wru_1.npt().ant(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.nru(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).y77 = function (completion) { return new JoinWithCodeViewModel$onClickJoin$slambda(this.wru_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.w86($completion); }; l.$arity = 0; return l; } function JoinWithCodeViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'JoinWithCode'); var tmp = this; Companion_getInstance_119(); var tmp0_elvis_lhs = savedStateHandle.ba('inviteCode'); tmp.gru_1 = MutableStateFlow(new JoinWithCodeUiState(VOID, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs)); this.hru_1 = asStateFlow(this.gru_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.iru_1 = Instance(this_0, tmp$ret$0, null).n5c(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_119(); this.upu(this_1, 'inviteCode'); var tmp_2 = this_1.f3(); this.wpu(VOID, tmp_2, JoinWithCodeViewModel$lambda(this)); } protoOf(JoinWithCodeViewModel).xru = function (codeVal) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gru_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel.onCodeValueChange.' call var nextValue = prevValue.nru(null, codeVal); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(JoinWithCodeViewModel).yru = function () { var tmp = JoinWithCodeViewModel$onClickJoin$lambda(this); this.bq3(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.kru_1 = codeError; this.lru_1 = code; this.mru_1 = fieldsEnabled; } protoOf(JoinWithCodeUiState).zru = function (codeError, code, fieldsEnabled) { return new JoinWithCodeUiState(codeError, code, fieldsEnabled); }; protoOf(JoinWithCodeUiState).nru = function (codeError, code, fieldsEnabled, $super) { codeError = codeError === VOID ? this.kru_1 : codeError; code = code === VOID ? this.lru_1 : code; fieldsEnabled = fieldsEnabled === VOID ? this.mru_1 : fieldsEnabled; return $super === VOID ? this.zru(codeError, code, fieldsEnabled) : $super.zru.call(this, codeError, code, fieldsEnabled); }; protoOf(JoinWithCodeUiState).toString = function () { return 'JoinWithCodeUiState(codeError=' + this.kru_1 + ', code=' + this.lru_1 + ', fieldsEnabled=' + this.mru_1 + ')'; }; protoOf(JoinWithCodeUiState).hashCode = function () { var result = this.kru_1 == null ? 0 : getStringHashCode(this.kru_1); result = imul(result, 31) + getStringHashCode(this.lru_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.mru_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.kru_1 == tmp0_other_with_cast.kru_1)) return false; if (!(this.lru_1 === tmp0_other_with_cast.lru_1)) return false; if (!(this.mru_1 === tmp0_other_with_cast.mru_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.irv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda$slambda).kpl = function (hasPermission, $completion) { var tmp = this.lpl(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.kpl((!(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.irv_1.jq4_1; while (true) { var prevValue = this_0.t2(); var tmp0_newClazzListOptionVisible = this.jrv_1 ? this.irv_1.oq4().equals(ListViewMode_PICKER_getInstance()) : false; var nextValue = prevValue.vrv(tmp0_newClazzListOptionVisible, VOID, VOID, VOID, VOID, VOID, this.jrv_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).lpl = function (hasPermission, completion) { var i = new ClazzListViewModel$slambda$slambda$slambda(this.irv_1, completion); i.jrv_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.kpl(hasPermission, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$slambda$slambda(this$0, resultContinuation) { this.erw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzListViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.erw_1.hpu().c7f(); var tmp_1 = this.erw_1.bpu().lnk().yk9_1; PermissionFlags_getInstance(); var tmp_2 = distinctUntilChanged(tmp_0.mhr(tmp_1, new Long(512, 0))); var tmp_3 = ClazzListViewModel$slambda$slambda$slambda_0(this.erw_1, null); suspendResult = tmp_2.z1b(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).y77 = function (completion) { return new ClazzListViewModel$slambda$slambda(this.erw_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.w86($completion); }; l.$arity = 0; return l; } function ClazzListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.nrw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda$slambda_1).prw = function (it, $completion) { var tmp = this.qrw(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.prw((!(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.nrw_1.jq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vrv(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.orw_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).qrw = function (it, completion) { var i = new ClazzListViewModel$slambda$slambda$slambda_1(this.nrw_1, completion); i.orw_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.prw(it, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.zrw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda_1).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzListViewModel$slambda$slambda_1).z77 = function ($completion) { return this.w86($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.zrw_1.hpu().a7f(); var tmp_1 = this.zrw_1.dpu(); var tmp_2 = tmp_0.mes(tmp_1, 1); var tmp_3 = ClazzListViewModel$slambda$slambda$slambda_2(this.zrw_1, null); suspendResult = tmp_2.z1b(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).y77 = function (completion) { return new ClazzListViewModel$slambda$slambda_1(this.zrw_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.w86($completion); }; l.$arity = 0; return l; } function Companion_115() { Companion_instance_164 = this; this.arx_1 = 'CourseList'; this.brx_1 = 'CourseListHome'; this.crx_1 = listOf(['CourseList', 'CourseListHome']); this.drx_1 = 'excludeAlreadySelectedClazzList'; } var Companion_instance_164; function Companion_getInstance_132() { if (Companion_instance_164 == null) new Companion_115(); return Companion_instance_164; } function sam$kotlinx_coroutines_flow_FlowCollector$0_13(function_0) { this.erx_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_13).t1d = function (value, $completion) { return this.erx_1(value, $completion); }; function ClazzListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.hpu().b7d().j8c(toQueryLikeParam(this$0.bpt_1.t2().fpc_1.upb_1), this$0.bpu().lnk().yk9_1, this$0.fry_1, this$0.jq4_1.t2().nrv_1.spi_1, this$0.jq4_1.t2().prv_1, systemTimeInMillis(), this$0.gry_1); }; } function ClazzListViewModel$slambda(this$0, resultContinuation) { this.qry_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.qry_1.jq4_1, ClazzListViewModel$slambda$slambda_0(this.qry_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.qry_1, completion); i.rry_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.arz_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.arz_1.jq4_1, ClazzListViewModel$slambda$slambda_2(this.arz_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.arz_1, completion); i.brz_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.krz_1 = this$0; this.lrz_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.krz_1.hpu().a7f(); var tmp_1 = this.lrz_1.det_1; suspendResult = tmp_0.nes(tmp_1, 4, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.krz_1.jpu().cpd(new Snack(this.krz_1.npt().ant(strings_getInstance().zmx_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.krz_1, this.lrz_1, completion); i.mrz_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_132(); 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.fry_1 = tmp_2; var tmp_3 = this; Companion_getInstance_108(); 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.gry_1 = tmp_4; var tmp_5 = this; tmp_5.hry_1 = ClazzListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.' call var tmp0_searchState = this.sq5(); var tmp1_title = this.aq6(strings_getInstance().kmt_1, strings_getInstance().kmt_1); var tmp2_fabState = this.vq5(!this.dpu().equals(new Long(0, 0)), strings_getInstance().lmt_1); var nextValue = prevValue.npc(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.jq4_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.npt().ant(get_dayStringResource(element_0)); result.s(element_0, tmp$ret$11); } var tmp1_clazzList = this.hry_1; var nextValue_0 = prevValue_0.vrv(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.cpu(); launch(tmp_6, VOID, VOID, ClazzListViewModel$slambda_0(this, null)); var tmp_7 = this.cpu(); launch(tmp_7, VOID, VOID, ClazzListViewModel$slambda_2(this, null)); } protoOf(ClazzListViewModel).dq5 = function (searchText) { this.lq4_1.i1h(new RefreshCommand()); }; protoOf(ClazzListViewModel).eq5 = function () { this.xq5('CourseEdit'); }; protoOf(ClazzListViewModel).nrz = function () { Companion_getInstance_108(); Companion_getInstance_4(); this.zps_1.fog('JoinWithCode', mapOf_0(to('argCodeTable', (6).toString()))); }; protoOf(ClazzListViewModel).orz = function (entry) { this.zq5('Course', entry.e8d_1, entry); }; protoOf(ClazzListViewModel).prz = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.onSortOrderChanged.' call var nextValue = prevValue.vrv(VOID, VOID, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.lq4_1.i1h(new RefreshCommand()); }; protoOf(ClazzListViewModel).qrz = function (filterOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.onClickFilterChip.' call var nextValue = prevValue.vrv(VOID, VOID, VOID, VOID, VOID, filterOption.qpd_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.lq4_1.i1h(new RefreshCommand()); }; protoOf(ClazzListViewModel).rrz = function (enrolmentRequest) { var tmp = this.cpu(); launch(tmp, VOID, VOID, ClazzListViewModel$onClickCancelEnrolmentRequest$slambda_0(this, enrolmentRequest, null)); }; function Companion_116() { Companion_instance_165 = this; var tmp = this; var tmp_0 = strings_getInstance().plv_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().plv_1; var tmp_3 = new SortOrderOption(tmp_2, 2, false); var tmp_4 = strings_getInstance().llw_1; var tmp_5 = new SortOrderOption(tmp_4, 3, true); var tmp_6 = strings_getInstance().llw_1; tmp.srz_1 = listOf([tmp_1, tmp_3, tmp_5, new SortOrderOption(tmp_6, 4, false)]); } var Companion_instance_165; function Companion_getInstance_133() { if (Companion_instance_165 == null) new Companion_116(); return Companion_instance_165; } function ClazzListUiState$_init_$lambda_r0y0x0() { return new EmptyPagingSource(); } function ClazzListUiState(newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow) { Companion_getInstance_133(); 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_133().srz_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().amu_1; tmp_1 = listOf([new MessageIdOption2(tmp_2, 5), new MessageIdOption2(strings_getInstance().rma_1, 0)]); } else { tmp_1 = filterOptions; } filterOptions = tmp_1; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.dlp(), Companion_getInstance_9().clt()) : localDateTimeNow; this.krv_1 = newClazzListOptionVisible; this.lrv_1 = clazzList; this.mrv_1 = sortOptions; this.nrv_1 = activeSortOrderOption; this.orv_1 = fieldsEnabled; this.prv_1 = selectedChipId; this.qrv_1 = canAddNewCourse; this.rrv_1 = pendingEnrolments; this.srv_1 = filterOptions; this.trv_1 = dayOfWeekStrings; this.urv_1 = localDateTimeNow; } protoOf(ClazzListUiState).trz = 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).vrv = function (newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow, $super) { newClazzListOptionVisible = newClazzListOptionVisible === VOID ? this.krv_1 : newClazzListOptionVisible; clazzList = clazzList === VOID ? this.lrv_1 : clazzList; sortOptions = sortOptions === VOID ? this.mrv_1 : sortOptions; activeSortOrderOption = activeSortOrderOption === VOID ? this.nrv_1 : activeSortOrderOption; fieldsEnabled = fieldsEnabled === VOID ? this.orv_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.prv_1 : selectedChipId; canAddNewCourse = canAddNewCourse === VOID ? this.qrv_1 : canAddNewCourse; pendingEnrolments = pendingEnrolments === VOID ? this.rrv_1 : pendingEnrolments; filterOptions = filterOptions === VOID ? this.srv_1 : filterOptions; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.trv_1 : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? this.urv_1 : localDateTimeNow; return $super === VOID ? this.trz(newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow) : $super.trz.call(this, newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow); }; protoOf(ClazzListUiState).toString = function () { return 'ClazzListUiState(newClazzListOptionVisible=' + this.krv_1 + ', clazzList=' + this.lrv_1 + ', sortOptions=' + this.mrv_1 + ', activeSortOrderOption=' + this.nrv_1 + ', fieldsEnabled=' + this.orv_1 + ', selectedChipId=' + this.prv_1 + ', canAddNewCourse=' + this.qrv_1 + ', pendingEnrolments=' + this.rrv_1 + ', filterOptions=' + this.srv_1 + ', dayOfWeekStrings=' + this.trv_1 + ', localDateTimeNow=' + this.urv_1 + ')'; }; protoOf(ClazzListUiState).hashCode = function () { var result = getBooleanHashCode(this.krv_1); result = imul(result, 31) + hashCode(this.lrv_1) | 0; result = imul(result, 31) + hashCode(this.mrv_1) | 0; result = imul(result, 31) + this.nrv_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.orv_1) | 0; result = imul(result, 31) + this.prv_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.qrv_1) | 0; result = imul(result, 31) + hashCode(this.rrv_1) | 0; result = imul(result, 31) + hashCode(this.srv_1) | 0; result = imul(result, 31) + hashCode(this.trv_1) | 0; result = imul(result, 31) + this.urv_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.krv_1 === tmp0_other_with_cast.krv_1)) return false; if (!equals(this.lrv_1, tmp0_other_with_cast.lrv_1)) return false; if (!equals(this.mrv_1, tmp0_other_with_cast.mrv_1)) return false; if (!this.nrv_1.equals(tmp0_other_with_cast.nrv_1)) return false; if (!(this.orv_1 === tmp0_other_with_cast.orv_1)) return false; if (!(this.prv_1 === tmp0_other_with_cast.prv_1)) return false; if (!(this.qrv_1 === tmp0_other_with_cast.qrv_1)) return false; if (!equals(this.rrv_1, tmp0_other_with_cast.rrv_1)) return false; if (!equals(this.srv_1, tmp0_other_with_cast.srv_1)) return false; if (!equals(this.trv_1, tmp0_other_with_cast.trv_1)) return false; if (!this.urv_1.equals(tmp0_other_with_cast.urv_1)) return false; return true; }; function CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda).es0 = function (entity, permissions, $completion) { var tmp = this.fs0(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.es0(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.cs0_1; var tmp_0; if (this.ds0_1.adi_1) { tmp_0 = this_0; } else { tmp_0 = null; } return new Pair(tmp_0, this.ds0_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda).fs0 = function (entity, permissions, completion) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda(completion); i.cs0_1 = entity; i.ds0_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.es0(entity, permissions, $completion); }; l.$arity = 2; return l; } function CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.os0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1).vs0 = function (it, $completion) { var tmp = this.ws0(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.vs0(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.qs0_1 = this.ps0_1; this.rs0_1 = this.qs0_1.y6(); this.ss0_1 = this.qs0_1.z6(); this.ts0_1 = this.ss0_1; this.us0_1 = this.ts0_1.z6(); l$ret$1: do { var this_0 = this.os0_1.ts1_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (!(this.rs0_1 == null)) { tmp_0 = CoursePermissionConstants_getInstance().zqj_1; } else { tmp_0 = emptyList(); } var nextValue = prevValue.ys1(this.rs0_1, tmp_0); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.os0_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.npc(prevValue_0.ypb_1.tpc(this.us0_1)); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); if (!(this.rs0_1 == null)) { this.hd_1 = 1; suspendResult = getTitleForCoursePermission(this.os0_1, this.rs0_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.os0_1.bpt_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.npc(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).ws0 = function (it, completion) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this.os0_1, completion); i.ps0_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.vs0(it, $completion); }; l.$arity = 1; return l; } function CoursePermissionDetailViewModel$slambda$slambda$slambda($entityFlow, $permissionFlow, this$0, resultContinuation) { this.hs2_1 = $entityFlow; this.is2_1 = $permissionFlow; this.js2_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.hs2_1, this.is2_1, CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_0(null))); suspendResult = collectLatest(tmp_0, CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_2(this.js2_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.hs2_1, this.is2_1, this.js2_1, completion); i.ks2_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.ts2_1 = $this_launch; this.us2_1 = $entityFlow; this.vs2_1 = $permissionFlow; this.ws2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.ts2_1, VOID, VOID, CoursePermissionDetailViewModel$slambda$slambda$slambda_0(this.us2_1, this.vs2_1, this.ws2_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).y77 = function (completion) { return new CoursePermissionDetailViewModel$slambda$slambda(this.ts2_1, this.us2_1, this.vs2_1, this.ws2_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.w86($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_119(); var tmp0_safe_receiver = $this.ts1_1.t2().ws1_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sdf_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_119(); $this.upu(this_0, 'clazzUid'); var tmp$ret$2 = this_0.f3(); $this.zps_1.fog('CoursePermissionEdit', tmp$ret$2); } function Companion_117() { this.xs2_1 = 'CoursePermissionDetail'; } var Companion_instance_166; function Companion_getInstance_134() { return Companion_instance_166; } 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.gs3_1 = this$0; this.hs3_1 = $entityFlow; this.is3_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.gs3_1.ts1_1, CoursePermissionDetailViewModel$slambda$slambda_0(this.js3_1, this.hs3_1, this.is3_1, this.gs3_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.gs3_1, this.hs3_1, this.is3_1, completion); i.js3_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.ts1_1 = MutableStateFlow(new CoursePermissionDetailUiState()); this.us1_1 = asStateFlow(this.ts1_1); var tmp = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.vs1_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var entityFlow = this.hpu().b7f().c7s(this.dpx_1, this.vs1_1); var tmp_0 = this.hpu().b7f(); var tmp_1 = this.dpu(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var permissionFlow = tmp_0.zde(tmp_1, this.vs1_1, tmp_2, new Long(2, 0)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissiondetail.CoursePermissionDetailViewModel.' call var tmp_3 = this.npt().ant(strings_getInstance().lm6_1); var tmp_4 = FabIcon_EDIT_getInstance(); var nextValue = prevValue.npc(new FabUiState(VOID, tmp_3, tmp_4, CoursePermissionDetailViewModel$onClickEdit$ref(this))); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_5 = this.cpu(); 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.ws1_1 = coursePermission; this.xs1_1 = permissionLabels; } protoOf(CoursePermissionDetailUiState).ys1 = function (coursePermission, permissionLabels) { return new CoursePermissionDetailUiState(coursePermission, permissionLabels); }; protoOf(CoursePermissionDetailUiState).toString = function () { return 'CoursePermissionDetailUiState(coursePermission=' + this.ws1_1 + ', permissionLabels=' + this.xs1_1 + ')'; }; protoOf(CoursePermissionDetailUiState).hashCode = function () { var result = this.ws1_1 == null ? 0 : this.ws1_1.hashCode(); result = imul(result, 31) + hashCode(this.xs1_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.ws1_1, tmp0_other_with_cast.ws1_1)) return false; if (!equals(this.xs1_1, tmp0_other_with_cast.xs1_1)) return false; return true; }; function CoursePermissionEditViewModel$slambda$slambda(this$0, resultContinuation) { this.ss3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda$slambda).us3 = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.us3(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.ts3_1.b7f().vde(this.ss3_1.wq1_1, this.ss3_1.us4_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).pn8 = function (db, completion) { var i = new CoursePermissionEditViewModel$slambda$slambda(this.ss3_1, completion); i.ts3_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.us3(db, $completion); }; l.$arity = 1; return l; } function CoursePermissionEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.ds5_1 = this$0; this.es5_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda$slambda_1).ldl = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$slambda$slambda_1).z77 = function ($completion) { return this.ldl($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.ds5_1.fpu()); Companion_getInstance_5(); suspendResult = tmp_0.b62(10012, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; Companion_getInstance_119(); var tmp0_safe_receiver = this.es5_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.es5_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_119(); var tmp4_safe_receiver = this.es5_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).y77 = function (completion) { return new CoursePermissionEditViewModel$slambda$slambda_1(this.ds5_1, this.es5_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.ldl($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.ss4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel...' call var nextValue = prevValue.is5(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CoursePermissionEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function CoursePermissionEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation) { this.rs5_1 = this$0; this.ss5_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$onClickSave$slambda$slambda).on8 = function (it, $completion) { var tmp = this.pn8(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.on8(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.rs5_1.hpu().b7f().wde(this.ss5_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).pn8 = function (it, completion) { var i = new CoursePermissionEditViewModel$onClickSave$slambda$slambda(this.rs5_1, this.ss5_1, completion); i.ts5_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.on8(it, $completion); }; l.$arity = 1; return l; } function Companion_118() { this.us5_1 = 'CoursePermissionEdit'; this.vs5_1 = 'grantToRole'; } var Companion_instance_167; function Companion_getInstance_135() { return Companion_instance_167; } function CoursePermissionEditViewModel$slambda(this$0, resultContinuation) { this.es6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda).krc = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$slambda).he = function (p1, $completion) { return this.krc(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.fs6_1.b7f(); var tmp_1 = this.es6_1.dpu(); PermissionFlags_getInstance(); suspendResult = tmp_0.cdf(tmp_1, this.es6_1.us4_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).pn8 = function (it, completion) { var i = new CoursePermissionEditViewModel$slambda(this.es6_1, completion); i.fs6_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.krc(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.ss4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel..' call var nextValue = prevValue.is5(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CoursePermissionEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.os6_1 = this$0; this.ps6_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().a4r(); var tmp_1 = CoursePermissionEditViewModel$slambda$slambda_0(this.os6_1, null); var tmp_2 = CoursePermissionEditViewModel$slambda$slambda_2(this.os6_1, this.ps6_1, null); suspendResult = this.os6_1.rpu(tmp_0, VOID, VOID, tmp_1, tmp_2, CoursePermissionEditViewModel$slambda$lambda(this.os6_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.rs6_1 = suspendResult; this.hd_1 = 2; suspendResult = getTitleForCoursePermission(this.os6_1, this.rs6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var title = suspendResult; l$ret$1: do { var this_0 = this.os6_1.bpt_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.os6_1.npt().ant(strings_getInstance().zmd_1); var nextValue = prevValue.npc(VOID, VOID, title, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, CoursePermissionEditViewModel$onClickSave$ref(this.os6_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.os6_1.ss4_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.is5(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.os6_1, this.ps6_1, completion); i.qs6_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.ss4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.onClickSave..' call var nextValue = prevValue.is5(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CoursePermissionEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.as7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$onClickSave$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda).z77 = function ($completion) { return this.w86($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.as7_1.ss4_1.t2().fs5_1; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.bs7_1 = tmp_1; this.hd_1 = 1; var tmp_2 = this.as7_1.hpu(); suspendResult = withDoorTransactionAsync(tmp_2, VOID, CoursePermissionEditViewModel$onClickSave$slambda$slambda_0(this.as7_1, this.bs7_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Companion_getInstance_108(); var popUpToOnFinish = this.as7_1.xps_1.ba('popUpToOnFinish'); if (!(popUpToOnFinish == null)) { this.as7_1.zps_1.opf(popUpToOnFinish, false); } else { this.as7_1.yq1('CoursePermissionDetail', this.bs7_1.sdf_1, this.bs7_1); } return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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).y77 = function (completion) { return new CoursePermissionEditViewModel$onClickSave$slambda(this.as7_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.w86($completion); }; l.$arity = 0; return l; } function CoursePermissionEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'CoursePermissionEdit'); this.ss4_1 = MutableStateFlow(new CoursePermissionEditUiState()); this.ts4_1 = asStateFlow(this.ss4_1); var tmp = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.us4_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.ss4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.' call var nextValue = prevValue.is5(VOID, VOID, CoursePermissionConstants_getInstance().zqj_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bpt_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.' call var nextValue_0 = prevValue_0.npc(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.tpu(tmp_0, VOID, tmp_1, CoursePermissionEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(CoursePermissionEditViewModel).cs7 = function (flag) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ss4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.onTogglePermission.' call var entityVal = prevValue.fs5_1; var tmp; if (!(entityVal == null)) { tmp = prevValue.is5(entityVal.hjy(VOID, VOID, VOID, VOID, VOID, VOID, toggleFlag(entityVal.ydf_1, flag))); } else { tmp = prevValue; } var nextValue = tmp; if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(CoursePermissionEditViewModel).yr9 = function () { var tmp = CoursePermissionEditViewModel$onClickSave$lambda(this); this.bq3(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.fs5_1 = entity; this.gs5_1 = fieldsEnabled; this.hs5_1 = permissionLabels; } protoOf(CoursePermissionEditUiState).ds7 = function (entity, fieldsEnabled, permissionLabels) { return new CoursePermissionEditUiState(entity, fieldsEnabled, permissionLabels); }; protoOf(CoursePermissionEditUiState).is5 = function (entity, fieldsEnabled, permissionLabels, $super) { entity = entity === VOID ? this.fs5_1 : entity; fieldsEnabled = fieldsEnabled === VOID ? this.gs5_1 : fieldsEnabled; permissionLabels = permissionLabels === VOID ? this.hs5_1 : permissionLabels; return $super === VOID ? this.ds7(entity, fieldsEnabled, permissionLabels) : $super.ds7.call(this, entity, fieldsEnabled, permissionLabels); }; protoOf(CoursePermissionEditUiState).toString = function () { return 'CoursePermissionEditUiState(entity=' + this.fs5_1 + ', fieldsEnabled=' + this.gs5_1 + ', permissionLabels=' + this.hs5_1 + ')'; }; protoOf(CoursePermissionEditUiState).hashCode = function () { var result = this.fs5_1 == null ? 0 : this.fs5_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.gs5_1) | 0; result = imul(result, 31) + hashCode(this.hs5_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.fs5_1, tmp0_other_with_cast.fs5_1)) return false; if (!(this.gs5_1 === tmp0_other_with_cast.gs5_1)) return false; if (!equals(this.hs5_1, tmp0_other_with_cast.hs5_1)) return false; return true; }; function CoursePermissionListViewModel$slambda$slambda$slambda$lambda() { return new EmptyPagingSource(); } function CoursePermissionListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.ms7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$slambda$slambda$slambda).os7 = function (it, $completion) { var tmp = this.ps7(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.os7(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.ns7_1; var hasViewPermission = tmp0_container.y6(); var hasEditPermission = tmp0_container.z6(); l$ret$1: do { var this_0 = this.ms7_1.jq4_1; while (true) { var prevValue = this_0.t2(); var tmp1_permissionLabels = CoursePermissionConstants_getInstance().zqj_1; var this_1 = this.ms7_1.rs8_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.ws8(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.ms7_1.bpt_1; while (true) { var prevValue_0 = this_2.t2(); var nextValue_0 = prevValue_0.npc(prevValue_0.ypb_1.tpc(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).ps7 = function (it, completion) { var i = new CoursePermissionListViewModel$slambda$slambda$slambda(this.ms7_1, completion); i.ns7_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.os7(it, $completion); }; l.$arity = 1; return l; } function CoursePermissionListViewModel$slambda$slambda(this$0, resultContinuation) { this.fs9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionListViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.fs9_1.hpu().b7f(); var tmp_1 = this.fs9_1.dpu(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.zde(tmp_1, this.fs9_1.qs8_1, tmp_2, new Long(2, 0))); var tmp_4 = CoursePermissionListViewModel$slambda$slambda$slambda_0(this.fs9_1, null); suspendResult = tmp_3.z1b(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).y77 = function (completion) { return new CoursePermissionListViewModel$slambda$slambda(this.fs9_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.w86($completion); }; l.$arity = 0; return l; } function Companion_119() { this.gs9_1 = 'CoursePermissionList'; this.hs9_1 = 'permissionResult'; } var Companion_instance_168; function Companion_getInstance_136() { return Companion_instance_168; } function sam$kotlinx_coroutines_flow_FlowCollector$0_14(function_0) { this.is9_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_14).t1d = function (value, $completion) { return this.is9_1(value, $completion); }; function CoursePermissionListViewModel$pagingSource$lambda(this$0) { return function () { return this$0.hpu().b7f().ude(this$0.qs8_1, false); }; } function CoursePermissionListViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.eq5(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function CoursePermissionListViewModel$slambda(this$0, resultContinuation) { this.rs9_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.rs9_1.jq4_1, CoursePermissionListViewModel$slambda$slambda_0(this.rs9_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.rs9_1, completion); i.ss9_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.bsa_1 = this$0; this.csa_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.bsa_1.hpu().b7f().xc4(this.csa_1.sdf_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.bsa_1, this.csa_1, completion); i.dsa_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_108(); 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.qs8_1 = tmp_0; var tmp_1 = this; tmp_1.rs8_1 = CoursePermissionListViewModel$pagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionlist.CoursePermissionListViewModel.' call var tmp3_title = this.npt().ant(strings_getInstance().dmc_1); var tmp0_text = this.npt().ant(strings_getInstance().dmc_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.npc(tmp4_fabState, VOID, tmp3_title); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.cpu(); launch(tmp_2, VOID, VOID, CoursePermissionListViewModel$slambda_0(this, null)); } protoOf(CoursePermissionListViewModel).dq5 = function (searchText) { }; protoOf(CoursePermissionListViewModel).eq5 = function () { Companion_getInstance_108(); var tmp = to('clazzUid', this.qs8_1.toString()); Companion_getInstance_108(); var goToOnPersonSelectedArg = appendQueryArgs('CoursePermissionEdit', mapOf([tmp, to('popUpToOnFinish', this.yps_1)])); Companion_getInstance_193(); var tmp_0 = Companion_getInstance_5().a4r(); // 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_108(); this_0.s('listMode', ListViewMode_PICKER_getInstance().xpp_1); this_0.s('goToOnPersonSelected', goToOnPersonSelectedArg); var tmp$ret$2 = this_0.f3(); this.ppu('People', 'permissionResult', null, tmp_0, tmp$ret$2); }; protoOf(CoursePermissionListViewModel).esa = 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_119(); this_0.s('entityUid', coursePermission.sdf_1.toString()); Companion_getInstance_119(); this.upu(this_0, 'clazzUid'); var tmp$ret$2 = this_0.f3(); this.zps_1.fog('CoursePermissionDetail', tmp$ret$2); }; protoOf(CoursePermissionListViewModel).fsa = function (coursePermission) { var tmp = this.cpu(); 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.ss8_1 = permissionsList; this.ts8_1 = permissionLabels; this.us8_1 = courseTerminology; this.vs8_1 = showDeleteOption; } protoOf(CoursePermissionListUiState).gsa = function (permissionsList, permissionLabels, courseTerminology, showDeleteOption) { return new CoursePermissionListUiState(permissionsList, permissionLabels, courseTerminology, showDeleteOption); }; protoOf(CoursePermissionListUiState).ws8 = function (permissionsList, permissionLabels, courseTerminology, showDeleteOption, $super) { permissionsList = permissionsList === VOID ? this.ss8_1 : permissionsList; permissionLabels = permissionLabels === VOID ? this.ts8_1 : permissionLabels; courseTerminology = courseTerminology === VOID ? this.us8_1 : courseTerminology; showDeleteOption = showDeleteOption === VOID ? this.vs8_1 : showDeleteOption; return $super === VOID ? this.gsa(permissionsList, permissionLabels, courseTerminology, showDeleteOption) : $super.gsa.call(this, permissionsList, permissionLabels, courseTerminology, showDeleteOption); }; protoOf(CoursePermissionListUiState).toString = function () { return 'CoursePermissionListUiState(permissionsList=' + this.ss8_1 + ', permissionLabels=' + this.ts8_1 + ', courseTerminology=' + this.us8_1 + ', showDeleteOption=' + this.vs8_1 + ')'; }; protoOf(CoursePermissionListUiState).hashCode = function () { var result = hashCode(this.ss8_1); result = imul(result, 31) + hashCode(this.ts8_1) | 0; result = imul(result, 31) + (this.us8_1 == null ? 0 : hashCode(this.us8_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.vs8_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.ss8_1, tmp0_other_with_cast.ss8_1)) return false; if (!equals(this.ts8_1, tmp0_other_with_cast.ts8_1)) return false; if (!equals(this.us8_1, tmp0_other_with_cast.us8_1)) return false; if (!(this.vs8_1 === tmp0_other_with_cast.vs8_1)) return false; return true; }; function avatarName(_this__u8e3s4) { var tmp; var tmp_0 = _this__u8e3s4.e7v_1; Companion_getInstance_1(); if (tmp_0.c7(toLong(10000)) >= 0) { tmp = _this__u8e3s4.f7v_1; } else { tmp = _this__u8e3s4.e7v_1.toString(); } return tmp; } function avatarColorName(_this__u8e3s4) { var tmp; var tmp_0 = _this__u8e3s4.e7v_1; Companion_getInstance_1(); if (tmp_0.c7(toLong(10000)) >= 0) { tmp = _this__u8e3s4.f7v_1; } else { tmp = _this__u8e3s4.e7v_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().pmr_1; TextLimitType_LIMIT_WORDS_instance = new TextLimitType('LIMIT_WORDS', 0, tmp, 1); var tmp_0 = strings_getInstance().qmr_1; TextLimitType_LIMIT_CHARS_instance = new TextLimitType('LIMIT_CHARS', 1, tmp_0, 2); } var MarkingType_TEACHER_instance; var MarkingType_PEERS_instance; function Companion_120() { } protoOf(Companion_120).njn = 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.jsa_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_1(values_3()) : tmp0_elvis_lhs; }; var Companion_instance_169; function Companion_getInstance_137() { return Companion_instance_169; } 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.msa_1 = stringResource; this.nsa_1 = value; } function MarkingType(name, ordinal, value) { Enum.call(this, name, ordinal); this.jsa_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().hmh_1); Companion_getInstance_1(); var tmp_1 = to(2, strings_getInstance().gmh_1); Companion_getInstance_1(); tmp.osa_1 = mapOf([tmp_0, tmp_1, to(0, strings_getInstance().imh_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.aa9_1.c7(new Long(0, 0)) > 0) { var tmp_0 = _this__u8e3s4.aa9_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.yc5_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = _this__u8e3s4.wc5_1; var tmp_0 = tmp1_elvis_lhs == null ? 'application/octet-stream' : tmp1_elvis_lhs; var tmp2_elvis_lhs = _this__u8e3s4.xc5_1; return new OpenBlobItem(tmp, tmp_0, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs, toLong(_this__u8e3s4.zc5_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.kbr_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bbr_1; var tmp1_safe_receiver = element.kbr_1; if (equals(tmp, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.bbr_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().kbr_1; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.hbr_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().kbr_1; var tmp1_elvis_lhs_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.hbr_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.kbr_1; if (equals(tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.hbr_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.kbr_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ebr_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.ejo_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.kbr_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.gbr_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.fjo_1 = roundToInt(tmp$ret$3 / latestUnique.u()); return this_0; } function _no_name_provided__qut3iv_6($this) { this.psa_1 = $this; } protoOf(_no_name_provided__qut3iv_6).o = function () { return this.psa_1.w(); }; protoOf(_no_name_provided__qut3iv_6).qsa = function (element) { // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.hasUpdatedMarks.' call var tmp0_safe_receiver = element.kbr_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bbr_1; return tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; }; protoOf(_no_name_provided__qut3iv_6).p = function (element) { return this.qsa(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.pc6_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sc5_1, item.dbx_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.rsa_1 = block; this.ssa_1 = assignmentMark; this.tsa_1 = assignmentStatus; } protoOf(UstadAssignmentSubmissionHeaderUiState).toString = function () { return 'UstadAssignmentSubmissionHeaderUiState(block=' + this.rsa_1 + ', assignmentMark=' + this.ssa_1 + ', assignmentStatus=' + this.tsa_1 + ')'; }; protoOf(UstadAssignmentSubmissionHeaderUiState).hashCode = function () { var result = this.rsa_1 == null ? 0 : this.rsa_1.hashCode(); result = imul(result, 31) + (this.ssa_1 == null ? 0 : this.ssa_1.hashCode()) | 0; result = imul(result, 31) + (this.tsa_1 == null ? 0 : this.tsa_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.rsa_1, tmp0_other_with_cast.rsa_1)) return false; if (!equals(this.ssa_1, tmp0_other_with_cast.ssa_1)) return false; if (!(this.tsa_1 == tmp0_other_with_cast.tsa_1)) return false; return true; }; function UstadCourseAssignmentMarkListItemUiState(mark, localDateTimeNow, dayOfWeekStrings) { mark = mark === VOID ? new CourseAssignmentMarkAndMarkerName() : mark; this.usa_1 = mark; this.vsa_1 = localDateTimeNow; this.wsa_1 = dayOfWeekStrings; } protoOf(UstadCourseAssignmentMarkListItemUiState).xsa = function () { var tmp0_safe_receiver = this.usa_1.kbr_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bbr_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).ysa = function () { var tmp0_elvis_lhs = this.usa_1.lbr_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = this.usa_1.mbr_1; return tmp + ' ' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); }; protoOf(UstadCourseAssignmentMarkListItemUiState).zsa = function () { return !(this.xsa() === 0); }; protoOf(UstadCourseAssignmentMarkListItemUiState).asb = function () { // Inline function 'kotlin.let' call var tmp0_safe_receiver = this.usa_1.kbr_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.gbr_1; return !(it == null) ? !(it === 0.0) : false; }; protoOf(UstadCourseAssignmentMarkListItemUiState).toString = function () { return 'UstadCourseAssignmentMarkListItemUiState(mark=' + this.usa_1 + ', localDateTimeNow=' + this.vsa_1 + ', dayOfWeekStrings=' + this.wsa_1 + ')'; }; protoOf(UstadCourseAssignmentMarkListItemUiState).hashCode = function () { var result = this.usa_1.hashCode(); result = imul(result, 31) + this.vsa_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.wsa_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.usa_1.equals(tmp0_other_with_cast.usa_1)) return false; if (!this.vsa_1.equals(tmp0_other_with_cast.vsa_1)) return false; if (!equals(this.wsa_1, tmp0_other_with_cast.wsa_1)) return false; return true; }; function Companion_121() { this.bsb_1 = 'CourseAssignment'; } var Companion_instance_170; function Companion_getInstance_138() { return Companion_instance_170; } function ClazzAssignmentDetailViewModel$slambda(this$0, resultContinuation) { this.ksb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailViewModel$slambda).nsb = function (clazzAssignment, permissionPair, $completion) { var tmp = this.osb(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.nsb(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.msb_1; var hasCourseViewPermission = tmp0_container.y6(); var hasLearnerRecordPermission = tmp0_container.z6(); var tmp_0; if (hasCourseViewPermission) { var tmp_1; var tmp1_safe_receiver = this.lsb_1; var tmp_2 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n7t_1; if (tmp_2 === 2) { tmp_1 = true; } else { tmp_1 = hasLearnerRecordPermission; } var hasSubmissionsTab = tmp_1; Companion_getInstance_119(); var tmp_3 = to('entityUid', this.ksb_1.dpx_1.toString()); Companion_getInstance_119(); var tabArgs = mapOf([tmp_3, to('clazzUid', this.ksb_1.msc_1.toString())]); var tabs = mutableListOf([new TabItem('CourseAssignmentDetailOverviewView', tabArgs, this.ksb_1.npt().ant(strings_getInstance().pmg_1))]); if (hasSubmissionsTab) { var tmp_4; var tmp_5; if (!hasLearnerRecordPermission) { var tmp2_safe_receiver = this.lsb_1; var tmp_6 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.n7t_1; tmp_5 = tmp_6 === 2; } else { tmp_5 = false; } if (tmp_5) { tmp_4 = this.ksb_1.npt().ant(strings_getInstance().fmr_1); } else { tmp_4 = this.ksb_1.npt().ant(strings_getInstance().umr_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).osb = function (clazzAssignment, permissionPair, completion) { var i = new ClazzAssignmentDetailViewModel$slambda(this.ksb_1, completion); i.lsb_1 = clazzAssignment; i.msb_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.nsb(clazzAssignment, permissionPair, $completion); }; l.$arity = 2; return l; } function ClazzAssignmentDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CourseAssignment'); var tmp = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.msc_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var assignmentFlow = this.hpu().d7e().c7s(this.dpx_1, this.msc_1); var tmp_0 = this.hpu().b7f(); var tmp_1 = this.bpu().lnk().yk9_1; PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var permissionFlow = distinctUntilChanged(tmp_0.zde(tmp_1, this.msc_1, tmp_2, new Long(128, 0))); var tmp_3 = this; tmp_3.lsc_1 = combine(assignmentFlow, permissionFlow, ClazzAssignmentDetailViewModel$slambda_0(this, null)); } function ClazzAssignmentDetailUiState(tabs) { tabs = tabs === VOID ? emptyList() : tabs; this.nsc_1 = tabs; } protoOf(ClazzAssignmentDetailUiState).toString = function () { return 'ClazzAssignmentDetailUiState(tabs=' + this.nsc_1 + ')'; }; protoOf(ClazzAssignmentDetailUiState).hashCode = function () { return hashCode(this.nsc_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.nsc_1, tmp0_other_with_cast.nsc_1)) return false; return true; }; function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.wsc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda).ysc = function (it, $completion) { var tmp = this.zsc(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.ysc((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.wsc_1.jq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.fsd(this.xsc_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).zsc = function (it, completion) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda(this.wsc_1, completion); i.xsc_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.ysc(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.osd_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.osd_1.hpu().d7e().x7r(this.osd_1.qse_1, this.osd_1.rse_1, this.osd_1.dpu(), this.osd_1.npt().ant(strings_getInstance().pmq_1)); var tmp_1 = ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda_0(this.osd_1, null); suspendResult = tmp_0.z1b(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.osd_1, completion); i.psd_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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel....' call var nextValue = prevValue.npc(VOID, VOID, title); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda(this$0, resultContinuation) { this.bsf_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.bsf_1.hpu().d7d().ye1(this.bsf_1.qse_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var terminology = suspendResult; l$ret$1: do { var this_0 = this.bsf_1.jq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.fsd(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.bsf_1, completion); i.csf_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.lsf_1 = $this_launch; this.msf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1).z77 = function ($completion) { return this.w86($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.lsf_1, VOID, VOID, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda_0(this.msf_1, null)); launchSetTitleFromClazzUid(this.msf_1, this.msf_1.rse_1, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$lambda(this.msf_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).y77 = function (completion) { return new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1(this.lsf_1, this.msf_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.w86($completion); }; l.$arity = 0; return l; } function Companion_122() { this.nsf_1 = 'CourseAssignmentSubmissionsTab'; } var Companion_instance_171; function Companion_getInstance_139() { return Companion_instance_171; } function sam$kotlinx_coroutines_flow_FlowCollector$0_15(function_0) { this.osf_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_15).t1d = function (value, $completion) { return this.osf_1(value, $completion); }; function ClazzAssignmentDetailSubmissionsTabViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.hpu().d7e().y7r(this$0.qse_1, this$0.rse_1, this$0.dpu(), this$0.npt().ant(strings_getInstance().pmq_1), toQueryLikeParam(this$0.bpt_1.t2().fpc_1.upb_1), this$0.jq4_1.t2().dsd_1.spi_1); }; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda(this$0, resultContinuation) { this.xsf_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.ysf_1, VOID, VOID, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_0(this.xsf_1, null)); this.hd_1 = 1; suspendResult = whenSubscribed(this.xsf_1.jq4_1, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_2(this.ysf_1, this.xsf_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.xsf_1, completion); i.ysf_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_108(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.qse_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_1 = this; Companion_getInstance_119(); 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.rse_1 = tmp_2; var tmp_3 = this; tmp_3.sse_1 = ClazzAssignmentDetailSubmissionsTabViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel.' call var nextValue = prevValue.fsd(VOID, this.sse_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bpt_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.npc(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.sq5()); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_4 = this.cpu(); launch(tmp_4, VOID, VOID, ClazzAssignmentDetailSubmissionsTabViewModel$slambda_0(this, null)); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).zsf = function (assignmentSubmitter) { var tmp = to('assignmentUid', this.qse_1.toString()); var tmp_0 = to('submitterUid', assignmentSubmitter.e7v_1.toString()); Companion_getInstance_119(); this.zps_1.fog('CourseAssignmentSubmitter', mapOf([tmp, tmp_0, to('clazzUid', this.rse_1.toString())])); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).asg = function (sortOrderOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel.onChangeSortOption.' call var nextValue = prevValue.fsd(VOID, VOID, VOID, sortOrderOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.lq4_1.i1h(new RefreshCommand()); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).dq5 = function (searchText) { this.lq4_1.i1h(new RefreshCommand()); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).eq5 = function () { }; function Companion_123() { Companion_instance_172 = this; var tmp = this; var tmp_0 = strings_getInstance().plv_1; var tmp_1 = new SortOrderOption(tmp_0, 5, true); var tmp_2 = strings_getInstance().plv_1; tmp.bsg_1 = listOf([tmp_1, new SortOrderOption(tmp_2, 6, false)]); } var Companion_instance_172; function Companion_getInstance_140() { if (Companion_instance_172 == null) new Companion_123(); return Companion_instance_172; } function ClazzAssignmentDetailSubmissionsTabUiState$_init_$lambda_ecu5q() { return new EmptyPagingSource(); } function ClazzAssignmentDetailSubmissionsTabUiState(progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology) { Companion_getInstance_140(); 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_140().bsg_1 : sortOptions; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; courseTerminology = courseTerminology === VOID ? null : courseTerminology; this.asd_1 = progressSummary; this.bsd_1 = assignmentSubmitterList; this.csd_1 = sortOptions; this.dsd_1 = sortOption; this.esd_1 = courseTerminology; } protoOf(ClazzAssignmentDetailSubmissionsTabUiState).csg = function (progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology) { return new ClazzAssignmentDetailSubmissionsTabUiState(progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology); }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).fsd = function (progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology, $super) { progressSummary = progressSummary === VOID ? this.asd_1 : progressSummary; assignmentSubmitterList = assignmentSubmitterList === VOID ? this.bsd_1 : assignmentSubmitterList; sortOptions = sortOptions === VOID ? this.csd_1 : sortOptions; sortOption = sortOption === VOID ? this.dsd_1 : sortOption; courseTerminology = courseTerminology === VOID ? this.esd_1 : courseTerminology; return $super === VOID ? this.csg(progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology) : $super.csg.call(this, progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology); }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).toString = function () { return 'ClazzAssignmentDetailSubmissionsTabUiState(progressSummary=' + this.asd_1 + ', assignmentSubmitterList=' + this.bsd_1 + ', sortOptions=' + this.csd_1 + ', sortOption=' + this.dsd_1 + ', courseTerminology=' + this.esd_1 + ')'; }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).hashCode = function () { var result = this.asd_1 == null ? 0 : hashCode(this.asd_1); result = imul(result, 31) + hashCode(this.bsd_1) | 0; result = imul(result, 31) + hashCode(this.csd_1) | 0; result = imul(result, 31) + this.dsd_1.hashCode() | 0; result = imul(result, 31) + (this.esd_1 == null ? 0 : hashCode(this.esd_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.asd_1, tmp0_other_with_cast.asd_1)) return false; if (!equals(this.bsd_1, tmp0_other_with_cast.bsd_1)) return false; if (!equals(this.csd_1, tmp0_other_with_cast.csd_1)) return false; if (!this.dsd_1.equals(tmp0_other_with_cast.dsd_1)) return false; if (!equals(this.esd_1, tmp0_other_with_cast.esd_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).i7v_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).h7v_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.dsg_1 : THROW_CCE(); if (!$this.equals(tmp0_other_with_cast)) return false; return true; } function AssignmentSubmitterSummaryUiState(person) { this.dsg_1 = person; } protoOf(AssignmentSubmitterSummaryUiState).toString = function () { return AssignmentSubmitterSummaryUiState__toString_impl_fdil8u(this.dsg_1); }; protoOf(AssignmentSubmitterSummaryUiState).hashCode = function () { return AssignmentSubmitterSummaryUiState__hashCode_impl_6dnbk1(this.dsg_1); }; protoOf(AssignmentSubmitterSummaryUiState).equals = function (other) { return AssignmentSubmitterSummaryUiState__equals_impl_zhk063(this.dsg_1, other); }; function get_listItemUiState(_this__u8e3s4) { return _AssignmentSubmitterSummaryUiState___init__impl__s3rgxm(_this__u8e3s4); } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.msg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda).spg = function (it, $completion) { var tmp = this.tpg(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.spg(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.nsg_1.zpf_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.msg_1.fsi(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).tpg = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda(this.msg_1, completion); i.nsg_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.spg(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.osi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda).qsi = function (assignmentData, $completion) { var tmp = this.rsi(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.qsi((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.osi_1.lsh_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.psi_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h7y_1; Companion_getInstance_1(); var isEnrolledButNotInGroup = equals(tmp_0, new Long(-1, -1)); var tmp1_safe_receiver = this.psi_1; var tmp9_assignment = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d7y_1; var tmp2_safe_receiver = this.psi_1; var tmp10_courseBlock = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.e7y_1; var tmp3_safe_receiver = this.psi_1; var tmp11_courseBlockPicture = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.f7y_1; var tmp5_safe_receiver = this.psi_1; var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.h7y_1; var tmp12_submitterUid = tmp6_elvis_lhs == null ? new Long(0, 0) : tmp6_elvis_lhs; var tmp4_safe_receiver = this.psi_1; var tmp13_courseGroupSet = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.g7y_1; var tmp_1; if (isEnrolledButNotInGroup) { tmp_1 = this.osi_1.npt().ant(strings_getInstance().emv_1); } else { tmp_1 = null; } var tmp14_unassignedError = tmp_1; var tmp7_safe_receiver = this.psi_1; var tmp8_elvis_lhs = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.i7y_1; var tmp15_showModerateOptions = tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs; var nextValue = prevValue.tsj(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).rsi = function (assignmentData, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda(this.osi_1, completion); i.psi_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.qsi(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).esk = function (submissions, submissionFiles, $completion) { var tmp = this.fsk(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.esk(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.csk_1, this.dsk_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).fsk = function (submissions, submissionFiles, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(completion); i.csk_1 = submissions; i.dsk_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.esk(submissions, submissionFiles, $completion); }; l.$arity = 2; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.osk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).qsk = function (it, $completion) { var tmp = this.rsk(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.qsk((!(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.osk_1.lsh_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.tsj(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.psk_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).rsk = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this.osk_1, completion); i.psk_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.qsk(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.asl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).csl = function (it, $completion) { var tmp = this.dsl(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.csl((!(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.asl_1.lsh_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.tsj(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.bsl_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).dsl = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this.asl_1, completion); i.bsl_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.csl(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.msl_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).qsl = function (value, $completion) { var tmp = this.rsl(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.qsl(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.osl_1 = this.msl_1; var tmp_1 = this; tmp_1.psl_1 = this.nsl_1; this.hd_1 = 1; var tmp0_safe_receiver = this.psl_1.ssl_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.dbx_1; suspendResult = this.osl_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).rsl = function (value, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda(this.msl_1, completion); i.nsl_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.qsl(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$66(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bsm_1 = _this__u8e3s4; this.csm_1 = collector; } protoOf($collectCOROUTINE$66).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.dsm_1 = this.csm_1; this.hd_1 = 1; var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_0(this.dsm_1, null); suspendResult = this.bsm_1.esm_1.z1b(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.nsm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).psm = function (it, $completion) { var tmp = this.qsm(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.psm((!(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.nsm_1.lsh_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.tsj(VOID, VOID, VOID, VOID, VOID, this.osm_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).qsm = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this.nsm_1, completion); i.osm_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.psm(it, $completion); }; l.$arity = 1; return l; } function _no_name_provided__qut3iv_7($this) { this.esm_1 = $this; } protoOf(_no_name_provided__qut3iv_7).rsm = function (collector, $completion) { var tmp = new $collectCOROUTINE$66(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_7).z1b = function (collector, $completion) { return this.rsm(collector, $completion); }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.asn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).csn = function (submissionUid, $completion) { var tmp = this.dsn(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.csn(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.asn_1.fpu().f7e().tc4(this.bsn_1)); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_0(this.asn_1, null); suspendResult = tmp_0.z1b(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).dsn = function (submissionUid, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this.asn_1, completion); i.bsn_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.csn(submissionUid, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1($entityFlow, this$0, resultContinuation) { this.msn_1 = $entityFlow; this.nsn_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.nsn_1, null); suspendResult = this.msn_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.msn_1, this.nsn_1, completion); i.osn_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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel....' call var nextValue = prevValue.npc(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.xsn_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.zsn_1 = this.xsn_1.hpu().e7e().obw(this.xsn_1.dpu(), this.xsn_1.dpx_1); this.aso_1 = this.xsn_1.hpu().f7e().uc4(this.xsn_1.dpu(), this.xsn_1.dpx_1); this.hd_1 = 1; var tmp_0 = distinctUntilChanged(combine(this.zsn_1, this.aso_1, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(null))); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this.xsn_1, null); suspendResult = tmp_0.z1b(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.xsn_1, completion); i.ysn_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.jso_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.jso_1.hpu().g7e().ibq(this.jso_1.dpu(), this.jso_1.dpx_1); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this.jso_1, null); suspendResult = tmp_0.z1b(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.jso_1, completion); i.kso_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.tso_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.tso_1.nsh_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_7(this_0)); suspendResult = collectLatest(tmp_0, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this.tso_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.tso_1, completion); i.uso_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.dsp_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.dsp_1.gpx(this.dsp_1.ipu(), 'submissionHtml'); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_0(this.dsp_1, null); suspendResult = tmp_0.z1b(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.dsp_1, completion); i.esp_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.nsp_1 = $this_launch; this.osp_1 = this$0; this.psp_1 = $entityFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1).z77 = function ($completion) { return this.w86($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.nsp_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_2(this.psp_1, this.osp_1, null)); launchSetTitleFromClazzUid(this.osp_1, this.osp_1.wsh_1, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$lambda(this.osp_1)); launch(this.nsp_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_4(this.osp_1, null)); launch(this.nsp_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_6(this.osp_1, null)); launch(this.nsp_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_8(this.osp_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).y77 = function (completion) { return new ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1(this.nsp_1, this.osp_1, this.psp_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.w86($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda(this$0, $file, resultContinuation) { this.ysp_1 = this$0; this.zsp_1 = $file; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda).on8 = function (it, $completion) { var tmp = this.pn8(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.on8(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.ysp_1.hpu().f7e(); var tmp0_safe_receiver = this.zsp_1.pc6_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rc5_1; suspendResult = tmp_0.xc4(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).pn8 = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda(this.ysp_1, this.zsp_1, completion); i.asq_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.on8(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.lsh_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.openSubmissionFileAsBlob...' call var nextValue = prevValue.tsj(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.xsh_1; saveAndUploadUseCase$factory_0(); return this_0.t2(); } function _get_cancelTransferJobUseCase__o6e2y4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ysh_1; cancelTransferJobUseCase$factory_0(); return this_0.t2(); } function _get_openBlobUiUseCase__fzusqz($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zsh_1; openBlobUiUseCase$factory_0(); return this_0.t2(); } function _get_ustadAccountManager__el9prc($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.bsi_1; ustadAccountManager$factory_0(); return this_0.t2(); } function _get_showSocialWarningUseCase__ft8jc6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.csi_1; showSocialWarningUseCase$factory_0(); return this_0.t2(); } function _get_dismissSocialWarningUseCase__st8mv5($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.dsi_1; dismissSocialWarningUseCase$factory_0(); return this_0.t2(); } function _get_openExternalLinkUseCase__ku5z07($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.esi_1; openExternalLinkUseCase$factory_0(); return this_0.t2(); } function newCourseAssignmentSubmission($this) { var tmp = get_doorPrimaryKeyManager($this.fpu()); Companion_getInstance_1(); var tmp0_casUid = tmp.a62(522); var tmp1_casAssignmentUid = $this.dpx_1; var tmp2_casClazzUid = $this.wsh_1; var tmp3_casSubmitterPersonUid = $this.bpu().rnj().en4_1.s95_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.pc6_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var submissionFile = tmp; var tmp1_safe_receiver = $this.asi_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.mr(); } var tmp_0 = $this; var tmp_1 = $this.cpu(); tmp_0.asi_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda_0($this, submissionFile, intent, null)); } function Companion_124() { this.bsq_1 = 'latestSubmission'; this.csq_1 = 'submissionHtml'; this.dsq_1 = 'CourseAssignmentDetailOverviewView'; } var Companion_instance_173; function Companion_getInstance_141() { return Companion_instance_173; } function sam$kotlinx_coroutines_flow_FlowCollector$0_16(function_0) { this.esq_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_16).t1d = function (value, $completion) { return this.esq_1(value, $completion); }; function ClazzAssignmentDetailOverviewViewModel$privateCommentsPagingSourceFactory$lambda(this$0) { return function () { return this$0.hpu().h7e().da8(this$0.dpu(), this$0.dpx_1, false); }; } function ClazzAssignmentDetailOverviewViewModel$courseCommentsPagingSourceFactory$lambda(this$0) { return function () { return this$0.hpu().h7e().fa8(this$0.dpx_1, false); }; } function ClazzAssignmentDetailOverviewViewModel$slambda(this$0, $savedStateHandle, $entityFlow, resultContinuation) { this.nsq_1 = this$0; this.osq_1 = $savedStateHandle; this.psq_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.nsq_1.mpu(this.osq_1, 'latestSubmission', Companion_getInstance_1().a4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.rsq_1 = suspendResult; this.ssq_1 = this.rsq_1 == null ? newCourseAssignmentSubmission(this.nsq_1) : this.rsq_1; l$ret$1: do { var this_0 = this.nsq_1.nsh_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.tsq(this.ssq_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.qsq_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda_0(this.nsq_1, null)); this.hd_1 = 2; suspendResult = whenSubscribed(this.nsq_1.lsh_1, ClazzAssignmentDetailOverviewViewModel$slambda$slambda_2(this.qsq_1, this.nsq_1, this.psq_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.nsq_1, this.osq_1, this.psq_1, completion); i.qsq_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.csr_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.csr_1).kob(toString_0(_get_ustadAccountManager__el9prc(this.csr_1).rnj().en4_1.t95_1)); l$ret$1: do { var this_0 = this.csr_1.lsh_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.tsj(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.csr_1, completion); i.dsr_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.hbx_1 = $text; return Unit_instance; }; } function ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda($submissionToSave, this$0, resultContinuation) { this.msr_1 = $submissionToSave; this.nsr_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.msr_1 == null)) { this.hd_1 = 2; suspendResult = this.nsr_1.npu(this.nsr_1.xps_1, 'latestSubmission', Companion_getInstance_1().a4r(), this.msr_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.msr_1, this.nsr_1, completion); i.osr_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.xsr_1 = this$0; this.ysr_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.xsr_1.hpu().h7e(); var this_0 = new Comments(); this_0.za8_1 = this.ysr_1; this_0.ya8_1 = this.xsr_1.dpu(); this_0.aa9_1 = this.xsr_1.lsh_1.t2().wsi_1; this_0.wa8_1 = this.xsr_1.dpx_1; this_0.va8_1 = this.xsr_1.psh_1.t2(); this_0.da9_1 = systemTimeInMillis(); suspendResult = tmp_0.ba8(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_1 = this; this.xsr_1.psh_1.x1k(''); tmp_1.ass_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.xsr_1.epx(Companion_getInstance_89().vpc_1); return Unit_instance; case 4: this.id_1 = 5; var t = this.kd_1; this.xsr_1.epx(Companion_getInstance_89().vpc_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.xsr_1, this.ysr_1, completion); i.zsr_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.jss_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.jss_1.hpu().h7e(); var this_0 = new Comments(); this_0.za8_1 = new Long(0, 0); this_0.ya8_1 = this.jss_1.dpu(); this_0.wa8_1 = this.jss_1.dpx_1; this_0.va8_1 = this.jss_1.rsh_1.t2(); this_0.da9_1 = systemTimeInMillis(); suspendResult = tmp_0.ba8(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_1 = this; this.jss_1.rsh_1.x1k(''); tmp_1.lss_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.jss_1.epx(Companion_getInstance_89().vpc_1); return Unit_instance; case 4: this.id_1 = 5; var t = this.kd_1; this.jss_1.epx(Companion_getInstance_89().vpc_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.jss_1, completion); i.kss_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.uss_1 = this$0; this.vss_1 = $size; this.wss_1 = $mimeType; this.xss_1 = $fileName; this.yss_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.uss_1.fpu()); suspendResult = tmp_0.b62(90, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ast_1 = suspendResult; var tmp_1 = this; var tmp0_safe_receiver = this.uss_1.nsh_1.t2().ssl_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.dbx_1; tmp_1.bst_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.cst_1 = this.uss_1.lsh_1.t2().wsi_1; this.dst_1 = this.vss_1.mb(); this.est_1 = this.uss_1.dpx_1; this.fst_1 = this.uss_1.wsh_1; this.gst_1 = new CourseAssignmentSubmissionFile(this.ast_1, this.bst_1, this.cst_1, this.est_1, this.fst_1, this.wss_1, this.xss_1, this.yss_1, this.dst_1); this.hd_1 = 2; suspendResult = this.uss_1.fpu().f7e().sc4(listOf_0(this.gst_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.uss_1); var tmp_3 = this.gst_1.rc5_1; suspendResult = tmp_2.co1(listOf_0(new SaveLocalUriAsBlobItem(this.yss_1, tmp_3, 90, this.wss_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().z5d('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.uss_1, this.vss_1, this.wss_1, this.xss_1, this.yss_1, completion); i.zss_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.pst_1 = this$0; this.qst_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.pst_1.ksh_1.cnt(this.pst_1.hpu(), this.pst_1.lsh_1.t2().wsi_1, this.pst_1.dpx_1, this.pst_1.bpu().rnj().en4_1.s95_1, this.qst_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.pst_1.nsh_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.tsq(newCourseAssignmentSubmission(this.pst_1)); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); tmp_0.tst_1 = tmp$ret$0.ssl_1; l$ret$3: do { var this_1 = this.pst_1.lsh_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.tsj(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.tst_1 == null)) { this.hd_1 = 3; suspendResult = this.pst_1.npu(this.pst_1.xps_1, 'latestSubmission', Companion_getInstance_1().a4r(), this.tst_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.pst_1.jpu().cpd(new Snack(this.pst_1.npt().ant(strings_getInstance().hmh_1))); tmp_1.sst_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().d5e('Exception submitting assignment: ' + e, e); l$ret$7: do { var this_2 = this.pst_1.lsh_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.tsj(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.sst_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.pst_1.lsh_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.tsj(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.pst_1.epx(Companion_getInstance_89().vpc_1); throw t; case 7: throw this.kd_1; case 8: this.id_1 = 7; l$ret$11: do { var this_4 = this.pst_1.lsh_1; while (true) { var prevValue_3 = this_4.t2(); var nextValue_3 = prevValue_3.tsj(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.pst_1.epx(Companion_getInstance_89().vpc_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.pst_1, this.qst_1, completion); i.rst_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.csu_1 = this$0; this.dsu_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.csu_1.hpu(); suspendResult = withDoorTransactionAsync(tmp_0, VOID, ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda_0(this.csu_1, this.dsu_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this; var tmp0_safe_receiver = this.dsu_1.qc6_1; tmp_1.fsu_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sc6_1; if (this.fsu_1 == null) { this.gsu_1 = null; this.hd_1 = 4; continue $sm; } else { var tmp_2 = this; tmp_2.hsu_1 = this.fsu_1; var tmp_3 = this; tmp_3.isu_1 = this.hsu_1; this.jsu_1 = _get_cancelTransferJobUseCase__o6e2y4(this.csu_1); if (this.jsu_1 == null) { this.ksu_1 = null; this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = this.jsu_1.i1i(this.isu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 2: var tmp_4 = this; tmp_4.ksu_1 = Unit_instance; this.hd_1 = 3; continue $sm; case 3: this.gsu_1 = this.hsu_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.csu_1, this.dsu_1, completion); i.esu_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.tsu_1 = this$0; this.usu_1 = $submissionFile; this.vsu_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.xsu_1 = _get_openBlobUiUseCase__fzusqz(this.tsu_1); if (this.xsu_1 == null) { this.ysu_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = asBlobOpenItem(this.usu_1); suspendResult = this.xsu_1.gnz(tmp_0, ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda$lambda(this.tsu_1), this.vsu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_1 = this; tmp_1.ysu_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.tsu_1, this.usu_1, this.vsu_1, completion); i.wsu_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.hsv_1 = this$0; this.isv_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.hsv_1.hpu().h7e().ca8(this.isv_1.ua8_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hsv_1.jpu().cpd(new Snack(this.hsv_1.npt().ant(strings_getInstance().qlu_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.hsv_1, this.isv_1, completion); i.jsv_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).s57(); // 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.q57(tmp$ret$0, null); tmp = new SubmitAssignmentUseCase(tmp$ret$1); } else { tmp = submitAssignmentUseCase; } submitAssignmentUseCase = tmp; DetailViewModel.call(this, di, savedStateHandle, 'CourseAssignment'); this.ksh_1 = submitAssignmentUseCase; this.lsh_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.npt().ipb())); this.msh_1 = asStateFlow(this.lsh_1); this.nsh_1 = MutableStateFlow(new ClazzAssignmentDetailoverviewSubmissionUiState()); this.osh_1 = asStateFlow(this.nsh_1); this.psh_1 = MutableStateFlow(''); this.qsh_1 = asStateFlow(this.psh_1); this.rsh_1 = MutableStateFlow(''); this.ssh_1 = asStateFlow(this.rsh_1); var tmp_2 = this; tmp_2.tsh_1 = ClazzAssignmentDetailOverviewViewModel$privateCommentsPagingSourceFactory$lambda(this); var tmp_3 = this; tmp_3.ush_1 = ClazzAssignmentDetailOverviewViewModel$courseCommentsPagingSourceFactory$lambda(this); this.vsh_1 = null; var tmp_4 = this; Companion_getInstance_119(); 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.wsh_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.xsh_1 = Instance(this_0, tmp$ret$2, null).n5c(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.ysh_1 = InstanceOrNull(this_1, tmp$ret$4, null).n5c(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.zsh_1 = InstanceOrNull(this_2, tmp$ret$6, null).n5c(this, openBlobUiUseCase$factory()); this.asi_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.bsi_1 = Instance(di, tmp$ret$8, null).n5c(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.csi_1 = Instance(di, tmp$ret$10, null).n5c(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.dsi_1 = Instance(di, tmp$ret$12, null).n5c(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.esi_1 = Instance(di, tmp$ret$14, null).n5c(this, openExternalLinkUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.lsh_1; while (true) { var prevValue = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.' call var tmp_20 = this.dpu(); var tmp_21 = this.bpu().rnj().en4_1.hk2(); var tmp0_safe_receiver_0 = this.bpu().rnj().gn4_1; var nextValue = prevValue.tsj(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.t96_1, VOID, VOID, VOID, VOID, VOID, VOID, _get_showSocialWarningUseCase__ft8jc6(this).xnr(toString_0(_get_ustadAccountManager__el9prc(this).rnj().en4_1.t95_1))); if (this_3.y1k(prevValue, nextValue)) { break $l$block; } } } var entityFlow = shareIn(this.hpu().d7e().g7s(this.dpx_1, this.wsh_1, this.bpu().lnk().yk9_1), this.cpu(), Companion_getInstance_12().v1h()); var tmp_22 = this.cpu(); 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.lsh_1; while (true) { var prevValue_0 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.' call var tmp0_privateComments = this.tsh_1; var tmp1_courseComments = this.ush_1; var nextValue_0 = prevValue_0.tsj(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).ksv = function () { var tmp = this.cpu(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda_0(this, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).lsv = function (option) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.lsh_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onClickMarksFilterChip.' call var nextValue = prevValue.tsj(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, option.qpd_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentDetailOverviewViewModel).fsi = function (text) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.nsh_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onChangeSubmissionText.' call var tmp0_safe_receiver = prevValue.ssl_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = shallowCopy_0(tmp0_safe_receiver, ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$lambda(text)); } var nextValue = prevValue.tsq(tmp); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var submissionToSave = tmp$ret$1.ssl_1; var tmp0_safe_receiver_0 = this.vsh_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.cpu(); tmp_0.vsh_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda_0(submissionToSave, this, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).msv = function (text) { this.psh_1.x1k(text); }; protoOf(ClazzAssignmentDetailOverviewViewModel).nsv = function () { var submitterUid = this.lsh_1.t2().wsi_1; if (submitterUid.c7(new Long(0, 0)) <= 0) return Unit_instance; if (this.fpx().equals(Companion_getInstance_89().upc_1)) return Unit_instance; this.epx(Companion_getInstance_89().upc_1); var tmp = this.cpu(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda_0(this, submitterUid, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).osv = function (text) { this.rsh_1.x1k(text); }; protoOf(ClazzAssignmentDetailOverviewViewModel).psv = function () { if (this.fpx().equals(Companion_getInstance_89().upc_1)) return Unit_instance; this.epx(Companion_getInstance_89().upc_1); var tmp = this.cpu(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda_0(this, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).qsv = function (uri, fileName, mimeType, size) { var tmp0_safe_receiver = this.lsh_1.t2().ssi_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k7t_1; var assignmentSizeLimit = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; if (size.c7(toLong(imul(imul(assignmentSizeLimit, 1024), 1024))) > 0) { this.jpu().cpd(new Snack(this.npt().ant(strings_getInstance().tm4_1))); return Unit_instance; } var tmp = this.cpu(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda_0(this, size, mimeType, fileName, uri, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).rsv = function () { if (!this.lsh_1.t2().dsj_1) return Unit_instance; var tmp0_elvis_lhs = this.nsh_1.t2().ssl_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.lsh_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onClickSubmit.' call var nextValue = prevValue.tsj(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.epx(Companion_getInstance_89().upc_1); var tmp_0 = this.cpu(); launch(tmp_0, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda_0(this, submission, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).ssv = function (submission) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.lsh_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onToggleSubmissionExpandCollapse.' call var nextValue = prevValue.tsj(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toggle(prevValue.psj_1, submission.dbx_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentDetailOverviewViewModel).tsv = function () { Companion_getInstance_119(); var tmp0_safe_receiver = this.lsh_1.t2().vsi_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n7y_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_119(); this.zps_1.fog('CourseGroupSet', mapOf([tmp, to('clazzUid', this.wsh_1.toString())])); }; protoOf(ClazzAssignmentDetailOverviewViewModel).usv = function (file) { var tmp = this.cpu(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda_0(this, file, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).vsv = function (file) { openSubmissionFileAsBlob(this, file, OpenBlobIntent_VIEW_getInstance()); }; protoOf(ClazzAssignmentDetailOverviewViewModel).wsv = function (comments) { var tmp = this.cpu(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda_0(this, comments, null)); }; function _get_latestUniqueMarksByMarker__e0a3pq($this) { return latestUniqueMarksByMarker($this.asj_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().xmv_1; var tmp_4 = new MessageIdOption2(tmp_3, 1); var tmp_5 = strings_getInstance().rma_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.dlp(), Companion_getInstance_9().clt()) : 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.ssi_1 = assignment; this.tsi_1 = courseBlock; this.usi_1 = courseBlockPicture; this.vsi_1 = courseGroupSet; this.wsi_1 = submitterUid; this.xsi_1 = editableSubmissionFiles; this.ysi_1 = submissionTooLong; this.zsi_1 = submissions; this.asj_1 = markList; this.bsj_1 = courseComments; this.csj_1 = privateComments; this.dsj_1 = fieldsEnabled; this.esj_1 = selectedChipId; this.fsj_1 = gradeFilterChips; this.gsj_1 = submissionHeaderUiState; this.hsj_1 = unassignedError; this.isj_1 = submissionError; this.jsj_1 = activeUserPersonUid; this.ksj_1 = activeUserPersonName; this.lsj_1 = activeUserPictureUri; this.msj_1 = courseTerminology; this.nsj_1 = localDateTimeNow; this.osj_1 = dayOfWeekStringMap; this.psj_1 = collapsedSubmissions; this.qsj_1 = openingFileSubmissionState; this.rsj_1 = showModerateOptions; this.ssj_1 = showSocialWarning; } protoOf(ClazzAssignmentDetailOverviewUiState).xsv = function () { var tmp0_safe_receiver = this.tsi_1; return isDateSet(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o7x_1); }; protoOf(ClazzAssignmentDetailOverviewUiState).ysv = function () { return this.zsv(); }; protoOf(ClazzAssignmentDetailOverviewUiState).asw = function () { // Inline function 'kotlin.text.isNullOrBlank' call var this_0 = this.hsj_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ClazzAssignmentDetailOverviewUiState).bsw = function () { var tmp0_safe_receiver = this.ssi_1; return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f7t_1) === true; }; protoOf(ClazzAssignmentDetailOverviewUiState).csw = function () { return this.wsi_1.c7(new Long(0, 0)) > 0; }; protoOf(ClazzAssignmentDetailOverviewUiState).dsw = function () { var tmp; if (this.csw()) { var tmp0_safe_receiver = this.ssi_1; tmp = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g7t_1) === true; } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).esw = function () { var timeNow = systemTimeInMillis(); var tmp0_safe_receiver = this.tsi_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o7x_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.tsi_1; if (isDateSet(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.q7x_1)) { var tmp3_safe_receiver = this.tsi_1; var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.q7x_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).zsv = function () { if (!this.csw()) return false; if (!this.esw()) return false; var tmp; var tmp0_safe_receiver = this.ssi_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m7t_1; if (tmp_0 === 1) { // Inline function 'kotlin.collections.isNotEmpty' call tmp = !this.zsi_1.c1(); } else { tmp = false; } if (tmp) { return false; } return true; }; protoOf(ClazzAssignmentDetailOverviewUiState).fsw = function () { var tmp; var tmp_0; if (this.zsv()) { var tmp0_safe_receiver = this.ssi_1; tmp_0 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i7t_1) === true; } else { tmp_0 = false; } if (tmp_0) { tmp = this.xsi_1.u() < this.ssi_1.l7t_1; } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).gsw = function () { return this.csw() ? submissionStatusFor(this.asj_1, this.zsi_1) : null; }; protoOf(ClazzAssignmentDetailOverviewUiState).hsw = function () { return !(this.isw() == null); }; protoOf(ClazzAssignmentDetailOverviewUiState).jsw = 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.isw(); return !(it == null) ? !(it.fjo_1 === 0) : false; }; protoOf(ClazzAssignmentDetailOverviewUiState).ksw = function () { var tmp; var tmp0_safe_receiver = this.ssi_1; if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o7t_1) === true) { tmp = this.zsv(); } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).lsw = function () { var tmp; if (this.esj_1 === 1) { tmp = _get_latestUniqueMarksByMarker__e0a3pq(this); } else { tmp = this.asj_1; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).isw = function () { return averageMark(this.asj_1); }; protoOf(ClazzAssignmentDetailOverviewUiState).msw = function () { var tmp0_safe_receiver = this.ssi_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d7t_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).nsw = 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).tsj = 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.ssi_1 : assignment; courseBlock = courseBlock === VOID ? this.tsi_1 : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? this.usi_1 : courseBlockPicture; courseGroupSet = courseGroupSet === VOID ? this.vsi_1 : courseGroupSet; submitterUid = submitterUid === VOID ? this.wsi_1 : submitterUid; editableSubmissionFiles = editableSubmissionFiles === VOID ? this.xsi_1 : editableSubmissionFiles; submissionTooLong = submissionTooLong === VOID ? this.ysi_1 : submissionTooLong; submissions = submissions === VOID ? this.zsi_1 : submissions; markList = markList === VOID ? this.asj_1 : markList; courseComments = courseComments === VOID ? this.bsj_1 : courseComments; privateComments = privateComments === VOID ? this.csj_1 : privateComments; fieldsEnabled = fieldsEnabled === VOID ? this.dsj_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.esj_1 : selectedChipId; gradeFilterChips = gradeFilterChips === VOID ? this.fsj_1 : gradeFilterChips; submissionHeaderUiState = submissionHeaderUiState === VOID ? this.gsj_1 : submissionHeaderUiState; unassignedError = unassignedError === VOID ? this.hsj_1 : unassignedError; submissionError = submissionError === VOID ? this.isj_1 : submissionError; activeUserPersonUid = activeUserPersonUid === VOID ? this.jsj_1 : activeUserPersonUid; activeUserPersonName = activeUserPersonName === VOID ? this.ksj_1 : activeUserPersonName; activeUserPictureUri = activeUserPictureUri === VOID ? this.lsj_1 : activeUserPictureUri; courseTerminology = courseTerminology === VOID ? this.msj_1 : courseTerminology; localDateTimeNow = localDateTimeNow === VOID ? this.nsj_1 : localDateTimeNow; dayOfWeekStringMap = dayOfWeekStringMap === VOID ? this.osj_1 : dayOfWeekStringMap; collapsedSubmissions = collapsedSubmissions === VOID ? this.psj_1 : collapsedSubmissions; openingFileSubmissionState = openingFileSubmissionState === VOID ? this.qsj_1 : openingFileSubmissionState; showModerateOptions = showModerateOptions === VOID ? this.rsj_1 : showModerateOptions; showSocialWarning = showSocialWarning === VOID ? this.ssj_1 : showSocialWarning; return $super === VOID ? this.nsw(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.nsw.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.ssi_1 + ', courseBlock=' + this.tsi_1 + ', courseBlockPicture=' + this.usi_1 + ', courseGroupSet=' + this.vsi_1 + ', submitterUid=' + this.wsi_1.toString() + ', editableSubmissionFiles=' + this.xsi_1 + ', submissionTooLong=' + this.ysi_1 + ', submissions=' + this.zsi_1 + ', markList=' + this.asj_1 + ', courseComments=' + this.bsj_1 + ', privateComments=' + this.csj_1 + ', fieldsEnabled=' + this.dsj_1 + ', selectedChipId=' + this.esj_1 + ', gradeFilterChips=' + this.fsj_1 + ', submissionHeaderUiState=' + this.gsj_1 + ', unassignedError=' + this.hsj_1 + ', submissionError=' + this.isj_1 + ', activeUserPersonUid=' + this.jsj_1.toString() + ', activeUserPersonName=' + this.ksj_1 + ', activeUserPictureUri=' + this.lsj_1 + ', courseTerminology=' + this.msj_1 + ', localDateTimeNow=' + this.nsj_1 + ', dayOfWeekStringMap=' + this.osj_1 + ', collapsedSubmissions=' + this.psj_1 + ', openingFileSubmissionState=' + this.qsj_1 + ', showModerateOptions=' + this.rsj_1 + ', showSocialWarning=' + this.ssj_1 + ')'; }; protoOf(ClazzAssignmentDetailOverviewUiState).hashCode = function () { var result = this.ssi_1 == null ? 0 : this.ssi_1.hashCode(); result = imul(result, 31) + (this.tsi_1 == null ? 0 : this.tsi_1.hashCode()) | 0; result = imul(result, 31) + (this.usi_1 == null ? 0 : this.usi_1.hashCode()) | 0; result = imul(result, 31) + (this.vsi_1 == null ? 0 : hashCode(this.vsi_1)) | 0; result = imul(result, 31) + this.wsi_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.xsi_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ysi_1) | 0; result = imul(result, 31) + hashCode(this.zsi_1) | 0; result = imul(result, 31) + hashCode(this.asj_1) | 0; result = imul(result, 31) + hashCode(this.bsj_1) | 0; result = imul(result, 31) + hashCode(this.csj_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.dsj_1) | 0; result = imul(result, 31) + this.esj_1 | 0; result = imul(result, 31) + hashCode(this.fsj_1) | 0; result = imul(result, 31) + this.gsj_1.hashCode() | 0; result = imul(result, 31) + (this.hsj_1 == null ? 0 : getStringHashCode(this.hsj_1)) | 0; result = imul(result, 31) + (this.isj_1 == null ? 0 : getStringHashCode(this.isj_1)) | 0; result = imul(result, 31) + this.jsj_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.ksj_1) | 0; result = imul(result, 31) + (this.lsj_1 == null ? 0 : getStringHashCode(this.lsj_1)) | 0; result = imul(result, 31) + (this.msj_1 == null ? 0 : hashCode(this.msj_1)) | 0; result = imul(result, 31) + this.nsj_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.osj_1) | 0; result = imul(result, 31) + hashCode(this.psj_1) | 0; result = imul(result, 31) + (this.qsj_1 == null ? 0 : this.qsj_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.rsj_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ssj_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.ssi_1, tmp0_other_with_cast.ssi_1)) return false; if (!equals(this.tsi_1, tmp0_other_with_cast.tsi_1)) return false; if (!equals(this.usi_1, tmp0_other_with_cast.usi_1)) return false; if (!equals(this.vsi_1, tmp0_other_with_cast.vsi_1)) return false; if (!this.wsi_1.equals(tmp0_other_with_cast.wsi_1)) return false; if (!equals(this.xsi_1, tmp0_other_with_cast.xsi_1)) return false; if (!(this.ysi_1 === tmp0_other_with_cast.ysi_1)) return false; if (!equals(this.zsi_1, tmp0_other_with_cast.zsi_1)) return false; if (!equals(this.asj_1, tmp0_other_with_cast.asj_1)) return false; if (!equals(this.bsj_1, tmp0_other_with_cast.bsj_1)) return false; if (!equals(this.csj_1, tmp0_other_with_cast.csj_1)) return false; if (!(this.dsj_1 === tmp0_other_with_cast.dsj_1)) return false; if (!(this.esj_1 === tmp0_other_with_cast.esj_1)) return false; if (!equals(this.fsj_1, tmp0_other_with_cast.fsj_1)) return false; if (!this.gsj_1.equals(tmp0_other_with_cast.gsj_1)) return false; if (!(this.hsj_1 == tmp0_other_with_cast.hsj_1)) return false; if (!(this.isj_1 == tmp0_other_with_cast.isj_1)) return false; if (!this.jsj_1.equals(tmp0_other_with_cast.jsj_1)) return false; if (!(this.ksj_1 === tmp0_other_with_cast.ksj_1)) return false; if (!(this.lsj_1 == tmp0_other_with_cast.lsj_1)) return false; if (!equals(this.msj_1, tmp0_other_with_cast.msj_1)) return false; if (!this.nsj_1.equals(tmp0_other_with_cast.nsj_1)) return false; if (!equals(this.osj_1, tmp0_other_with_cast.osj_1)) return false; if (!equals(this.psj_1, tmp0_other_with_cast.psj_1)) return false; if (!equals(this.qsj_1, tmp0_other_with_cast.qsj_1)) return false; if (!(this.rsj_1 === tmp0_other_with_cast.rsj_1)) return false; if (!(this.ssj_1 === tmp0_other_with_cast.ssj_1)) return false; return true; }; function ClazzAssignmentDetailoverviewSubmissionUiState(editableSubmission) { editableSubmission = editableSubmission === VOID ? null : editableSubmission; this.ssl_1 = editableSubmission; } protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).tsq = function (editableSubmission) { return new ClazzAssignmentDetailoverviewSubmissionUiState(editableSubmission); }; protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).toString = function () { return 'ClazzAssignmentDetailoverviewSubmissionUiState(editableSubmission=' + this.ssl_1 + ')'; }; protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).hashCode = function () { return this.ssl_1 == null ? 0 : this.ssl_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.ssl_1, tmp0_other_with_cast.ssl_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.wsw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda).kpl = function (noSubmissions, $completion) { var tmp = this.lpl(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.kpl((!(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.xsw_1 ? this.wsw_1.wsx_1.t2().csy_1 : false) { l$ret$1: do { var this_0 = this.wsw_1.wsx_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ksy(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).lpl = function (noSubmissions, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda(this.wsw_1, completion); i.xsw_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.kpl(noSubmissions, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.tsy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda).z77 = function ($completion) { return this.w86($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.tsy_1.fpu().e7e(); var tmp0_safe_receiver = this.tsy_1.wsx_1.t2().usy(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gjl_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a7t_1; var tmp_1 = tmp_0.nbw(tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs); var tmp_2 = ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_0(this.tsy_1, null); suspendResult = tmp_1.z1b(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).y77 = function (completion) { return new ClazzAssignmentEditViewModel$slambda$slambda$slambda(this.tsy_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.w86($completion); }; l.$arity = 0; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.dsz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_1).spg = function (result, $completion) { var tmp = this.tpg(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.spg(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.esz_1.zpf_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.dsz_1.wsx_1.t2().usy(); var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.zjk_1; this.dsz_1.fsz(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.mjx(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).tpg = function (result, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_1(this.dsz_1, completion); i.esz_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.spg(result, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$lambda($groupSet) { return function ($this$shallowCopy) { $this$shallowCopy.d7t_1 = $groupSet.n7y_1; return Unit_instance; }; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.osz_1 = $commitDelay; this.psz_1 = $entity; this.qsz_1 = $this; this.rsz_1 = $key; this.ssz_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.osz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.psz_1 == null)) { this.hd_1 = 2; suspendResult = this.qsz_1.npu(this.qsz_1.xps_1, this.rsz_1, this.ssz_1, this.psz_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.osz_1, this.psz_1, this.qsz_1, this.rsz_1, this.ssz_1, completion); i.tsz_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.ct0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_3).spg = function (result, $completion) { var tmp = this.tpg(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.spg(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.dt0_1.zpf_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.ct0_1.wsx_1; while (true) { var prevValue = this_0.t2(); var tmp3_safe_receiver = prevValue.usy(); var tmp_2; if (tmp3_safe_receiver == null) { tmp_2 = null; } else { var tmp0_safe_receiver = prevValue.usy(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gjl_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.n7y_1.equals(new Long(0, 0))) { tmp_5 = groupSet; } else { tmp_5 = null; } var tmp2_safe_receiver = tmp_5; tmp_2 = tmp3_safe_receiver.ljl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_4, tmp2_safe_receiver == null ? null : tmp2_safe_receiver.o7y_1); } var nextValue = prevValue.ksy(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.hsy_1.pt0(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.ct0_1; var entity = newState.usy(); var serializer = Companion_getInstance_13().a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this_1.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_6 = this_1; var tmp_7 = this_1.cpu(); tmp_6.vq1_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).tpg = function (result, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_3(this.ct0_1, completion); i.dt0_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.spg(result, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.yt0_1 = $commitDelay; this.zt0_1 = $entity; this.at1_1 = $this; this.bt1_1 = $key; this.ct1_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.yt0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.zt0_1 == null)) { this.hd_1 = 2; suspendResult = this.at1_1.npu(this.at1_1.xps_1, this.bt1_1, this.ct1_1, this.zt0_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.yt0_1, this.zt0_1, this.at1_1, this.bt1_1, this.ct1_1, completion); i.dt1_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.mt1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_5).spg = function (result, $completion) { var tmp = this.tpg(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.spg(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.nt1_1.zpf_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.mt1_1.wsx_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = prevValue.hsy_1.et0_1; var nextValue = prevValue.ksy(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.hsy_1.pt0(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ljl(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.mt1_1; var entity = newState.usy(); var serializer = Companion_getInstance_13().a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this_1.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this_1; var tmp_3 = this_1.cpu(); tmp_2.vq1_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).tpg = function (result, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_5(this.mt1_1, completion); i.nt1_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.spg(result, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda).xt1 = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.xt1(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).pn8 = function (it, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda(completion); i.wt1_1 = it; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda_0(resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.xt1(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.gt2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_1).ht2 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_1).z77 = function ($completion) { return this.ht2($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.gt2_1.fpu()); var assignmentUid = tmp_0.a62(520); var this_0 = new CourseBlock(); var tmp_1 = this_0; var tmp_2 = get_doorPrimaryKeyManager(this.gt2_1.fpu()); tmp_1.g7x_1 = tmp_2.a62(124); var tmp_3 = this_0; tmp_3.h7x_1 = 103; this_0.y7x_1 = assignmentUid; var tmp_4 = this_0; tmp_4.m7x_1 = 102; this_0.r7x_1 = 10.0; this_0.s7x_1 = 0.0; var this_1 = new ClazzAssignment(); this_1.a7t_1 = assignmentUid; this_1.s7t_1 = this.gt2_1.zsx_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).y77 = function (completion) { return new ClazzAssignmentEditViewModel$slambda$slambda_1(this.gt2_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.ht2($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.wsx_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel...' call var tmp = prevValue.hsy_1.pt0(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.gjl_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.d7t_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.ksy(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.qt2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_3).bq9 = 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.bq9((!(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.qt2_1.z4q(); var value = this.qt2_1.wsx_1.t2(); var this_1 = this_0.g45(); var this_2 = serializer(this_1, createKType(getKClass(ClazzAssignmentEditUiState), arrayOf([]), false)); return this_0.e45(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.qt2_1, completion); i.rt2_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.bq9($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_5(this$0, resultContinuation) { this.at3_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.at3_1.wsx_1, ClazzAssignmentEditViewModel$slambda$slambda$slambda_0(this.at3_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.at3_1, completion); i.bt3_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.kt3_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.kt3_1.ipu(); Companion_getInstance_163(); var tmp_1 = this.kt3_1.gpx(tmp_0, 'courseBlockDesc'); var tmp_2 = ClazzAssignmentEditViewModel$slambda$slambda$slambda_2(this.kt3_1, null); suspendResult = tmp_1.z1b(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.kt3_1, completion); i.lt3_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.ut3_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.ut3_1.gpx(this.ut3_1.ipu(), 'groupSet'); var tmp_1 = ClazzAssignmentEditViewModel$slambda$slambda$slambda_4(this.ut3_1, null); suspendResult = tmp_0.z1b(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.ut3_1, completion); i.vt3_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.et4_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.et4_1.gpx(this.et4_1.ipu(), 'peerAllocationsResult'); var tmp_1 = ClazzAssignmentEditViewModel$slambda$slambda$slambda_6(this.et4_1, null); suspendResult = tmp_0.z1b(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.et4_1, completion); i.ft4_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.ot4_1 = this$0; this.pt4_1 = $initStateJson; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda$slambda).rt4 = 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.rt4((!(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.ot4_1.z4q().f45(Companion_getInstance_143().a4r(), this.pt4_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.ot4_1, this.pt4_1, completion); i.qt4_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.rt4($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onClickSave$slambda$lambda($this$shallowCopy) { $this$shallowCopy.d7t_1 = new Long(0, 0); return Unit_instance; } function _get_snackDisaptcher__bp310a($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ysx_1; snackDisaptcher$factory_0(); return this_0.t2(); } function hasErrors_0(_this__u8e3s4, $this) { return ((((((!(_this__u8e3s4.fsy_1 == null) ? true : !(_this__u8e3s4.hsy_1.lt0_1 == null)) ? true : !(_this__u8e3s4.hsy_1.kt0_1 == null)) ? true : !(_this__u8e3s4.hsy_1.nt0_1 == null)) ? true : !(_this__u8e3s4.dsy_1 == null)) ? true : !(_this__u8e3s4.gsy_1 == null)) ? true : !(_this__u8e3s4.jsy_1 == null)) ? true : _this__u8e3s4.hsy_1.tt4(); } function checkNoSubmissionsMade($this, $completion) { var tmp = $this.fpu().e7e(); var tmp0_safe_receiver = $this.wsx_1.t2().usy(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gjl_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a7t_1; return tmp.mbw(tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs, $completion); } function Companion_125() { this.ut4_1 = 'groupSet'; this.vt4_1 = 'peerAllocationsResult'; this.wt4_1 = 'terminology'; this.xt4_1 = 'CourseAssignmentEdit'; this.yt4_1 = 5; this.zt4_1 = 100; this.at5_1 = 'groupSubmissionOn'; } var Companion_instance_174; function Companion_getInstance_142() { return Companion_instance_174; } function sam$kotlinx_coroutines_flow_FlowCollector$0_17(function_0) { this.bt5_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_17).t1d = function (value, $completion) { return this.bt5_1(value, $completion); }; function ClazzAssignmentEditViewModel$_init_$lambda_wdhfey(db, systemImpl) { return new UpdatePeerReviewAllocationUseCase(db, systemImpl); } function ClazzAssignmentEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.kt5_1 = this$0; this.lt5_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.kt5_1.mpu(this.lt5_1, 'terminology', Companion_instance_34.a4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.nt5_1 = suspendResult; this.hd_1 = 2; var tmp_0 = Companion_getInstance_13().a4r(); var tmp_1 = ClazzAssignmentEditViewModel$slambda$slambda_0(null); var tmp_2 = ClazzAssignmentEditViewModel$slambda$slambda_2(this.kt5_1, null); suspendResult = this.kt5_1.rpu(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzAssignmentEditViewModel$slambda$lambda(this.lt5_1, this.kt5_1, this.nt5_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: Companion_getInstance_119(); if (this.lt5_1.ba('initState') == null) { var tmp_3 = this; Companion_getInstance_119(); tmp_3.ot5_1 = 'initState'; this.hd_1 = 3; var tmp_4 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_4, ClazzAssignmentEditViewModel$slambda$slambda_4(this.kt5_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.lt5_1.app(this.ot5_1, ARGUMENT); this.hd_1 = 4; continue $sm; case 4: l$ret$1: do { var this_0 = this.kt5_1.wsx_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.pt5(true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.kt5_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_5 = Companion_getInstance_89().vpc_1; var tmp_6 = this.kt5_1.npt().ant(strings_getInstance().nm2_1); var nextValue_0 = prevValue_0.npc(VOID, tmp_5, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_6, VOID, ClazzAssignmentEditViewModel$onClickSave$ref(this.kt5_1))); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); launch(this.mt5_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_6(this.kt5_1, null)); launch(this.mt5_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_8(this.kt5_1, null)); launch(this.mt5_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_10(this.kt5_1, null)); launch(this.mt5_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_12(this.kt5_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.kt5_1, this.lt5_1, completion); i.mt5_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.yt5_1 = $commitDelay; this.zt5_1 = $entity; this.at6_1 = $this; this.bt6_1 = $key; this.ct6_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.yt5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.zt5_1 == null)) { this.hd_1 = 2; suspendResult = this.at6_1.npu(this.at6_1.xps_1, this.bt6_1, this.ct6_1, this.zt5_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.yt5_1, this.zt5_1, this.at6_1, this.bt6_1, this.ct6_1, completion); i.dt6_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.mt6_1 = $commitDelay; this.nt6_1 = $entity; this.ot6_1 = $this; this.pt6_1 = $key; this.qt6_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.mt6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.nt6_1 == null)) { this.hd_1 = 2; suspendResult = this.ot6_1.npu(this.ot6_1.xps_1, this.pt6_1, this.qt6_1, this.nt6_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.mt6_1, this.nt6_1, this.ot6_1, this.pt6_1, this.qt6_1, completion); i.rt6_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.at7_1 = $commitDelay; this.bt7_1 = $entity; this.ct7_1 = $this; this.dt7_1 = $key; this.et7_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.at7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.bt7_1 == null)) { this.hd_1 = 2; suspendResult = this.ct7_1.npu(this.ct7_1.xps_1, this.dt7_1, this.et7_1, this.bt7_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.at7_1, this.bt7_1, this.ct7_1, this.dt7_1, this.et7_1, completion); i.ft7_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.wsx_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onClickSave..' call var nextValue = prevValue.pt5(true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.ot7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda).z77 = function ($completion) { return this.w86($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_119(); tmp_0.pt7_1 = this.ot7_1.xps_1.ba('initState'); if (this.pt7_1 == null) { this.qt7_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_1 = this; tmp_1.rt7_1 = this.pt7_1; var tmp_2 = this; tmp_2.st7_1 = this.rt7_1; this.hd_1 = 1; var tmp_3 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_3, ClazzAssignmentEditViewModel$onClickSave$slambda$slambda_0(this.ot7_1, this.st7_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.qt7_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.tt7_1 = this.qt7_1; var tmp_4 = this; var tmp_5; if (this.tt7_1 == null) { return Unit_instance; } else { tmp_5 = this.tt7_1; } tmp_4.ut7_1 = tmp_5; var tmp_6 = this; var tmp2_safe_receiver = this.ot7_1.wsx_1.t2().usy(); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.gjl_1; var tmp_7; if (tmp3_elvis_lhs == null) { return Unit_instance; } else { tmp_7 = tmp3_elvis_lhs; } tmp_6.vt7_1 = tmp_7; var tmp_8 = this; var tmp4_safe_receiver = this.ot7_1.wsx_1.t2().usy(); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.zjk_1; var tmp_9; if (tmp5_elvis_lhs == null) { return Unit_instance; } else { tmp_9 = tmp5_elvis_lhs; } tmp_8.wt7_1 = tmp_9; if (!this.vt7_1.i7t_1 ? !this.vt7_1.o7t_1 : false) { l$ret$1: do { var this_0 = this.ot7_1.wsx_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ksy(VOID, VOID, VOID, VOID, VOID, this.ot7_1.npt().ant(strings_getInstance().omu_1)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } var it = this.wt7_1.r7x_1; if (it == null ? true : it <= 0.0) { l$ret$3: do { var this_1 = this.ot7_1.wsx_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ksy(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.hsy_1.pt0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ot7_1.npt().ant(strings_getInstance().sly_1))); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } if (this.wt7_1.o7x_1.c7(this.wt7_1.n7x_1) <= 0) { l$ret$5: do { var this_2 = this.ot7_1.wsx_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.ksy(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_1.hsy_1.pt0(VOID, VOID, VOID, VOID, VOID, VOID, this.ot7_1.npt().ant(strings_getInstance().gmk_1))); if (this_2.y1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); } if (this.wt7_1.q7x_1.c7(this.wt7_1.o7x_1) < 0) { l$ret$7: do { var this_3 = this.ot7_1.wsx_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.ksy(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_2.hsy_1.pt0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ot7_1.npt().ant(strings_getInstance().ymg_1))); if (this_3.y1k(prevValue_2, nextValue_2)) { break l$ret$7; } } } while (false); } var containsArg = this.vt7_1.k7t_1; if (!(5 <= containsArg ? containsArg <= 100 : false)) { l$ret$9: do { var this_4 = this.ot7_1.wsx_1; while (true) { var prevValue_3 = this_4.t2(); var nextValue_3 = prevValue_3.ksy(VOID, VOID, VOID, VOID, VOID, VOID, this.ot7_1.npt().bnt(strings_getInstance().wmq_1, ['5', '100'])); if (this_4.y1k(prevValue_3, nextValue_3)) { break l$ret$9; } } } while (false); } var this_5 = this.wt7_1.k7x_1; if (this_5 == null ? true : isBlank(this_5)) { l$ret$11: do { var this_6 = this.ot7_1.wsx_1; while (true) { var prevValue_4 = this_6.t2(); var nextValue_4 = prevValue_4.ksy(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_4.hsy_1.pt0(VOID, VOID, VOID, VOID, VOID, this.ot7_1.npt().ant(strings_getInstance().nmw_1))); if (this_6.y1k(prevValue_4, nextValue_4)) { break l$ret$11; } } } while (false); } if (this.ot7_1.wsx_1.t2().isy_1 ? this.vt7_1.d7t_1.equals(new Long(0, 0)) : false) { l$ret$13: do { var this_7 = this.ot7_1.wsx_1; while (true) { var prevValue_5 = this_7.t2(); var nextValue_5 = prevValue_5.ksy(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ot7_1.npt().ant(strings_getInstance().sly_1)); if (this_7.y1k(prevValue_5, nextValue_5)) { break l$ret$13; } } } while (false); } this.xt7_1 = null; var tmp6_safe_receiver = this.ut7_1.usy(); var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.gjl_1; if (!equals(tmp7_safe_receiver == null ? null : tmp7_safe_receiver.d7t_1, this.vt7_1.d7t_1)) { this.hd_1 = 3; suspendResult = checkNoSubmissionsMade(this.ot7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.yt7_1 = false; this.hd_1 = 4; continue $sm; } case 3: this.zt7_1 = suspendResult; this.yt7_1 = !this.zt7_1; this.hd_1 = 4; continue $sm; case 4: if (this.yt7_1) { this.xt7_1 = this.ot7_1.npt().ant(strings_getInstance().vlt_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.ut7_1.usy(); var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.gjl_1; if (!((tmp9_safe_receiver == null ? null : tmp9_safe_receiver.n7t_1) === this.vt7_1.n7t_1)) { tmp_10 = this.xt7_1 == null; } else { tmp_10 = false; } if (tmp_10) { this.hd_1 = 6; suspendResult = checkNoSubmissionsMade(this.ot7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.at8_1 = false; this.hd_1 = 7; continue $sm; } case 6: this.bt8_1 = suspendResult; this.at8_1 = !this.bt8_1; this.hd_1 = 7; continue $sm; case 7: if (this.at8_1) { this.xt7_1 = this.ot7_1.npt().ant(strings_getInstance().vlt_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.vt7_1.n7t_1; if (tmp_12 === 2) { tmp_11 = this.vt7_1.t7t_1 < 1; } else { tmp_11 = false; } if (tmp_11) { l$ret$15: do { var this_8 = this.ot7_1.wsx_1; while (true) { var prevValue_6 = this_8.t2(); var nextValue_6 = prevValue_6.ksy(VOID, VOID, VOID, this.ot7_1.npt().ant(strings_getInstance().omr_1)); if (this_8.y1k(prevValue_6, nextValue_6)) { break l$ret$15; } } } while (false); } this.ct8_1 = this.xt7_1; if (hasErrors_0(this.ot7_1.wsx_1.t2(), this.ot7_1) ? true : !(this.ct8_1 == null)) { var tmp10_safe_receiver = this.ct8_1; if (tmp10_safe_receiver == null) null; else { _get_snackDisaptcher__bp310a(this.ot7_1).cpd(new Snack(tmp10_safe_receiver)); } return Unit_instance; } var tmp_13; var tmp_14 = this.vt7_1.n7t_1; if (tmp_14 === 2) { var tmp11_safe_receiver = this.ut7_1.usy(); var tmp12_safe_receiver = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.gjl_1; tmp_13 = !((tmp12_safe_receiver == null ? null : tmp12_safe_receiver.t7t_1) === this.vt7_1.t7t_1); } else { tmp_13 = false; } if (tmp_13) { this.hd_1 = 9; var tmp_15 = this.ot7_1.vsx_1(this.ot7_1.fpu(), this.ot7_1.npt()); var tmp13_safe_receiver = this.ot7_1.wsx_1.t2().usy(); var tmp14_elvis_lhs = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.ijl_1; suspendResult = tmp_15.yos(tmp14_elvis_lhs == null ? emptyList() : tmp14_elvis_lhs, this.vt7_1.d7t_1, this.vt7_1.s7t_1, this.vt7_1.a7t_1, this.vt7_1.t7t_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.ot7_1.wsx_1; while (true) { var prevValue_7 = this_9.t2(); var tmp0_safe_receiver = prevValue_7.hsy_1.et0_1; var nextValue_7 = prevValue_7.ksy(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_7.hsy_1.pt0(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ljl(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.ot7_1.wsx_1; var tmp_16; var tmp_17; var tmp0_safe_receiver_0 = this_10.t2().usy(); var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.gjl_1; if (!equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d7t_1, new Long(0, 0))) { tmp_17 = !this_10.t2().isy_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.hsy_1.et0_1; var tmp_18; if (tmp1_safe_receiver_0 == null) { tmp_18 = null; } else { var tmp0_safe_receiver_1 = prevValue_8.hsy_1.et0_1.gjl_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.ljl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_19, null); } var nextValue_8 = prevValue_8.ksy(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_8.hsy_1.pt0(tmp_18)); if (tmp15_safe_receiver.y1k(prevValue_8, nextValue_8)) { break l$ret$19; } } } while (false); } this.ot7_1.zq1(this.ot7_1.wsx_1.t2().usy()); 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).y77 = function (completion) { return new ClazzAssignmentEditViewModel$onClickSave$slambda(this.ot7_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.w86($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.vsx_1 = peerReviewAllocationUseCaseFactory; var tmp_0 = this; var tmp0_completionCriteriaOptions = Companion_getInstance_143().st4_1; var tmp1_timeZone = Companion_getInstance_9().clt().dls(); tmp_0.wsx_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.xsx_1 = asStateFlow(this.wsx_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.ysx_1 = Instance(this, tmp$ret$0, null).n5c(this, snackDisaptcher$factory()); var tmp_3 = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_3.zsx_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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.' call var tmp0_loadingState = Companion_getInstance_89().upc_1; var tmp1_title = this.yq2(strings_getInstance().qmg_1, strings_getInstance().rmg_1); var nextValue = prevValue.npc(VOID, tmp0_loadingState, tmp1_title, VOID, true, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_4 = this.cpu(); launch(tmp_4, VOID, VOID, ClazzAssignmentEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(ClazzAssignmentEditViewModel).dt8 = function (groupSubmissionOn) { this.xps_1.app('groupSubmissionOn', groupSubmissionOn.toString()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.wsx_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onGroupSubmissionOnChanged.' call var tmp; if (!(prevValue.jsy_1 == null) ? groupSubmissionOn : false) { tmp = prevValue.jsy_1; } else { tmp = null; } var nextValue = prevValue.ksy(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, groupSubmissionOn, tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentEditViewModel).et8 = function (assignment) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.wsx_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onAssignmentChanged.' call var tmp8_safe_receiver = prevValue.hsy_1.et0_1; var tmp9_courseBlockEditUiState = prevValue.hsy_1.pt0(tmp8_safe_receiver == null ? null : tmp8_safe_receiver.ljl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, assignment)); var tmp; var tmp_0; if (!(prevValue.gsy_1 == null)) { var tmp_1 = assignment == null ? null : assignment.k7t_1; var tmp6_safe_receiver = prevValue.usy(); var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.gjl_1; tmp_0 = tmp_1 == (tmp7_safe_receiver == null ? null : tmp7_safe_receiver.k7t_1); } else { tmp_0 = false; } if (tmp_0) { tmp = prevValue.gsy_1; } else { tmp = null; } var tmp10_sizeLimitError = tmp; var tmp_2; var tmp_3; var tmp_4; if (!(prevValue.fsy_1 == null)) { tmp_4 = (assignment == null ? null : assignment.i7t_1) === false; } else { tmp_4 = false; } if (tmp_4) { tmp_3 = !assignment.o7t_1; } else { tmp_3 = false; } if (tmp_3) { tmp_2 = prevValue.fsy_1; } else { tmp_2 = null; } var tmp11_submissionRequiredError = tmp_2; var tmp_5; var tmp_6; var tmp_7; if (!(prevValue.dsy_1 == null)) { var tmp_8 = assignment == null ? null : assignment.t7t_1; var tmp1_safe_receiver = prevValue.usy(); var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gjl_1; tmp_7 = tmp_8 == (tmp2_safe_receiver == null ? null : tmp2_safe_receiver.t7t_1); } else { tmp_7 = false; } if (tmp_7) { var tmp_9 = assignment == null ? null : assignment.n7t_1; tmp_6 = tmp_9 === 2; } else { tmp_6 = false; } if (tmp_6) { tmp_5 = prevValue.dsy_1; } else { tmp_5 = null; } var tmp12_reviewerCountError = tmp_5; var nextValue = prevValue.ksy(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.usy(); var serializer = Companion_getInstance_13().a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver = this.vq1_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp_10 = this; var tmp_11 = this.cpu(); tmp_10.vq1_1 = launch(tmp_11, VOID, VOID, ClazzAssignmentEditViewModel$onAssignmentChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzAssignmentEditViewModel).fsz = function (courseBlock) { if (courseBlock == null) { Napier_getInstance().z5d('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.wsx_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onCourseBlockChanged.' call var tmp0_safe_receiver = prevValue.usy(); var prevBlock = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zjk_1; var tmp8_$this = prevValue.hsy_1; var tmp1_safe_receiver = prevValue.usy(); var tmp9_block = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ljl(courseBlock); var tmp5_safe_receiver = prevValue.hsy_1.et0_1; var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.zjk_1; var tmp10_caMaxPointsError = this.zq2(tmp6_safe_receiver == null ? null : tmp6_safe_receiver.r7x_1, courseBlock.r7x_1, prevValue.hsy_1.lt0_1); var tmp; var tmp_0; var tmp_1; if (!(prevValue.hsy_1.kt0_1 == null)) { tmp_1 = equals(prevBlock == null ? null : prevBlock.o7x_1, courseBlock.o7x_1); } else { tmp_1 = false; } if (tmp_1) { tmp_0 = prevBlock.n7x_1.equals(courseBlock.n7x_1); } else { tmp_0 = false; } if (tmp_0) { tmp = prevValue.hsy_1.kt0_1; } else { tmp = null; } var tmp11_caDeadlineError = tmp; var tmp_2; var tmp_3; var tmp_4; if (!(prevValue.hsy_1.nt0_1 == null)) { tmp_4 = equals(prevBlock == null ? null : prevBlock.o7x_1, courseBlock.o7x_1); } else { tmp_4 = false; } if (tmp_4) { tmp_3 = prevBlock.q7x_1.equals(courseBlock.q7x_1); } else { tmp_3 = false; } if (tmp_3) { tmp_2 = prevValue.hsy_1.nt0_1; } else { tmp_2 = null; } var tmp12_caGracePeriodError = tmp_2; var tmp2_safe_receiver = prevValue.hsy_1.et0_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.zjk_1; var tmp13_caTitleError = this.zq2(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.k7x_1, courseBlock.k7x_1, prevValue.hsy_1.jt0_1); var nextValue = prevValue.ksy(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp8_$this.pt0(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.usy(); var serializer = Companion_getInstance_13().a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_5 = this; var tmp_6 = this.cpu(); tmp_5.vq1_1 = launch(tmp_6, VOID, VOID, ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzAssignmentEditViewModel).ft8 = function (pictureUri) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.wsx_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onPictureChanged.' call var tmp1_safe_receiver = prevValue.hsy_1.et0_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.hsy_1.et0_1.ajl_1; tmp = tmp1_safe_receiver.ljl(VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qjx(VOID, VOID, pictureUri)); } var nextValue = prevValue.ksy(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.hsy_1.pt0(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.usy(); var serializer = Companion_getInstance_13().a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.cpu(); tmp_0.vq1_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentEditViewModel$onPictureChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzAssignmentEditViewModel).gt8 = function () { var tmp = serializer_0(StringCompanionObject_instance); Companion_getInstance_119(); var tmp0_safe_receiver = this.wsx_1.t2().usy(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gjl_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s7t_1; this.ppu('CourseGroups', 'groupSet', null, tmp, mapOf_0(to('clazzUid', (tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs).toString()))); }; protoOf(ClazzAssignmentEditViewModel).ht8 = function () { var tmp0_safe_receiver = this.wsx_1.t2().usy(); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gjl_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.a4r()); var tmp_1 = this.z4q(); var tmp_2 = ListSerializer(Companion_instance_18.a4r()); var tmp2_safe_receiver = this.wsx_1.t2().usy(); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ijl_1; var tmp_3 = to('allocations', tmp_1.e45(tmp_2, tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs)); var tmp_4 = to('groupSetUid', assignmentVal.d7t_1.toString()); Companion_getInstance_119(); var tmp_5 = to('clazzUid', assignmentVal.s7t_1.toString()); var tmp_6 = to('numReviewers', assignmentVal.t7t_1.toString()); Companion_getInstance_108(); this.ppu('PeerReviewerAllocationEdit', 'peerAllocationsResult', null, tmp_0, mapOf([tmp_3, tmp_4, tmp_5, tmp_6, to('clazzAssignmentUid', assignmentVal.a7t_1.toString())])); }; protoOf(ClazzAssignmentEditViewModel).yr9 = function () { if (!this.wsx_1.t2().asy_1) return Unit_instance; var tmp = ClazzAssignmentEditViewModel$onClickSave$lambda(this); this.bq3(tmp, ClazzAssignmentEditViewModel$onClickSave$slambda_0(this, null)); }; function Companion_126() { Companion_instance_175 = this; this.st4_1 = listOf([CompletionCriteria_ASSIGNMENT_SUBMITTED_getInstance(), CompletionCriteria_ASSIGNMENT_GRADED_getInstance()]); } protoOf(Companion_126).a4r = function () { return $serializer_getInstance_68(); }; var Companion_instance_175; function Companion_getInstance_143() { if (Companion_instance_175 == null) new Companion_126(); return Companion_instance_175; } function $serializer_56() { $serializer_instance_56 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditUiState', this, 10); tmp0_serialDesc.g4f('fieldsEnabled', true); tmp0_serialDesc.g4f('markingTypeEnabled', true); tmp0_serialDesc.g4f('groupSetEnabled', true); tmp0_serialDesc.g4f('reviewerCountError', true); tmp0_serialDesc.g4f('courseTerminology', true); tmp0_serialDesc.g4f('submissionRequiredError', true); tmp0_serialDesc.g4f('sizeLimitError', true); tmp0_serialDesc.g4f('courseBlockEditUiState', true); tmp0_serialDesc.g4f('groupSubmissionOn', true); tmp0_serialDesc.g4f('groupSetError', true); this.it8_1 = tmp0_serialDesc; } protoOf($serializer_56).d44 = function () { return this.it8_1; }; protoOf($serializer_56).x4f = 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_70(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_56).f44 = function (decoder) { var tmp0_desc = this.it8_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.v47(tmp0_desc); if (tmp14_input.k48()) { tmp4_local0 = tmp14_input.x47(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.x47(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.x47(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.j48(tmp0_desc, 4, $serializer_getInstance_10(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.h48(tmp0_desc, 7, $serializer_getInstance_70(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.x47(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.x47(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.x47(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.x47(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.j48(tmp0_desc, 4, $serializer_getInstance_10(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.h48(tmp0_desc, 7, $serializer_getInstance_70(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.x47(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.w47(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_56).jt8 = function (encoder, value) { var tmp0_desc = this.it8_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.asy_1 === false)) { tmp1_output.b49(tmp0_desc, 0, value.asy_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.bsy_1 === true)) { tmp1_output.b49(tmp0_desc, 1, value.bsy_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.csy_1 === true)) { tmp1_output.b49(tmp0_desc, 2, value.csy_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.dsy_1 == null)) { tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.dsy_1); } if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.esy_1 == null)) { tmp1_output.n49(tmp0_desc, 4, $serializer_getInstance_10(), value.esy_1); } if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.fsy_1 == null)) { tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.fsy_1); } if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.gsy_1 == null)) { tmp1_output.n49(tmp0_desc, 6, StringSerializer_getInstance(), value.gsy_1); } if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.hsy_1.equals(new CourseBlockEditUiState(VOID, VOID, Companion_getInstance_143().st4_1))) { tmp1_output.l49(tmp0_desc, 7, $serializer_getInstance_70(), value.hsy_1); } if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.isy_1 === false)) { tmp1_output.b49(tmp0_desc, 8, value.isy_1); } if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.jsy_1 == null)) { tmp1_output.n49(tmp0_desc, 9, StringSerializer_getInstance(), value.jsy_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_56).e44 = function (encoder, value) { return this.jt8(encoder, value instanceof ClazzAssignmentEditUiState ? value : THROW_CCE()); }; var $serializer_instance_56; function $serializer_getInstance_68() { if ($serializer_instance_56 == null) new $serializer_56(); return $serializer_instance_56; } 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_68().it8_1); } if (0 === (seen1 & 1)) $this.asy_1 = false; else $this.asy_1 = fieldsEnabled; if (0 === (seen1 & 2)) $this.bsy_1 = true; else $this.bsy_1 = markingTypeEnabled; if (0 === (seen1 & 4)) $this.csy_1 = true; else $this.csy_1 = groupSetEnabled; if (0 === (seen1 & 8)) $this.dsy_1 = null; else $this.dsy_1 = reviewerCountError; if (0 === (seen1 & 16)) $this.esy_1 = null; else $this.esy_1 = courseTerminology; if (0 === (seen1 & 32)) $this.fsy_1 = null; else $this.fsy_1 = submissionRequiredError; if (0 === (seen1 & 64)) $this.gsy_1 = null; else $this.gsy_1 = sizeLimitError; if (0 === (seen1 & 128)) $this.hsy_1 = new CourseBlockEditUiState(VOID, VOID, Companion_getInstance_143().st4_1); else $this.hsy_1 = courseBlockEditUiState; if (0 === (seen1 & 256)) $this.isy_1 = false; else $this.isy_1 = groupSubmissionOn; if (0 === (seen1 & 512)) $this.jsy_1 = null; else $this.jsy_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_143(); 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_143().st4_1) : courseBlockEditUiState; groupSubmissionOn = groupSubmissionOn === VOID ? false : groupSubmissionOn; groupSetError = groupSetError === VOID ? null : groupSetError; this.asy_1 = fieldsEnabled; this.bsy_1 = markingTypeEnabled; this.csy_1 = groupSetEnabled; this.dsy_1 = reviewerCountError; this.esy_1 = courseTerminology; this.fsy_1 = submissionRequiredError; this.gsy_1 = sizeLimitError; this.hsy_1 = courseBlockEditUiState; this.isy_1 = groupSubmissionOn; this.jsy_1 = groupSetError; } protoOf(ClazzAssignmentEditUiState).usy = function () { return this.hsy_1.et0_1; }; protoOf(ClazzAssignmentEditUiState).kt8 = function () { var tmp0_safe_receiver = this.usy(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gjl_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n7t_1; return tmp === 2; }; protoOf(ClazzAssignmentEditUiState).lt8 = function () { var tmp0_safe_receiver = this.usy(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gjl_1; return (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o7t_1) === true; }; protoOf(ClazzAssignmentEditUiState).mt8 = function () { var tmp0_safe_receiver = this.usy(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gjl_1; return (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.i7t_1) === true; }; protoOf(ClazzAssignmentEditUiState).pt5 = function (fieldsEnabled) { return this.ksy(fieldsEnabled, VOID, VOID, VOID, VOID, VOID, VOID, this.hsy_1.pt0(VOID, VOID, VOID, fieldsEnabled)); }; protoOf(ClazzAssignmentEditUiState).nt8 = 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).ksy = function (fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError, $super) { fieldsEnabled = fieldsEnabled === VOID ? this.asy_1 : fieldsEnabled; markingTypeEnabled = markingTypeEnabled === VOID ? this.bsy_1 : markingTypeEnabled; groupSetEnabled = groupSetEnabled === VOID ? this.csy_1 : groupSetEnabled; reviewerCountError = reviewerCountError === VOID ? this.dsy_1 : reviewerCountError; courseTerminology = courseTerminology === VOID ? this.esy_1 : courseTerminology; submissionRequiredError = submissionRequiredError === VOID ? this.fsy_1 : submissionRequiredError; sizeLimitError = sizeLimitError === VOID ? this.gsy_1 : sizeLimitError; courseBlockEditUiState = courseBlockEditUiState === VOID ? this.hsy_1 : courseBlockEditUiState; groupSubmissionOn = groupSubmissionOn === VOID ? this.isy_1 : groupSubmissionOn; groupSetError = groupSetError === VOID ? this.jsy_1 : groupSetError; return $super === VOID ? this.nt8(fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError) : $super.nt8.call(this, fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError); }; protoOf(ClazzAssignmentEditUiState).toString = function () { return 'ClazzAssignmentEditUiState(fieldsEnabled=' + this.asy_1 + ', markingTypeEnabled=' + this.bsy_1 + ', groupSetEnabled=' + this.csy_1 + ', reviewerCountError=' + this.dsy_1 + ', courseTerminology=' + this.esy_1 + ', submissionRequiredError=' + this.fsy_1 + ', sizeLimitError=' + this.gsy_1 + ', courseBlockEditUiState=' + this.hsy_1 + ', groupSubmissionOn=' + this.isy_1 + ', groupSetError=' + this.jsy_1 + ')'; }; protoOf(ClazzAssignmentEditUiState).hashCode = function () { var result = getBooleanHashCode(this.asy_1); result = imul(result, 31) + getBooleanHashCode(this.bsy_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.csy_1) | 0; result = imul(result, 31) + (this.dsy_1 == null ? 0 : getStringHashCode(this.dsy_1)) | 0; result = imul(result, 31) + (this.esy_1 == null ? 0 : hashCode(this.esy_1)) | 0; result = imul(result, 31) + (this.fsy_1 == null ? 0 : getStringHashCode(this.fsy_1)) | 0; result = imul(result, 31) + (this.gsy_1 == null ? 0 : getStringHashCode(this.gsy_1)) | 0; result = imul(result, 31) + this.hsy_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.isy_1) | 0; result = imul(result, 31) + (this.jsy_1 == null ? 0 : getStringHashCode(this.jsy_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.asy_1 === tmp0_other_with_cast.asy_1)) return false; if (!(this.bsy_1 === tmp0_other_with_cast.bsy_1)) return false; if (!(this.csy_1 === tmp0_other_with_cast.csy_1)) return false; if (!(this.dsy_1 == tmp0_other_with_cast.dsy_1)) return false; if (!equals(this.esy_1, tmp0_other_with_cast.esy_1)) return false; if (!(this.fsy_1 == tmp0_other_with_cast.fsy_1)) return false; if (!(this.gsy_1 == tmp0_other_with_cast.gsy_1)) return false; if (!this.hsy_1.equals(tmp0_other_with_cast.hsy_1)) return false; if (!(this.isy_1 === tmp0_other_with_cast.isy_1)) return false; if (!(this.jsy_1 == tmp0_other_with_cast.jsy_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.wt8_1 = this$0; this.xt8_1 = $savedStateHandle; this.yt8_1 = $primaryKeyManager; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda).st9 = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.st9(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.wt8_1.mpu(this.xt8_1, 'allocations', ListSerializer(Companion_instance_18.a4r()), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.at9_1 = suspendResult; this.hd_1 = 2; suspendResult = this.zt8_1.d7e().a7s(this.wt8_1.tta_1, this.wt8_1.wta_1, systemTimeInMillis(), this.wt8_1.npt().ant(strings_getInstance().pmq_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.bt9_1 = suspendResult; Napier_getInstance().v5d('Number of submitters: ' + this.bt9_1.u()); var tmp_0 = this; tmp_0.ct9_1 = this.bt9_1; var tmp_1 = this; tmp_1.dt9_1 = this.ct9_1; var tmp_2 = this; tmp_2.et9_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.ct9_1, 10)); this.ft9_1 = this.dt9_1.w(); this.hd_1 = 3; continue $sm; case 3: if (!this.ft9_1.f()) { this.hd_1 = 8; continue $sm; } this.gt9_1 = this.ft9_1.e(); var tmp_3 = this; tmp_3.ht9_1 = this.gt9_1; this.it9_1 = new AssignmentSubmitterSummary(this.ht9_1.r7w_1, this.ht9_1.q7w_1); var tmp_4 = this; var tmp0_safe_receiver = this.at9_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.ifp_1.equals(this.ht9_1.r7w_1)) { destination.i1(element); } } tmp_5 = destination; } var tmp1_elvis_lhs = tmp_5; tmp_4.jt9_1 = trimToSize(tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs, this.wt8_1.uta_1); var tmp_6 = this; tmp_6.kt9_1 = this.wt8_1.uta_1; if (this.jt9_1.u() < this.kt9_1) { var tmp_7 = this; tmp_7.mt9_1 = until(this.jt9_1.u(), this.kt9_1); var tmp_8 = this; tmp_8.nt9_1 = this.mt9_1; var tmp_9 = this; tmp_9.ot9_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.mt9_1, 10)); this.pt9_1 = this.nt9_1.w(); this.hd_1 = 4; continue $sm; } else { var tmp_10 = this; tmp_10.lt9_1 = this.jt9_1; this.hd_1 = 7; continue $sm; } case 4: if (!this.pt9_1.f()) { this.hd_1 = 6; continue $sm; } this.qt9_1 = this.pt9_1.e(); var tmp_11 = this; tmp_11.rt9_1 = this.qt9_1; this.hd_1 = 5; suspendResult = this.yt8_1.b62(140, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var ARGUMENT = suspendResult; var ARGUMENT_0 = new PeerReviewerAllocation(ARGUMENT, VOID, this.ht9_1.r7w_1, this.wt8_1.vta_1); this.ot9_1.i1(ARGUMENT_0); this.hd_1 = 4; continue $sm; case 6: var ARGUMENT_1 = this.ot9_1; this.lt9_1 = plus(this.jt9_1, ARGUMENT_1); this.hd_1 = 7; continue $sm; case 7: var ARGUMENT_2 = this.lt9_1; var ARGUMENT_3 = new AssignmentSubmitterAndAllocations(this.it9_1, ARGUMENT_2); this.et9_1.i1(ARGUMENT_3); this.hd_1 = 3; continue $sm; case 8: return this.et9_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).pn8 = function (db, completion) { var i = new PeerReviewerAllocationEditViewModel$slambda$slambda(this.wt8_1, this.xt8_1, this.yt8_1, completion); i.zt8_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.st9(db, $completion); }; l.$arity = 1; return l; } function PeerReviewerAllocationEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).ftb = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).z77 = function ($completion) { return this.ftb($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).y77 = 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.ftb($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.rta_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditViewModel...' call var nextValue = prevValue.htb(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.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function Companion_127() { this.itb_1 = 'allocations'; this.jtb_1 = 'groupSetUid'; this.ktb_1 = 'numReviewers'; this.ltb_1 = 'PeerReviewerAllocationEdit'; } var Companion_instance_176; function Companion_getInstance_144() { return Companion_instance_176; } function PeerReviewerAllocationEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.utb_1 = this$0; this.vtb_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.xtb_1 = get_doorPrimaryKeyManager(this.utb_1.fpu()); this.hd_1 = 1; var tmp_0 = ListSerializer(Companion_getInstance_14().a4r()); var tmp_1 = PeerReviewerAllocationEditViewModel$slambda$slambda_0(this.utb_1, this.vtb_1, this.xtb_1, null); var tmp_2 = PeerReviewerAllocationEditViewModel$slambda$slambda_2(null); suspendResult = this.utb_1.rpu(tmp_0, VOID, VOID, tmp_1, tmp_2, PeerReviewerAllocationEditViewModel$slambda$lambda(this.utb_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.utb_1.bpt_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.utb_1.npt().ant(strings_getInstance().nm2_1); var nextValue = prevValue.npc(VOID, VOID, VOID, VOID, true, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, PeerReviewerAllocationEditViewModel$onClickSave$ref(this.utb_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.utb_1, this.vtb_1, completion); i.wtb_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.gfp_1.equals($allocation.gfp_1); }; } function PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda(this$0, resultContinuation) { this.gtc_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.gtc_1.rta_1.t2().gtb_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var list = element.xjn_1; addAll(destination, list); } suspendResult = this.gtc_1.qta_1.xos(destination, this.gtc_1.wta_1, this.gtc_1.tta_1, this.gtc_1.vta_1, this.gtc_1.uta_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.gtc_1.rta_1; while (true) { var prevValue = this_1.t2(); var this_2 = prevValue.gtb_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.ifp_1.equals(item.wjn_1.e7v_1)) { destination_1.i1(element_0); } } destination_0.i1(new AssignmentSubmitterAndAllocations(item.wjn_1, destination_1)); } var nextValue = prevValue.htb(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.gtc_1, completion); i.htc_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)).s57(); // 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.q57(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(di).s57(); // 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.q57(tmp$ret$2, null); tmp = new UpdatePeerReviewAllocationUseCase(tmp_2, tmp$ret$3); } else { tmp = updatePeerReviewAllocationUseCase; } updatePeerReviewAllocationUseCase = tmp; UstadEditViewModel.call(this, di, savedStateHandle, 'PeerReviewerAllocationEdit'); this.qta_1 = updatePeerReviewAllocationUseCase; this.rta_1 = MutableStateFlow(new PeerReviewerAllocationEditUIState()); this.sta_1 = asStateFlow(this.rta_1); var tmp_5 = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_5.tta_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.uta_1 = tmp1_elvis_lhs_0 == null ? 1 : tmp1_elvis_lhs_0; var tmp_7 = this; Companion_getInstance_108(); 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.vta_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.wta_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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditViewModel.' call var nextValue = prevValue.npc(VOID, VOID, this.npt().ant(strings_getInstance().imv_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_9 = this.cpu(); launch(tmp_9, VOID, VOID, PeerReviewerAllocationEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(PeerReviewerAllocationEditViewModel).itc = function (allocation) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.rta_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.gtb_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.wjn_1.e7v_1.equals(allocation.ifp_1)) { tmp = item.zjn(VOID, replace_0(item.xjn_1, allocation, PeerReviewerAllocationEditViewModel$onAllocationChanged$lambda(allocation))); } else { tmp = item; } var tmp$ret$0 = tmp; destination.i1(tmp$ret$0); } var nextValue = prevValue.htb(destination); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(PeerReviewerAllocationEditViewModel).jtc = function () { var tmp = this.cpu(); launch(tmp, VOID, VOID, PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda_0(this, null)); }; protoOf(PeerReviewerAllocationEditViewModel).yr9 = function () { // Inline function 'kotlin.collections.flatMap' call // Inline function 'kotlin.collections.flatMapTo' call var this_0 = this.rta_1.t2().gtb_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.xjn_1; addAll(destination, list); } this.zq1(destination); }; function PeerReviewerAllocationEditUIState(submitterListWithAllocations) { submitterListWithAllocations = submitterListWithAllocations === VOID ? emptyList() : submitterListWithAllocations; this.gtb_1 = submitterListWithAllocations; } protoOf(PeerReviewerAllocationEditUIState).ktc = function (allocation) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.gtb_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditUIState.reviewerOptionsForAllocation.' call if (element.wjn_1.e7v_1.equals(allocation.ifp_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.xjn_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.gfp_1.equals(allocation.gfp_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.hfp_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.gtb_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.wjn_1.e7v_1.equals(allocation.ifp_1) ? !otherMarkersAlreadySelected.a1(element_1.wjn_1.e7v_1) : false) { destination_1.i1(element_1); } } return destination_1; }; protoOf(PeerReviewerAllocationEditUIState).htb = function (submitterListWithAllocations) { return new PeerReviewerAllocationEditUIState(submitterListWithAllocations); }; protoOf(PeerReviewerAllocationEditUIState).toString = function () { return 'PeerReviewerAllocationEditUIState(submitterListWithAllocations=' + this.gtb_1 + ')'; }; protoOf(PeerReviewerAllocationEditUIState).hashCode = function () { return hashCode(this.gtb_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.gtb_1, tmp0_other_with_cast.gtb_1)) return false; return true; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ttc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda).vtc = function (it, $completion) { var tmp = this.wtc(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.vtc((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.ttc_1.ttd_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ctf(VOID, this.utc_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).wtc = function (it, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda(this.ttc_1, completion); i.utc_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.vtc(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ltf_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.ltf_1.hpu().c7d().gcg(this.ltf_1.xtd_1); var tmp_1 = ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda_0(this.ltf_1, null); suspendResult = tmp_0.z1b(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.ltf_1, completion); i.mtf_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).esk = function (submissions, submissionFiles, $completion) { var tmp = this.fsk(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.esk(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.vtf_1, this.wtf_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).fsk = function (submissions, submissionFiles, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(completion); i.vtf_1 = submissions; i.wtf_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.esk(submissions, submissionFiles, $completion); }; l.$arity = 2; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.ftg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).qsk = function (it, $completion) { var tmp = this.rsk(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.qsk((!(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.ftg_1.ttd_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ctf(VOID, VOID, VOID, this.gtg_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).rsk = function (it, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this.ftg_1, completion); i.gtg_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.qsk(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.ptg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5).csl = function (it, $completion) { var tmp = this.dsl(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.csl((!(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.ptg_1.ttd_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ctf(VOID, VOID, VOID, VOID, VOID, this.qtg_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).dsl = function (it, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5(this.ptg_1, completion); i.qtg_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.csl(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ztg_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.ztg_1).wnx(this.ztg_1.ytd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var submitterName = suspendResult; l$ret$1: do { var this_0 = this.ztg_1.bpt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.npc(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.ztg_1, completion); i.ath_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.jth_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.kth_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_0(this.jth_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.jth_1, completion); i.kth_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.tth_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.vth_1 = this.tth_1.hpu().e7e().kbw(this.tth_1.ytd_1, this.tth_1.xtd_1); this.wth_1 = this.tth_1.hpu().f7e().vc4(this.tth_1.ytd_1, this.tth_1.xtd_1); this.hd_1 = 1; var tmp_0 = distinctUntilChanged(combine(this.vth_1, this.wth_1, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_2(null))); var tmp_1 = ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_4(this.tth_1, null); suspendResult = tmp_0.z1b(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.tth_1, completion); i.uth_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.fti_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.fti_1.hpu().g7e().jbq(this.fti_1.ytd_1, this.fti_1.xtd_1); var tmp_1 = ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_6(this.fti_1, null); suspendResult = tmp_0.z1b(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.fti_1, completion); i.gti_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.pti_1 = this$0; this.qti_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda).sti = function (permissionPair, $completion) { var tmp = this.tti(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.sti(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.rti_1.jdj_1) { l$ret$1: do { var this_0 = this.pti_1.ttd_1; while (true) { var prevValue = this_0.t2(); var tmp0_privateCommentsList = this.pti_1.ate_1; var tmp1_activeUserPersonUid = this.pti_1.dpu(); var tmp2_activeUserSubmitterId = this.rti_1.ldj_1; var tmp_0; if (this.rti_1.idj_1) { var this_1 = new CourseAssignmentMark(); this_1.ebr_1 = -1.0; tmp_0 = this_1; } else { tmp_0 = null; } var tmp3_draftMark = tmp_0; var tmp4_showModerateOptions = this.rti_1.kdj_1; var nextValue = prevValue.ctf(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.qti_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_0(this.pti_1, null)); launch(this.qti_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_2(this.pti_1, null)); launch(this.qti_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_4(this.pti_1, null)); launch(this.qti_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_6(this.pti_1, null)); } else { l$ret$3: do { var this_2 = this.pti_1.ttd_1; while (true) { var prevValue_0 = this_2.t2(); var tmp0_submissionList = emptyList(); var tmp1_marks = emptyList(); var nextValue_0 = prevValue_0.ctf(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).tti = function (permissionPair, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda(this.pti_1, this.qti_1, completion); i.rti_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.sti(permissionPair, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda($permissionFlow, this$0, resultContinuation) { this.ctj_1 = $permissionFlow; this.dtj_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.ctj_1); suspendResult = collectLatest(tmp_0, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda_0(this.dtj_1, this.etj_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.ctj_1, this.dtj_1, completion); i.etj_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.ntj_1 = $this_launch; this.otj_1 = $permissionFlow; this.ptj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.ntj_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda_0(this.otj_1, this.ptj_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).y77 = function (completion) { return new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda(this.ntj_1, this.otj_1, this.ptj_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.w86($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.ttd_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.openSubmissionFileAsBlob...' call var nextValue = prevValue.ctf(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.bte_1; assignmentSubmitterNameUseCase$factory_0(); return this_0.t2(); } function _get_openBlobUiUseCase__fzusqz_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.dte_1; openBlobUiUseCase$factory_2(); return this_0.t2(); } function _get_submitMarkUseCase__y8b5kx($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ete_1; submitMarkUseCase$factory_0(); return this_0.t2(); } function openSubmissionFileAsBlob_0($this, file, intent) { var tmp0_elvis_lhs = file.pc6_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var submissionFile = tmp; var tmp1_safe_receiver = $this.cte_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.mr(); } var tmp_0 = $this; var tmp_1 = $this.cpu(); tmp_0.cte_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda_0($this, submissionFile, intent, null)); } function Companion_128() { this.qtj_1 = 'assignmentUid'; this.rtj_1 = 'submitterUid'; this.stj_1 = 'CourseAssignmentSubmitter'; } var Companion_instance_177; function Companion_getInstance_145() { return Companion_instance_177; } function sam$kotlinx_coroutines_flow_FlowCollector$0_18(function_0) { this.ttj_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_18).t1d = function (value, $completion) { return this.ttj_1(value, $completion); }; function ClazzAssignmentSubmitterDetailViewModel$privateCommentsPagingSourceFactory$lambda(this$0) { return function () { return this$0.hpu().h7e().ea8(this$0.ytd_1, this$0.xtd_1, false); }; } function ClazzAssignmentSubmitterDetailViewModel$slambda(this$0, $permissionFlow, resultContinuation) { this.ctk_1 = this$0; this.dtk_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.ctk_1.ttd_1, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda_0(this.etk_1, this.dtk_1, this.ctk_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.ctk_1, this.dtk_1, completion); i.etk_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.ntk_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.ntk_1.hpu().h7e(); var this_0 = new Comments(); this_0.za8_1 = this.ntk_1.ytd_1; this_0.aa9_1 = this.ntk_1.ttd_1.t2().ute_1; this_0.ya8_1 = this.ntk_1.dpu(); this_0.wa8_1 = this.ntk_1.xtd_1; this_0.va8_1 = this.ntk_1.vtd_1.t2(); this_0.da9_1 = systemTimeInMillis(); suspendResult = tmp_0.ba8(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_1 = this; this.ntk_1.vtd_1.x1k(''); tmp_1.ptk_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.ntk_1.epx(Companion_getInstance_89().vpc_1); return Unit_instance; case 4: this.id_1 = 5; var t = this.kd_1; this.ntk_1.epx(Companion_getInstance_89().vpc_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.ntk_1, completion); i.otk_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.ytk_1 = this$0; this.ztk_1 = $assignment; this.atl_1 = $draftMark; this.btl_1 = $submissions; this.ctl_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.ytk_1); var tmp_1 = this.ytk_1.bpu().rnj().en4_1; var this_0 = this.btl_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.ejn_1); } suspendResult = tmp_0.fnw(tmp_1, this.ztk_1, this.ytk_1.ztd_1, this.ytk_1.ytd_1, this.atl_1, destination, this.ctl_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.ytk_1.ttd_1; while (true) { var prevValue = this_1.t2(); var this_2 = new CourseAssignmentMark(); this_2.ebr_1 = -1.0; var nextValue = prevValue.ctf(VOID, VOID, VOID, VOID, VOID, VOID, this_2); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); tmp_2.etl_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.ytk_1.jpu().cpd(new Snack('Error: ' + e.message)); Napier_getInstance().z5d('Exception submitting mark:', e); tmp_4.etl_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.ytk_1.ttd_1; while (true) { var prevValue_0 = this_3.t2(); var nextValue_0 = prevValue_0.ctf(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.ytk_1.ttd_1; while (true) { var prevValue_1 = this_4.t2(); var nextValue_1 = prevValue_1.ctf(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.ytk_1, this.ztk_1, this.atl_1, this.btl_1, this.ctl_1, completion); i.dtl_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.ntl_1 = this$0; this.otl_1 = $submissionFile; this.ptl_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.rtl_1 = _get_openBlobUiUseCase__fzusqz_0(this.ntl_1); if (this.rtl_1 == null) { this.stl_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = asBlobOpenItem(this.otl_1); suspendResult = this.rtl_1.gnz(tmp_0, ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda$lambda(this.ntl_1), this.ptl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_1 = this; tmp_1.stl_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.ntl_1, this.otl_1, this.ptl_1, completion); i.qtl_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.btm_1 = this$0; this.ctm_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.btm_1.hpu().h7e().ca8(this.ctm_1.ua8_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.btm_1.jpu().cpd(new Snack(this.btm_1.npt().ant(strings_getInstance().qlu_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.btm_1, this.ctm_1, completion); i.dtm_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.ttd_1 = MutableStateFlow(new ClazzAssignmentSubmitterDetailUiState(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.npt().ipb())); this.utd_1 = asStateFlow(this.ttd_1); this.vtd_1 = MutableStateFlow(''); this.wtd_1 = asStateFlow(this.vtd_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.xtd_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.ytd_1 = tmp_2; var tmp_3 = this; Companion_getInstance_119(); 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.ztd_1 = tmp_4; var tmp_5 = this; tmp_5.ate_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.bpu().nnk(); var trigger = this.q56(); // 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.u56(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.bte_1 = Instance(this_0, tmp$ret$3, null).n5c(this, assignmentSubmitterNameUseCase$factory()); this.cte_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.dte_1 = InstanceOrNull(this_1, tmp$ret$5, null).n5c(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.ete_1 = Instance(this_2, tmp$ret$7, null).n5c(this, submitMarkUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.ttd_1; while (true) { var prevValue = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.' call var tmp_14 = this.bpu().rnj().en4_1.hk2(); var tmp0_safe_receiver_2 = this.bpu().rnj().gn4_1; var nextValue = prevValue.ctf(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.u96_1); if (this_3.y1k(prevValue, nextValue)) { break $l$block; } } } var permissionFlow = this.hpu().b7f().ddf(this.dpu(), this.xtd_1, this.ztd_1, this.ytd_1); var tmp_15 = this.cpu(); launch(tmp_15, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda_0(this, permissionFlow, null)); } protoOf(ClazzAssignmentSubmitterDetailViewModel).etm = function (text) { this.vtd_1.x1k(text); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).ftm = function () { if (this.fpx().equals(Companion_getInstance_89().upc_1)) return Unit_instance; this.epx(Companion_getInstance_89().upc_1); var tmp = this.cpu(); launch(tmp, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda_0(this, null)); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).gtm = function (draftMark) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ttd_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.lte_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ebr_1; if (tmp_0 == (draftMark == null ? null : draftMark.ebr_1)) { tmp = prevValue.fte_1; } else { tmp = null; } var tmp2_submitMarkError = tmp; var nextValue = prevValue.ctf(tmp2_submitMarkError, VOID, VOID, VOID, VOID, VOID, draftMark); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentSubmitterDetailViewModel).htm = function () { if (!this.ttd_1.t2().itm()) return Unit_instance; var tmp0_elvis_lhs = this.ttd_1.t2().lte_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var draftMark = tmp; var submissions = this.ttd_1.t2().ite_1; var tmp1_elvis_lhs = this.ttd_1.t2().gte_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.ncj_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.ocj_1; var tmp_2; if (tmp3_elvis_lhs == null) { return Unit_instance; } else { tmp_2 = tmp3_elvis_lhs; } var assignment = tmp_2; if (draftMark.ebr_1 === -1.0) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ttd_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onClickSubmitMark.' call var nextValue = prevValue.ctf(this.npt().ant(strings_getInstance().sly_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } else { if (draftMark.ebr_1 < 0.0) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.ttd_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.ctf(this.npt().ant(strings_getInstance().omr_1)); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } else { var tmp_3 = draftMark.ebr_1; var tmp4_elvis_lhs = courseBlock.r7x_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.ttd_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.ctf(this.npt().ant(strings_getInstance().mmw_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.ttd_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.ctf(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_3.y1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } var tmp_4 = this.cpu(); launch(tmp_4, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda_0(this, assignment, draftMark, submissions, courseBlock, null)); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).jtm = function (option) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ttd_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onClickGradeFilterChip.' call var nextValue = prevValue.ctf(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, option.qpd_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentSubmitterDetailViewModel).ssv = function (submission) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ttd_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onToggleSubmissionExpandCollapse.' call var nextValue = prevValue.ctf(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toggle(prevValue.zte_1, submission.dbx_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentSubmitterDetailViewModel).vsv = function (file) { openSubmissionFileAsBlob_0(this, file, OpenBlobIntent_VIEW_getInstance()); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).wsv = function (comments) { var tmp = this.cpu(); launch(tmp, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda_0(this, comments, null)); }; function _get_latestUniqueMarksByMarker__e0a3pq_0($this) { return latestUniqueMarksByMarker($this.kte_1); } function sam$kotlin_Comparator$0_1(function_0) { this.ktm_1 = function_0; } protoOf(sam$kotlin_Comparator$0_1).pa = function (a, b) { return this.ktm_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.kbr_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hbr_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.kbr_1; var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.hbr_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().xmv_1; var tmp_2 = new MessageIdOption2(tmp_1, 1); var tmp_3 = strings_getInstance().rma_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.dlp(), Companion_getInstance_9().clt()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; collapsedSubmissions = collapsedSubmissions === VOID ? emptySet() : collapsedSubmissions; openingFileState = openingFileState === VOID ? null : openingFileState; showModerateOptions = showModerateOptions === VOID ? false : showModerateOptions; this.fte_1 = submitMarkError; this.gte_1 = block; this.hte_1 = gradeFilterChips; this.ite_1 = submissionList; this.jte_1 = submissionAttachments; this.kte_1 = marks; this.lte_1 = draftMark; this.mte_1 = markSubmissionInProgress; this.nte_1 = markNextStudentVisible; this.ote_1 = fieldsEnabled; this.pte_1 = markListSelectedChipId; this.qte_1 = markListFilterOptions; this.rte_1 = privateCommentsList; this.ste_1 = newPrivateCommentTextVisible; this.tte_1 = activeUserPersonUid; this.ute_1 = activeUserSubmitterId; this.vte_1 = activeUserPersonName; this.wte_1 = activeUserPictureUri; this.xte_1 = localDateTimeNow; this.yte_1 = dayOfWeekStrings; this.zte_1 = collapsedSubmissions; this.atf_1 = openingFileState; this.btf_1 = showModerateOptions; } protoOf(ClazzAssignmentSubmitterDetailUiState).itm = function () { var tmp; if (!this.mte_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.gte_1; var tmp_0; if (!((it == null ? null : it.ocj_1) == null)) { tmp_0 = !(it.ncj_1 == null); } else { tmp_0 = false; } tmp = tmp_0; } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).gsw = function () { return submissionStatusFor(this.kte_1, this.ite_1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).ltm = 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.kbr_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ebr_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).mtm = function (mark) { return new UstadCourseAssignmentMarkListItemUiState(mark, this.xte_1, this.yte_1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).ntm = function () { var tmp; var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = this.kte_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.kbr_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bbr_1, this.ute_1)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) { tmp = strings_getInstance().vmu_1; } else { tmp = strings_getInstance().lmr_1; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).otm = function () { var tmp; var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = this.kte_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.kbr_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bbr_1, this.ute_1)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) { tmp = strings_getInstance().wmu_1; } else { tmp = strings_getInstance().mmr_1; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).lsw = function () { var tmp; if (this.pte_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.kte_1; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).ptm = function () { return hasUpdatedMarks(this.kte_1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).qtm = function () { // Inline function 'kotlin.collections.isNotEmpty' call return !this.kte_1.c1(); }; protoOf(ClazzAssignmentSubmitterDetailUiState).rtm = 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).ctf = 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.fte_1 : submitMarkError; block = block === VOID ? this.gte_1 : block; gradeFilterChips = gradeFilterChips === VOID ? this.hte_1 : gradeFilterChips; submissionList = submissionList === VOID ? this.ite_1 : submissionList; submissionAttachments = submissionAttachments === VOID ? this.jte_1 : submissionAttachments; marks = marks === VOID ? this.kte_1 : marks; draftMark = draftMark === VOID ? this.lte_1 : draftMark; markSubmissionInProgress = markSubmissionInProgress === VOID ? this.mte_1 : markSubmissionInProgress; markNextStudentVisible = markNextStudentVisible === VOID ? this.nte_1 : markNextStudentVisible; fieldsEnabled = fieldsEnabled === VOID ? this.ote_1 : fieldsEnabled; markListSelectedChipId = markListSelectedChipId === VOID ? this.pte_1 : markListSelectedChipId; markListFilterOptions = markListFilterOptions === VOID ? this.qte_1 : markListFilterOptions; privateCommentsList = privateCommentsList === VOID ? this.rte_1 : privateCommentsList; newPrivateCommentTextVisible = newPrivateCommentTextVisible === VOID ? this.ste_1 : newPrivateCommentTextVisible; activeUserPersonUid = activeUserPersonUid === VOID ? this.tte_1 : activeUserPersonUid; activeUserSubmitterId = activeUserSubmitterId === VOID ? this.ute_1 : activeUserSubmitterId; activeUserPersonName = activeUserPersonName === VOID ? this.vte_1 : activeUserPersonName; activeUserPictureUri = activeUserPictureUri === VOID ? this.wte_1 : activeUserPictureUri; localDateTimeNow = localDateTimeNow === VOID ? this.xte_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.yte_1 : dayOfWeekStrings; collapsedSubmissions = collapsedSubmissions === VOID ? this.zte_1 : collapsedSubmissions; openingFileState = openingFileState === VOID ? this.atf_1 : openingFileState; showModerateOptions = showModerateOptions === VOID ? this.btf_1 : showModerateOptions; return $super === VOID ? this.rtm(submitMarkError, block, gradeFilterChips, submissionList, submissionAttachments, marks, draftMark, markSubmissionInProgress, markNextStudentVisible, fieldsEnabled, markListSelectedChipId, markListFilterOptions, privateCommentsList, newPrivateCommentTextVisible, activeUserPersonUid, activeUserSubmitterId, activeUserPersonName, activeUserPictureUri, localDateTimeNow, dayOfWeekStrings, collapsedSubmissions, openingFileState, showModerateOptions) : $super.rtm.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.fte_1 + ', block=' + this.gte_1 + ', gradeFilterChips=' + this.hte_1 + ', submissionList=' + this.ite_1 + ', submissionAttachments=' + this.jte_1 + ', marks=' + this.kte_1 + ', draftMark=' + this.lte_1 + ', markSubmissionInProgress=' + this.mte_1 + ', markNextStudentVisible=' + this.nte_1 + ', fieldsEnabled=' + this.ote_1 + ', markListSelectedChipId=' + this.pte_1 + ', markListFilterOptions=' + this.qte_1 + ', privateCommentsList=' + this.rte_1 + ', newPrivateCommentTextVisible=' + this.ste_1 + ', activeUserPersonUid=' + this.tte_1.toString() + ', activeUserSubmitterId=' + this.ute_1.toString() + ', activeUserPersonName=' + this.vte_1 + ', activeUserPictureUri=' + this.wte_1 + ', localDateTimeNow=' + this.xte_1 + ', dayOfWeekStrings=' + this.yte_1 + ', collapsedSubmissions=' + this.zte_1 + ', openingFileState=' + this.atf_1 + ', showModerateOptions=' + this.btf_1 + ')'; }; protoOf(ClazzAssignmentSubmitterDetailUiState).hashCode = function () { var result = this.fte_1 == null ? 0 : getStringHashCode(this.fte_1); result = imul(result, 31) + (this.gte_1 == null ? 0 : this.gte_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.hte_1) | 0; result = imul(result, 31) + hashCode(this.ite_1) | 0; result = imul(result, 31) + hashCode(this.jte_1) | 0; result = imul(result, 31) + hashCode(this.kte_1) | 0; result = imul(result, 31) + (this.lte_1 == null ? 0 : hashCode(this.lte_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.mte_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.nte_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ote_1) | 0; result = imul(result, 31) + this.pte_1 | 0; result = imul(result, 31) + hashCode(this.qte_1) | 0; result = imul(result, 31) + hashCode(this.rte_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ste_1) | 0; result = imul(result, 31) + this.tte_1.hashCode() | 0; result = imul(result, 31) + this.ute_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.vte_1) | 0; result = imul(result, 31) + (this.wte_1 == null ? 0 : getStringHashCode(this.wte_1)) | 0; result = imul(result, 31) + this.xte_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.yte_1) | 0; result = imul(result, 31) + hashCode(this.zte_1) | 0; result = imul(result, 31) + (this.atf_1 == null ? 0 : this.atf_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.btf_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.fte_1 == tmp0_other_with_cast.fte_1)) return false; if (!equals(this.gte_1, tmp0_other_with_cast.gte_1)) return false; if (!equals(this.hte_1, tmp0_other_with_cast.hte_1)) return false; if (!equals(this.ite_1, tmp0_other_with_cast.ite_1)) return false; if (!equals(this.jte_1, tmp0_other_with_cast.jte_1)) return false; if (!equals(this.kte_1, tmp0_other_with_cast.kte_1)) return false; if (!equals(this.lte_1, tmp0_other_with_cast.lte_1)) return false; if (!(this.mte_1 === tmp0_other_with_cast.mte_1)) return false; if (!(this.nte_1 === tmp0_other_with_cast.nte_1)) return false; if (!(this.ote_1 === tmp0_other_with_cast.ote_1)) return false; if (!(this.pte_1 === tmp0_other_with_cast.pte_1)) return false; if (!equals(this.qte_1, tmp0_other_with_cast.qte_1)) return false; if (!equals(this.rte_1, tmp0_other_with_cast.rte_1)) return false; if (!(this.ste_1 === tmp0_other_with_cast.ste_1)) return false; if (!this.tte_1.equals(tmp0_other_with_cast.tte_1)) return false; if (!this.ute_1.equals(tmp0_other_with_cast.ute_1)) return false; if (!(this.vte_1 === tmp0_other_with_cast.vte_1)) return false; if (!(this.wte_1 == tmp0_other_with_cast.wte_1)) return false; if (!this.xte_1.equals(tmp0_other_with_cast.xte_1)) return false; if (!equals(this.yte_1, tmp0_other_with_cast.yte_1)) return false; if (!equals(this.zte_1, tmp0_other_with_cast.zte_1)) return false; if (!equals(this.atf_1, tmp0_other_with_cast.atf_1)) return false; if (!(this.btf_1 === tmp0_other_with_cast.btf_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.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel......' call var nextValue = prevValue.ftn(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.otn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda).qtn = function (nameAndTerminology, $completion) { var tmp = this.rtn(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.qtn((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.otn_1.jq4_1.t2().ctn_1; var tmp0_safe_receiver = this.ptn_1; var tmp2_terminology = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h8l_1; var tmp3_json = this.otn_1.z4q(); var tmp4_systemImpl = this.otn_1.npt(); parseAndUpdateTerminologyStringsIfNeeded(tmp1_currentTerminologyStrings, tmp2_terminology, tmp4_systemImpl, tmp3_json, ClazzMemberListViewModel$slambda$slambda$slambda$slambda$lambda(this.otn_1)); l$ret$1: do { var this_0 = this.otn_1.bpt_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver_0 = this.ptn_1; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.g8l_1; var nextValue = prevValue.npc(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).rtn = function (nameAndTerminology, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda$slambda(this.otn_1, completion); i.ptn_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.qtn(nameAndTerminology, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.ato_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1).os7 = function (it, $completion) { var tmp = this.ps7(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.os7(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.ato_1.jq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ftn(VOID, VOID, VOID, this.bto_1.adi_1, this.bto_1.bdi_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).ps7 = function (it, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1(this.ato_1, completion); i.bto_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.os7(it, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.kto_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.kto_1.hpu().b7d().n8c(this.kto_1.ntp_1); var tmp_1 = ClazzMemberListViewModel$slambda$slambda$slambda$slambda_0(this.kto_1, null); suspendResult = tmp_0.z1b(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.kto_1, completion); i.lto_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.ztp_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.ztp_1.fpu().b7f(); var tmp_1 = this.ztp_1.dpu(); PermissionFlags_getInstance(); var tmp_2 = new Long(16, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.zde(tmp_1, this.ztp_1.ntp_1, tmp_2, new Long(8, 0))); var tmp_4 = ClazzMemberListViewModel$slambda$slambda$slambda$slambda_2(this.ztp_1, null); suspendResult = tmp_3.z1b(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.ztp_1, completion); i.atq_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_launch, this$0, resultContinuation) { this.jtq_1 = $this_launch; this.ktq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzMemberListViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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; launch(this.jtq_1, VOID, VOID, ClazzMemberListViewModel$slambda$slambda$slambda_0(this.ktq_1, null)); launch(this.jtq_1, VOID, VOID, ClazzMemberListViewModel$slambda$slambda$slambda_2(this.ktq_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).y77 = function (completion) { return new ClazzMemberListViewModel$slambda$slambda(this.jtq_1, this.ktq_1, completion); }; function ClazzMemberListViewModel$slambda$slambda_0($this_launch, this$0, resultContinuation) { var i = new ClazzMemberListViewModel$slambda$slambda($this_launch, this$0, resultContinuation); var l = function ($completion) { return i.w86($completion); }; l.$arity = 0; return l; } function ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda(this$0, resultContinuation) { this.ttq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda).iql = function (it, $completion) { var tmp = this.pn8(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.iql(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.utq_1.b7d().f8c(this.ttq_1.ntp_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.b8e_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).pn8 = function (it, completion) { var i = new ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda(this.ttq_1, completion); i.utq_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.iql(it, $completion); }; l.$arity = 1; return l; } function _get_approveOrDeclinePendingEnrolmentUseCase__jyai0d($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.mtp_1; approveOrDeclinePendingEnrolmentUseCase$factory_0(); return this_0.t2(); } function getMembersAsPagingSource($this, roleId) { var tmp0_$this = $this.hpu().g7d(); var tmp1_clazzUid = $this.ntp_1; var tmp2_sortOrder = $this.jq4_1.t2().ytm_1.spi_1; var tmp3_filter = $this.jq4_1.t2().atn_1; var tmp4_searchText = toQueryLikeParam($this.bpt_1.t2().fpc_1.upb_1); var tmp5_accountPersonUid = $this.dpu(); var tmp6_currentTime = systemTimeInMillis(); PermissionFlags_getInstance(); var tmp7_permission = new Long(8192, 0); return tmp0_$this.w92(tmp1_clazzUid, roleId, tmp2_sortOrder, tmp4_searchText, tmp3_filter, tmp5_accountPersonUid, tmp6_currentTime, tmp7_permission); } function Companion_129() { this.vtq_1 = 'CourseMembers'; } var Companion_instance_178; function Companion_getInstance_146() { return Companion_instance_178; } function sam$kotlinx_coroutines_flow_FlowCollector$0_19(function_0) { this.wtq_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_19).t1d = function (value, $completion) { return this.wtq_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$pendingStudentListPagingSource$lambda(this$0) { return function () { var tmp0_$this = this$0.hpu().a7f(); var tmp1_clazzUid = this$0.ntp_1; var tmp2_searchText = toQueryLikeParam(this$0.bpt_1.t2().fpc_1.upb_1); var tmp4_sortOrder = this$0.jq4_1.t2().ytm_1.spi_1; return tmp0_$this.oes(tmp1_clazzUid, false, 1, tmp2_searchText, tmp4_sortOrder); }; } function ClazzMemberListViewModel$slambda(this$0, resultContinuation) { this.ftr_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.ftr_1.jq4_1, ClazzMemberListViewModel$slambda$slambda_0(this.gtr_1, this.ftr_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.ftr_1, completion); i.gtr_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.ptr_1 = this$0; this.qtr_1 = $enrolmentDetails; this.rtr_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.ptr_1).uo9(this.qtr_1, this.rtr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_0 = this.ptr_1.jpu(); var tmp_1 = this.ptr_1.npt(); var tmp_2 = this.rtr_1 ? strings_getInstance().amy_1 : strings_getInstance().bmy_1; var tmp0_elvis_lhs = this.qtr_1.het_1; tmp_0.cpd(new Snack(tmp_1.bnt(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.ptr_1.jpu(); var tmp_5 = this.ptr_1.npt().ant(strings_getInstance().vlt_1); var tmp1_elvis_lhs = e.message; tmp_4.cpd(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.ptr_1, this.qtr_1, this.rtr_1, completion); i.str_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.bts_1 = this$0; this.cts_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.bts_1.gpu(); var tmp_1; if (this.cts_1 === 1000) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.ets_1 = tmp_1; if (this.ets_1 == null) { this.fts_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = localFirstThenRepoIfNull(this.ets_1, ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda_0(this.bts_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.fts_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var clazzCode = this.fts_1; var tmp_2; if (this.cts_1 === 1000) { tmp_2 = strings_getInstance().tlw_1; } else { tmp_2 = strings_getInstance().nm9_1; } var titleStringResource = tmp_2; var tmp1_safe_receiver = this.bts_1.jq4_1.t2().ctn_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qpe(titleStringResource); var title = tmp2_elvis_lhs == null ? this.bts_1.npt().ant(titleStringResource) : tmp2_elvis_lhs; Companion_getInstance_108(); var tmp_3 = to('clazzUid', this.bts_1.ntp_1.toString()); Companion_getInstance_108(); var tmp_4 = to('popUpToOnFinish', this.bts_1.yps_1); var goToOnPersonSelectedArg = appendQueryArgs('EnrolmentEdit', mapOf([tmp_3, tmp_4, to('role', this.cts_1.toString())])); var this_1 = LinkedHashMap_init_$Create$(); Companion_getInstance_193(); this_1.s('exlcudeFromClazz', this.bts_1.ntp_1.toString()); Companion_getInstance_108(); this_1.s('listMode', ListViewMode_PICKER_getInstance().xpp_1); this_1.s('goToOnPersonSelected', goToOnPersonSelectedArg); Companion_getInstance_193(); this_1.s('showAddViaContact', 'true'); Companion_getInstance_193(); this_1.s('role', this.cts_1.toString()); Companion_getInstance_119(); this_1.s('t', title); Companion_getInstance_193(); PermissionFlags_getInstance(); this_1.s('rptsl', (new Long(2048, 0)).toString()); if (!(clazzCode == null)) { Companion_getInstance_193(); this_1.s('showAddViaInviteLink', clazzCode); } var args = this_1.f3(); Companion_getInstance_193(); this.bts_1.zps_1.fog('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.bts_1, this.cts_1, completion); i.dts_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(di, savedStateHandle) { var tmp = new ClazzMemberListUiState(); UstadListViewModel.call(this, di, savedStateHandle, tmp, 'Course'); var tmp_0 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.bpu().nnk(); var trigger = this.q56(); // 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$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); var tmp$ret$1 = tmp_1.u56(tmp$ret$0, context); var this_0 = On(this, tmp$ret$1, trigger); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(IApproveOrDeclinePendingEnrolmentRequestUseCase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); tmp_0.mtp_1 = Instance(this_0, tmp$ret$3, null).n5c(this, approveOrDeclinePendingEnrolmentUseCase$factory()); var tmp_4 = this; Companion_getInstance_108(); 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$('No clazzuid'); } else { tmp_5 = tmp1_elvis_lhs; } tmp_4.ntp_1 = tmp_5; var tmp_6 = this; tmp_6.otp_1 = ClazzMemberListViewModel$teacherListPagingSource$lambda(this); var tmp_7 = this; tmp_7.ptp_1 = ClazzMemberListViewModel$studentListPagingSource$lambda(this); var tmp_8 = this; tmp_8.qtp_1 = ClazzMemberListViewModel$pendingStudentListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.jq4_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.' 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.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel..' call var tmp$ret$5 = this.npt().ant(get_dayStringResource(element)); result.s(element, tmp$ret$5); } var nextValue = prevValue.ftn(this.ptp_1, this.otp_1, this.qtp_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, result); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.bpt_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.' call var nextValue_0 = prevValue_0.npc(VOID, VOID, VOID, true, VOID, VOID, VOID, this.sq5(), new ActionBarButtonUiState(false)); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_9 = this.cpu(); launch(tmp_9, VOID, VOID, ClazzMemberListViewModel$slambda_0(this, null)); } protoOf(ClazzMemberListViewModel).dq5 = function (searchText) { this.lq4_1.i1h(new RefreshCommand()); }; protoOf(ClazzMemberListViewModel).eq5 = function () { }; protoOf(ClazzMemberListViewModel).qrz = function (filterOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.onClickFilterChip.' call var nextValue = prevValue.ftn(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, filterOption.qpd_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.lq4_1.i1h(new RefreshCommand()); }; protoOf(ClazzMemberListViewModel).gts = function (enrolmentDetails, approved) { var tmp = this.cpu(); launch(tmp, VOID, VOID, ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda_0(this, enrolmentDetails, approved, null)); }; protoOf(ClazzMemberListViewModel).hts = function (role) { var tmp = this.cpu(); launch(tmp, VOID, VOID, ClazzMemberListViewModel$onClickAddNewMember$slambda_0(this, role, null)); }; protoOf(ClazzMemberListViewModel).its = function (entry) { Companion_getInstance_108(); var tmp0_safe_receiver = entry.n95_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s95_1; var tmp = to('personUid', (tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs).toString()); Companion_getInstance_108(); this.zps_1.fog('CourseEnrolments', mapOf([tmp, to('clazzUid', this.ntp_1.toString())])); }; protoOf(ClazzMemberListViewModel).prz = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.onSortOrderChanged.' call var nextValue = prevValue.ftn(VOID, VOID, VOID, VOID, VOID, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.lq4_1.i1h(new RefreshCommand()); }; 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(studentList, teacherList, pendingStudentList, addTeacherVisible, addStudentVisible, 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; addTeacherVisible = addTeacherVisible === VOID ? false : addTeacherVisible; addStudentVisible = addStudentVisible === VOID ? false : addStudentVisible; var tmp_2; if (sortOptions === VOID) { var tmp_3 = strings_getInstance().hlv_1; var tmp_4 = new SortOrderOption(tmp_3, 1, true); var tmp_5 = strings_getInstance().hlv_1; var tmp_6 = new SortOrderOption(tmp_5, 2, false); var tmp_7 = strings_getInstance().glv_1; var tmp_8 = new SortOrderOption(tmp_7, 3, true); var tmp_9 = strings_getInstance().glv_1; var tmp_10 = new SortOrderOption(tmp_9, 4, false); var tmp_11 = strings_getInstance().hm8_1; var tmp_12 = new SortOrderOption(tmp_11, 7, true); var tmp_13 = strings_getInstance().hm8_1; var tmp_14 = new SortOrderOption(tmp_13, 8, false); var tmp_15 = strings_getInstance().im8_1; var tmp_16 = new SortOrderOption(tmp_15, 9, true); var tmp_17 = strings_getInstance().im8_1; tmp_2 = listOf([tmp_4, tmp_6, tmp_8, tmp_10, tmp_12, tmp_14, tmp_16, new SortOrderOption(tmp_17, 10, false)]); } else { tmp_2 = sortOptions; } sortOptions = tmp_2; activeSortOrderOption = activeSortOrderOption === VOID ? first_0(sortOptions) : activeSortOrderOption; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; var tmp_18; if (selectedChipId === VOID) { tmp_18 = 1; } else { tmp_18 = selectedChipId; } selectedChipId = tmp_18; var tmp_19; if (filterOptions === VOID) { var tmp_20 = strings_getInstance().yma_1; tmp_19 = listOf([new MessageIdOption2(tmp_20, 1), new MessageIdOption2(strings_getInstance().rma_1, 0)]); } else { tmp_19 = filterOptions; } filterOptions = tmp_19; terminologyStrings = terminologyStrings === VOID ? null : terminologyStrings; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.dlp(), Companion_getInstance_9().clt()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.stm_1 = studentList; this.ttm_1 = teacherList; this.utm_1 = pendingStudentList; this.vtm_1 = addTeacherVisible; this.wtm_1 = addStudentVisible; this.xtm_1 = sortOptions; this.ytm_1 = activeSortOrderOption; this.ztm_1 = fieldsEnabled; this.atn_1 = selectedChipId; this.btn_1 = filterOptions; this.ctn_1 = terminologyStrings; this.dtn_1 = localDateTimeNow; this.etn_1 = dayOfWeekStrings; } protoOf(ClazzMemberListUiState).jts = function (studentList, teacherList, pendingStudentList, addTeacherVisible, addStudentVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings) { return new ClazzMemberListUiState(studentList, teacherList, pendingStudentList, addTeacherVisible, addStudentVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings); }; protoOf(ClazzMemberListUiState).ftn = function (studentList, teacherList, pendingStudentList, addTeacherVisible, addStudentVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings, $super) { studentList = studentList === VOID ? this.stm_1 : studentList; teacherList = teacherList === VOID ? this.ttm_1 : teacherList; pendingStudentList = pendingStudentList === VOID ? this.utm_1 : pendingStudentList; addTeacherVisible = addTeacherVisible === VOID ? this.vtm_1 : addTeacherVisible; addStudentVisible = addStudentVisible === VOID ? this.wtm_1 : addStudentVisible; sortOptions = sortOptions === VOID ? this.xtm_1 : sortOptions; activeSortOrderOption = activeSortOrderOption === VOID ? this.ytm_1 : activeSortOrderOption; fieldsEnabled = fieldsEnabled === VOID ? this.ztm_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.atn_1 : selectedChipId; filterOptions = filterOptions === VOID ? this.btn_1 : filterOptions; terminologyStrings = terminologyStrings === VOID ? this.ctn_1 : terminologyStrings; localDateTimeNow = localDateTimeNow === VOID ? this.dtn_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.etn_1 : dayOfWeekStrings; return $super === VOID ? this.jts(studentList, teacherList, pendingStudentList, addTeacherVisible, addStudentVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings) : $super.jts.call(this, studentList, teacherList, pendingStudentList, addTeacherVisible, addStudentVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings); }; protoOf(ClazzMemberListUiState).toString = function () { return 'ClazzMemberListUiState(studentList=' + this.stm_1 + ', teacherList=' + this.ttm_1 + ', pendingStudentList=' + this.utm_1 + ', addTeacherVisible=' + this.vtm_1 + ', addStudentVisible=' + this.wtm_1 + ', sortOptions=' + this.xtm_1 + ', activeSortOrderOption=' + this.ytm_1 + ', fieldsEnabled=' + this.ztm_1 + ', selectedChipId=' + this.atn_1 + ', filterOptions=' + this.btn_1 + ', terminologyStrings=' + this.ctn_1 + ', localDateTimeNow=' + this.dtn_1 + ', dayOfWeekStrings=' + this.etn_1 + ')'; }; protoOf(ClazzMemberListUiState).hashCode = function () { var result = hashCode(this.stm_1); result = imul(result, 31) + hashCode(this.ttm_1) | 0; result = imul(result, 31) + hashCode(this.utm_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.vtm_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.wtm_1) | 0; result = imul(result, 31) + hashCode(this.xtm_1) | 0; result = imul(result, 31) + this.ytm_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.ztm_1) | 0; result = imul(result, 31) + this.atn_1 | 0; result = imul(result, 31) + hashCode(this.btn_1) | 0; result = imul(result, 31) + (this.ctn_1 == null ? 0 : this.ctn_1.hashCode()) | 0; result = imul(result, 31) + this.dtn_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.etn_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.stm_1, tmp0_other_with_cast.stm_1)) return false; if (!equals(this.ttm_1, tmp0_other_with_cast.ttm_1)) return false; if (!equals(this.utm_1, tmp0_other_with_cast.utm_1)) return false; if (!(this.vtm_1 === tmp0_other_with_cast.vtm_1)) return false; if (!(this.wtm_1 === tmp0_other_with_cast.wtm_1)) return false; if (!equals(this.xtm_1, tmp0_other_with_cast.xtm_1)) return false; if (!this.ytm_1.equals(tmp0_other_with_cast.ytm_1)) return false; if (!(this.ztm_1 === tmp0_other_with_cast.ztm_1)) return false; if (!(this.atn_1 === tmp0_other_with_cast.atn_1)) return false; if (!equals(this.btn_1, tmp0_other_with_cast.btn_1)) return false; if (!equals(this.ctn_1, tmp0_other_with_cast.ctn_1)) return false; if (!this.dtn_1.equals(tmp0_other_with_cast.dtn_1)) return false; if (!equals(this.etn_1, tmp0_other_with_cast.etn_1)) return false; return true; }; function approveOrDeclinePendingEnrolmentUseCase$factory() { return getPropertyCallableRef('approveOrDeclinePendingEnrolmentUseCase', 1, KProperty1, function (receiver) { return _get_approveOrDeclinePendingEnrolmentUseCase__jyai0d(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.sts_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda$slambda).wts = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.wts(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.tts_1.g7d(); var tmp_1; if (!this.sts_1.wq1_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.uts_1 = tmp_1; if (this.uts_1 == null) { this.vts_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.uts_1.s92(this.sts_1.wq1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.vts_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.vts_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).pn8 = function (db, completion) { var i = new ClazzEnrolmentEditViewModel$slambda$slambda(this.sts_1, completion); i.tts_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.wts(db, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation) { this.ftt_1 = $savedStateHandle; this.gtt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_1).jtt = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_1).z77 = function ($completion) { return this.jtt($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.htt_1 = new ClazzEnrolmentWithLeavingReason(); var tmp_1 = this; tmp_1.itt_1 = this.htt_1; var tmp_2 = this.itt_1; Companion_getInstance_108(); var tmp0_safe_receiver = this.ftt_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.q8h_1 = tmp_3; var tmp_4 = this.itt_1; Companion_getInstance_108(); var tmp2_safe_receiver = this.ftt_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.p8h_1 = tmp_5; this.itt_1.r8h_1 = systemTimeInMillis(); var tmp_6 = this.itt_1; var tmp4_safe_receiver = this.ftt_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.t8h_1 = tmp_7; this.hd_1 = 1; suspendResult = this.gtt_1.hpu().b7d().p8c(this.itt_1.q8h_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.itt_1.f94_1 = ARGUMENT; return this.htt_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).y77 = function (completion) { return new ClazzEnrolmentEditViewModel$slambda$slambda_1(this.ftt_1, this.gtt_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.jtt($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.htu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel...' call var nextValue = prevValue.rtu(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEnrolmentEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.atv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_3).ctv = 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.ctv((!(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.atv_1.hpu().d7d(); var tmp0_safe_receiver = this.atv_1.htu_1.t2().ktu_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q8h_1; suspendResult = tmp_0.xe1(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.atv_1, completion); i.btv_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.ctv($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function _get_enrolIntoCourseUseCase__jh2n4b($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jtu_1; enrolIntoCourseUseCase$factory_0(); return this_0.t2(); } function hasErrors_1(_this__u8e3s4, $this) { return (!(_this__u8e3s4.ltu_1 == null) ? true : !(_this__u8e3s4.mtu_1 == null)) ? true : !(_this__u8e3s4.ntu_1 == null); } function Companion_130() { this.dtv_1 = 'EnrolmentEdit'; this.etv_1 = 'role'; } var Companion_instance_179; function Companion_getInstance_147() { return Companion_instance_179; } function ClazzEnrolmentEditViewModel$slambda(this$0, resultContinuation) { this.ntv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda).krc = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$slambda).he = function (p1, $completion) { return this.krc(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.otv_1.b7f().xde(this.ntv_1.dpu(), this.ntv_1.wq1_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).pn8 = function (db, completion) { var i = new ClazzEnrolmentEditViewModel$slambda(this.ntv_1, completion); i.otv_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.krc(db, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.xtv_1 = this$0; this.ytv_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.a4r(); var tmp_1 = ClazzEnrolmentEditViewModel$slambda$slambda_0(this.xtv_1, null); var tmp_2 = ClazzEnrolmentEditViewModel$slambda$slambda_2(this.ytv_1, this.xtv_1, null); suspendResult = this.xtv_1.rpu(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzEnrolmentEditViewModel$slambda$lambda(this.xtv_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_3 = this.xtv_1.fpu().b7f(); var tmp_4 = this.xtv_1.dpu(); var tmp0_safe_receiver = this.xtv_1.htu_1.t2().ktu_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q8h_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.adf(tmp_4, tmp_5, tmp_6, new Long(16, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.atw_1 = suspendResult; this.btw_1 = this.atw_1.y6(); this.ctw_1 = this.atw_1.z6(); var tmp_7 = this; tmp_7.dtw_1 = async(this.ztv_1, VOID, VOID, ClazzEnrolmentEditViewModel$slambda$slambda_4(this.xtv_1, null)); var tmp_8 = this; var this_0 = ArrayList_init_$Create$(); if (this.btw_1) { this_0.i1(1000); } if (this.ctw_1) { this_0.i1(1001); } tmp_8.etw_1 = this_0.f3(); this.hd_1 = 3; suspendResult = this.dtw_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.xtv_1.npt(), this.xtv_1.z4q()); } var terminologyStrings = tmp_9; l$ret$1: do { var this_1 = this.xtv_1.htu_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.rtu(VOID, VOID, VOID, VOID, true, terminologyStrings, this.etw_1); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.xtv_1.bpt_1; while (true) { var prevValue_0 = this_2.t2(); var tmp_10 = Companion_getInstance_89().vpc_1; var tmp_11 = this.xtv_1.npt().ant(strings_getInstance().zmd_1); var nextValue_0 = prevValue_0.npc(VOID, tmp_10, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_11, VOID, ClazzEnrolmentEditViewModel$onClickSave$ref(this.xtv_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.xtv_1, this.ytv_1, completion); i.ztv_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.ntw_1 = $commitDelay; this.otw_1 = $entity; this.ptw_1 = $this; this.qtw_1 = $key; this.rtw_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.ntw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.otw_1 == null)) { this.hd_1 = 2; suspendResult = this.ptw_1.npu(this.ptw_1.xps_1, this.qtw_1, this.rtw_1, this.otw_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.ntw_1, this.otw_1, this.ptw_1, this.qtw_1, this.rtw_1, completion); i.stw_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.btx_1 = this$0; this.ctx_1 = $entity; this.dtx_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.btx_1.wq1_1.equals(new Long(0, 0))) { this.hd_1 = 2; suspendResult = _get_enrolIntoCourseUseCase__jh2n4b(this.btx_1).go9(this.ctx_1, this.dtx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; suspendResult = this.btx_1.fpu().g7d().t92(this.ctx_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_108(); var popUpToOnFinish = this.btx_1.xps_1.ba('popUpToOnFinish'); if (!(popUpToOnFinish == null)) { this.btx_1.zps_1.opf(popUpToOnFinish, false); } else { this.btx_1.zq1(this.ctx_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.btx_1, this.ctx_1, this.dtx_1, completion); i.etx_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.htu_1 = MutableStateFlow(new ClazzEnrolmentEditUiState(VOID, VOID, VOID, VOID, false)); this.itu_1 = asStateFlow(this.htu_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.jtu_1 = Instance(this_0, tmp$ret$0, null).n5c(this, enrolIntoCourseUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bpt_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.' call var nextValue = prevValue.npc(VOID, Companion_getInstance_89().upc_1, this.yq2(strings_getInstance().rm8_1, strings_getInstance().qm8_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = ClazzEnrolmentEditViewModel$slambda_0(this, null); this.tpu(tmp_1, VOID, VOID, ClazzEnrolmentEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(ClazzEnrolmentEditViewModel).ftx = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.htu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.ktu_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t8h_1; var tmp_0 = this.zq2(tmp, entity == null ? null : entity.t8h_1, prevValue.ltu_1); var tmp2_safe_receiver = prevValue.ktu_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.r8h_1; var nextValue = prevValue.rtu(entity, tmp_0, this.zq2(tmp_1, entity == null ? null : entity.r8h_1, prevValue.mtu_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_35.a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this; var tmp_3 = this.cpu(); tmp_2.vq1_1 = launch(tmp_3, VOID, VOID, ClazzEnrolmentEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzEnrolmentEditViewModel).yr9 = function () { if (this.fpx().equals(Companion_getInstance_89().upc_1)) return Unit_instance; var tmp0_elvis_lhs = this.htu_1.t2().ktu_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var entity = tmp; var timeZoneVal = entity.f94_1; if (timeZoneVal == null) { this.jpu().cpd(new Snack('Error: no time zone for course')); return Unit_instance; } this.epx(Companion_getInstance_89().upc_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.htu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.onClickSave.' call var nextValue = prevValue.rtu(VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (entity.t8h_1 === 0) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.htu_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.rtu(VOID, this.npt().ant(strings_getInstance().sly_1)); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } if (entity.r8h_1.c7(toLong(imul(get_MS_PER_HOUR(), 24))) <= 0) { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.htu_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.rtu(VOID, VOID, this.npt().ant(strings_getInstance().sly_1)); if (this_2.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } if (entity.s8h_1.c7(entity.r8h_1) <= 0) { $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.htu_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.rtu(VOID, VOID, VOID, this.npt().ant(strings_getInstance().gmk_1)); if (this_3.y1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } } if (hasErrors_1(this.htu_1.t2(), this)) { $l$block_3: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.htu_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.rtu(VOID, VOID, VOID, VOID, true); if (this_4.y1k(prevValue_3, nextValue_3)) { break $l$block_3; } } } return Unit_instance; } var tmp_0 = this.cpu(); 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.ktu_1 = clazzEnrolment; this.ltu_1 = roleSelectedError; this.mtu_1 = startDateError; this.ntu_1 = endDateError; this.otu_1 = fieldsEnabled; this.ptu_1 = courseTerminology; this.qtu_1 = roleOptions; } protoOf(ClazzEnrolmentEditUiState).gtx = function () { var tmp0_safe_receiver = this.ktu_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t8h_1; return tmp === 1000; }; protoOf(ClazzEnrolmentEditUiState).htx = function (clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions) { return new ClazzEnrolmentEditUiState(clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions); }; protoOf(ClazzEnrolmentEditUiState).rtu = function (clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions, $super) { clazzEnrolment = clazzEnrolment === VOID ? this.ktu_1 : clazzEnrolment; roleSelectedError = roleSelectedError === VOID ? this.ltu_1 : roleSelectedError; startDateError = startDateError === VOID ? this.mtu_1 : startDateError; endDateError = endDateError === VOID ? this.ntu_1 : endDateError; fieldsEnabled = fieldsEnabled === VOID ? this.otu_1 : fieldsEnabled; courseTerminology = courseTerminology === VOID ? this.ptu_1 : courseTerminology; roleOptions = roleOptions === VOID ? this.qtu_1 : roleOptions; return $super === VOID ? this.htx(clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions) : $super.htx.call(this, clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions); }; protoOf(ClazzEnrolmentEditUiState).toString = function () { return 'ClazzEnrolmentEditUiState(clazzEnrolment=' + this.ktu_1 + ', roleSelectedError=' + this.ltu_1 + ', startDateError=' + this.mtu_1 + ', endDateError=' + this.ntu_1 + ', fieldsEnabled=' + this.otu_1 + ', courseTerminology=' + this.ptu_1 + ', roleOptions=' + this.qtu_1 + ')'; }; protoOf(ClazzEnrolmentEditUiState).hashCode = function () { var result = this.ktu_1 == null ? 0 : hashCode(this.ktu_1); result = imul(result, 31) + (this.ltu_1 == null ? 0 : getStringHashCode(this.ltu_1)) | 0; result = imul(result, 31) + (this.mtu_1 == null ? 0 : getStringHashCode(this.mtu_1)) | 0; result = imul(result, 31) + (this.ntu_1 == null ? 0 : getStringHashCode(this.ntu_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.otu_1) | 0; result = imul(result, 31) + (this.ptu_1 == null ? 0 : this.ptu_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.qtu_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.ktu_1, tmp0_other_with_cast.ktu_1)) return false; if (!(this.ltu_1 == tmp0_other_with_cast.ltu_1)) return false; if (!(this.mtu_1 == tmp0_other_with_cast.mtu_1)) return false; if (!(this.ntu_1 == tmp0_other_with_cast.ntu_1)) return false; if (!(this.otu_1 === tmp0_other_with_cast.otu_1)) return false; if (!equals(this.ptu_1, tmp0_other_with_cast.ptu_1)) return false; if (!equals(this.qtu_1, tmp0_other_with_cast.qtu_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.qtx_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$o$collect$slambda).nqo = function (value, $completion) { var tmp = this.oqo(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.nqo(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.stx_1 = this.qtx_1; var tmp_1 = this; tmp_1.ttx_1 = this.rtx_1; this.hd_1 = 1; var it = this.ttx_1; suspendResult = this.stx_1.t1d(it.sdi_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).oqo = function (value, completion) { var i = new ClazzEnrolmentListViewModel$slambda$o$collect$slambda(this.qtx_1, completion); i.rtx_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.nqo(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$67(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cty_1 = _this__u8e3s4; this.dty_1 = collector; } protoOf($collectCOROUTINE$67).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.ety_1 = this.dty_1; this.hd_1 = 1; var tmp_1 = ClazzEnrolmentListViewModel$slambda$o$collect$slambda_0(this.ety_1, null); suspendResult = this.cty_1.fty_1.z1b(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.oty_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda).nqo = function (it, $completion) { var tmp = this.oqo(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.nqo(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.pty_1; var canEditTeacherEnrolments = tmp0_container.y6(); var canEditStudentEnrolments = tmp0_container.z6(); l$ret$1: do { var this_0 = this.oty_1.jq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xty(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).oqo = function (it, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda(this.oty_1, completion); i.pty_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.nqo(it, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.gtz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda).itz = function (it, $completion) { var tmp = this.jtz(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.itz((!(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.gtz_1.jq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xty(this.htz_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).jtz = function (it, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda(this.gtz_1, completion); i.htz_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.itz(it, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.stz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1).kpl = function (canViewMembers, $completion) { var tmp = this.lpl(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.kpl((!(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.ttz_1) { tmp_1 = this.stz_1.hpu().g7d().r92(this.stz_1.wu0_1, this.stz_1.vu0_1); } else { tmp_1 = flowOf(emptyList()); } tmp_0.utz_1 = tmp_1; this.hd_1 = 1; var tmp_2 = ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda_0(this.stz_1, null); suspendResult = this.utz_1.z1b(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).lpl = function (canViewMembers, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1(this.stz_1, completion); i.ttz_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.kpl(canViewMembers, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.fu1_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda).kpl = function (value, $completion) { var tmp = this.lpl(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.kpl((!(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.iu1_1 = this.fu1_1; var tmp_1 = this; tmp_1.ju1_1 = this.gu1_1; if (this.ju1_1) { this.hd_1 = 3; suspendResult = this.iu1_1.t1d(this.ju1_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.hu1_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).lpl = function (value, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda(this.fu1_1, completion); i.gu1_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.kpl(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$68(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.su1_1 = _this__u8e3s4; this.tu1_1 = collector; } protoOf($collectCOROUTINE$68).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.uu1_1 = this.tu1_1; this.hd_1 = 1; var tmp_1 = ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda_0(this.uu1_1, null); suspendResult = this.su1_1.vu1_1.z1b(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.vu1_1 = $this; } protoOf(_no_name_provided__qut3iv_8).zpk = function (collector, $completion) { var tmp = new $collectCOROUTINE$68(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_8).z1b = function (collector, $completion) { return this.zpk(collector, $completion); }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.eu2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3).kpl = function (canViewMembers, $completion) { var tmp = this.lpl(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.kpl((!(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.fu2_1) { this.hd_1 = 1; suspendResult = this.eu2_1.hpu().g7d().y92(this.eu2_1.wu0_1, this.eu2_1.vu0_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.r99_1; var personName = '' + tmp_0 + ' ' + (courseAndPersonName == null ? null : courseAndPersonName.s99_1); l$ret$1: do { var this_0 = this.eu2_1.jq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xty(VOID, personName, courseAndPersonName == null ? null : courseAndPersonName.q99_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.eu2_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.npc(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).lpl = function (canViewMembers, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3(this.eu2_1, completion); i.fu2_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.kpl(canViewMembers, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.ou2_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.ou2_1.hpu().d7d().xe1(this.ou2_1.vu0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var terminology = suspendResult; l$ret$1: do { var this_0 = this.ou2_1.jq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xty(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.ou2_1, completion); i.pu2_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.yu2_1 = $permissionFlow; this.zu2_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.yu2_1); var tmp_1 = ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_0(this.zu2_1, null); suspendResult = tmp_0.z1b(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.yu2_1, this.zu2_1, completion); i.au3_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.ju3_1 = $canViewMembersFlow; this.ku3_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.ju3_1); suspendResult = collectLatest(tmp_0, ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_2(this.ku3_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.ju3_1, this.ku3_1, completion); i.lu3_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.uu3_1 = $canViewMembersFlow; this.vu3_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.uu3_1); var tmp_0 = new _no_name_provided__qut3iv_8(this_0); suspendResult = collectLatest(tmp_0, ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_4(this.vu3_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.uu3_1, this.vu3_1, completion); i.wu3_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.fty_1 = $this; } protoOf(_no_name_provided__qut3iv_9).zpk = function (collector, $completion) { var tmp = new $collectCOROUTINE$67(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_9).z1b = function (collector, $completion) { return this.zpk(collector, $completion); }; function ClazzEnrolmentListViewModel$slambda$slambda($this_launch, this$0, $permissionFlow, $canViewMembersFlow, resultContinuation) { this.fu4_1 = $this_launch; this.gu4_1 = this$0; this.hu4_1 = $permissionFlow; this.iu4_1 = $canViewMembersFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.fu4_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_0(this.gu4_1, null)); launch(this.fu4_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_2(this.hu4_1, this.gu4_1, null)); launch(this.fu4_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_4(this.iu4_1, this.gu4_1, null)); launch(this.fu4_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_6(this.iu4_1, this.gu4_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).y77 = function (completion) { return new ClazzEnrolmentListViewModel$slambda$slambda(this.fu4_1, this.gu4_1, this.hu4_1, this.iu4_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.w86($completion); }; l.$arity = 0; return l; } function Companion_131() { this.ju4_1 = 'CourseEnrolments'; } var Companion_instance_180; function Companion_getInstance_148() { return Companion_instance_180; } function sam$kotlinx_coroutines_flow_FlowCollector$0_20(function_0) { this.ku4_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_20).t1d = function (value, $completion) { return this.ku4_1(value, $completion); }; function ClazzEnrolmentListViewModel$slambda(this$0, resultContinuation) { this.tu4_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.tu4_1.fpu().b7f(); var tmp_2 = this.tu4_1.dpu(); PermissionFlags_getInstance(); var tmp_3 = new Long(16, 0); PermissionFlags_getInstance(); var tmp_4 = new Long(8, 0); PermissionFlags_getInstance(); tmp_0.vu4_1 = shareIn(tmp_1.bdf(tmp_2, this.tu4_1.vu0_1, tmp_3, tmp_4, new Long(8192, 0)), this.tu4_1.cpu(), Companion_getInstance_12().v1h()); var tmp_5 = this; var this_0 = this.vu4_1; tmp_5.wu4_1 = new _no_name_provided__qut3iv_9(this_0); this.hd_1 = 1; suspendResult = whenSubscribed(this.tu4_1.jq4_1, ClazzEnrolmentListViewModel$slambda$slambda_0(this.uu4_1, this.tu4_1, this.vu4_1, this.wu4_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.tu4_1, completion); i.uu4_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_108(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.vu0_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; Companion_getInstance_108(); 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.wu0_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this.cpu(); launch(tmp_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda_0(this, null)); } protoOf(ClazzEnrolmentListViewModel).xu4 = function (enrolment) { var tmp = Companion_instance_35.a4r(); Companion_getInstance_108(); this.ppu('EnrolmentEdit', '', null, tmp, mapOf_0(to('entityUid', enrolment.o8h_1.toString())), VOID, true); }; protoOf(ClazzEnrolmentListViewModel).yu4 = function () { Companion_getInstance_108(); this.zps_1.fog('PersonDetailView', mapOf_0(to('entityUid', this.wu0_1.toString()))); }; protoOf(ClazzEnrolmentListViewModel).dq5 = function (searchText) { }; protoOf(ClazzEnrolmentListViewModel).eq5 = 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.qty_1 = enrolmentList; this.rty_1 = personName; this.sty_1 = courseName; this.tty_1 = canEditTeacherEnrolments; this.uty_1 = canEditStudentEnrolments; this.vty_1 = courseTerminology; this.wty_1 = timeZone; } protoOf(ClazzEnrolmentListUiState).zu4 = function (enrolment) { var tmp; var tmp_0 = enrolment.t8h_1; if (tmp_0 === 1001) { tmp = this.tty_1; } else { tmp = this.tty_1; } var tmp0_canEdit = tmp; var tmp1_timeZone = this.wty_1; return new ClazzEnrolmentListItemUiState(tmp0_canEdit, enrolment, tmp1_timeZone); }; protoOf(ClazzEnrolmentListUiState).au5 = function (enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone) { return new ClazzEnrolmentListUiState(enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone); }; protoOf(ClazzEnrolmentListUiState).xty = function (enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone, $super) { enrolmentList = enrolmentList === VOID ? this.qty_1 : enrolmentList; personName = personName === VOID ? this.rty_1 : personName; courseName = courseName === VOID ? this.sty_1 : courseName; canEditTeacherEnrolments = canEditTeacherEnrolments === VOID ? this.tty_1 : canEditTeacherEnrolments; canEditStudentEnrolments = canEditStudentEnrolments === VOID ? this.uty_1 : canEditStudentEnrolments; courseTerminology = courseTerminology === VOID ? this.vty_1 : courseTerminology; timeZone = timeZone === VOID ? this.wty_1 : timeZone; return $super === VOID ? this.au5(enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone) : $super.au5.call(this, enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone); }; protoOf(ClazzEnrolmentListUiState).toString = function () { return 'ClazzEnrolmentListUiState(enrolmentList=' + this.qty_1 + ', personName=' + this.rty_1 + ', courseName=' + this.sty_1 + ', canEditTeacherEnrolments=' + this.tty_1 + ', canEditStudentEnrolments=' + this.uty_1 + ', courseTerminology=' + this.vty_1 + ', timeZone=' + this.wty_1 + ')'; }; protoOf(ClazzEnrolmentListUiState).hashCode = function () { var result = hashCode(this.qty_1); result = imul(result, 31) + (this.rty_1 == null ? 0 : getStringHashCode(this.rty_1)) | 0; result = imul(result, 31) + (this.sty_1 == null ? 0 : getStringHashCode(this.sty_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.tty_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.uty_1) | 0; result = imul(result, 31) + (this.vty_1 == null ? 0 : hashCode(this.vty_1)) | 0; result = imul(result, 31) + getStringHashCode(this.wty_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.qty_1, tmp0_other_with_cast.qty_1)) return false; if (!(this.rty_1 == tmp0_other_with_cast.rty_1)) return false; if (!(this.sty_1 == tmp0_other_with_cast.sty_1)) return false; if (!(this.tty_1 === tmp0_other_with_cast.tty_1)) return false; if (!(this.uty_1 === tmp0_other_with_cast.uty_1)) return false; if (!equals(this.vty_1, tmp0_other_with_cast.vty_1)) return false; if (!(this.wty_1 === tmp0_other_with_cast.wty_1)) return false; return true; }; function ClazzEnrolmentListItemUiState(canEdit, enrolment, timeZone) { canEdit = canEdit === VOID ? false : canEdit; this.bu5_1 = canEdit; this.cu5_1 = enrolment; this.du5_1 = timeZone; } protoOf(ClazzEnrolmentListItemUiState).toString = function () { return 'ClazzEnrolmentListItemUiState(canEdit=' + this.bu5_1 + ', enrolment=' + this.cu5_1 + ', timeZone=' + this.du5_1 + ')'; }; protoOf(ClazzEnrolmentListItemUiState).hashCode = function () { var result = getBooleanHashCode(this.bu5_1); result = imul(result, 31) + hashCode(this.cu5_1) | 0; result = imul(result, 31) + getStringHashCode(this.du5_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.bu5_1 === tmp0_other_with_cast.bu5_1)) return false; if (!equals(this.cu5_1, tmp0_other_with_cast.cu5_1)) return false; if (!(this.du5_1 === tmp0_other_with_cast.du5_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().hmk_1); RecordAttendanceOption_RECORD_ATTENDANCE_NEW_SCHEDULE_instance = new RecordAttendanceOption('RECORD_ATTENDANCE_NEW_SCHEDULE', 1, strings_getInstance().imk_1); } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.mu5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda).ou5 = function (clazz, $completion) { var tmp = this.pu5(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.ou5((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.mu5_1.jq4_1; var tmp_0; var tmp_1 = this_0.t2().ru5_1; var tmp0_safe_receiver = this.nu5_1; if (!(tmp_1 === (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w8d_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.nu5_1; var tmp1_elvis_lhs = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.w8d_1; var nextValue = prevValue.yu5(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.mu5_1.bpt_1; var tmp_2; var tmp_3 = this_1.t2().apc_1; var tmp0_safe_receiver_2 = this.nu5_1; if (!(tmp_3 == (tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.f8d_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.nu5_1; var nextValue_0 = prevValue_0.npc(VOID, VOID, tmp0_safe_receiver_3 == null ? null : tmp0_safe_receiver_3.f8d_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).pu5 = function (clazz, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda(this.mu5_1, completion); i.nu5_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.ou5(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.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.attendancelist.ClazzLogListAttendanceViewModel.......' call var nextValue = prevValue.yu5(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.bu7(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).mu7 = function (hasPermission, hasLogs, $completion) { var tmp = this.nu7(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.mu7(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.ku7_1, this.lu7_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).nu7 = function (hasPermission, hasLogs, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1(completion); i.ku7_1 = hasPermission; i.lu7_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.mu7(hasPermission, hasLogs, $completion); }; l.$arity = 2; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.wu7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3).yu7 = function (it, $completion) { var tmp = this.zu7(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.yu7(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.xu7_1.au8_1) { this_0.i1(RecordAttendanceOption_RECORD_ATTENDANCE_NEW_SCHEDULE_getInstance()); } if (this.xu7_1.au8_1 ? this.xu7_1.bu8_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.wu7_1.jq4_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.yu5(VOID, VOID, options); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.wu7_1.bpt_1; while (true) { var prevValue_0 = this_2.t2(); var tmp_0 = !options.c1(); var tmp_1 = this.wu7_1.npt().ant(strings_getInstance().om5_1); var tmp_2 = FabIcon_ADD_getInstance(); var nextValue_0 = prevValue_0.npc(new FabUiState(tmp_0, tmp_1, tmp_2, ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda$lambda(options, this.wu7_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).zu7 = function (it, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3(this.wu7_1, completion); i.xu7_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.yu7(it, $completion); }; l.$arity = 1; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.ku8_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.ku8_1.hpu().b7d().g8c(this.ku8_1.zu6_1); var tmp_1 = ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_0(this.ku8_1, null); suspendResult = tmp_0.z1b(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.ku8_1, completion); i.lu8_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.uu8_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.uu8_1.hpu().b7f(); var tmp_2 = this.uu8_1.dpu(); PermissionFlags_getInstance(); tmp_0.wu8_1 = tmp_1.yde(tmp_2, this.uu8_1.zu6_1, new Long(64, 0)); var tmp_3 = this; var tmp_4 = this.uu8_1.hpu().z7d(); tmp_3.xu8_1 = tmp_4.z9y(this.uu8_1.zu6_1, 8); this.hd_1 = 1; var tmp_5 = combine(this.wu8_1, this.xu8_1, ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_2(null)); var tmp_6 = ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_4(this.uu8_1, null); suspendResult = tmp_5.z1b(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.uu8_1, completion); i.vu8_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.gu9_1 = $this_launch; this.hu9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.gu9_1, VOID, VOID, ClazzLogListAttendanceViewModel$slambda$slambda$slambda_0(this.hu9_1, null)); launch(this.gu9_1, VOID, VOID, ClazzLogListAttendanceViewModel$slambda$slambda$slambda_2(this.hu9_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).y77 = function (completion) { return new ClazzLogListAttendanceViewModel$slambda$slambda(this.gu9_1, this.hu9_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.w86($completion); }; l.$arity = 0; return l; } function RecordAttendanceOption(name, ordinal, stringResource) { Enum.call(this, name, ordinal); this.ku9_1 = stringResource; } function PermissionAndExistingLogs(hasRecordPermission, hasExistingLogs) { this.au8_1 = hasRecordPermission; this.bu8_1 = hasExistingLogs; } protoOf(PermissionAndExistingLogs).toString = function () { return 'PermissionAndExistingLogs(hasRecordPermission=' + this.au8_1 + ', hasExistingLogs=' + this.bu8_1 + ')'; }; protoOf(PermissionAndExistingLogs).hashCode = function () { var result = getBooleanHashCode(this.au8_1); result = imul(result, 31) + getBooleanHashCode(this.bu8_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.au8_1 === tmp0_other_with_cast.au8_1)) return false; if (!(this.bu8_1 === tmp0_other_with_cast.bu8_1)) return false; return true; }; function Companion_132() { this.lu9_1 = 'CourseLogListAttendanceView'; } var Companion_instance_181; function Companion_getInstance_149() { return Companion_instance_181; } function sam$kotlinx_coroutines_flow_FlowCollector$0_21(function_0) { this.mu9_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_21).t1d = function (value, $completion) { return this.mu9_1(value, $completion); }; function ClazzLogListAttendanceViewModel$pagingSourceFactory$lambda(this$0) { return function () { var tmp = this$0.hpu().z7d(); return tmp.x9y(this$0.zu6_1, 8); }; } function ClazzLogListAttendanceViewModel$slambda(this$0, resultContinuation) { this.vu9_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.vu9_1.jq4_1, ClazzLogListAttendanceViewModel$slambda$slambda_0(this.wu9_1, this.vu9_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.vu9_1, completion); i.wu9_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.fua_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.fua_1.hpu().z7d().a9z(this.fua_1.zu6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var mostRecentLogUid = suspendResult; var this_0 = this.fua_1.zps_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_108(); tmp0_safe_receiver.fog('EditAttendance', mapOf_0(to('entityUid', mostRecentLogUid.toString()))); } this.fua_1.hua(); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.fua_1, completion); i.gua_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_108(); 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.zu6_1 = tmp_1; var tmp_2 = this; tmp_2.au7_1 = ClazzLogListAttendanceViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.attendancelist.ClazzLogListAttendanceViewModel.' call var nextValue = prevValue.yu5(VOID, VOID, VOID, this.au7_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.cpu(); launch(tmp_3, VOID, VOID, ClazzLogListAttendanceViewModel$slambda_0(this, null)); } protoOf(ClazzLogListAttendanceViewModel).hua = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.attendancelist.ClazzLogListAttendanceViewModel.onDismissCreateNewOptions.' call var nextValue = prevValue.yu5(VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzLogListAttendanceViewModel).dq5 = function (searchText) { }; protoOf(ClazzLogListAttendanceViewModel).eq5 = function () { }; protoOf(ClazzLogListAttendanceViewModel).bu7 = function (option) { var tmp0 = option.za_1; if (tmp0 === 1) { Companion_getInstance_119(); var tmp = to('timeZone', this.jq4_1.t2().ru5_1); Companion_getInstance_108(); this.wq5('ClazzLogEdit', mapOf([tmp, to('clazzUid', this.zu6_1.toString())])); this.hua(); } else if (tmp0 === 0) { if (this.fpx().equals(Companion_getInstance_89().upc_1)) return Unit_instance; this.epx(Companion_getInstance_89().upc_1); var tmp_0 = this.cpu(); launch(tmp_0, VOID, VOID, ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda_0(this, null)); } }; protoOf(ClazzLogListAttendanceViewModel).iua = function (clazzLog) { Companion_getInstance_108(); var tmp = to('entityUid', clazzLog.v9z_1.toString()); Companion_getInstance_119(); this.zps_1.fog('EditAttendance', mapOf([tmp, to('clazzUid', this.zu6_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().clt().dls() : 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().xm5_1, 7), new MessageIdOption2(strings_getInstance().xm7_1, 30), new MessageIdOption2(strings_getInstance().jma_1, 90)]) : viewIdToNumDays; createNewOptionsVisible = createNewOptionsVisible === VOID ? false : createNewOptionsVisible; this.qu5_1 = graphData; this.ru5_1 = timeZoneId; this.su5_1 = recordAttendanceOptions; this.tu5_1 = clazzLogsList; this.uu5_1 = fieldsEnabled; this.vu5_1 = selectedChipId; this.wu5_1 = viewIdToNumDays; this.xu5_1 = createNewOptionsVisible; } protoOf(ClazzLogListAttendanceUiState).jua = function (graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible) { return new ClazzLogListAttendanceUiState(graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible); }; protoOf(ClazzLogListAttendanceUiState).yu5 = function (graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible, $super) { graphData = graphData === VOID ? this.qu5_1 : graphData; timeZoneId = timeZoneId === VOID ? this.ru5_1 : timeZoneId; recordAttendanceOptions = recordAttendanceOptions === VOID ? this.su5_1 : recordAttendanceOptions; clazzLogsList = clazzLogsList === VOID ? this.tu5_1 : clazzLogsList; fieldsEnabled = fieldsEnabled === VOID ? this.uu5_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.vu5_1 : selectedChipId; viewIdToNumDays = viewIdToNumDays === VOID ? this.wu5_1 : viewIdToNumDays; createNewOptionsVisible = createNewOptionsVisible === VOID ? this.xu5_1 : createNewOptionsVisible; return $super === VOID ? this.jua(graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible) : $super.jua.call(this, graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible); }; protoOf(ClazzLogListAttendanceUiState).toString = function () { return 'ClazzLogListAttendanceUiState(graphData=' + this.qu5_1 + ', timeZoneId=' + this.ru5_1 + ', recordAttendanceOptions=' + this.su5_1 + ', clazzLogsList=' + this.tu5_1 + ', fieldsEnabled=' + this.uu5_1 + ', selectedChipId=' + this.vu5_1 + ', viewIdToNumDays=' + this.wu5_1 + ', createNewOptionsVisible=' + this.xu5_1 + ')'; }; protoOf(ClazzLogListAttendanceUiState).hashCode = function () { var result = this.qu5_1 == null ? 0 : this.qu5_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.ru5_1) | 0; result = imul(result, 31) + hashCode(this.su5_1) | 0; result = imul(result, 31) + hashCode(this.tu5_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.uu5_1) | 0; result = imul(result, 31) + this.vu5_1 | 0; result = imul(result, 31) + hashCode(this.wu5_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.xu5_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.qu5_1, tmp0_other_with_cast.qu5_1)) return false; if (!(this.ru5_1 === tmp0_other_with_cast.ru5_1)) return false; if (!equals(this.su5_1, tmp0_other_with_cast.su5_1)) return false; if (!equals(this.tu5_1, tmp0_other_with_cast.tu5_1)) return false; if (!(this.uu5_1 === tmp0_other_with_cast.uu5_1)) return false; if (!(this.vu5_1 === tmp0_other_with_cast.vu5_1)) return false; if (!equals(this.wu5_1, tmp0_other_with_cast.wu5_1)) return false; if (!(this.xu5_1 === tmp0_other_with_cast.xu5_1)) return false; return true; }; function ClazzLogEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$slambda$slambda).tua = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.tua(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).pn8 = function (it, completion) { var i = new ClazzLogEditViewModel$slambda$slambda(completion); i.sua_1 = it; return i; }; function ClazzLogEditViewModel$slambda$slambda_0(resultContinuation) { var i = new ClazzLogEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.tua(it, $completion); }; l.$arity = 1; return l; } function ClazzLogEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.cub_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$slambda$slambda_1).dub = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditViewModel$slambda$slambda_1).z77 = function ($completion) { return this.dub($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.w9z_1 = this.cub_1.euc_1; this_0.x9z_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).y77 = function (completion) { return new ClazzLogEditViewModel$slambda$slambda_1(this.cub_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.dub($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.cuc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel...' call var nextValue = prevValue.juc(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzLogEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function Companion_133() { this.kuc_1 = 'ClazzLogEdit'; } var Companion_instance_182; function Companion_getInstance_150() { return Companion_instance_182; } function ClazzLogEditViewModel$slambda(this$0, resultContinuation) { this.tuc_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.a4r(); var tmp_1 = ClazzLogEditViewModel$slambda$slambda_0(null); var tmp_2 = ClazzLogEditViewModel$slambda$slambda_2(this.tuc_1, null); suspendResult = this.tuc_1.rpu(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzLogEditViewModel$slambda$lambda(this.tuc_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.tuc_1.bpt_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.tuc_1.npt().ant(strings_getInstance().alv_1); var nextValue = prevValue.npc(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, ClazzLogEditViewModel$onClickSave$ref(this.tuc_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.tuc_1.cuc_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.juc(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.tuc_1, completion); i.uuc_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.dud_1 = $commitDelay; this.eud_1 = $entity; this.fud_1 = $this; this.gud_1 = $key; this.hud_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.dud_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.eud_1 == null)) { this.hd_1 = 2; suspendResult = this.fud_1.npu(this.fud_1.xps_1, this.gud_1, this.hud_1, this.eud_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.dud_1, this.eud_1, this.fud_1, this.gud_1, this.hud_1, completion); i.iud_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.v9z_1 = generateUid($this$shallowCopy); return Unit_instance; } function ClazzLogEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'ClazzLogEdit'); var tmp = this; Companion_getInstance_119(); var tmp0_elvis_lhs = savedStateHandle.ba('timeZone'); tmp.buc_1 = tmp0_elvis_lhs == null ? 'UTC' : tmp0_elvis_lhs; this.cuc_1 = MutableStateFlow(new ClazzLogEditUiState(VOID, VOID, this.buc_1)); this.duc_1 = asStateFlow(this.cuc_1); var tmp_0 = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.euc_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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel.' call var nextValue = prevValue.npc(VOID, VOID, this.npt().ant(strings_getInstance().imk_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = this.cpu(); launch(tmp_1, VOID, VOID, ClazzLogEditViewModel$slambda_0(this, null)); } protoOf(ClazzLogEditViewModel).jud = function (clazzLog) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.cuc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.guc_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x9z_1; var nextValue = prevValue.juc(VOID, clazzLog, VOID, this.zq2(tmp, clazzLog == null ? null : clazzLog.x9z_1, prevValue.iuc_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_36.a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.cpu(); tmp_0.vq1_1 = launch(tmp_1, VOID, VOID, ClazzLogEditViewModel$onEntityChanged$slambda_0(commitDelay, clazzLog, this, key, serializer, null)); }; protoOf(ClazzLogEditViewModel).yr9 = function () { var tmp0_elvis_lhs = this.cuc_1.t2().guc_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var clazzLog = tmp; var errorMsg = !isDateSet(clazzLog.x9z_1) ? strings_getInstance().sly_1 : clazzLog.x9z_1.c7(systemTimeInMillis()) > 0 ? strings_getInstance().kmx_1 : null; if (!(errorMsg == null)) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.cuc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel.onClickSave.' call var nextValue = prevValue.juc(VOID, VOID, VOID, this.npt().ant(errorMsg)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } var clazzLogWithUid = shallowCopy_6(clazzLog, ClazzLogEditViewModel$onClickSave$lambda); var newClazzLogJson = this.z4q().e45(Companion_instance_36.a4r(), clazzLogWithUid); var tmp_0 = to('newclazzlog', newClazzLogJson); Companion_getInstance_119(); this.zps_1.fog('EditAttendance', mapOf([tmp_0, to('clazzUid', this.euc_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.fuc_1 = fieldsEnabled; this.guc_1 = clazzLog; this.huc_1 = timeZone; this.iuc_1 = dateError; } protoOf(ClazzLogEditUiState).kud = function (fieldsEnabled, clazzLog, timeZone, dateError) { return new ClazzLogEditUiState(fieldsEnabled, clazzLog, timeZone, dateError); }; protoOf(ClazzLogEditUiState).juc = function (fieldsEnabled, clazzLog, timeZone, dateError, $super) { fieldsEnabled = fieldsEnabled === VOID ? this.fuc_1 : fieldsEnabled; clazzLog = clazzLog === VOID ? this.guc_1 : clazzLog; timeZone = timeZone === VOID ? this.huc_1 : timeZone; dateError = dateError === VOID ? this.iuc_1 : dateError; return $super === VOID ? this.kud(fieldsEnabled, clazzLog, timeZone, dateError) : $super.kud.call(this, fieldsEnabled, clazzLog, timeZone, dateError); }; protoOf(ClazzLogEditUiState).toString = function () { return 'ClazzLogEditUiState(fieldsEnabled=' + this.fuc_1 + ', clazzLog=' + this.guc_1 + ', timeZone=' + this.huc_1 + ', dateError=' + this.iuc_1 + ')'; }; protoOf(ClazzLogEditUiState).hashCode = function () { var result = getBooleanHashCode(this.fuc_1); result = imul(result, 31) + (this.guc_1 == null ? 0 : this.guc_1.hashCode()) | 0; result = imul(result, 31) + getStringHashCode(this.huc_1) | 0; result = imul(result, 31) + (this.iuc_1 == null ? 0 : getStringHashCode(this.iuc_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.fuc_1 === tmp0_other_with_cast.fuc_1)) return false; if (!equals(this.guc_1, tmp0_other_with_cast.guc_1)) return false; if (!(this.huc_1 === tmp0_other_with_cast.huc_1)) return false; if (!(this.iuc_1 == tmp0_other_with_cast.iuc_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.x9z_1; // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel...' call var tmp$ret$1 = b.x9z_1; return compareValues(tmp, tmp$ret$1); } function ClazzLogEditAttendanceViewModel$slambda$slambda(this$0, $newClazzLogVal, resultContinuation) { this.tud_1 = this$0; this.uud_1 = $newClazzLogVal; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda).wud = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda).he = function (p1, $completion) { return this.wud(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.vud_1.z7d(); suspendResult = tmp_0.y9y(this.tud_1.zue_1, 8, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var dbLogList = suspendResult; var tmp_1; if (!(this.uud_1 == null)) { var this_0 = plus(dbLogList, listOf_0(this.uud_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).pn8 = function (db, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda$slambda(this.tud_1, this.uud_1, completion); i.vud_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.wud(db, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).iuf = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).z77 = function ($completion) { return this.iuf($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).y77 = 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.iuf($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.uue_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel...' call var nextValue = prevValue.puf(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.yuf_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.yuf_1.hpu().b7d().p8c(this.yuf_1.uue_1.t2().aug().w9z_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var timeZone = suspendResult; l$ret$1: do { var this_0 = this.yuf_1.uue_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.puf(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.yuf_1, completion); i.zuf_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.yr9(); 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.s9u_1; if (tmp_1 === 1) { count = count + 1 | 0; checkCountOverflow(count); } } tmp$ret$0 = count; } tmp.ca0_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.s9u_1; if (tmp_4 === 2) { count_0 = count_0 + 1 | 0; checkCountOverflow(count_0); } } tmp$ret$2 = count_0; } tmp_2.da0_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.s9u_1; if (tmp_7 === 4) { count_1 = count_1 + 1 | 0; checkCountOverflow(count_1); } } tmp$ret$4 = count_1; } tmp_5.ea0_1 = tmp$ret$4; return Unit_instance; }; } function ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda(this$0, $clazzLogsToSave, $attendanceRecordsToSave, resultContinuation) { this.jug_1 = this$0; this.kug_1 = $clazzLogsToSave; this.lug_1 = $attendanceRecordsToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda).on8 = function (it, $completion) { var tmp = this.pn8(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.on8(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.jug_1.hpu().z7d().b9z(this.kug_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.jug_1.hpu().y7d().v9t(this.lug_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).pn8 = function (it, completion) { var i = new ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda(this.jug_1, this.kug_1, this.lug_1, completion); i.mug_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.on8(it, $completion); }; l.$arity = 1; return l; } function _get_newClazzLog__zdra0r($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wue_1; newClazzLog$factory(); return this_0.t2(); } function _set_currentClazzLogIndex__l00dbq($this, value) { $this.xps_1.app('activeIndex', toString_0(value)); } function _get_currentClazzLogIndex__yy31c2($this) { var tmp0_safe_receiver = $this.xps_1.ba('activeIndex'); return tmp0_safe_receiver == null ? null : toInt(tmp0_safe_receiver); } function savePersonAndAttendanceRecords($this, clazzLogUid, records, $completion) { var tmp = new $savePersonAndAttendanceRecordsCOROUTINE$69($this, clazzLogUid, records, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function commitAttendanceRecordsToState($this, $completion) { var tmp = new $commitAttendanceRecordsToStateCOROUTINE$70($this, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_134() { this.puh_1 = 'newclazzlog'; this.quh_1 = 'EditAttendance'; this.ruh_1 = 'activeIndex'; this.suh_1 = 'log_'; this.tuh_1 = 'logsToSave'; } var Companion_instance_183; function Companion_getInstance_151() { return Companion_instance_183; } function sam$kotlin_Comparator$0_2(function_0) { this.uuh_1 = function_0; } protoOf(sam$kotlin_Comparator$0_2).pa = function (a, b) { return this.uuh_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.z4q().f45(Companion_instance_36.a4r(), tmp0_safe_receiver); } return tmp; }; } function ClazzLogEditAttendanceViewModel$slambda(this$0, resultContinuation) { this.dui_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda).krc = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda).he = function (p1, $completion) { return this.krc(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.eui_1.b7f(); var tmp_1 = this.dui_1.dpu(); PermissionFlags_getInstance(); suspendResult = tmp_0.cdf(tmp_1, this.dui_1.zue_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).pn8 = function (db, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda(this.dui_1, completion); i.eui_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.krc(db, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$slambda_1(this$0, resultContinuation) { this.nui_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.pui_1 = _get_newClazzLog__zdra0r(this.nui_1); this.hd_1 = 1; var tmp_0 = this.nui_1.fpu().b7f(); var tmp_1 = this.nui_1.dpu(); PermissionFlags_getInstance(); suspendResult = tmp_0.cdf(tmp_1, this.nui_1.zue_1, new Long(64, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.qui_1 = suspendResult; this.hd_1 = 2; var tmp_2 = ListSerializer(Companion_instance_36.a4r()); var tmp_3 = ClazzLogEditAttendanceViewModel$slambda$slambda_0(this.nui_1, this.pui_1, null); var tmp_4 = ClazzLogEditAttendanceViewModel$slambda$slambda_2(null); suspendResult = this.nui_1.rpu(tmp_2, VOID, VOID, tmp_3, tmp_4, ClazzLogEditAttendanceViewModel$slambda$lambda(this.nui_1, this.qui_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: launch(this.oui_1, VOID, VOID, ClazzLogEditAttendanceViewModel$slambda$slambda_4(this.nui_1, null)); var currentClazzLogIndexVal = _get_currentClazzLogIndex__yy31c2(this.nui_1); var tmp_5; if (!(currentClazzLogIndexVal == null)) { tmp_5 = currentClazzLogIndexVal; } else if (!(this.pui_1 == null)) { var tmp0_elvis_lhs = this.nui_1.uue_1.t2().rui(this.pui_1.v9z_1); tmp_5 = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs; } else if (!this.nui_1.wq1_1.equals(new Long(0, 0))) { var tmp1_elvis_lhs = this.nui_1.uue_1.t2().rui(this.nui_1.wq1_1); tmp_5 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; } else { tmp_5 = this.nui_1.uue_1.t2().luf_1.u() - 1 | 0; } var startIndex = tmp_5; this.nui_1.sui(this.nui_1.uue_1.t2().luf_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.nui_1, completion); i.oui_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.buj_1 = $clazzLog; this.cuj_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.euj_1 = 'log_' + this.buj_1.v9z_1.toString(); this.hd_1 = 1; suspendResult = this.cuj_1.mpu(this.cuj_1.xps_1, this.euj_1, ListSerializer(Companion_instance_38.a4r()), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.fuj_1 = suspendResult; if (this.fuj_1 == null) { this.hd_1 = 2; suspendResult = this.cuj_1.hpu().y7d().u9t(this.buj_1.w9z_1, this.buj_1.v9z_1, this.buj_1.x9z_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.guj_1 = this.fuj_1; this.hd_1 = 8; continue $sm; } case 2: this.huj_1 = suspendResult; var tmp_0 = this; tmp_0.iuj_1 = this.huj_1; var tmp_1 = this; tmp_1.juj_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.huj_1, 10)); this.kuj_1 = this.iuj_1.w(); this.hd_1 = 3; continue $sm; case 3: if (!this.kuj_1.f()) { this.hd_1 = 6; continue $sm; } this.luj_1 = this.kuj_1.e(); var tmp_2 = this; tmp_2.muj_1 = this.luj_1; if (this.muj_1.m9v_1 == null) { this.ouj_1 = this.muj_1.k9v_1; var tmp_3 = this; tmp_3.puj_1 = new ClazzLogAttendanceRecord(); var tmp_4 = this; tmp_4.quj_1 = this.puj_1; this.hd_1 = 4; var tmp_5 = get_doorPrimaryKeyManager(this.cuj_1.fpu()); suspendResult = tmp_5.b62(15, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_6 = this; tmp_6.nuj_1 = this.muj_1; this.hd_1 = 5; continue $sm; } case 4: this.ruj_1 = suspendResult; this.quj_1.p9u_1 = this.ruj_1; var tmp_7 = this.quj_1; var tmp0_safe_receiver = this.muj_1.k9v_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s95_1; tmp_7.r9u_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.quj_1.q9u_1 = this.buj_1.v9z_1; this.suj_1 = this.puj_1; this.tuj_1 = this.muj_1.l9v_1; this.nuj_1 = new PersonAndClazzLogAttendanceRecord(this.ouj_1, this.tuj_1, this.suj_1); this.hd_1 = 5; continue $sm; case 5: this.uuj_1 = this.nuj_1; this.juj_1.i1(this.uuj_1); this.hd_1 = 3; continue $sm; case 6: this.vuj_1 = this.juj_1; var tmp_8 = this; tmp_8.wuj_1 = this.vuj_1; this.hd_1 = 7; suspendResult = savePersonAndAttendanceRecords(this.cuj_1, this.buj_1.v9z_1, this.wuj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.guj_1 = this.vuj_1; this.hd_1 = 8; continue $sm; case 8: var personAndAttendanceRecords = this.guj_1; l$ret$1: do { var this_0 = this.cuj_1.uue_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.puf(personAndAttendanceRecords, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.cuj_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_9; if (!prevValue_0.gpc_1.jpb_1) { var tmp_10 = this.cuj_1.uue_1.t2().nuf_1; var tmp_11 = this.cuj_1.npt().ant(strings_getInstance().zmd_1); tmp_9 = prevValue_0.npc(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(tmp_10, tmp_11, VOID, ClazzLogEditAttendanceViewModel$onClickSave$ref(this.cuj_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.buj_1, this.cuj_1, completion); i.duj_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.k9v_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s95_1; var tmp1_safe_receiver = $record.k9v_1; return equals(tmp, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s95_1); }; } function ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda(this$0, resultContinuation) { this.fuk_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.fuk_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.fuk_1, completion); i.guk_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.s9u_1 = $status; return Unit_instance; }; } function ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda(this$0, resultContinuation) { this.puk_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.puk_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.puk_1, completion); i.quk_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.zuk_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.bul_1 = this.zuk_1.yue_1; var tmp_1 = this; tmp_1.cul_1 = null; this.hd_1 = 2; suspendResult = this.bul_1.n23(this.cul_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.eul_1 = ArrayList_init_$Create$(); var tmp_3 = this; tmp_3.ful_1 = ArrayList_init_$Create$(); this.hd_1 = 4; suspendResult = this.zuk_1.mpu(this.zuk_1.xps_1, 'logsToSave', ListSerializer(serializer_1(Companion_getInstance_2())), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.gul_1 = suspendResult; this.hul_1 = this.gul_1 == null ? emptyList() : this.gul_1; var tmp_4 = this; tmp_4.iul_1 = this.hul_1; this.jul_1 = this.iul_1.w(); this.hd_1 = 5; continue $sm; case 5: if (!this.jul_1.f()) { this.hd_1 = 7; continue $sm; } this.kul_1 = this.jul_1.e(); var tmp_5 = this; tmp_5.lul_1 = this.kul_1; var tmp_6 = this; var tmp$ret$0; l$ret$1: do { var tmp0_iterator = this.zuk_1.uue_1.t2().luf_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.v9z_1.equals(this.lul_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.mul_1 = tmp$ret$0; this.hd_1 = 6; suspendResult = this.zuk_1.mpu(this.zuk_1.xps_1, 'log_' + this.lul_1.toString(), ListSerializer(Companion_instance_38.a4r()), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.nul_1 = suspendResult; var tmp_7 = this; var tmp_8; if (this.nul_1 == null) { tmp_8 = null; } else { var this_0 = this.nul_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.m9v_1; if (tmp0_safe_receiver == null) null; else { destination.i1(tmp0_safe_receiver); } } tmp_8 = destination; } tmp_7.oul_1 = tmp_8; this.pul_1 = this.oul_1 == null ? emptyList() : this.oul_1; var this_1 = this.eul_1; var element_1 = shallowCopy_6(this.mul_1, ClazzLogEditAttendanceViewModel$onClickSave$slambda$lambda(this.pul_1)); this_1.i1(element_1); var this_2 = this.ful_1; var elements = this.pul_1; addAll(this_2, elements); this.hd_1 = 5; continue $sm; case 7: this.hd_1 = 8; var tmp_9 = this.zuk_1.hpu(); suspendResult = withDoorTransactionAsync(tmp_9, VOID, ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda_0(this.zuk_1, this.eul_1, this.ful_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: this.dul_1 = suspendResult; this.id_1 = 11; this.hd_1 = 9; continue $sm; case 9: this.id_1 = 11; this.bul_1.y22(this.cul_1); if (!(_get_newClazzLog__zdra0r(this.zuk_1) == null)) { this.zuk_1.zps_1.opf('ClazzLogEdit', true); } else { this.zuk_1.zq1(this.zuk_1.uue_1.t2().aug()); } return Unit_instance; case 10: this.id_1 = 11; var t = this.kd_1; this.bul_1.y22(this.cul_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.zuk_1, completion); i.aul_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$69(_this__u8e3s4, clazzLogUid, records, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vug_1 = _this__u8e3s4; this.wug_1 = clazzLogUid; this.xug_1 = records; } protoOf($savePersonAndAttendanceRecordsCOROUTINE$69).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.yug_1 = 'log_' + this.wug_1.toString(); this.hd_1 = 1; suspendResult = this.vug_1.npu(this.vug_1.xps_1, this.yug_1, ListSerializer(Companion_instance_38.a4r()), this.xug_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.vug_1.mpu(this.vug_1.xps_1, 'logsToSave', ListSerializer(serializer_1(Companion_getInstance_2())), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.zug_1 = suspendResult; this.auh_1 = this.zug_1 == null ? null : toSet(this.zug_1); this.buh_1 = this.auh_1 == null ? emptySet() : this.auh_1; if (!this.buh_1.a1(this.wug_1)) { this.cuh_1 = plus_2(this.buh_1, this.wug_1); this.hd_1 = 3; suspendResult = this.vug_1.npu(this.vug_1.xps_1, 'logsToSave', ListSerializer(serializer_1(Companion_getInstance_2())), toList(this.cuh_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$70(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.luh_1 = _this__u8e3s4; } protoOf($commitAttendanceRecordsToStateCOROUTINE$70).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.muh_1 = this.luh_1.yue_1; var tmp_1 = this; tmp_1.nuh_1 = null; this.hd_1 = 1; suspendResult = this.muh_1.n23(this.nuh_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.luh_1, this.luh_1.uue_1.t2().aug().v9z_1, this.luh_1.uue_1.t2().juf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.ouh_1 = suspendResult; this.id_1 = 6; this.hd_1 = 4; continue $sm; case 4: this.id_1 = 6; this.muh_1.y22(this.nuh_1); return Unit_instance; case 5: this.id_1 = 6; var t = this.kd_1; this.muh_1.y22(this.nuh_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.uue_1 = MutableStateFlow(new ClazzLogEditAttendanceUiState()); this.vue_1 = asStateFlow(this.uue_1); var tmp = this; tmp.wue_1 = lazy_0(ClazzLogEditAttendanceViewModel$newClazzLog$delegate$lambda(savedStateHandle, this)); this.xue_1 = null; this.yue_1 = Mutex(); var tmp_0 = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.zue_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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.' call var nextValue = prevValue.npc(VOID, VOID, this.npt().ant(strings_getInstance().om5_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = ClazzLogEditAttendanceViewModel$slambda_0(this, null); this.tpu(tmp_1, VOID, VOID, ClazzLogEditAttendanceViewModel$slambda_2(this, null)); } protoOf(ClazzLogEditAttendanceViewModel).sui = function (clazzLog, forceLoad) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.indexOfFirst' call var index = 0; var tmp0_iterator = this.uue_1.t2().luf_1.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onChangeClazzLog.' call if (item.v9z_1.equals(clazzLog.v9z_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.uue_1.t2().kuf_1 : false) return Unit_instance; $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.uue_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.luf_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.v9z_1.equals(clazzLog.v9z_1)) { tmp$ret$3 = index_0; break $l$block_0; } index_0 = index_0 + 1 | 0; } tmp$ret$3 = -1; } var nextValue = prevValue.puf(VOID, tmp$ret$3, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block_1; } } } var tmp0_safe_receiver = this.xue_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.cpu(); tmp.xue_1 = launch(tmp_0, VOID, VOID, ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda_0(clazzLog, this, null)); }; protoOf(ClazzLogEditAttendanceViewModel).qul = function (clazzLog, forceLoad, $super) { forceLoad = forceLoad === VOID ? false : forceLoad; var tmp; if ($super === VOID) { this.sui(clazzLog, forceLoad); tmp = Unit_instance; } else { tmp = $super.sui.call(this, clazzLog, forceLoad); } return tmp; }; protoOf(ClazzLogEditAttendanceViewModel).rul = function (record) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.uue_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onClazzLogAttendanceChanged.' call var nextValue = prevValue.puf(replace_0(prevValue.juf_1, record, ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$lambda(record))); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.cpu(); launch(tmp, VOID, VOID, ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda_0(this, null)); }; protoOf(ClazzLogEditAttendanceViewModel).sul = function (status) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.uue_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.juf_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.m9v_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.njm(VOID, VOID, tmp); destination.i1(tmp$ret$0); } var nextValue = prevValue.puf(destination); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.cpu(); launch(tmp_0, VOID, VOID, ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda_0(this, null)); }; protoOf(ClazzLogEditAttendanceViewModel).yr9 = function () { var tmp = this.cpu(); 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.juf_1 = clazzLogAttendanceRecordList; this.kuf_1 = currentClazzLogIndex; this.luf_1 = clazzLogsList; this.muf_1 = fieldsEnabled; this.nuf_1 = canEdit; this.ouf_1 = timeZone; } protoOf(ClazzLogEditAttendanceUiState).rui = 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.luf_1.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceUiState.indexOfClazzLogUid.' call if (item.v9z_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).aug = function () { return this.luf_1.v(this.kuf_1); }; protoOf(ClazzLogEditAttendanceUiState).tul = function (clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone) { return new ClazzLogEditAttendanceUiState(clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone); }; protoOf(ClazzLogEditAttendanceUiState).puf = function (clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone, $super) { clazzLogAttendanceRecordList = clazzLogAttendanceRecordList === VOID ? this.juf_1 : clazzLogAttendanceRecordList; currentClazzLogIndex = currentClazzLogIndex === VOID ? this.kuf_1 : currentClazzLogIndex; clazzLogsList = clazzLogsList === VOID ? this.luf_1 : clazzLogsList; fieldsEnabled = fieldsEnabled === VOID ? this.muf_1 : fieldsEnabled; canEdit = canEdit === VOID ? this.nuf_1 : canEdit; timeZone = timeZone === VOID ? this.ouf_1 : timeZone; return $super === VOID ? this.tul(clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone) : $super.tul.call(this, clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone); }; protoOf(ClazzLogEditAttendanceUiState).toString = function () { return 'ClazzLogEditAttendanceUiState(clazzLogAttendanceRecordList=' + this.juf_1 + ', currentClazzLogIndex=' + this.kuf_1 + ', clazzLogsList=' + this.luf_1 + ', fieldsEnabled=' + this.muf_1 + ', canEdit=' + this.nuf_1 + ', timeZone=' + this.ouf_1 + ')'; }; protoOf(ClazzLogEditAttendanceUiState).hashCode = function () { var result = hashCode(this.juf_1); result = imul(result, 31) + this.kuf_1 | 0; result = imul(result, 31) + hashCode(this.luf_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.muf_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.nuf_1) | 0; result = imul(result, 31) + getStringHashCode(this.ouf_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.juf_1, tmp0_other_with_cast.juf_1)) return false; if (!(this.kuf_1 === tmp0_other_with_cast.kuf_1)) return false; if (!equals(this.luf_1, tmp0_other_with_cast.luf_1)) return false; if (!(this.muf_1 === tmp0_other_with_cast.muf_1)) return false; if (!(this.nuf_1 === tmp0_other_with_cast.nuf_1)) return false; if (!(this.ouf_1 === tmp0_other_with_cast.ouf_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().omz_1; break; case 4: tmp = strings_getInstance().pmz_1; break; case 3: tmp = strings_getInstance().qmz_1; break; case 2: tmp = strings_getInstance().rmz_1; break; case 1: tmp = strings_getInstance().smz_1; break; case 0: tmp = strings_getInstance().tmz_1; break; default: noWhenBranchMatchedException(); break; } return tmp; } function get_contentTypeStringResource(_this__u8e3s4) { var tmp; if (!_this__u8e3s4.qar_1) { tmp = strings_getInstance().vmn_1; } else { var tmp0_subject = _this__u8e3s4.var_1; var tmp_0; if (tmp0_subject === 1) { tmp_0 = strings_getInstance().ylx_1; } else { if (tmp0_subject === 2) { tmp_0 = strings_getInstance().wlx_1; } else { if (tmp0_subject === 3) { tmp_0 = strings_getInstance().xlx_1; } else { if (tmp0_subject === 4) { tmp_0 = strings_getInstance().aml_1; } else { if (tmp0_subject === 5) { tmp_0 = strings_getInstance().bly_1; } else { if (tmp0_subject === 6) { tmp_0 = strings_getInstance().zlx_1; } else { if (tmp0_subject === 7) { tmp_0 = strings_getInstance().aly_1; } else { tmp_0 = strings_getInstance().mlt_1; } } } } } } } tmp = tmp_0; } return tmp; } function Companion_135() { Companion_instance_184 = this; this.uul_1 = 'ContentEntry'; var tmp = this; Companion_getInstance_119(); Companion_getInstance_119(); Companion_getInstance_119(); Companion_getInstance_119(); tmp.vul_1 = listOf(['entityUid', 'clazzUid', 'parentUid', 'courseBlockUid']); } var Companion_instance_184; function Companion_getInstance_152() { if (Companion_instance_184 == null) new Companion_135(); return Companion_instance_184; } function ContentEntryDetailViewModel(di, savedStateHandle) { Companion_getInstance_152(); 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.ypt(this_0, Companion_getInstance_152().vul_1); var tmp$ret$2 = this_0.f3(); tmp.sum_1 = MutableStateFlow(new ContentEntryDetailUiState(listOf_0(new TabItem('ContentEntryDetailOverviewView', tmp$ret$2, this.npt().ant(strings_getInstance().tmf_1))))); this.tum_1 = asStateFlow(this.sum_1); } function ContentEntryDetailUiState(tabs) { tabs = tabs === VOID ? emptyList() : tabs; this.uum_1 = tabs; } protoOf(ContentEntryDetailUiState).toString = function () { return 'ContentEntryDetailUiState(tabs=' + this.uum_1 + ')'; }; protoOf(ContentEntryDetailUiState).hashCode = function () { return hashCode(this.uum_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.uum_1, tmp0_other_with_cast.uum_1)) return false; return true; }; function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.dun_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda).fun = function (it, $completion) { var tmp = this.gun(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.fun((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.dun_1.duo_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.iup(VOID, this.eun_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).gun = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda(this.dun_1, completion); i.eun_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.fun(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.rup_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).iql = function (db, $completion) { var tmp = this.pn8(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.iql(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.sup_1.i7d().jaq(this.rup_1.ruo_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).pn8 = function (db, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(this.rup_1, completion); i.sup_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.iql(db, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$lambda(it) { return it == null ? null : it.hat_1; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.buq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).fuq = function (contentEntryVersion, $completion) { var tmp = this.guq(contentEntryVersion, $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.fuq((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; switch (tmp) { case 0: this.id_1 = 4; l$ret$1: do { var this_0 = this.buq_1.duo_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.iup(VOID, VOID, this.cuq_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); if (!(this.cuq_1 == null)) { this.duq_1 = _get_checkLocalAvailabilityUseCase__5fhzk8(this.buq_1); if (this.duq_1 == null) { this.euq_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.duq_1.eoq(this.cuq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } else { this.hd_1 = 3; continue $sm; } case 1: this.euq_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var tmp1_elvis_lhs = this.euq_1; var isAvailable = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; var this_1 = this.buq_1.duo_1; var tmp_0; if (isAvailable) { tmp_0 = this_1; } else { tmp_0 = null; } var tmp2_safe_receiver = tmp_0; if (tmp2_safe_receiver == null) null; else { l$ret$3: do { while (true) { var prevValue_0 = tmp2_safe_receiver.t2(); var nextValue_0 = prevValue_0.iup(VOID, VOID, VOID, VOID, isAvailable); if (tmp2_safe_receiver.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } 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(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).guq = function (contentEntryVersion, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this.buq_1, completion); i.cuq_1 = contentEntryVersion; 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 (contentEntryVersion, $completion) { return i.fuq(contentEntryVersion, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.puq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).ruq = function (it, $completion) { var tmp = this.suq(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.ruq((!(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.puq_1.duo_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.iup(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.quq_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).suq = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this.puq_1, completion); i.quq_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.ruq(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.bur_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).dur = function (it, $completion) { var tmp = this.eur(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.dur((!(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.bur_1.duo_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.iup(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.cur_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).eur = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this.bur_1, completion); i.cur_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.dur(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9(this$0, resultContinuation) { this.nur_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9).pur = function (it, $completion) { var tmp = this.qur(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.pur((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.nur_1.duo_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.iup(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.our_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).qur = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9(this.nur_1, completion); i.our_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.pur(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$lambda_0() { return 'Could not get list of jobs'; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda(this$0, $savedStateHandle, resultContinuation) { this.zur_1 = this$0; this.aus_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.zur_1.hpu().i7d(); Companion_getInstance_119(); var tmp0_safe_receiver = this.aus_1.ba('courseBlockUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp_1 = tmp_0.iaq(this.zur_1.dpx_1, this.zur_1.quo_1, tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs, this.zur_1.dpu()); var tmp_2 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_0(this.zur_1, null); suspendResult = tmp_1.z1b(new sam$kotlinx_coroutines_flow_FlowCollector$0_22(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.zur_1, this.aus_1, completion); i.bus_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.kus_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_158(); if (this.kus_1.ruo_1.equals(new Long(1, 0))) { var tmp_0 = this; tmp_0.mus_1 = this.kus_1.npt().ant(strings_getInstance().jmt_1); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_1 = this.kus_1.hpu(); suspendResult = localFirstThenRepoIfNull(tmp_1, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(this.kus_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.mus_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var parentTitle = this.mus_1; l$ret$1: do { var this_0 = this.kus_1.bpt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.npc(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.kus_1, completion); i.lus_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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailoverviewtab.ContentEntryDetailOverviewViewModel....' call var nextValue = prevValue.npc(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.vus_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.vus_1.hpu().v7e().abl(this.vus_1.dpx_1); var tmp_1 = distinctUntilChangedBy(tmp_0, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$lambda); suspendResult = collectLatest(tmp_1, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this.vus_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$slambda$slambda_3).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3(this.vus_1, completion); i.wus_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.fut_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.fut_1.fpu().w7e(); var tmp_1 = tmp_0.ei3(this.fut_1.dpx_1, 1); var tmp_2 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this.fut_1, null); suspendResult = tmp_1.z1b(new sam$kotlinx_coroutines_flow_FlowCollector$0_22(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.fut_1, completion); i.gut_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.put_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.put_1.fpu().p7e().hb6(this.put_1.dpx_1); var tmp_1 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this.put_1, null); suspendResult = tmp_0.z1b(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(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7(this.put_1, completion); i.qut_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.zut_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.zut_1.fpu().y7e().wfl(this.zut_1.dpx_1, this.zut_1.buu().d64_1); var tmp_1 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_10(this.zut_1, null); suspendResult = tmp_0.z1b(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(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9(this.zut_1, completion); i.auu_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.kuu_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.muu_1 = _get_httpClient__2ty1zc_0(this.kuu_1); var tmp_1 = this; tmp_1.nuu_1 = this.kuu_1.bpu().nnk().in3_1 + 'api/contententryimportjob/importjobs'; var tmp_2 = this; tmp_2.ouu_1 = this.muu_1; var tmp_3 = this; tmp_3.puu_1 = this.ouu_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.nuu_1); parameter(this_0, 'contententryuid', this.kuu_1.dpx_1.toString()); header(this_0, 'cache-control', 'no-store'); tmp_4.quu_1 = this_0; this.quu_1.j38_1 = Companion_getInstance().y2w_1; var tmp_5 = this; tmp_5.ruu_1 = this.puu_1; var tmp_6 = this; tmp_6.suu_1 = this.quu_1; this.hd_1 = 2; suspendResult = (new HttpStatement(this.suu_1, this.ruu_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.tuu_1 = suspendResult; this.hd_1 = 3; suspendResult = bodyAsDecodedText(this.tuu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var remoteImportJobsJson = suspendResult; var remoteImportJobs = this.kuu_1.z4q().f45(ListSerializer(Companion_instance_40.a4r()), remoteImportJobsJson); var tmp$ret$0; l$ret$1: do { var this_1 = this.kuu_1.duo_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.iup(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.cup_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.x5d(VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$lambda_0); 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.kuu_1, completion); i.luu_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.cuv_1 = $this_launch; this.duv_1 = this$0; this.euv_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.cuv_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_0(this.duv_1, this.euv_1, null)); if (this.duv_1.quo_1.equals(new Long(0, 0)) ? !this.duv_1.ruo_1.equals(new Long(0, 0)) : false) { launch(this.cuv_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_2(this.duv_1, null)); } launchSetTitleFromClazzUid(this.duv_1, this.duv_1.quo_1, ContentEntryDetailOverviewViewModel$slambda$slambda$lambda(this.duv_1)); launch(this.cuv_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_4(this.duv_1, null)); launch(this.cuv_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_6(this.duv_1, null)); launch(this.cuv_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_8(this.duv_1, null)); launch(this.cuv_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_10(this.duv_1, null)); launch(this.cuv_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_12(this.duv_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).y77 = function (completion) { return new ContentEntryDetailOverviewViewModel$slambda$slambda(this.cuv_1, this.duv_1, this.euv_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.w86($completion); }; l.$arity = 0; return l; } function ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda(this$0, resultContinuation) { this.nuv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda).wog = function (it, $completion) { var tmp = this.pn8(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.wog(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.ouv_1.v7e().zbk(this.nuv_1.dpx_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).pn8 = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda(this.nuv_1, completion); i.ouv_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.wog(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.euo_1; makeContentEntryAvailableOfflineUseCase$factory_0(); return this_0.t2(); } function _get_cancelDownloadUseCase__t8wbc4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.fuo_1; cancelDownloadUseCase$factory_0(); return this_0.t2(); } function _get_defaultLaunchContentEntryUseCase__lyydsx($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.iuo_1; defaultLaunchContentEntryUseCase$factory_0(); return this_0.t2(); } function _get_launchXapiUseCase__jmtlap($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.juo_1; launchXapiUseCase$factory_0(); return this_0.t2(); } function _get_launchEpubUseCase__sunqd7($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kuo_1; launchEpubUseCase$factory_0(); return this_0.t2(); } function _get_cancelImportContentEntryUseCase__kqom1e($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.muo_1; cancelImportContentEntryUseCase$factory_0(); return this_0.t2(); } function _get_cancelRemoteContentEntryImportUseCase__8yb0xk($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nuo_1; cancelRemoteContentEntryImportUseCase$factory_0(); return this_0.t2(); } function _get_dismissRemoteContentEntryImportErrorUseCase__x9kppo($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ouo_1; dismissRemoteContentEntryImportErrorUseCase$factory_0(); return this_0.t2(); } function _get_httpClient__2ty1zc_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.puo_1; httpClient$factory_2(); return this_0.t2(); } function _get_checkLocalAvailabilityUseCase__5fhzk8($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.suo_1; checkLocalAvailabilityUseCase$factory_0(); return this_0.t2(); } function Companion_136() { this.puv_1 = 'ContentEntryDetailOverviewView'; this.quv_1 = 'target'; } var Companion_instance_185; function Companion_getInstance_153() { return Companion_instance_185; } function sam$kotlinx_coroutines_flow_FlowCollector$0_22(function_0) { this.ruv_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_22).t1d = function (value, $completion) { return this.ruv_1(value, $completion); }; function ContentEntryDetailOverviewViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.auw_1 = this$0; this.buw_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.auw_1.duo_1, ContentEntryDetailOverviewViewModel$slambda$slambda_0(this.cuw_1, this.auw_1, this.buw_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.auw_1, this.buw_1, completion); i.cuw_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.luw_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.luw_1.epx(Companion_getInstance_89().upc_1); Napier_getInstance().v5d('ContentEntryDetailOverviewViewModel: onClickOpen launched'); l$ret$1: do { var this_0 = this.luw_1.duo_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.iup(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.luw_1.hpu(); suspendResult = localFirstThenRepoIfNull(tmp_0, ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda_0(this.luw_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ouw_1 = suspendResult; var tmp_1 = this; var tmp0_safe_receiver = this.luw_1.luo_1; var tmp_2; if (tmp0_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = Companion_instance_93.als(tmp0_safe_receiver); } var tmp1_elvis_lhs = tmp_2; tmp_1.puw_1 = tmp1_elvis_lhs == null ? LinkTarget_DEFAULT_getInstance() : tmp1_elvis_lhs; if (!(this.ouw_1 == null)) { var tmp_3 = this; var tmp2_subject = this.ouw_1.cat_1; var tmp_4; if (tmp2_subject === 'xapi') { tmp_4 = _get_launchXapiUseCase__jmtlap(this.luw_1); } else { if (tmp2_subject === 'epub') { tmp_4 = _get_launchEpubUseCase__sunqd7(this.luw_1); } else { tmp_4 = null; } } tmp_3.quw_1 = tmp_4; var tmp_5 = this; var tmp3_elvis_lhs = this.quw_1; tmp_5.ruw_1 = tmp3_elvis_lhs == null ? _get_defaultLaunchContentEntryUseCase__lyydsx(this.luw_1) : tmp3_elvis_lhs; Napier_getInstance().v5d('ContentEntryDetailOverviewViewModel: onClickOpen : Launching using ' + this.ruw_1); this.hd_1 = 3; Companion_getInstance_119(); var tmp4_safe_receiver = this.luw_1.xps_1.ba('courseBlockUid'); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : toLong_0(tmp4_safe_receiver); suspendResult = this.ruw_1.gog(this.ouw_1, this.luw_1.zps_1, this.luw_1.quo_1, tmp5_elvis_lhs == null ? new Long(0, 0) : tmp5_elvis_lhs, this.puw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { Napier_getInstance().v5d('ContentEntryDetailOverviewViewModel: onClickOpen: latestContentEntryVersion = null'); this.luw_1.jpu().cpd(new Snack(this.luw_1.npt().ant(strings_getInstance().hmx_1))); this.hd_1 = 4; continue $sm; } case 3: this.hd_1 = 4; continue $sm; case 4: this.nuw_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.luw_1.jpu().cpd(new Snack(this.luw_1.npt().ant(strings_getInstance().vlt_1) + (':' + e.message))); Napier_getInstance().z5d('ContentEntryDetailOverview: Exception opening content', e); tmp_7.nuw_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.luw_1.epx(Companion_getInstance_89().vpc_1); l$ret$5: do { var this_1 = this.luw_1.duo_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.iup(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.luw_1.epx(Companion_getInstance_89().vpc_1); l$ret$7: do { var this_2 = this.luw_1.duo_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.iup(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.luw_1, completion); i.muw_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.aux_1 = this$0; this.bux_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.aux_1).joe(this.bux_1, this.aux_1.dpu(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.aux_1.jpu().cpd(new Snack(this.aux_1.npt().ant(strings_getInstance().olu_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.aux_1.jpu().cpd(new Snack(this.aux_1.npt().ant(strings_getInstance().vlt_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.aux_1, this.bux_1, completion); i.cux_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.lux_1 = this$0; this.mux_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.lux_1).joe(this.mux_1, this.lux_1.dpu(), 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.b5e(VOID, VOID, ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda$lambda); this.lux_1.jpu().cpd(new Snack(this.lux_1.npt().ant(strings_getInstance().vlt_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.lux_1, this.mux_1, completion); i.nux_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.duo_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.euo_1 = Instance(this_0, tmp$ret$0, null).n5c(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.fuo_1 = Instance(this_1, tmp$ret$2, null).n5c(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.guo_1 = Instance(this_2, tmp$ret$4, null).n5c(this, nodeIdAndAuth$factory()); this.huo_1 = asStateFlow(this.duo_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.iuo_1 = Instance(this_3, tmp$ret$6, null).n5c(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.juo_1 = InstanceOrNull(this_4, tmp$ret$8, null).n5c(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.kuo_1 = InstanceOrNull(this_5, tmp$ret$10, null).n5c(this, launchEpubUseCase$factory()); this.luo_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.muo_1 = InstanceOrNull(this_6, tmp$ret$12, null).n5c(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.nuo_1 = Instance(this_7, tmp$ret$14, null).n5c(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.ouo_1 = Instance(this_8, tmp$ret$16, null).n5c(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.puo_1 = Instance(di, tmp$ret$18, null).n5c(this, httpClient$factory_1()); var tmp_19 = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_19.quo_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_20 = this; Companion_getInstance_119(); 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.ruo_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_21 = this; // Inline function 'org.kodein.di.instanceOrNull' call var this_9 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_22 = typeToken(createKType(getKClass(CheckContentLocalAvailabilityUseCase), arrayOf([]), false)); var tmp$ret$20 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE(); tmp_21.suo_1 = InstanceOrNull(this_9, tmp$ret$20, null).n5c(this, checkLocalAvailabilityUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_10 = this.duo_1; while (true) { var prevValue = this_10.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailoverviewtab.ContentEntryDetailOverviewViewModel.' call var nextValue = prevValue.iup(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.dpu()); if (this_10.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_23 = this.cpu(); launch(tmp_23, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(ContentEntryDetailOverviewViewModel).buu = function () { // Inline function 'kotlin.getValue' call var this_0 = this.guo_1; nodeIdAndAuth$factory_0(); return this_0.t2(); }; protoOf(ContentEntryDetailOverviewViewModel).oux = function () { Napier_getInstance().v5d('ContentEntryDetailOverviewViewModel: onClickOpen'); var tmp = this.cpu(); launch(tmp, VOID, VOID, ContentEntryDetailOverviewViewModel$onClickOpen$slambda_0(this, null)); }; protoOf(ContentEntryDetailOverviewViewModel).pux = function (jobUid) { var tmp = this.cpu(); launch(tmp, VOID, VOID, ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda_0(this, jobUid, null)); }; protoOf(ContentEntryDetailOverviewViewModel).qux = function (jobUid) { var tmp = this.cpu(); 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, availableLocally) { 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; availableLocally = availableLocally === VOID ? false : availableLocally; this.tuo_1 = scoreProgress; this.uuo_1 = contentEntry; this.vuo_1 = latestContentEntryVersion; this.wuo_1 = contentEntryButtons; this.xuo_1 = locallyAvailable; this.yuo_1 = markCompleteVisible; this.zuo_1 = translationVisibile; this.aup_1 = availableTranslations; this.bup_1 = activeImportJobs; this.cup_1 = remoteImportJobs; this.dup_1 = activeUploadJobs; this.eup_1 = offlineItemAndState; this.fup_1 = openButtonEnabled; this.gup_1 = activeUserPersonUid; this.hup_1 = availableLocally; } protoOf(ContentEntryDetailOverviewUiState).rux = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.uuo_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vas_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.far_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ContentEntryDetailOverviewUiState).sux = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.uuo_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vas_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gar_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ContentEntryDetailOverviewUiState).tux = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.uuo_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vas_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.iar_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ContentEntryDetailOverviewUiState).uux = function () { return false; }; protoOf(ContentEntryDetailOverviewUiState).vux = function () { return !(this.tuo_1 == null); }; protoOf(ContentEntryDetailOverviewUiState).wux = function () { var tmp0_safe_receiver = this.vuo_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.iat_1.c7(new Long(0, 0)) > 0 ? tmp0_safe_receiver.iat_1.c7(new Long(0, 0)) > 0 : false) ? tmp0_safe_receiver.iat_1.c7(tmp0_safe_receiver.jat_1) < 0 : false; } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; }; protoOf(ContentEntryDetailOverviewUiState).xux = function () { var tmp0_safe_receiver = this.vuo_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.iat_1.c7(new Long(0, 0)) > 0; } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; }; protoOf(ContentEntryDetailOverviewUiState).yux = function (importJobProgress) { return importJobProgress.nb6_1.equals(this.gup_1); }; protoOf(ContentEntryDetailOverviewUiState).zux = function (scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid, availableLocally) { return new ContentEntryDetailOverviewUiState(scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid, availableLocally); }; protoOf(ContentEntryDetailOverviewUiState).iup = function (scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid, availableLocally, $super) { scoreProgress = scoreProgress === VOID ? this.tuo_1 : scoreProgress; contentEntry = contentEntry === VOID ? this.uuo_1 : contentEntry; latestContentEntryVersion = latestContentEntryVersion === VOID ? this.vuo_1 : latestContentEntryVersion; contentEntryButtons = contentEntryButtons === VOID ? this.wuo_1 : contentEntryButtons; locallyAvailable = locallyAvailable === VOID ? this.xuo_1 : locallyAvailable; markCompleteVisible = markCompleteVisible === VOID ? this.yuo_1 : markCompleteVisible; translationVisibile = translationVisibile === VOID ? this.zuo_1 : translationVisibile; availableTranslations = availableTranslations === VOID ? this.aup_1 : availableTranslations; activeImportJobs = activeImportJobs === VOID ? this.bup_1 : activeImportJobs; remoteImportJobs = remoteImportJobs === VOID ? this.cup_1 : remoteImportJobs; activeUploadJobs = activeUploadJobs === VOID ? this.dup_1 : activeUploadJobs; offlineItemAndState = offlineItemAndState === VOID ? this.eup_1 : offlineItemAndState; openButtonEnabled = openButtonEnabled === VOID ? this.fup_1 : openButtonEnabled; activeUserPersonUid = activeUserPersonUid === VOID ? this.gup_1 : activeUserPersonUid; availableLocally = availableLocally === VOID ? this.hup_1 : availableLocally; return $super === VOID ? this.zux(scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid, availableLocally) : $super.zux.call(this, scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid, availableLocally); }; protoOf(ContentEntryDetailOverviewUiState).toString = function () { return 'ContentEntryDetailOverviewUiState(scoreProgress=' + this.tuo_1 + ', contentEntry=' + this.uuo_1 + ', latestContentEntryVersion=' + this.vuo_1 + ', contentEntryButtons=' + this.wuo_1 + ', locallyAvailable=' + this.xuo_1 + ', markCompleteVisible=' + this.yuo_1 + ', translationVisibile=' + this.zuo_1 + ', availableTranslations=' + this.aup_1 + ', activeImportJobs=' + this.bup_1 + ', remoteImportJobs=' + this.cup_1 + ', activeUploadJobs=' + this.dup_1 + ', offlineItemAndState=' + this.eup_1 + ', openButtonEnabled=' + this.fup_1 + ', activeUserPersonUid=' + this.gup_1.toString() + ', availableLocally=' + this.hup_1 + ')'; }; protoOf(ContentEntryDetailOverviewUiState).hashCode = function () { var result = this.tuo_1 == null ? 0 : this.tuo_1.hashCode(); result = imul(result, 31) + (this.uuo_1 == null ? 0 : this.uuo_1.hashCode()) | 0; result = imul(result, 31) + (this.vuo_1 == null ? 0 : this.vuo_1.hashCode()) | 0; result = imul(result, 31) + (this.wuo_1 == null ? 0 : hashCode(this.wuo_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.xuo_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.yuo_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.zuo_1) | 0; result = imul(result, 31) + hashCode(this.aup_1) | 0; result = imul(result, 31) + hashCode(this.bup_1) | 0; result = imul(result, 31) + hashCode(this.cup_1) | 0; result = imul(result, 31) + hashCode(this.dup_1) | 0; result = imul(result, 31) + (this.eup_1 == null ? 0 : this.eup_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.fup_1) | 0; result = imul(result, 31) + this.gup_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.hup_1) | 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.tuo_1, tmp0_other_with_cast.tuo_1)) return false; if (!equals(this.uuo_1, tmp0_other_with_cast.uuo_1)) return false; if (!equals(this.vuo_1, tmp0_other_with_cast.vuo_1)) return false; if (!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 (!equals(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; if (!equals(this.dup_1, tmp0_other_with_cast.dup_1)) return false; if (!equals(this.eup_1, tmp0_other_with_cast.eup_1)) return false; if (!(this.fup_1 === tmp0_other_with_cast.fup_1)) return false; if (!this.gup_1.equals(tmp0_other_with_cast.gup_1)) return false; if (!(this.hup_1 === tmp0_other_with_cast.hup_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.buu(); }, 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 checkLocalAvailabilityUseCase$factory() { return getPropertyCallableRef('checkLocalAvailabilityUseCase', 1, KProperty1, function (receiver) { return _get_checkLocalAvailabilityUseCase__5fhzk8(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.buu(); }, 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 checkLocalAvailabilityUseCase$factory_0() { return getPropertyCallableRef('checkLocalAvailabilityUseCase', 1, KProperty1, function (receiver) { return _get_checkLocalAvailabilityUseCase__5fhzk8(receiver); }, null); } function get_progress(_this__u8e3s4) { var tmp; if (_this__u8e3s4.kb6_1.c7(new Long(0, 0)) > 0) { tmp = _this__u8e3s4.jb6_1.zc() / _this__u8e3s4.kb6_1.zc(); } else { tmp = 0.0; } return tmp; } function ContentEntryEditViewModel$slambda$slambda$lambda($newContentEntryUid, this$0, $savedStateHandle) { return function ($this$shallowCopy) { $this$shallowCopy.bar_1 = $newContentEntryUid; var tmp; if (this$0.cuz_1) { var tmp_0 = $this$shallowCopy; tmp_0.xar_1 = 2; var tmp_1 = $this$shallowCopy; Companion_getInstance_119(); var tmp0_safe_receiver = $savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_1.war_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; tmp = Unit_instance; } else { var tmp_2 = $this$shallowCopy; tmp_2.xar_1 = 1; $this$shallowCopy.war_1 = this$0.dpu(); tmp = Unit_instance; } return Unit_instance; }; } function ContentEntryEditViewModel$slambda$slambda$slambda$lambda($newDecription) { return function ($this$shallowCopy) { $this$shallowCopy.dar_1 = $newDecription; return Unit_instance; }; } function ContentEntryEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.luz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda$slambda).spg = function (it, $completion) { var tmp = this.tpg(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.spg(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.muz_1.zpf_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.luz_1.zuy_1.t2().nuz_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ajk_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.luz_1.zuz(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).tpg = function (it, completion) { var i = new ContentEntryEditViewModel$slambda$slambda$slambda(this.luz_1, completion); i.muz_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.spg(it, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda$slambda$lambda$lambda($newSubtitleTrack) { return function (it) { return it.znq_1 === $newSubtitleTrack.znq_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.iv0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda$slambda_1).spg = function (navResult, $completion) { var tmp = this.tpg(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.spg(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.jv0_1.zpf_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.iv0_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).tpg = function (navResult, completion) { var i = new ContentEntryEditViewModel$slambda$slambda$slambda_1(this.iv0_1, completion); i.jv0_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.spg(navResult, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda(this$0, resultContinuation) { this.sv0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda).wv0 = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.wv0(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.tv0_1; var tmp_1; if (!this.sv0_1.wq1_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } var tmp0_safe_receiver = tmp_1; tmp_0.uv0_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i7d(); if (this.uv0_1 == null) { this.vv0_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.uv0_1.haq(this.sv0_1.wq1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.vv0_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var tmp2_safe_receiver = this.vv0_1; var tmp_2; if (tmp2_safe_receiver == null) { tmp_2 = null; } else { var tmp_3; if (!(tmp2_safe_receiver.pas_1 == null)) { var tmp_4 = tmp2_safe_receiver.pas_1; var tmp0_elvis_lhs = tmp2_safe_receiver.qas_1; tmp_3 = new ContentEntryAndContentJob(tmp_4, VOID, VOID, tmp0_elvis_lhs == null ? new ContentEntryPicture2(this.sv0_1.wq1_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).pn8 = function (db, completion) { var i = new ContentEntryEditViewModel$slambda$slambda(this.sv0_1, completion); i.tv0_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.wv0(db, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.fv1_1 = this$0; this.gv1_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda_1).iv1 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda$slambda_1).z77 = function ($completion) { return this.iv1($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.fv1_1.fpu()); tmp_0.hv1_1 = tmp_1.a62(42); this.hd_1 = 1; suspendResult = this.fv1_1.mpu(this.gv1_1, 'metadata', Companion_instance_81.a4r(), 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.mnr_1; var pictureUri = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tas_1; if (!(pictureUri == null)) { Companion_getInstance_117(); this.gv1_1.app('initPicUri', ''); } var tmp_3 = shallowCopy_8(importedMetaData.jnr_1, ContentEntryEditViewModel$slambda$slambda$lambda(this.hv1_1, this.fv1_1, this.gv1_1)); var tmp1_cjiPluginId = importedMetaData.knr_1; var tmp2_sourceUri = importedMetaData.jnr_1.kar_1; var tmp3_cjiOriginalFilename = importedMetaData.lnr_1; var tmp4_cjiOwnerPersonUid = this.fv1_1.dpu(); var tmp_4 = new ContentEntryImportJob(VOID, tmp2_sourceUri, tmp3_cjiOriginalFilename, this.hv1_1, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_cjiPluginId, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_cjiOwnerPersonUid); var tmp5_safe_receiver = importedMetaData.mnr_1; var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.jjt(this.hv1_1); var this_0 = new ContentEntryAndContentJob(tmp_3, VOID, tmp_4, tmp6_elvis_lhs == null ? new ContentEntryPicture2(this.hv1_1) : tmp6_elvis_lhs); var tmp_5 = this.fv1_1.npt(); var tmp_6 = strings_getInstance().bmn_1; var tmp0_elvis_lhs = importedMetaData.lnr_1; var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? importedMetaData.jnr_1.kar_1 : tmp0_elvis_lhs; this.gv1_1.app('savedTitle', tmp_5.bnt(tmp_6, [tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs])); tmp_2 = this_0; } else { var this_1 = new ContentEntry(); this_1.bar_1 = this.hv1_1; var tmp_7 = this_1; var tmp0_safe_receiver_0 = this.gv1_1.ba('leaf'); tmp_7.qar_1 = (tmp0_safe_receiver_0 == null ? null : toBoolean(tmp0_safe_receiver_0)) === true; this_1.war_1 = this.fv1_1.dpu(); tmp_2 = new ContentEntryAndContentJob(this_1, VOID, VOID, new ContentEntryPicture2(this.hv1_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).y77 = function (completion) { return new ContentEntryEditViewModel$slambda$slambda_1(this.fv1_1, this.gv1_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.iv1($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.zuy_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.cjk_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : paramSubtitles(tmp1_safe_receiver, this$0.z4q()); var nextValue = prevValue.jv1(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.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ContentEntryEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.sv1_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.sv1_1.gpx(this.sv1_1.ipu(), 'contentEntryDesc'); var tmp_1 = ContentEntryEditViewModel$slambda$slambda$slambda_0(this.sv1_1, null); suspendResult = tmp_0.z1b(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(ContentEntryEditViewModel$slambda$slambda_3).v1m = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$slambda$slambda_3(this.sv1_1, completion); i.tv1_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.cv2_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.cv2_1.gpx(this.cv2_1.ipu(), 'subtitleKey'); var tmp_1 = ContentEntryEditViewModel$slambda$slambda$slambda_2(this.cv2_1, null); suspendResult = tmp_0.z1b(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(ContentEntryEditViewModel$slambda$slambda_5).v1m = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$slambda$slambda_5(this.cv2_1, completion); i.dv2_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.zuy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.updateSubtitles.' call var updatedSubtitles = function_0(prevValue.yuz_1); var tmp0_safe_receiver = prevValue.nuz_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cjk_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : paramMap(tmp1_safe_receiver, $this.z4q()); 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.z4q().e45(ListSerializer(Companion_instance_80.a4r()), updatedSubtitles); this_1.s(key, value); var contentJobParam = this_1; var tmp4_safe_receiver = prevValue.nuz_1; var tmp; if (tmp4_safe_receiver == null) { tmp = null; } else { var tmp3_safe_receiver = prevValue.nuz_1.cjk_1; tmp = tmp4_safe_receiver.fjk(VOID, VOID, tmp3_safe_receiver == null ? null : tmp3_safe_receiver.yjs(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.z4q().e45(MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)), contentJobParam))); } var tmp5_entity = tmp; var nextValue = prevValue.jv1(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.nuz_1); } function scheduleEntityCommit($this, entity) { // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_41.a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver = $this.vq1_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = $this; var tmp_0 = $this.cpu(); tmp.vq1_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.uuz_1 == null); } function Companion_137() { this.ev2_1 = 'leaf'; this.fv2_1 = 'courseBlock'; this.gv2_1 = 'ContentEntryEdit'; this.hv2_1 = 'metadata'; this.iv2_1 = 'savedTitle'; this.jv2_1 = 'goToOnContentEntryDone'; this.kv2_1 = 'contentEntryDesc'; this.lv2_1 = 'subtitleKey'; this.mv2_1 = 1; this.nv2_1 = 2; } var Companion_instance_186; function Companion_getInstance_154() { return Companion_instance_186; } function sam$kotlinx_coroutines_flow_FlowCollector$0_23(function_0) { this.ov2_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_23).t1d = function (value, $completion) { return this.ov2_1(value, $completion); }; function ContentEntryEditViewModel$slambda(this$0, resultContinuation) { this.xv2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda).krc = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda).he = function (p1, $completion) { return this.krc(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.xv2_1.cuz_1) { this.zv2_1 = true; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = this.yv2_1.c7f(); var tmp_1 = this.xv2_1.dpu(); PermissionFlags_getInstance(); suspendResult = tmp_0.lhr(tmp_1, new Long(65536, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.zv2_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.zv2_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).pn8 = function (db, completion) { var i = new ContentEntryEditViewModel$slambda(this.xv2_1, completion); i.yv2_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.krc(db, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.iv3_1 = this$0; this.jv3_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.a4r(); var tmp_1 = ContentEntryEditViewModel$slambda$slambda_0(this.iv3_1, null); var tmp_2 = ContentEntryEditViewModel$slambda$slambda_2(this.iv3_1, this.jv3_1, null); suspendResult = this.iv3_1.rpu(tmp_0, VOID, VOID, tmp_1, tmp_2, ContentEntryEditViewModel$slambda$lambda(this.iv3_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var it = suspendResult; Companion_getInstance_117(); var tmp1_safe_receiver = it == null ? null : it.djk_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.tas_1; setIfNoValueSetYet(this.jv3_1, 'initPicUri', tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); var tmp0_safe_receiver = this.iv3_1.zuy_1.t2().nuz_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ajk_1; var isLeaf = (tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.qar_1) === true; var savedStateTitle = this.jv3_1.ba('savedTitle'); var title = !(savedStateTitle == null) ? savedStateTitle : (this.iv3_1.wq1_1.equals(new Long(0, 0)) ? !isLeaf : false) ? this.iv3_1.npt().ant(strings_getInstance().bml_1) : (!this.iv3_1.wq1_1.equals(new Long(0, 0)) ? !isLeaf : false) ? this.iv3_1.npt().ant(strings_getInstance().hmw_1) : this.iv3_1.npt().ant(strings_getInstance().gmw_1); l$ret$1: do { var this_0 = this.iv3_1.bpt_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.iv3_1.npt(); var tmp0_subject = this.iv3_1.buz_1; var tmp_4 = tmp_3.ant(tmp0_subject === 1 ? strings_getInstance().alv_1 : tmp0_subject === 2 ? strings_getInstance().nm2_1 : strings_getInstance().zmd_1); var nextValue = prevValue.npc(VOID, VOID, title, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_4, VOID, ContentEntryEditViewModel$onClickSave$ref(this.iv3_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.iv3_1.zuy_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.jv1(VOID, VOID, VOID, VOID, true); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); launch(this.kv3_1, VOID, VOID, ContentEntryEditViewModel$slambda$slambda_4(this.iv3_1, null)); launch(this.kv3_1, VOID, VOID, ContentEntryEditViewModel$slambda$slambda_6(this.iv3_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.iv3_1, this.jv3_1, completion); i.kv3_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.tv3_1 = $commitDelay; this.uv3_1 = $entity; this.vv3_1 = $this; this.wv3_1 = $key; this.xv3_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.tv3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.uv3_1 == null)) { this.hd_1 = 2; suspendResult = this.vv3_1.npu(this.vv3_1.xps_1, this.wv3_1, this.xv3_1, this.uv3_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.tv3_1, this.uv3_1, this.vv3_1, this.wv3_1, this.xv3_1, completion); i.yv3_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.znq_1 === $subtitleTrack.znq_1)) { destination.i1(element); } } return destination; }; } function ContentEntryEditViewModel$onClickSave$slambda(this$0, $contentEntryVal, $entityVal, resultContinuation) { this.hv4_1 = this$0; this.iv4_1 = $contentEntryVal; this.jv4_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_119(); var tmp0_safe_receiver = this.hv4_1.xps_1.ba('parentUid'); tmp_0.lv4_1 = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); this.hd_1 = 1; var tmp_1 = this.hv4_1.wq1_1.equals(new Long(0, 0)) ? this.lv4_1 : null; Companion_getInstance_117(); suspendResult = this.hv4_1.xuy_1.yok(this.iv4_1, tmp_1, this.jv4_1.djk_1, this.hv4_1.xps_1.ba('initPicUri'), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.mv4_1 = this.jv4_1.cjk_1; if (!(this.mv4_1 == null)) { this.hd_1 = 2; suspendResult = this.hv4_1.yuy_1.gof(this.mv4_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_119(); var popUpToOnFinish = this.hv4_1.xps_1.ba('popUpToOnFinish'); if (!(this.hv4_1.lpu() == null)) { this.hv4_1.zq1(this.iv4_1); } else { this.hv4_1.zps_1.opf(popUpToOnFinish == null ? this.hv4_1.yps_1 : popUpToOnFinish, true); } if (hasErrors_2(this.hv4_1.zuy_1.t2(), this.hv4_1)) { this.hv4_1.epx(Companion_getInstance_89().vpc_1); l$ret$1: do { var this_0 = this.hv4_1.zuy_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.jv1(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.hv4_1, this.iv4_1, this.jv4_1, completion); i.kv4_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)).s57(); // 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.q57(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)).s57(); // 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.q57(tmp$ret$0_0, null); } else { tmp_2 = enqueueContentEntryImportUseCase; } enqueueContentEntryImportUseCase = tmp_2; UstadEditViewModel.call(this, di, savedStateHandle, 'ContentEntryEdit'); this.xuy_1 = saveContentEntryUseCase; this.yuy_1 = enqueueContentEntryImportUseCase; this.zuy_1 = MutableStateFlow(new ContentEntryEditUiState()); this.auz_1 = asStateFlow(this.zuy_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.buz_1 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; this.cuz_1 = this.buz_1 === 1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.' call var nextValue = prevValue.npc(VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_6 = ContentEntryEditViewModel$slambda_0(this, null); this.tpu(tmp_6, VOID, VOID, ContentEntryEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(ContentEntryEditViewModel).zuz = function (contentEntry) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.zuy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onContentEntryChanged.' call var tmp0_safe_receiver = prevValue.nuz_1; var nextValue = prevValue.jv1(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fjk(contentEntry)); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var updatedState = tmp$ret$1; scheduleEntityCommit(this, updatedState.nuz_1); }; protoOf(ContentEntryEditViewModel).ft8 = function (pictureUri) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.zuy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onPictureChanged.' call var tmp1_safe_receiver = prevValue.nuz_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.nuz_1.djk_1; tmp = tmp1_safe_receiver.fjk(VOID, VOID, VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jjt(VOID, VOID, pictureUri)); } var nextValue = prevValue.jv1(tmp); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var updatedState = tmp$ret$1; scheduleEntityCommit(this, updatedState.nuz_1); }; protoOf(ContentEntryEditViewModel).nv4 = function (compressionLevel) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zuy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onSetCompressionLevel.' call var tmp1_safe_receiver = prevValue.nuz_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.nuz_1.cjk_1; tmp = tmp1_safe_receiver.fjk(VOID, VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yjs(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, compressionLevel.vob_1)); } var nextValue = prevValue.jv1(tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ContentEntryEditViewModel).ov4 = function (uri, fileName) { var tmp = Companion_instance_80.a4r(); // 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.ppu('GetSubtitle', 'subtitleKey', null, tmp, tmp$ret$2); }; protoOf(ContentEntryEditViewModel).pv4 = function (subtitleTrack) { this.ppu('SubtitleEdit', 'subtitleKey', subtitleTrack, Companion_instance_80.a4r()); }; protoOf(ContentEntryEditViewModel).qv4 = function (subtitleTrack) { updateSubtitles(this, ContentEntryEditViewModel$onClickDeleteSubtitleTrack$lambda(subtitleTrack)); }; protoOf(ContentEntryEditViewModel).yr9 = function () { var entityVal = this.zuy_1.t2().nuz_1; var tmp0_safe_receiver = this.zuy_1.t2().nuz_1; var contentEntry = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ajk_1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zuy_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.car_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : isBlank(this_1)) { tmp = this.npt().ant(strings_getInstance().nmw_1); } else { tmp = null; } var nextValue = prevValue.jv1(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_2(this.zuy_1.t2(), this)) { this.epx(Companion_getInstance_89().vpc_1); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.zuy_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.jv1(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.ajk_1; var tmp_0; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp_0 = tmp2_elvis_lhs; } var contentEntryVal = tmp_0; if (!this.zuy_1.t2().ruz_1) { return Unit_instance; } $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.zuy_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.jv1(VOID, VOID, VOID, VOID, false); if (this_3.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } if (this.buz_1 === 1) { Companion_getInstance_163(); // 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_163(); var key = 'SelectedContentEntry'; var value = this.z4q().e45(Companion_instance_41.a4r(), entityVal); this_4.s(key, value); this.ypt(this_4, Companion_getInstance_163().xv4_1); var tmp$ret$9 = this_4.f3(); this.zps_1.fog('CourseBlockEdit', tmp$ret$9); } else if (this.buz_1 === 2) { this.zq1(entityVal); } else { var tmp_1 = this.cpu(); 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.nuz_1 = entity; this.ouz_1 = licenceOptions; this.puz_1 = storageOptions; this.quz_1 = courseBlockEditUiState; this.ruz_1 = fieldsEnabled; this.suz_1 = updateContentVisible; this.tuz_1 = importError; this.uuz_1 = titleError; this.vuz_1 = selectedContainerStorageDir; this.wuz_1 = metadataResult; this.xuz_1 = compressionEnabled; this.yuz_1 = subtitles; } protoOf(ContentEntryEditUiState).yv4 = function () { var tmp0_safe_receiver = this.nuz_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cjk_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ob7_1; return tmp === 101; }; protoOf(ContentEntryEditUiState).zv4 = 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).jv1 = function (entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles, $super) { entity = entity === VOID ? this.nuz_1 : entity; licenceOptions = licenceOptions === VOID ? this.ouz_1 : licenceOptions; storageOptions = storageOptions === VOID ? this.puz_1 : storageOptions; courseBlockEditUiState = courseBlockEditUiState === VOID ? this.quz_1 : courseBlockEditUiState; fieldsEnabled = fieldsEnabled === VOID ? this.ruz_1 : fieldsEnabled; updateContentVisible = updateContentVisible === VOID ? this.suz_1 : updateContentVisible; importError = importError === VOID ? this.tuz_1 : importError; titleError = titleError === VOID ? this.uuz_1 : titleError; selectedContainerStorageDir = selectedContainerStorageDir === VOID ? this.vuz_1 : selectedContainerStorageDir; metadataResult = metadataResult === VOID ? this.wuz_1 : metadataResult; compressionEnabled = compressionEnabled === VOID ? this.xuz_1 : compressionEnabled; subtitles = subtitles === VOID ? this.yuz_1 : subtitles; return $super === VOID ? this.zv4(entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles) : $super.zv4.call(this, entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles); }; protoOf(ContentEntryEditUiState).toString = function () { return 'ContentEntryEditUiState(entity=' + this.nuz_1 + ', licenceOptions=' + this.ouz_1 + ', storageOptions=' + this.puz_1 + ', courseBlockEditUiState=' + this.quz_1 + ', fieldsEnabled=' + this.ruz_1 + ', updateContentVisible=' + this.suz_1 + ', importError=' + this.tuz_1 + ', titleError=' + this.uuz_1 + ', selectedContainerStorageDir=' + this.vuz_1 + ', metadataResult=' + this.wuz_1 + ', compressionEnabled=' + this.xuz_1 + ', subtitles=' + this.yuz_1 + ')'; }; protoOf(ContentEntryEditUiState).hashCode = function () { var result = this.nuz_1 == null ? 0 : this.nuz_1.hashCode(); result = imul(result, 31) + hashCode(this.ouz_1) | 0; result = imul(result, 31) + hashCode(this.puz_1) | 0; result = imul(result, 31) + this.quz_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.ruz_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.suz_1) | 0; result = imul(result, 31) + (this.tuz_1 == null ? 0 : getStringHashCode(this.tuz_1)) | 0; result = imul(result, 31) + (this.uuz_1 == null ? 0 : getStringHashCode(this.uuz_1)) | 0; result = imul(result, 31) + (this.vuz_1 == null ? 0 : hashCode(this.vuz_1)) | 0; result = imul(result, 31) + (this.wuz_1 == null ? 0 : this.wuz_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.xuz_1) | 0; result = imul(result, 31) + hashCode(this.yuz_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.nuz_1, tmp0_other_with_cast.nuz_1)) return false; if (!equals(this.ouz_1, tmp0_other_with_cast.ouz_1)) return false; if (!equals(this.puz_1, tmp0_other_with_cast.puz_1)) return false; if (!this.quz_1.equals(tmp0_other_with_cast.quz_1)) return false; if (!(this.ruz_1 === tmp0_other_with_cast.ruz_1)) return false; if (!(this.suz_1 === tmp0_other_with_cast.suz_1)) return false; if (!(this.tuz_1 == tmp0_other_with_cast.tuz_1)) return false; if (!(this.uuz_1 == tmp0_other_with_cast.uuz_1)) return false; if (!equals(this.vuz_1, tmp0_other_with_cast.vuz_1)) return false; if (!equals(this.wuz_1, tmp0_other_with_cast.wuz_1)) return false; if (!(this.xuz_1 === tmp0_other_with_cast.xuz_1)) return false; if (!equals(this.yuz_1, tmp0_other_with_cast.yuz_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.wv5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.getmetadata.ContentEntryGetMetadataViewModel...' call var nextValue = prevValue.zv5(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_138() { this.av6_1 = 'uri'; this.bv6_1 = 'filename'; this.cv6_1 = 'ContentEntryGetMetadata'; } var Companion_instance_187; function Companion_getInstance_155() { return Companion_instance_187; } function ContentEntryGetMetadataViewModel$slambda(this$0, $uriArg, $fileName, resultContinuation) { this.lv6_1 = this$0; this.mv6_1 = $uriArg; this.nv6_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.pv6_1 = this.lv6_1.vv5_1; this.qv6_1 = Companion_getInstance_3().b2r(this.mv6_1); this.rv6_1 = this.lv6_1.bpu().nnk(); this.hd_1 = 1; suspendResult = this.pv6_1.zoc(this.qv6_1, this.nv6_1, this.rv6_1, ContentEntryGetMetadataViewModel$slambda$lambda(this.lv6_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.lv6_1.z4q().e45(Companion_instance_81.a4r(), metadataResult)); this.lv6_1.ypt(this_0, Companion_getInstance_163().xv4_1); Companion_getInstance_108(); this.lv6_1.upu(this_0, 'result_viewname'); Companion_getInstance_108(); this.lv6_1.upu(this_0, 'result_key'); Companion_getInstance_119(); this.lv6_1.upu(this_0, 'parentUid'); this.lv6_1.zps_1.npf('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.lv6_1.npt().ant(strings_getInstance().qm4_1) + ' : ' + e.message; } else { if (e instanceof UnsupportedContentException) { var tmp_2 = this.lv6_1.npt(); var tmp_3 = strings_getInstance().sm4_1; var tmp3_elvis_lhs = e.message; tmp_1 = tmp_2.bnt(tmp_3, [tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs]); } else { tmp_1 = this.lv6_1.npt().ant(strings_getInstance().vlt_1) + ' : other: ' + e.message; } } var errorMessage = tmp_1; l$ret$1: do { var this_1 = this.lv6_1.wv5_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.zv5(prevValue.yv5_1.god(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.lv6_1, this.mv6_1, this.nv6_1, completion); i.ov6_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)).s57(); // 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.q57(tmp$ret$0, null); } else { tmp = contentEntryGetMetaDataFromUriUseCase; } contentEntryGetMetaDataFromUriUseCase = tmp; UstadViewModel.call(this, di, savedStateHandle, 'ContentEntryGetMetadata'); this.vv5_1 = contentEntryGetMetaDataFromUriUseCase; this.wv5_1 = MutableStateFlow(new ContentEntryGetMetadataUiState()); this.xv5_1 = asStateFlow(this.wv5_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.cpu(); launch(tmp_3, VOID, VOID, ContentEntryGetMetadataViewModel$slambda_0(this, uriArg, fileName, null)); } function ContentEntryGetMetadataUiState(status) { status = status === VOID ? new ContentEntryGetMetadataStatus() : status; this.yv5_1 = status; } protoOf(ContentEntryGetMetadataUiState).zv5 = function (status) { return new ContentEntryGetMetadataUiState(status); }; protoOf(ContentEntryGetMetadataUiState).toString = function () { return 'ContentEntryGetMetadataUiState(status=' + this.yv5_1 + ')'; }; protoOf(ContentEntryGetMetadataUiState).hashCode = function () { return this.yv5_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.yv5_1.equals(tmp0_other_with_cast.yv5_1)) return false; return true; }; function _get_getSubtitleTrackUseCase__ux9onr($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.pv7_1; getSubtitleTrackUseCase$factory_0(); return this_0.t2(); } function Companion_139() { this.qv7_1 = 'GetSubtitle'; } var Companion_instance_188; function Companion_getInstance_156() { return Companion_instance_188; } function GetSubtitleViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.zv7_1 = this$0; this.av8_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.zv7_1); var tmp_1 = Companion_getInstance_3(); var tmp_2 = tmp_1.b2r(require_0(this.av8_1, 'uri')); suspendResult = tmp_0.mod(tmp_2, require_0(this.av8_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_119(); this_0.s('entityState', this.zv7_1.z4q().e45(Companion_instance_80.a4r(), subtitleTrack)); Companion_getInstance_119(); this.zv7_1.upu(this_0, 'result_viewname'); Companion_getInstance_119(); this.zv7_1.upu(this_0, 'result_key'); this.zv7_1.zps_1.npf('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.zv7_1.nv7_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.dv8(this.zv7_1.npt().ant(strings_getInstance().vlt_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.zv7_1, this.av8_1, completion); i.bv8_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.nv7_1 = MutableStateFlow(new GetSubtitleUiState()); this.ov7_1 = asStateFlow(this.nv7_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.bpu().nnk(); var trigger = this.q56(); // 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.u56(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.pv7_1 = Instance(this_0, tmp$ret$3, null).n5c(this, getSubtitleTrackUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bpt_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.getsubtitle.GetSubtitleViewModel.' call var nextValue = prevValue.npc(VOID, VOID, this.npt().ant(strings_getInstance().bmn_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.cpu(); launch(tmp_3, VOID, VOID, GetSubtitleViewModel$slambda_0(this, savedStateHandle, null)); } function GetSubtitleUiState(error) { error = error === VOID ? null : error; this.cv8_1 = error; } protoOf(GetSubtitleUiState).dv8 = function (error) { return new GetSubtitleUiState(error); }; protoOf(GetSubtitleUiState).toString = function () { return 'GetSubtitleUiState(error=' + this.cv8_1 + ')'; }; protoOf(GetSubtitleUiState).hashCode = function () { return this.cv8_1 == null ? 0 : getStringHashCode(this.cv8_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.cv8_1 == tmp0_other_with_cast.cv8_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.bv9_1; httpClient$factory_4(); return this_0.t2(); } function Companion_140() { this.ev9_1 = 'ContentEntryImportLink'; this.fv9_1 = 'importUrl'; } var Companion_instance_189; function Companion_getInstance_157() { return Companion_instance_189; } function ContentEntryImportLinkViewModel$onClickNext$ref($boundThis) { var l = function () { $boundThis.gv9(); return Unit_instance; }; l.callableName = 'onClickNext'; return l; } function ContentEntryImportLinkViewModel$onChangeLink$slambda(this$0, $url, resultContinuation) { this.pv9_1 = this$0; this.qv9_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.pv9_1.xps_1.app('importUrl', this.qv9_1); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.pv9_1, this.qv9_1, completion); i.rv9_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.ava_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.eva_1 = _get_httpClient__2ty1zc_1(this.ava_1); var tmp_1 = this; tmp_1.fva_1 = this.eva_1; var tmp_2 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.ava_1.bpu().nnk().in3_1 + 'api/import/validateLink'); parameter(this_0, 'url', this.ava_1.zv8_1.t2().lva_1); set_expectSuccess(this_0, false); tmp_2.gva_1 = this_0; this.gva_1.j38_1 = Companion_getInstance().z2w_1; var tmp_3 = this; tmp_3.hva_1 = this.fva_1; var tmp_4 = this; tmp_4.iva_1 = this.gva_1; this.hd_1 = 3; suspendResult = (new HttpStatement(this.iva_1, this.hva_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.jva_1 = suspendResult; if (!this.jva_1.w3a().equals(Companion_getInstance_0().s2x_1)) { l$ret$1: do { var this_1 = this.ava_1.zv8_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.ova(VOID, this.ava_1.npt().ant(strings_getInstance().pm4_1), true); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.dva_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.kva_1 = this.ava_1.z4q(); this.hd_1 = 5; suspendResult = bodyAsText(this.jva_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var string = suspendResult; var this_2 = this.kva_1.g45(); var this_3 = serializer(this_2, createKType(getKClass(MetadataResult), arrayOf([]), false)); var metadataResult = this.kva_1.f45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), string); var tmp_6 = this; var tmp_7; if (this.ava_1.dv9_1 === 'ContentEntryEdit') { var this_4 = LinkedHashMap_init_$Create$(); this_4.s('metadata', this.ava_1.z4q().e45(Companion_instance_81.a4r(), metadataResult)); this.ava_1.upu(this_4, 'courseBlock'); this.ava_1.upu(this_4, 'goToOnContentEntryDone'); Companion_getInstance_108(); this.ava_1.upu(this_4, 'result_viewname'); Companion_getInstance_108(); this.ava_1.upu(this_4, 'result_key'); Companion_getInstance_119(); this.ava_1.upu(this_4, 'parentUid'); Companion_getInstance_119(); this_4.s('popUpToOnFinish', 'ContentEntryImportLink'); this.ava_1.zps_1.fog('ContentEntryEdit', this_4.f3()); tmp_7 = Unit_instance; } else { this.ava_1.zq1(metadataResult); tmp_7 = Unit_instance; } tmp_6.cva_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.ava_1.zv8_1; while (true) { var prevValue_0 = this_5.t2(); var nextValue_0 = prevValue_0.ova(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.ava_1.jpu().cpd(new Snack(this.ava_1.npt().ant(strings_getInstance().vlt_1) + (': ' + e))); tmp_9.cva_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.ava_1.zv8_1; while (true) { var prevValue_1 = this_6.t2(); var nextValue_1 = prevValue_1.ova(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.ava_1.zv8_1; while (true) { var prevValue_2 = this_7.t2(); var nextValue_2 = prevValue_2.ova(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.ava_1, completion); i.bva_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.zv8_1 = MutableStateFlow(new ContentEntryImportLinkUiState()); this.av9_1 = asStateFlow(this.zv8_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.bv9_1 = Instance(this, tmp$ret$0, null).n5c(this, httpClient$factory_3()); this.cv9_1 = null; var tmp_1 = this; Companion_getInstance_119(); tmp_1.dv9_1 = savedStateHandle.ba('next'); var tmp_2 = this.npt().ant(strings_getInstance().fm4_1); var tmp_3 = this.npt().ant(strings_getInstance().alv_1); this.bpt_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.zv8_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.ova(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } protoOf(ContentEntryImportLinkViewModel).pva = function (url) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zv8_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.importlink.ContentEntryImportLinkViewModel.onChangeLink.' call var nextValue = prevValue.ova(url, !(url === prevValue.lva_1) ? null : prevValue.mva_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_safe_receiver = this.cv9_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.cpu(); tmp.cv9_1 = launch(tmp_0, VOID, VOID, ContentEntryImportLinkViewModel$onChangeLink$slambda_0(this, url, null)); }; protoOf(ContentEntryImportLinkViewModel).gv9 = function () { if (!this.zv8_1.t2().nva_1) { return Unit_instance; } if (isBlank(this.zv8_1.t2().lva_1)) { Napier_getInstance().v5d('link is blank'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zv8_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.importlink.ContentEntryImportLinkViewModel.onClickNext.' call var nextValue = prevValue.ova(VOID, this.npt().ant(strings_getInstance().sly_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.zv8_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.ova(VOID, VOID, false); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp0_safe_receiver = this.cv9_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } this.xps_1.app('importUrl', this.zv8_1.t2().lva_1); var tmp = this.cpu(); 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.lva_1 = url; this.mva_1 = linkError; this.nva_1 = fieldsEnabled; } protoOf(ContentEntryImportLinkUiState).qva = function (url, linkError, fieldsEnabled) { return new ContentEntryImportLinkUiState(url, linkError, fieldsEnabled); }; protoOf(ContentEntryImportLinkUiState).ova = function (url, linkError, fieldsEnabled, $super) { url = url === VOID ? this.lva_1 : url; linkError = linkError === VOID ? this.mva_1 : linkError; fieldsEnabled = fieldsEnabled === VOID ? this.nva_1 : fieldsEnabled; return $super === VOID ? this.qva(url, linkError, fieldsEnabled) : $super.qva.call(this, url, linkError, fieldsEnabled); }; protoOf(ContentEntryImportLinkUiState).toString = function () { return 'ContentEntryImportLinkUiState(url=' + this.lva_1 + ', linkError=' + this.mva_1 + ', fieldsEnabled=' + this.nva_1 + ')'; }; protoOf(ContentEntryImportLinkUiState).hashCode = function () { var result = getStringHashCode(this.lva_1); result = imul(result, 31) + (this.mva_1 == null ? 0 : getStringHashCode(this.mva_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.nva_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.lva_1 === tmp0_other_with_cast.lva_1)) return false; if (!(this.mva_1 == tmp0_other_with_cast.mva_1)) return false; if (!(this.nva_1 === tmp0_other_with_cast.nva_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).dar_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).qar_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.rva_1 : THROW_CCE(); if (!$this.equals(tmp0_other_with_cast)) return false; return true; } function ContentEntryListItemUiState(contentEntry) { this.rva_1 = contentEntry; } protoOf(ContentEntryListItemUiState).toString = function () { return ContentEntryListItemUiState__toString_impl_2mjydu(this.rva_1); }; protoOf(ContentEntryListItemUiState).hashCode = function () { return ContentEntryListItemUiState__hashCode_impl_odpv6p(this.rva_1); }; protoOf(ContentEntryListItemUiState).equals = function (other) { return ContentEntryListItemUiState__equals_impl_d3bksl(this.rva_1, other); }; function get_listItemUiState_0(_this__u8e3s4) { return _ContentEntryListItemUiState___init__impl__r5o9qy(_this__u8e3s4); } function ContentEntryListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.avb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda$slambda).kpl = function (hasNewContentPermission, $completion) { var tmp = this.lpl(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.kpl((!(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.avb_1.jq4_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (!(prevValue.rvb_1 === this.bvb_1)) { tmp_0 = prevValue.tvb(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.bvb_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.avb_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.npc(prevValue_0.ypb_1.tpc(this.bvb_1 ? !this.avb_1.zvc_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).lpl = function (hasNewContentPermission, completion) { var i = new ContentEntryListViewModel$slambda$slambda$slambda(this.avb_1, completion); i.bvb_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.kpl(hasNewContentPermission, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$slambda$slambda(this$0, $hasPermissionFlow, resultContinuation) { this.kvd_1 = this$0; this.lvd_1 = $hasPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryListViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.kvd_1.vvc_1) { this.hd_1 = 2; var tmp_0 = ContentEntryListViewModel$slambda$slambda$slambda_0(this.kvd_1, null); suspendResult = this.lvd_1.h1h(new sam$kotlinx_coroutines_flow_FlowCollector$0_24(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).y77 = function (completion) { return new ContentEntryListViewModel$slambda$slambda(this.kvd_1, this.lvd_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.w86($completion); }; l.$arity = 0; return l; } function ContentEntryListViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation) { this.uvd_1 = $savedStateHandle; this.vvd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda_1).spg = function (result, $completion) { var tmp = this.tpg(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.spg(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.wvd_1.zpf_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.xvd_1 = tmp_2; var tmp_3 = this; var tmp1_safe_receiver = this.uvd_1.ba('entriesToMove'); var tmp_4; if (tmp1_safe_receiver == null) { tmp_4 = null; } else { tmp_4 = this.vvd_1.z4q().f45(ListSerializer(Companion_instance_192.a4r()), 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.yvd_1 = tmp_5; this.id_1 = 2; this.hd_1 = 1; suspendResult = _get_moveContentEntriesUseCase__fb3hfi(this.vvd_1).roj(this.xvd_1, toSet(this.yvd_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.vvd_1.jpu().cpd(new Snack(this.vvd_1.npt().bnt(strings_getInstance().fmk_1, [this.yvd_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().z5d('Could not move entries', e); var tmp_7 = this.vvd_1.jpu(); var tmp3_elvis_lhs = e.message; tmp_7.cpd(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.vvd_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).tpg = function (result, completion) { var i = new ContentEntryListViewModel$slambda$slambda_1(this.uvd_1, this.vvd_1, completion); i.wvd_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.spg(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).jve = function (uiState, hasPermission, $completion) { var tmp = this.kve(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.jve(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.hve_1, this.ive_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryListViewModel$slambda$slambda_3).kve = function (uiState, hasPermission, completion) { var i = new ContentEntryListViewModel$slambda$slambda_3(completion); i.hve_1 = uiState; i.ive_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.jve(uiState, hasPermission, $completion); }; l.$arity = 2; return l; } function ContentEntryListViewModel$slambda$slambda_5(this$0, resultContinuation) { this.tve_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda_5).vve = function (it, $completion) { var tmp = this.wve(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.vve(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.uve_1.w6_1.ovb_1.c1()) { tmp_0 = this.uve_1.x6_1; } else { tmp_0 = false; } var showMoveIcon = tmp_0; if (!(showMoveIcon === !this.tve_1.bpt_1.t2().jpc_1.c1())) { l$ret$1: do { var this_0 = this.tve_1.bpt_1; while (true) { var prevValue = this_0.t2(); var tmp_1; if (showMoveIcon) { var tmp_2 = AppStateIcon_MOVE_getInstance(); var tmp_3 = this.tve_1.npt().ant(strings_getInstance().cly_1); var tmp_4 = new AppActionButton(tmp_2, tmp_3, ContentEntryListViewModel$onClickMoveAction$ref(this.tve_1), 'action_move'); var tmp_5 = AppStateIcon_DELETE_getInstance(); var tmp_6 = this.tve_1.npt().ant(strings_getInstance().plu_1); tmp_1 = listOf([tmp_4, new AppActionButton(tmp_5, tmp_6, ContentEntryListViewModel$onClickDeleteAction$ref(this.tve_1), 'action_delete')]); } else { tmp_1 = emptyList(); } var nextValue = prevValue.npc(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).wve = function (it, completion) { var i = new ContentEntryListViewModel$slambda$slambda_5(this.tve_1, completion); i.uve_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.vve(it, $completion); }; l.$arity = 1; return l; } function _get_moveContentEntriesUseCase__fb3hfi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.avd_1; moveContentEntriesUseCase$factory_0(); return this_0.t2(); } function _get_deleteEntriesUseCase__hkwqc9($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.bvd_1; deleteEntriesUseCase$factory_0(); return this_0.t2(); } function setSelectedItems($this, selectedEntries) { $this.xps_1.app('selectedEntries', $this.z4q().e45(ListSerializer(Companion_instance_192.a4r()), toList(selectedEntries))); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.setSelectedItems.' call var nextValue = prevValue.tvb(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.jq4_1.t2().ovb_1.u(); var hasSelectedItems = numItemsSelected > 0; $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = $this.bpt_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.npt().xve(plurals_getInstance().in2_1, numItemsSelected); } else { tmp = $this.yvc_1; } var tmp1_title = tmp; var tmp_0; if (hasSelectedItems) { var tmp_1 = AppStateIcon_CLOSE_getInstance(); var tmp_2 = $this.npt().ant(strings_getInstance().nmx_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.npc(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.xps_1.app('entriesToMove', $this.z4q().e45(ListSerializer(Companion_instance_192.a4r()), toList(entries))); var tmp = Companion_instance_28.a4r(); $this.ppu('PickContentEntry', 'moveToDestinationResult', null, tmp, mapOf([to('listMode', ListViewMode_PICKER_getInstance().xpp_1), to('selectFolder', 'true')])); } function onClickMoveAction($this) { selectDestinationToMoveEntries($this, $this.jq4_1.t2().ovb_1); } function launchDeleteEntries($this, entries) { var tmp = $this.cpu(); launch(tmp, VOID, VOID, ContentEntryListViewModel$launchDeleteEntries$slambda_0($this, entries, null)); } function onClickDeleteAction($this) { launchDeleteEntries($this, $this.jq4_1.t2().ovb_1); } function Companion_141() { Companion_instance_190 = this; this.yve_1 = 'ContentEntries'; this.zve_1 = 'ContentEntryListHome'; this.avf_1 = 'PickContentEntry'; this.bvf_1 = listOf(['ContentEntries', 'ContentEntryListHome', 'PickContentEntry']); this.cvf_1 = 'filter'; this.dvf_1 = 1; this.evf_1 = 2; this.fvf_1 = 3; this.gvf_1 = 4; this.hvf_1 = new Long(1, 0); this.ivf_1 = 'chipId'; this.jvf_1 = 'moveToDestinationResult'; this.kvf_1 = 'selectFolder'; this.lvf_1 = 'selectedEntries'; this.mvf_1 = 'entriesToMove'; } var Companion_instance_190; function Companion_getInstance_158() { if (Companion_instance_190 == null) new Companion_141(); return Companion_instance_190; } function sam$kotlinx_coroutines_flow_FlowCollector$0_24(function_0) { this.nvf_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_24).t1d = function (value, $completion) { return this.nvf_1(value, $completion); }; function createContextMenuItemsForEntry$entriesToAction(this$0, rightClickedItem) { var selectedEntries = this$0.jq4_1.t2().ovb_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(rightClickedItem); } else { tmp = selectedEntries; } } return tmp; } function ContentEntryListViewModel$pagingSourceFactory$lambda(this$0) { return function () { var tmp; switch (this$0.jq4_1.t2().evb_1) { case 2: tmp = this$0.hpu().i7d().maq(this$0.dpu()); break; case 3: tmp = this$0.hpu().i7d().laq(this$0.dpu()); break; case 4: tmp = this$0.hpu().i7d().kaq(this$0.dpu(), this$0.uvc_1, new Long(0, 0), new Long(0, 0), this$0.jq4_1.t2().jvb_1.spi_1, false); break; case 1: tmp = this$0.hpu().i7d().kaq(this$0.dpu(), this$0.uvc_1, new Long(0, 0), new Long(0, 0), this$0.jq4_1.t2().jvb_1.spi_1, false); break; default: tmp = new EmptyPagingSource(); break; } return tmp; }; } function ContentEntryListViewModel$createContextMenuItemsForEntry$ref($boundThis) { var l = function (p0) { return $boundThis.ovf(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.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel...' call var nextValue = prevValue.tvb(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.xvf_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.xvf_1.lpu() == null) ? !this.xvf_1.wvc_1 : false) { this.zvf_1 = this.xvf_1.npt().ant(strings_getInstance().wmo_1); this.hd_1 = 2; continue $sm; } else { if (this.xvf_1.uvc_1.equals(new Long(1, 0))) { this.zvf_1 = this.xvf_1.npt().ant(strings_getInstance().jmt_1); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.xvf_1.hpu().i7d().jaq(this.xvf_1.uvc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 1: var tmp0_elvis_lhs = suspendResult; this.zvf_1 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; this.hd_1 = 2; continue $sm; case 2: var ARGUMENT = this.zvf_1; this.xvf_1.yvc_1 = ARGUMENT; l$ret$1: do { var this_0 = this.xvf_1.bpt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.npc(VOID, VOID, this.xvf_1.yvc_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.xvf_1, completion); i.yvf_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.ivg_1 = this$0; this.jvg_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.ivg_1.jq4_1, ContentEntryListViewModel$slambda$slambda_0(this.ivg_1, this.jvg_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.ivg_1, this.jvg_1, completion); i.kvg_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.tvg_1 = this$0; this.uvg_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.tvg_1.gpx(this.tvg_1.kpu(), 'moveToDestinationResult'); var tmp_1 = ContentEntryListViewModel$slambda$slambda_2(this.uvg_1, this.tvg_1, null); suspendResult = tmp_0.z1b(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(ContentEntryListViewModel$slambda_3).v1m = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda_3(this.tvg_1, this.uvg_1, completion); i.vvg_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.evh_1 = this$0; this.fvh_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.evh_1.jq4_1, this.fvh_1, ContentEntryListViewModel$slambda$slambda_4(null)); var tmp_1 = ContentEntryListViewModel$slambda$slambda_6(this.evh_1, null); suspendResult = tmp_0.z1b(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(ContentEntryListViewModel$slambda_5).v1m = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda_5(this.evh_1, this.fvh_1, completion); i.gvh_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.pvh_1 = this$0; this.qvh_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.pvh_1).xoc(this.qvh_1, this.pvh_1.dpu(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: setSelectedItems(this.pvh_1, emptySet()); this.pvh_1.jpu().cpd(new Snack(this.pvh_1.npt().xve(plurals_getInstance().jn2_1, this.qvh_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.pvh_1, this.qvh_1, completion); i.rvh_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_158(); UstadListViewModel.call(this, di, savedStateHandle, new ContentEntryListUiState(), destName); var tmp = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('parentUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.uvc_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.vvc_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.wvc_1 = tmp1_elvis_lhs_0 == null ? false : tmp1_elvis_lhs_0; var tmp_3 = this; tmp_3.xvc_1 = ContentEntryListViewModel$pagingSourceFactory$lambda(this); this.yvc_1 = ''; this.zvc_1 = this.wvc_1 ? this.oq4().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.avd_1 = Instance(this_0, tmp$ret$0, null).n5c(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.bvd_1 = Instance(this_1, tmp$ret$2, null).n5c(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.z4q().f45(ListSerializer(Companion_instance_192.a4r()), 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.jq4_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.' call var tmp0_contentEntryList = this.xvc_1; var tmp1_showSelectFolderButton = this.zvc_1; var tmp2_contextMenuItems = ContentEntryListViewModel$createContextMenuItemsForEntry$ref(this); var nextValue = prevValue.tvb(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.bpt_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.' call var tmp_9 = this.npt().ant(strings_getInstance().amf_1); var tmp_10 = FabIcon_ADD_getInstance(); var nextValue_0 = prevValue_0.npc(new FabUiState(false, tmp_9, tmp_10, ContentEntryListViewModel$lambda(this)), VOID, VOID, VOID, this.oq4().equals(ListViewMode_PICKER_getInstance())); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } if (this.vvc_1 ? this.uvc_1.equals(new Long(1, 0)) : false) { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.jq4_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().kmo_1, 2), new MessageIdOption2(strings_getInstance().hmv_1, 3), new MessageIdOption2(strings_getInstance().jmt_1, 4)]); var nextValue_1 = prevValue_1.tvb(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.hpu().c7f(); var tmp_12 = this.bpu().lnk().yk9_1; PermissionFlags_getInstance(); var hasPermissionFlow = shareIn(tmp_11.mhr(tmp_12, new Long(65536, 0)), this.cpu(), Companion_getInstance_12().v1h()); var tmp_13 = this.cpu(); launch(tmp_13, VOID, VOID, ContentEntryListViewModel$slambda_0(this, null)); var tmp_14 = this.cpu(); launch(tmp_14, VOID, VOID, ContentEntryListViewModel$slambda_2(this, hasPermissionFlow, null)); var tmp_15 = this.cpu(); launch(tmp_15, VOID, VOID, ContentEntryListViewModel$slambda_4(this, savedStateHandle, null)); var tmp_16 = this.cpu(); launch(tmp_16, VOID, VOID, ContentEntryListViewModel$slambda_6(this, hasPermissionFlow, null)); } protoOf(ContentEntryListViewModel).ovf = function (entry) { var uiStateVal = this.jq4_1.t2(); var tmp; if (uiStateVal.rvb_1 ? this.oq4().equals(ListViewMode_BROWSER_getInstance()) : false) { var rightClickedItem = asSelectedItem(entry); if (!uiStateVal.ovb_1.a1(rightClickedItem)) { setSelectedItems(this, emptySet()); } var tmp_0 = this.npt().ant(strings_getInstance().rmx_1); var tmp_1 = new UstadContextMenuItem(tmp_0, ContentEntryListViewModel$createContextMenuItemsForEntry$lambda(this, rightClickedItem)); var tmp_2 = this.npt().ant(strings_getInstance().plu_1); tmp = listOf([tmp_1, new UstadContextMenuItem(tmp_2, ContentEntryListViewModel$createContextMenuItemsForEntry$lambda_0(this, rightClickedItem))]); } else { tmp = emptyList(); } return tmp; }; protoOf(ContentEntryListViewModel).dq5 = function (searchText) { }; protoOf(ContentEntryListViewModel).eq5 = function () { }; protoOf(ContentEntryListViewModel).hua = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onDismissCreateNewOptions.' call var nextValue = prevValue.tvb(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ContentEntryListViewModel).svh = function () { this.hua(); // 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_119(); this_0.s('parentUid', this.uvc_1.toString()); var tmp$ret$2 = this_0.f3(); this.wq5('ContentEntryEdit', tmp$ret$2); }; protoOf(ContentEntryListViewModel).tvh = function () { this.hua(); // 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_119(); this_0.s('parentUid', this.uvc_1.toString()); Companion_getInstance_119(); this_0.s('next', 'ContentEntryEdit'); this.ypt(this_0, Companion_getInstance_163().xv4_1); var tmp$ret$2 = this_0.f3(); this.wq5('ContentEntryImportLink', tmp$ret$2); }; protoOf(ContentEntryListViewModel).uvh = function (fileUri, fileName) { this.hua(); // 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_119(); this_0.s('parentUid', this.uvc_1.toString()); this.ypt(this_0, Companion_getInstance_163().xv4_1); var tmp$ret$2 = this_0.f3(); this.wq5('ContentEntryGetMetadata', tmp$ret$2); }; protoOf(ContentEntryListViewModel).vvh = function (entry) { if (entry == null) return Unit_instance; var tmp0_safe_receiver = this.xps_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.qar_1 ? this.zvc_1 : false) return Unit_instance; else { var tmp; if (this.oq4().equals(ListViewMode_PICKER_getInstance()) ? entry.qar_1 : false) { tmp = goToOnContentEntryEdit === 1; } else { tmp = false; } if (tmp) { Companion_getInstance_163(); var tmp2_nextViewName = 'CourseBlockEdit'; var tmp3_key = 'courseblock'; var tmp4_serializer = Companion_getInstance_13().a4r(); // 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.ypt(this_0, Companion_getInstance_163().xv4_1); Companion_getInstance_163(); this_0.s('SelectedContentEntry', this.z4q().e45(Companion_instance_41.a4r(), new ContentEntryAndContentJob(entry))); var tmp5_args = this_0.f3(); this.ppu(tmp2_nextViewName, tmp3_key, null, tmp4_serializer, tmp5_args, VOID, false); } else { if (entry.qar_1) { Companion_getInstance_152(); Companion_getInstance_108(); var tmp_0 = to('entityUid', entry.bar_1.toString()); Companion_getInstance_119(); this.zps_1.fog('ContentEntry', mapOf([tmp_0, to('parentUid', this.uvc_1.toString())])); } else { var tmp_1; if (this.yps_1 === 'ContentEntryListHome') { tmp_1 = 'ContentEntries'; } else { tmp_1 = this.yps_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_119(); this_1.s('parentUid', entry.bar_1.toString()); Companion_getInstance_108(); this.upu(this_1, 'result_key'); Companion_getInstance_108(); this.upu(this_1, 'result_viewname'); this.upu(this_1, 'selectFolder'); this.upu(this_1, 'goToOnContentEntryDone'); var tmp$ret$5 = this_1.f3(); this.zps_1.fog(tmp_2, tmp$ret$5); } } } }; protoOf(ContentEntryListViewModel).wvh = 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.bar_1 = this.uvc_1; this.zq1(this_0); }; protoOf(ContentEntryListViewModel).xvh = function (entry, selected) { var currentSelection = this.jq4_1.t2().ovb_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.eau_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bar_1; if (!element.uoc_1.equals(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs)) { destination.i1(element); } } tmp = toSet(destination); } setSelectedItems(this, tmp); }; protoOf(ContentEntryListViewModel).qrz = function (filterOption) { // Inline function 'kotlin.takeIf' call var this_0 = this.jq4_1; // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onClickFilterChip.' call if (!(this_0.t2().evb_1 === filterOption.qpd_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.tvb(VOID, VOID, filterOption.qpd_1); if (tmp0_safe_receiver.y1k(prevValue, nextValue)) { break $l$block; } } } } this.xps_1.app('chipId', filterOption.qpd_1.toString()); this.lq4_1.i1h(new RefreshCommand()); }; function Companion_142() { Companion_instance_191 = this; var tmp = this; var tmp_0 = strings_getInstance().ulx_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().ulx_1; tmp.yvh_1 = listOf([tmp_1, new SortOrderOption(tmp_2, 2, false)]); } var Companion_instance_191; function Companion_getInstance_159() { if (Companion_instance_191 == null) new Companion_142(); return Companion_instance_191; } 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_159(); 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_159().yvh_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.cvb_1 = filterMode; this.dvb_1 = contentEntryList; this.evb_1 = selectedChipId; this.fvb_1 = filterOptions; this.gvb_1 = showHiddenEntries; this.hvb_1 = onlyFolderFilter; this.ivb_1 = sortOptions; this.jvb_1 = activeSortOption; this.kvb_1 = createNewFolderItemVisible; this.lvb_1 = importFromLinkItemVisible; this.mvb_1 = importFromFileItemVisible; this.nvb_1 = createNewOptionsVisible; this.ovb_1 = selectedEntries; this.pvb_1 = showSelectFolderButton; this.qvb_1 = contextMenuItems; this.rvb_1 = hasWritePermission; var tmp_2 = this; // Inline function 'kotlin.collections.map' call var this_0 = this.ovb_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.uoc_1; destination.i1(tmp$ret$1); } tmp_2.svb_1 = toSet(destination); } protoOf(ContentEntryListUiState).zvh = function () { // Inline function 'kotlin.collections.isNotEmpty' call return !this.fvb_1.c1(); }; protoOf(ContentEntryListUiState).avi = 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).tvb = function (filterMode, contentEntryList, selectedChipId, filterOptions, showHiddenEntries, onlyFolderFilter, sortOptions, activeSortOption, createNewFolderItemVisible, importFromLinkItemVisible, importFromFileItemVisible, createNewOptionsVisible, selectedEntries, showSelectFolderButton, contextMenuItems, hasWritePermission, $super) { filterMode = filterMode === VOID ? this.cvb_1 : filterMode; contentEntryList = contentEntryList === VOID ? this.dvb_1 : contentEntryList; selectedChipId = selectedChipId === VOID ? this.evb_1 : selectedChipId; filterOptions = filterOptions === VOID ? this.fvb_1 : filterOptions; showHiddenEntries = showHiddenEntries === VOID ? this.gvb_1 : showHiddenEntries; onlyFolderFilter = onlyFolderFilter === VOID ? this.hvb_1 : onlyFolderFilter; sortOptions = sortOptions === VOID ? this.ivb_1 : sortOptions; activeSortOption = activeSortOption === VOID ? this.jvb_1 : activeSortOption; createNewFolderItemVisible = createNewFolderItemVisible === VOID ? this.kvb_1 : createNewFolderItemVisible; importFromLinkItemVisible = importFromLinkItemVisible === VOID ? this.lvb_1 : importFromLinkItemVisible; importFromFileItemVisible = importFromFileItemVisible === VOID ? this.mvb_1 : importFromFileItemVisible; createNewOptionsVisible = createNewOptionsVisible === VOID ? this.nvb_1 : createNewOptionsVisible; selectedEntries = selectedEntries === VOID ? this.ovb_1 : selectedEntries; showSelectFolderButton = showSelectFolderButton === VOID ? this.pvb_1 : showSelectFolderButton; contextMenuItems = contextMenuItems === VOID ? this.qvb_1 : contextMenuItems; hasWritePermission = hasWritePermission === VOID ? this.rvb_1 : hasWritePermission; return $super === VOID ? this.avi(filterMode, contentEntryList, selectedChipId, filterOptions, showHiddenEntries, onlyFolderFilter, sortOptions, activeSortOption, createNewFolderItemVisible, importFromLinkItemVisible, importFromFileItemVisible, createNewOptionsVisible, selectedEntries, showSelectFolderButton, contextMenuItems, hasWritePermission) : $super.avi.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.cvb_1 + ', contentEntryList=' + this.dvb_1 + ', selectedChipId=' + this.evb_1 + ', filterOptions=' + this.fvb_1 + ', showHiddenEntries=' + this.gvb_1 + ', onlyFolderFilter=' + this.hvb_1 + ', sortOptions=' + this.ivb_1 + ', activeSortOption=' + this.jvb_1 + ', createNewFolderItemVisible=' + this.kvb_1 + ', importFromLinkItemVisible=' + this.lvb_1 + ', importFromFileItemVisible=' + this.mvb_1 + ', createNewOptionsVisible=' + this.nvb_1 + ', selectedEntries=' + this.ovb_1 + ', showSelectFolderButton=' + this.pvb_1 + ', contextMenuItems=' + this.qvb_1 + ', hasWritePermission=' + this.rvb_1 + ')'; }; protoOf(ContentEntryListUiState).hashCode = function () { var result = this.cvb_1; result = imul(result, 31) + hashCode(this.dvb_1) | 0; result = imul(result, 31) + this.evb_1 | 0; result = imul(result, 31) + hashCode(this.fvb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.gvb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.hvb_1) | 0; result = imul(result, 31) + hashCode(this.ivb_1) | 0; result = imul(result, 31) + this.jvb_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.kvb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.lvb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.mvb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.nvb_1) | 0; result = imul(result, 31) + hashCode(this.ovb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.pvb_1) | 0; result = imul(result, 31) + hashCode(this.qvb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.rvb_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.cvb_1 === tmp0_other_with_cast.cvb_1)) return false; if (!equals(this.dvb_1, tmp0_other_with_cast.dvb_1)) return false; if (!(this.evb_1 === tmp0_other_with_cast.evb_1)) return false; if (!equals(this.fvb_1, tmp0_other_with_cast.fvb_1)) return false; if (!(this.gvb_1 === tmp0_other_with_cast.gvb_1)) return false; if (!(this.hvb_1 === tmp0_other_with_cast.hvb_1)) return false; if (!equals(this.ivb_1, tmp0_other_with_cast.ivb_1)) return false; if (!this.jvb_1.equals(tmp0_other_with_cast.jvb_1)) return false; if (!(this.kvb_1 === tmp0_other_with_cast.kvb_1)) return false; if (!(this.lvb_1 === tmp0_other_with_cast.lvb_1)) return false; if (!(this.mvb_1 === tmp0_other_with_cast.mvb_1)) return false; if (!(this.nvb_1 === tmp0_other_with_cast.nvb_1)) return false; if (!equals(this.ovb_1, tmp0_other_with_cast.ovb_1)) return false; if (!(this.pvb_1 === tmp0_other_with_cast.pvb_1)) return false; if (!equals(this.qvb_1, tmp0_other_with_cast.qvb_1)) return false; if (!(this.rvb_1 === tmp0_other_with_cast.rvb_1)) return false; return true; }; function Companion_143() { } protoOf(Companion_143).a4r = function () { return $serializer_getInstance_69(); }; var Companion_instance_192; function Companion_getInstance_160() { return Companion_instance_192; } function $serializer_57() { $serializer_instance_57 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListSelectedItem', this, 3); tmp0_serialDesc.g4f('contentEntryUid', false); tmp0_serialDesc.g4f('contentEntryParentChildJoinUid', false); tmp0_serialDesc.g4f('parentContentEntryUid', false); this.bvi_1 = tmp0_serialDesc; } protoOf($serializer_57).d44 = function () { return this.bvi_1; }; protoOf($serializer_57).x4f = 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_57).f44 = function (decoder) { var tmp0_desc = this.bvi_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.v47(tmp0_desc); if (tmp7_input.k48()) { tmp4_local0 = tmp7_input.b48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.b48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.b48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.b48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.b48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.b48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.w47(tmp0_desc); return ContentEntryListSelectedItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_57).cvi = function (encoder, value) { var tmp0_desc = this.bvi_1; var tmp1_output = encoder.v47(tmp0_desc); tmp1_output.f49(tmp0_desc, 0, value.uoc_1); tmp1_output.f49(tmp0_desc, 1, value.voc_1); tmp1_output.f49(tmp0_desc, 2, value.woc_1); tmp1_output.w47(tmp0_desc); }; protoOf($serializer_57).e44 = function (encoder, value) { return this.cvi(encoder, value instanceof ContentEntryListSelectedItem ? value : THROW_CCE()); }; var $serializer_instance_57; function $serializer_getInstance_69() { if ($serializer_instance_57 == null) new $serializer_57(); return $serializer_instance_57; } function ContentEntryListSelectedItem_init_$Init$(seen1, contentEntryUid, contentEntryParentChildJoinUid, parentContentEntryUid, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_69().bvi_1); } $this.uoc_1 = contentEntryUid; $this.voc_1 = contentEntryParentChildJoinUid; $this.woc_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.uoc_1 = contentEntryUid; this.voc_1 = contentEntryParentChildJoinUid; this.woc_1 = parentContentEntryUid; } protoOf(ContentEntryListSelectedItem).toString = function () { return 'ContentEntryListSelectedItem(contentEntryUid=' + this.uoc_1.toString() + ', contentEntryParentChildJoinUid=' + this.voc_1.toString() + ', parentContentEntryUid=' + this.woc_1.toString() + ')'; }; protoOf(ContentEntryListSelectedItem).hashCode = function () { var result = this.uoc_1.hashCode(); result = imul(result, 31) + this.voc_1.hashCode() | 0; result = imul(result, 31) + this.woc_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.uoc_1.equals(tmp0_other_with_cast.uoc_1)) return false; if (!this.voc_1.equals(tmp0_other_with_cast.voc_1)) return false; if (!this.woc_1.equals(tmp0_other_with_cast.woc_1)) return false; return true; }; function asSelectedItem(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.eau_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bar_1; var tmp = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp2_safe_receiver = _this__u8e3s4.gau_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.lau_1; var tmp_0 = tmp3_elvis_lhs == null ? new Long(0, 0) : tmp3_elvis_lhs; var tmp4_safe_receiver = _this__u8e3s4.gau_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.iau_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).mvi = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SubtitleEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.mvi(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).pn8 = function (db, completion) { var i = new SubtitleEditViewModel$slambda$slambda(completion); i.lvi_1 = db; return i; }; function SubtitleEditViewModel$slambda$slambda_0(resultContinuation) { var i = new SubtitleEditViewModel$slambda$slambda(resultContinuation); var l = function (db, $completion) { return i.mvi(db, $completion); }; l.$arity = 1; return l; } function SubtitleEditViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation) { this.vvi_1 = $savedStateHandle; this.wvi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SubtitleEditViewModel$slambda$slambda_1).xvi = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SubtitleEditViewModel$slambda$slambda_1).z77 = function ($completion) { return this.xvi($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.vvi_1.ba('uri'); var tmp2_uri = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = this.vvi_1.ba('filename'); var tmp3_title = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp4_langCode = _get_supportedLanguagesConfig__bd0744(this.wvi_1).you_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).y77 = function (completion) { return new SubtitleEditViewModel$slambda$slambda_1(this.vvi_1, this.wvi_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.xvi($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.wvj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.subtitleedit.SubtitleEditViewModel...' call var nextValue = prevValue.bvk(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.vvj_1; supportedLanguagesConfig$factory_0(); return this_0.t2(); } function Companion_144() { this.cvk_1 = 'uri'; this.dvk_1 = 'filename'; this.evk_1 = 'SubtitleEdit'; } var Companion_instance_193; function Companion_getInstance_161() { return Companion_instance_193; } function SubtitleEditViewModel$onClickDone$ref($boundThis) { var l = function () { $boundThis.fvk(); return Unit_instance; }; l.callableName = 'onClickDone'; return l; } function SubtitleEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.ovk_1 = this$0; this.pvk_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_80.a4r(); var tmp_1 = SubtitleEditViewModel$slambda$slambda_0(null); var tmp_2 = SubtitleEditViewModel$slambda$slambda_2(this.pvk_1, this.ovk_1, null); suspendResult = this.ovk_1.rpu(tmp_0, VOID, VOID, tmp_1, tmp_2, SubtitleEditViewModel$slambda$lambda(this.ovk_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.ovk_1.wvj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.bvk(VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.ovk_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.npc(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.gpc_1.opb(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.ovk_1, this.pvk_1, completion); i.qvk_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.zvk_1 = $commitDelay; this.avl_1 = $entity; this.bvl_1 = $this; this.cvl_1 = $key; this.dvl_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.zvk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.avl_1 == null)) { this.hd_1 = 2; suspendResult = this.bvl_1.npu(this.bvl_1.xps_1, this.cvl_1, this.dvl_1, this.avl_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.zvk_1, this.avl_1, this.bvl_1, this.cvl_1, this.dvl_1, completion); i.evl_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.vvj_1 = Instance(this, tmp$ret$0, null).n5c(this, supportedLanguagesConfig$factory()); this.wvj_1 = MutableStateFlow(new SubtitleEditUiState()); this.xvj_1 = asSharedFlow(this.wvj_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.subtitleedit.SubtitleEditViewModel.' call var tmp_1 = this.npt().ant(strings_getInstance().jn1_1); var tmp_2 = this.npt().ant(strings_getInstance().nm2_1); var nextValue = prevValue.npc(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.cpu(); launch(tmp_3, VOID, VOID, SubtitleEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(SubtitleEditViewModel).fvl = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.wvj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.subtitleedit.SubtitleEditViewModel.onEntityChanged.' call var nextValue = prevValue.bvk(entity); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_80.a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver = this.vq1_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.cpu(); tmp.vq1_1 = launch(tmp_0, VOID, VOID, SubtitleEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SubtitleEditViewModel).fvk = function () { this.zq1(this.wvj_1.t2().yvj_1); }; function SubtitleEditUiState(entity, titleError, fieldsEnabled) { entity = entity === VOID ? null : entity; titleError = titleError === VOID ? null : titleError; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; this.yvj_1 = entity; this.zvj_1 = titleError; this.avk_1 = fieldsEnabled; } protoOf(SubtitleEditUiState).gvl = function (entity, titleError, fieldsEnabled) { return new SubtitleEditUiState(entity, titleError, fieldsEnabled); }; protoOf(SubtitleEditUiState).bvk = function (entity, titleError, fieldsEnabled, $super) { entity = entity === VOID ? this.yvj_1 : entity; titleError = titleError === VOID ? this.zvj_1 : titleError; fieldsEnabled = fieldsEnabled === VOID ? this.avk_1 : fieldsEnabled; return $super === VOID ? this.gvl(entity, titleError, fieldsEnabled) : $super.gvl.call(this, entity, titleError, fieldsEnabled); }; protoOf(SubtitleEditUiState).toString = function () { return 'SubtitleEditUiState(entity=' + this.yvj_1 + ', titleError=' + this.zvj_1 + ', fieldsEnabled=' + this.avk_1 + ')'; }; protoOf(SubtitleEditUiState).hashCode = function () { var result = this.yvj_1 == null ? 0 : this.yvj_1.hashCode(); result = imul(result, 31) + (this.zvj_1 == null ? 0 : getStringHashCode(this.zvj_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.avk_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.yvj_1, tmp0_other_with_cast.yvj_1)) return false; if (!(this.zvj_1 == tmp0_other_with_cast.zvj_1)) return false; if (!(this.avk_1 === tmp0_other_with_cast.avk_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.hvl_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_145() { Companion_instance_194 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.hvl_1 = lazy(tmp_0, CourseBlockViewModelConstants$CompletionCriteria$Companion$_anonymous__1j6hl9); } protoOf(Companion_145).njn = 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.lvl_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_1(values_4()) : tmp0_elvis_lhs; }; protoOf(Companion_145).a4r = function () { return _get_$cachedSerializer__te6jhj_2(this); }; protoOf(Companion_145).i4g = function (typeParamsSerializers) { return this.a4r(); }; var Companion_instance_194; function Companion_getInstance_162() { CompletionCriteria_initEntries(); if (Companion_instance_194 == null) new Companion_145(); return Companion_instance_194; } 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().bmh_1; CompletionCriteria_AUTOMATIC_instance = new CompletionCriteria('AUTOMATIC', 0, tmp, 0); var tmp_0 = strings_getInstance().amh_1; CompletionCriteria_MIN_SCORE_instance = new CompletionCriteria('MIN_SCORE', 1, tmp_0, 1); var tmp_1 = strings_getInstance().cmh_1; CompletionCriteria_STUDENT_SELF_MARKS_instance = new CompletionCriteria('STUDENT_SELF_MARKS', 2, tmp_1, 2); var tmp_2 = strings_getInstance().hmh_1; CompletionCriteria_ASSIGNMENT_SUBMITTED_instance = new CompletionCriteria('ASSIGNMENT_SUBMITTED', 3, tmp_2, 100); var tmp_3 = strings_getInstance().nmr_1; CompletionCriteria_ASSIGNMENT_GRADED_instance = new CompletionCriteria('ASSIGNMENT_GRADED', 4, tmp_3, 102); Companion_getInstance_162(); } function CompletionCriteria(name, ordinal, stringResource, value) { Enum.call(this, name, ordinal); this.kvl_1 = stringResource; this.lvl_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.uvl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda$slambda).spg = function (result, $completion) { var tmp = this.tpg(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.spg(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.vvl_1.zpf_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.uvl_1.tvm_1.t2().et0_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.zjk_1; this.uvl_1.vvm(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.mjx(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).tpg = function (result, completion) { var i = new CourseBlockEditViewModel$slambda$slambda$slambda(this.uvl_1, completion); i.vvl_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.spg(result, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.evn_1 = this$0; this.fvn_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda$slambda_1).spg = function (result, $completion) { var tmp = this.tpg(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.spg(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.gvn_1.zpf_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.evn_1.tvm_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = prevValue.et0_1; var nextValue = prevValue.pt0(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ljl(VOID, VOID, contentEntryResult.ajk_1, VOID, contentEntryResult.cjk_1, contentEntryResult.bjk_1)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.fvn_1.app('SavedSelectedContentEntry', this.evn_1.z4q().e45(Companion_instance_41.a4r(), 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).tpg = function (result, completion) { var i = new CourseBlockEditViewModel$slambda$slambda$slambda_1(this.evn_1, this.fvn_1, completion); i.gvn_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.spg(result, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda).xt1 = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.xt1(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).pn8 = function (it, completion) { var i = new CourseBlockEditViewModel$slambda$slambda(completion); i.pvn_1 = it; return i; }; function CourseBlockEditViewModel$slambda$slambda_0(resultContinuation) { var i = new CourseBlockEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.xt1(it, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, $selectedContentEntry, resultContinuation) { this.yvn_1 = this$0; this.zvn_1 = $savedStateHandle; this.avo_1 = $selectedContentEntry; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda_1).ht2 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$slambda$slambda_1).z77 = function ($completion) { return this.ht2($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.yvn_1.fpu()); suspendResult = tmp_0.b62(124, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var newUid = suspendResult; var this_0 = new CourseBlock(); this_0.g7x_1 = newUid; this_0.w7x_1 = true; var tmp_1 = this_0; var tmp0_safe_receiver = this.zvn_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.h7x_1 = tmp_2; var tmp_3 = this_0; var tmp2_safe_receiver = this.avo_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ajk_1; tmp_3.k7x_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.car_1; var tmp_4 = this_0; var tmp4_safe_receiver = this.avo_1; var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.ajk_1; tmp_4.l7x_1 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.dar_1; if (!(this.avo_1 == null)) { var tmp_5 = this_0; var tmp6_safe_receiver = this.avo_1.ajk_1; var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.bar_1; tmp_5.y7x_1 = tmp7_elvis_lhs == null ? new Long(0, 0) : tmp7_elvis_lhs; var tmp_6 = this_0; tmp_6.h7x_1 = 104; } var tmp0_safe_receiver_0 = this.avo_1; var tmp5_contentEntry = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.ajk_1; var tmp3_safe_receiver_0 = this.avo_1; var tmp6_contentJob = tmp3_safe_receiver_0 == null ? null : tmp3_safe_receiver_0.bjk_1; var tmp2_safe_receiver_0 = this.avo_1; var tmp7_contentJobItem = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.cjk_1; var tmp8_courseBlockPicture = new CourseBlockPicture(newUid); var tmp1_safe_receiver = this.avo_1; var tmp9_contentEntryPicture = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.djk_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).y77 = function (completion) { return new CourseBlockEditViewModel$slambda$slambda_1(this.yvn_1, this.zvn_1, this.avo_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.ht2($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.tvm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel...' call var nextValue = prevValue.pt0(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseBlockEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function CourseBlockEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.jvo_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.jvo_1.gpx(this.jvo_1.kpu(), 'courseBlockDesc'); var tmp_1 = CourseBlockEditViewModel$slambda$slambda$slambda_0(this.jvo_1, null); suspendResult = tmp_0.z1b(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(CourseBlockEditViewModel$slambda$slambda_3).v1m = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$slambda$slambda_3(this.jvo_1, completion); i.kvo_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.tvo_1 = this$0; this.uvo_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.tvo_1.gpx(this.tvo_1.kpu(), 'courseBlockEditContentEntry'); var tmp_1 = CourseBlockEditViewModel$slambda$slambda$slambda_2(this.tvo_1, this.uvo_1, null); suspendResult = tmp_0.z1b(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(CourseBlockEditViewModel$slambda$slambda_5).v1m = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$slambda$slambda_5(this.tvo_1, this.uvo_1, completion); i.vvo_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_146() { Companion_instance_195 = this; this.rv4_1 = 'CourseBlockEdit'; this.sv4_1 = 'SelectedContentEntry'; this.tv4_1 = 'blockType'; this.uv4_1 = 'courseBlockDesc'; this.vv4_1 = 'courseBlockEditContentEntry'; this.wv4_1 = 'SavedSelectedContentEntry'; var tmp = this; Companion_getInstance_119(); Companion_getInstance_108(); Companion_getInstance_108(); tmp.xv4_1 = listOf(['blockType', 'clazzUid', 'goToOnContentEntryDone', 'blockType', 'result_viewname', 'result_key', 'listMode']); } var Companion_instance_195; function Companion_getInstance_163() { if (Companion_instance_195 == null) new Companion_146(); return Companion_instance_195; } function sam$kotlinx_coroutines_flow_FlowCollector$0_25(function_0) { this.wvo_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_25).t1d = function (value, $completion) { return this.wvo_1(value, $completion); }; function CourseBlockEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.fvp_1 = this$0; this.gvp_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.fvp_1.mpu(this.gvp_1, 'SelectedContentEntry', Companion_instance_41.a4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ivp_1 = suspendResult; this.jvp_1 = Companion_getInstance_13().a4r(); this.hd_1 = 2; var tmp_0 = CourseBlockEditViewModel$slambda$slambda_0(null); var tmp_1 = CourseBlockEditViewModel$slambda$slambda_2(this.fvp_1, this.gvp_1, this.ivp_1, null); suspendResult = this.fvp_1.rpu(this.jvp_1, VOID, VOID, tmp_0, tmp_1, CourseBlockEditViewModel$slambda$lambda(this.fvp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.kvp_1 = suspendResult; var tmp_2 = this; var tmp1_safe_receiver = this.kvp_1; tmp_2.lvp_1 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.bjl_1; var tmp_3 = this; var tmp2_safe_receiver = this.kvp_1; tmp_3.mvp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.zjk_1; if (!(this.lvp_1 == null) ? !(this.mvp_1 == null) : false) { Companion_getInstance_107(); if (this.gvp_1.ba('entity') == null) { this.nvp_1 = false; this.hd_1 = 4; continue $sm; } else { var tmp_4; var tmp_5 = this.lvp_1.xar_1; if (tmp_5 === 2) { tmp_4 = this.lvp_1.war_1.equals(this.mvp_1.g7x_1); } else { tmp_4 = false; } if (tmp_4) { var tmp_6 = this; tmp_6.nvp_1 = true; this.hd_1 = 4; continue $sm; } else { var tmp_7 = this.lvp_1.xar_1; if (tmp_7 === 2) { this.hd_1 = 3; var tmp_8 = this.fvp_1.hpu().b7f(); var tmp_9 = this.fvp_1.dpu(); var tmp_10 = this.lvp_1.war_1; PermissionFlags_getInstance(); suspendResult = tmp_8.cdf(tmp_9, tmp_10, new Long(2, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.nvp_1 = false; this.hd_1 = 4; continue $sm; } } } } else { this.hd_1 = 5; continue $sm; } case 3: this.nvp_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: var canEditContentEntry = this.nvp_1; l$ret$1: do { var this_0 = this.fvp_1.tvm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.pt0(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.fvp_1.tvm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.pt0(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.fvp_1.bpt_1; while (true) { var prevValue_1 = this_2.t2(); var tmp0_safe_receiver = this.mvp_1; var tmp1_subject = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h7x_1; var tmp_11; if (tmp1_subject === 100) { tmp_11 = this.fvp_1.yq2(strings_getInstance().wmt_1, strings_getInstance().hms_1); } else { if (tmp1_subject === 102) { tmp_11 = this.fvp_1.yq2(strings_getInstance().vmr_1, strings_getInstance().vmt_1); } else { if (tmp1_subject === 105) { tmp_11 = this.fvp_1.yq2(strings_getInstance().xmu_1, strings_getInstance().ymu_1); } else { if (tmp1_subject === 104) { tmp_11 = this.fvp_1.npt().ant(strings_getInstance().mmz_1); } else { tmp_11 = ''; } } } } var tmp_12 = tmp_11; var tmp_13 = this.fvp_1.npt().ant(strings_getInstance().nm2_1); var nextValue_1 = prevValue_1.npc(VOID, VOID, tmp_12, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_13, VOID, CourseBlockEditViewModel$onClickSave$ref(this.fvp_1))); if (this_2.y1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); launch(this.hvp_1, VOID, VOID, CourseBlockEditViewModel$slambda$slambda_4(this.fvp_1, null)); launch(this.hvp_1, VOID, VOID, CourseBlockEditViewModel$slambda$slambda_6(this.fvp_1, this.gvp_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.fvp_1, this.gvp_1, completion); i.hvp_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.wvp_1 = $commitDelay; this.xvp_1 = $entity; this.yvp_1 = $this; this.zvp_1 = $key; this.avq_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.wvp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.xvp_1 == null)) { this.hd_1 = 2; suspendResult = this.yvp_1.npu(this.yvp_1.xps_1, this.zvp_1, this.avq_1, this.xvp_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.wvp_1, this.xvp_1, this.yvp_1, this.zvp_1, this.avq_1, completion); i.bvq_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.kvq_1 = $commitDelay; this.lvq_1 = $entity; this.mvq_1 = $this; this.nvq_1 = $key; this.ovq_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.kvq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.lvq_1 == null)) { this.hd_1 = 2; suspendResult = this.mvq_1.npu(this.mvq_1.xps_1, this.nvq_1, this.ovq_1, this.lvq_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.kvq_1, this.lvq_1, this.mvq_1, this.nvq_1, this.ovq_1, completion); i.pvq_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_163(); UstadEditViewModel.call(this, di, savedStateHandle, 'CourseBlockEdit'); this.tvm_1 = MutableStateFlow(new CourseBlockEditUiState(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_getInstance_9().clt().dls())); this.uvm_1 = asStateFlow(this.tvm_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.' call var nextValue = prevValue.npc(VOID, VOID, VOID, VOID, true, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.cpu(); launch(tmp, VOID, VOID, CourseBlockEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(CourseBlockEditViewModel).vvm = 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.tvm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.et0_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ljl(courseBlock); var tmp1_safe_receiver = prevValue.et0_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.zjk_1; var nextValue = prevValue.pt0(tmp, VOID, VOID, VOID, VOID, this.zq2(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.k7x_1, courseBlock.k7x_1, prevValue.jt0_1)); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var blockAndEntities = tmp$ret$1.et0_1; // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_13().a4r(); Companion_getInstance_107(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.cpu(); tmp_0.vq1_1 = launch(tmp_1, VOID, VOID, CourseBlockEditViewModel$onEntityChanged$slambda_0(commitDelay, blockAndEntities, this, key, serializer, null)); }; protoOf(CourseBlockEditViewModel).qvq = function () { var tmp0_safe_receiver = this.tvm_1.t2().et0_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jjl(); var tmp_0 = Companion_instance_41.a4r(); // 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.tvm_1.t2().et0_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.z4q().e45(Companion_instance_14.a4r(), tmp0_safe_receiver_0.zjk_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.ppu('ContentEntryEdit', 'courseBlockEditContentEntry', tmp, tmp_0, tmp$ret$3); }; protoOf(CourseBlockEditViewModel).ft8 = function (pictureUri) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.tvm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onPictureChanged.' call var tmp1_safe_receiver = prevValue.et0_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.et0_1.ajl_1; tmp = tmp1_safe_receiver.ljl(VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qjx(VOID, VOID, pictureUri)); } var nextValue = prevValue.pt0(tmp); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var blockAndEntities = tmp$ret$1.et0_1; // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_13().a4r(); Companion_getInstance_107(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.cpu(); tmp_0.vq1_1 = launch(tmp_1, VOID, VOID, CourseBlockEditViewModel$onPictureChanged$slambda_0(commitDelay, blockAndEntities, this, key, serializer, null)); }; protoOf(CourseBlockEditViewModel).yr9 = function () { var tmp0_elvis_lhs = this.tvm_1.t2().et0_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.zjk_1.k7x_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.tvm_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onClickSave.' call var nextValue = prevValue.pt0(VOID, VOID, VOID, VOID, VOID, this.npt().ant(strings_getInstance().nmw_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } } if (this.tvm_1.t2().tt4()) return Unit_instance; this.zq1(this.tvm_1.t2().et0_1); }; function Companion_147() { Companion_instance_196 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.rvq_1 = [null, null, new ArrayListSerializer(Companion_getInstance_162().a4r()), null, null, null, null, null, null, null, null]; } var Companion_instance_196; function Companion_getInstance_164() { if (Companion_instance_196 == null) new Companion_147(); return Companion_instance_196; } function $serializer_58() { $serializer_instance_58 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditUiState', this, 11); tmp0_serialDesc.g4f('block', true); tmp0_serialDesc.g4f('canEditSelectedContentEntry', true); tmp0_serialDesc.g4f('completionCriteriaOptions', true); tmp0_serialDesc.g4f('fieldsEnabled', true); tmp0_serialDesc.g4f('caHideUntilDateError', true); tmp0_serialDesc.g4f('caTitleError', true); tmp0_serialDesc.g4f('caDeadlineError', true); tmp0_serialDesc.g4f('caMaxPointsError', true); tmp0_serialDesc.g4f('maxPointsRequired', true); tmp0_serialDesc.g4f('caGracePeriodError', true); tmp0_serialDesc.g4f('timeZone', true); this.svq_1 = tmp0_serialDesc; } protoOf($serializer_58).d44 = function () { return this.svq_1; }; protoOf($serializer_58).x4f = function () { var tmp0_cached = Companion_getInstance_164().rvq_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_58).f44 = function (decoder) { var tmp0_desc = this.svq_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.v47(tmp0_desc); var tmp16_cached = Companion_getInstance_164().rvq_1; if (tmp15_input.k48()) { tmp4_local0 = tmp15_input.j48(tmp0_desc, 0, $serializer_getInstance_8(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.x47(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.h48(tmp0_desc, 2, tmp16_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.x47(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.j48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.x47(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.f48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.j48(tmp0_desc, 0, $serializer_getInstance_8(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.x47(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.h48(tmp0_desc, 2, tmp16_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.x47(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.j48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.x47(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.f48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.w47(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_58).tvq = function (encoder, value) { var tmp0_desc = this.svq_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_164().rvq_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.et0_1 == null)) { tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_8(), value.et0_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.ft0_1 === false)) { tmp1_output.b49(tmp0_desc, 1, value.ft0_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !equals(value.gt0_1, emptyList())) { tmp1_output.l49(tmp0_desc, 2, tmp2_cached[2], value.gt0_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.ht0_1 === false)) { tmp1_output.b49(tmp0_desc, 3, value.ht0_1); } if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.it0_1 == null)) { tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.it0_1); } if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.jt0_1 == null)) { tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.jt0_1); } if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.kt0_1 == null)) { tmp1_output.n49(tmp0_desc, 6, StringSerializer_getInstance(), value.kt0_1); } if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.lt0_1 == null)) { tmp1_output.n49(tmp0_desc, 7, StringSerializer_getInstance(), value.lt0_1); } if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.mt0_1 === false)) { tmp1_output.b49(tmp0_desc, 8, value.mt0_1); } if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.nt0_1 == null)) { tmp1_output.n49(tmp0_desc, 9, StringSerializer_getInstance(), value.nt0_1); } if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.ot0_1 === 'UTC')) { tmp1_output.j49(tmp0_desc, 10, value.ot0_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_58).e44 = function (encoder, value) { return this.tvq(encoder, value instanceof CourseBlockEditUiState ? value : THROW_CCE()); }; var $serializer_instance_58; function $serializer_getInstance_70() { if ($serializer_instance_58 == null) new $serializer_58(); return $serializer_instance_58; } 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_70().svq_1); } if (0 === (seen1 & 1)) $this.et0_1 = null; else $this.et0_1 = block; if (0 === (seen1 & 2)) $this.ft0_1 = false; else $this.ft0_1 = canEditSelectedContentEntry; if (0 === (seen1 & 4)) $this.gt0_1 = emptyList(); else $this.gt0_1 = completionCriteriaOptions; if (0 === (seen1 & 8)) $this.ht0_1 = false; else $this.ht0_1 = fieldsEnabled; if (0 === (seen1 & 16)) $this.it0_1 = null; else $this.it0_1 = caHideUntilDateError; if (0 === (seen1 & 32)) $this.jt0_1 = null; else $this.jt0_1 = caTitleError; if (0 === (seen1 & 64)) $this.kt0_1 = null; else $this.kt0_1 = caDeadlineError; if (0 === (seen1 & 128)) $this.lt0_1 = null; else $this.lt0_1 = caMaxPointsError; if (0 === (seen1 & 256)) $this.mt0_1 = false; else $this.mt0_1 = maxPointsRequired; if (0 === (seen1 & 512)) $this.nt0_1 = null; else $this.nt0_1 = caGracePeriodError; if (0 === (seen1 & 1024)) $this.ot0_1 = 'UTC'; else $this.ot0_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_164(); 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.et0_1 = block; this.ft0_1 = canEditSelectedContentEntry; this.gt0_1 = completionCriteriaOptions; this.ht0_1 = fieldsEnabled; this.it0_1 = caHideUntilDateError; this.jt0_1 = caTitleError; this.kt0_1 = caDeadlineError; this.lt0_1 = caMaxPointsError; this.mt0_1 = maxPointsRequired; this.nt0_1 = caGracePeriodError; this.ot0_1 = timeZone; } protoOf(CourseBlockEditUiState).uvq = function () { var tmp0_safe_receiver = this.et0_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zjk_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m7x_1; return tmp === 1; }; protoOf(CourseBlockEditUiState).vvq = function () { var tmp; if (this.wvq()) { var tmp0_safe_receiver = this.et0_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zjk_1; tmp = isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o7x_1); } else { tmp = false; } return tmp; }; protoOf(CourseBlockEditUiState).jsw = function () { var tmp; if (this.vvq()) { var tmp0_safe_receiver = this.et0_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zjk_1; tmp = isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q7x_1); } else { tmp = false; } return tmp; }; protoOf(CourseBlockEditUiState).xvq = function () { // Inline function 'kotlin.collections.isNotEmpty' call return !this.gt0_1.c1(); }; protoOf(CourseBlockEditUiState).wvq = function () { var tmp; var tmp0_safe_receiver = this.et0_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zjk_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h7x_1; if (tmp_0 === 103) { tmp = true; } else { var tmp2_safe_receiver = this.et0_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.zjk_1; var tmp_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.h7x_1; tmp = tmp_1 === 104; } return tmp; }; protoOf(CourseBlockEditUiState).yvq = function () { var tmp; var tmp0_safe_receiver = this.et0_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zjk_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h7x_1; if (tmp_0 === 103) { tmp = true; } else { var tmp2_safe_receiver = this.et0_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.zjk_1; var tmp_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.h7x_1; tmp = tmp_1 === 104; } return tmp; }; protoOf(CourseBlockEditUiState).tt4 = function () { return ((!(this.jt0_1 == null) ? true : !(this.kt0_1 == null)) ? true : !(this.nt0_1 == null)) ? true : !(this.lt0_1 == null); }; protoOf(CourseBlockEditUiState).zvq = 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).pt0 = function (block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone, $super) { block = block === VOID ? this.et0_1 : block; canEditSelectedContentEntry = canEditSelectedContentEntry === VOID ? this.ft0_1 : canEditSelectedContentEntry; completionCriteriaOptions = completionCriteriaOptions === VOID ? this.gt0_1 : completionCriteriaOptions; fieldsEnabled = fieldsEnabled === VOID ? this.ht0_1 : fieldsEnabled; caHideUntilDateError = caHideUntilDateError === VOID ? this.it0_1 : caHideUntilDateError; caTitleError = caTitleError === VOID ? this.jt0_1 : caTitleError; caDeadlineError = caDeadlineError === VOID ? this.kt0_1 : caDeadlineError; caMaxPointsError = caMaxPointsError === VOID ? this.lt0_1 : caMaxPointsError; maxPointsRequired = maxPointsRequired === VOID ? this.mt0_1 : maxPointsRequired; caGracePeriodError = caGracePeriodError === VOID ? this.nt0_1 : caGracePeriodError; timeZone = timeZone === VOID ? this.ot0_1 : timeZone; return $super === VOID ? this.zvq(block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone) : $super.zvq.call(this, block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone); }; protoOf(CourseBlockEditUiState).toString = function () { return 'CourseBlockEditUiState(block=' + this.et0_1 + ', canEditSelectedContentEntry=' + this.ft0_1 + ', completionCriteriaOptions=' + this.gt0_1 + ', fieldsEnabled=' + this.ht0_1 + ', caHideUntilDateError=' + this.it0_1 + ', caTitleError=' + this.jt0_1 + ', caDeadlineError=' + this.kt0_1 + ', caMaxPointsError=' + this.lt0_1 + ', maxPointsRequired=' + this.mt0_1 + ', caGracePeriodError=' + this.nt0_1 + ', timeZone=' + this.ot0_1 + ')'; }; protoOf(CourseBlockEditUiState).hashCode = function () { var result = this.et0_1 == null ? 0 : this.et0_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.ft0_1) | 0; result = imul(result, 31) + hashCode(this.gt0_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ht0_1) | 0; result = imul(result, 31) + (this.it0_1 == null ? 0 : getStringHashCode(this.it0_1)) | 0; result = imul(result, 31) + (this.jt0_1 == null ? 0 : getStringHashCode(this.jt0_1)) | 0; result = imul(result, 31) + (this.kt0_1 == null ? 0 : getStringHashCode(this.kt0_1)) | 0; result = imul(result, 31) + (this.lt0_1 == null ? 0 : getStringHashCode(this.lt0_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.mt0_1) | 0; result = imul(result, 31) + (this.nt0_1 == null ? 0 : getStringHashCode(this.nt0_1)) | 0; result = imul(result, 31) + getStringHashCode(this.ot0_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.et0_1, tmp0_other_with_cast.et0_1)) return false; if (!(this.ft0_1 === tmp0_other_with_cast.ft0_1)) return false; if (!equals(this.gt0_1, tmp0_other_with_cast.gt0_1)) return false; if (!(this.ht0_1 === tmp0_other_with_cast.ht0_1)) return false; if (!(this.it0_1 == tmp0_other_with_cast.it0_1)) return false; if (!(this.jt0_1 == tmp0_other_with_cast.jt0_1)) return false; if (!(this.kt0_1 == tmp0_other_with_cast.kt0_1)) return false; if (!(this.lt0_1 == tmp0_other_with_cast.lt0_1)) return false; if (!(this.mt0_1 === tmp0_other_with_cast.mt0_1)) return false; if (!(this.nt0_1 == tmp0_other_with_cast.nt0_1)) return false; if (!(this.ot0_1 === tmp0_other_with_cast.ot0_1)) return false; return true; }; function TextBlockDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ivr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda$slambda$slambda$slambda).kvr = function (it, $completion) { var tmp = this.lvr(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.kvr((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.ivr_1.ivs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.mvs(this.jvr_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).lvr = function (it, completion) { var i = new TextBlockDetailViewModel$slambda$slambda$slambda$slambda(this.ivr_1, completion); i.jvr_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.kvr(it, $completion); }; l.$arity = 1; return l; } function TextBlockDetailViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.vvs_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.vvs_1.hpu().c7d().zcf(this.vvs_1.dpx_1); var tmp_1 = TextBlockDetailViewModel$slambda$slambda$slambda$slambda_0(this.vvs_1, null); suspendResult = tmp_0.z1b(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(TextBlockDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new TextBlockDetailViewModel$slambda$slambda$slambda(this.vvs_1, completion); i.wvs_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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.textblockdetail.TextBlockDetailViewModel....' call var nextValue = prevValue.npc(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.fvt_1 = $this_launch; this.gvt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TextBlockDetailViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.fvt_1, VOID, VOID, TextBlockDetailViewModel$slambda$slambda$slambda_0(this.gvt_1, null)); launchSetTitleFromClazzUid(this.gvt_1, this.gvt_1.kvs_1, TextBlockDetailViewModel$slambda$slambda$lambda(this.gvt_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).y77 = function (completion) { return new TextBlockDetailViewModel$slambda$slambda(this.fvt_1, this.gvt_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.w86($completion); }; l.$arity = 0; return l; } function Companion_148() { this.hvt_1 = 'CourseText'; } var Companion_instance_197; function Companion_getInstance_165() { return Companion_instance_197; } function sam$kotlinx_coroutines_flow_FlowCollector$0_26(function_0) { this.ivt_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_26).t1d = function (value, $completion) { return this.ivt_1(value, $completion); }; function TextBlockDetailViewModel$slambda(this$0, resultContinuation) { this.rvt_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.rvt_1.ivs_1, TextBlockDetailViewModel$slambda$slambda_0(this.svt_1, this.rvt_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.rvt_1, completion); i.svt_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.ivs_1 = MutableStateFlow(new TextBlockDetailUiState()); this.jvs_1 = asStateFlow(this.ivs_1); var tmp = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.kvs_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this.cpu(); launch(tmp_0, VOID, VOID, TextBlockDetailViewModel$slambda_0(this, null)); } function TextBlockDetailUiState(courseBlock) { courseBlock = courseBlock === VOID ? null : courseBlock; this.lvs_1 = courseBlock; } protoOf(TextBlockDetailUiState).mvs = function (courseBlock) { return new TextBlockDetailUiState(courseBlock); }; protoOf(TextBlockDetailUiState).toString = function () { return 'TextBlockDetailUiState(courseBlock=' + this.lvs_1 + ')'; }; protoOf(TextBlockDetailUiState).hashCode = function () { return this.lvs_1 == null ? 0 : this.lvs_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.lvs_1, tmp0_other_with_cast.lvs_1)) return false; return true; }; function CourseGroupSetDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { $boundThis.svu(); 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).dvv = function (entity, permissionPair, $completion) { var tmp = this.evv(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.dvv(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.bvv_1, this.cvv_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda).evv = function (entity, permissionPair, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda(completion); i.bvv_1 = entity; i.cvv_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.dvv(entity, permissionPair, $completion); }; l.$arity = 2; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.nvv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1).pvv = function (it, $completion) { var tmp = this.qvv(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.pvv(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.ovv_1.x6_1; var hasCourseViewPermission = tmp0_container.y6(); var hasManageStudentPermission = tmp0_container.z6(); l$ret$1: do { var this_0 = this.nvv_1.pvu_1; while (true) { var prevValue = this_0.t2(); var this_1 = this.ovv_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.tvv(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.nvv_1.bpt_1; while (true) { var prevValue_0 = this_2.t2(); var tmp_1 = this.nvv_1.npt().ant(strings_getInstance().lm6_1); var tmp_2 = FabIcon_EDIT_getInstance(); var nextValue_0 = prevValue_0.npc(new FabUiState(hasManageStudentPermission, tmp_1, tmp_2, CourseGroupSetDetailViewModel$onClickEdit$ref(this.nvv_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).qvv = function (it, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1(this.nvv_1, completion); i.ovv_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.pvv(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).evw = function (entity, permissionPair, $completion) { var tmp = this.fvw(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.evw(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.cvw_1; var tmp_0; if (this.dvw_1.adi_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).fvw = function (entity, permissionPair, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3(completion); i.cvw_1 = entity; i.dvw_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.evw(entity, permissionPair, $completion); }; l.$arity = 2; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.ovw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5).qvw = function (courseGroupSet, $completion) { var tmp = this.rvw(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.qvw((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.ovw_1.pvu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.tvv(this.pvw_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.ovw_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver = this.pvw_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o7y_1; var nextValue_0 = prevValue_0.npc(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).rvw = function (courseGroupSet, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5(this.ovw_1, completion); i.pvw_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.qvw(courseGroupSet, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda($memberListFlow, $permissionsFlow, this$0, resultContinuation) { this.avx_1 = $memberListFlow; this.bvx_1 = $permissionsFlow; this.cvx_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.avx_1, this.bvx_1, CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_0(null))); var tmp_1 = CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_2(this.cvx_1, null); suspendResult = tmp_0.z1b(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(CourseGroupSetDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda(this.avx_1, this.bvx_1, this.cvx_1, completion); i.dvx_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.mvx_1 = $entityFlow; this.nvx_1 = $permissionsFlow; this.ovx_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.mvx_1, this.nvx_1, CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_4(null)); var tmp_1 = CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_6(this.ovx_1, null); suspendResult = tmp_0.z1b(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(CourseGroupSetDetailViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda_1(this.mvx_1, this.nvx_1, this.ovx_1, completion); i.pvx_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.yvx_1 = $this_launch; this.zvx_1 = $memberListFlow; this.avy_1 = $permissionsFlow; this.bvy_1 = this$0; this.cvy_1 = $entityFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.yvx_1, VOID, VOID, CourseGroupSetDetailViewModel$slambda$slambda$slambda_0(this.zvx_1, this.avy_1, this.bvy_1, null)); launch(this.yvx_1, VOID, VOID, CourseGroupSetDetailViewModel$slambda$slambda$slambda_2(this.cvy_1, this.avy_1, this.bvy_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).y77 = function (completion) { return new CourseGroupSetDetailViewModel$slambda$slambda(this.yvx_1, this.zvx_1, this.avy_1, this.bvy_1, this.cvy_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.w86($completion); }; l.$arity = 0; return l; } function Companion_149() { this.dvy_1 = 'CourseGroupSet'; } var Companion_instance_198; function Companion_getInstance_166() { return Companion_instance_198; } function sam$kotlinx_coroutines_flow_FlowCollector$0_27(function_0) { this.evy_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_27).t1d = function (value, $completion) { return this.evy_1(value, $completion); }; function CourseGroupSetDetailViewModel$slambda(this$0, resultContinuation) { this.nvy_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.nvy_1.hpu().b7f(); var tmp_2 = this.nvy_1.dpu(); PermissionFlags_getInstance(); var tmp_3 = new Long(1, 0); PermissionFlags_getInstance(); tmp_0.pvy_1 = shareIn(tmp_1.zde(tmp_2, this.nvy_1.rvu_1, tmp_3, new Long(8, 0)), this.nvy_1.cpu(), Companion_getInstance_12().v1h()); this.qvy_1 = this.nvy_1.hpu().f7d().mcy(this.nvy_1.dpx_1, this.nvy_1.rvu_1, systemTimeInMillis(), 0, this.nvy_1.dpu()); this.rvy_1 = this.nvy_1.hpu().e7d().g8c(this.nvy_1.dpx_1); this.hd_1 = 1; suspendResult = whenSubscribed(this.nvy_1.pvu_1, CourseGroupSetDetailViewModel$slambda$slambda_0(this.ovy_1, this.qvy_1, this.pvy_1, this.nvy_1, this.rvy_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.nvy_1, completion); i.ovy_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.pvu_1 = MutableStateFlow(new CourseGroupSetDetailUiState()); this.qvu_1 = asStateFlow(this.pvu_1); var tmp = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.rvu_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this.cpu(); launch(tmp_0, VOID, VOID, CourseGroupSetDetailViewModel$slambda_0(this, null)); } protoOf(CourseGroupSetDetailViewModel).svu = function () { Companion_getInstance_108(); var tmp = to('entityUid', this.dpx_1.toString()); Companion_getInstance_119(); this.zps_1.fog('CourseGroupsEdit', mapOf([tmp, to('clazzUid', this.rvu_1.toString())])); }; function CourseGroupSetDetailUiState(courseGroupSet, membersList) { courseGroupSet = courseGroupSet === VOID ? null : courseGroupSet; membersList = membersList === VOID ? emptyList() : membersList; this.rvv_1 = courseGroupSet; this.svv_1 = membersList; } protoOf(CourseGroupSetDetailUiState).svy = function (courseGroupSet, membersList) { return new CourseGroupSetDetailUiState(courseGroupSet, membersList); }; protoOf(CourseGroupSetDetailUiState).tvv = function (courseGroupSet, membersList, $super) { courseGroupSet = courseGroupSet === VOID ? this.rvv_1 : courseGroupSet; membersList = membersList === VOID ? this.svv_1 : membersList; return $super === VOID ? this.svy(courseGroupSet, membersList) : $super.svy.call(this, courseGroupSet, membersList); }; protoOf(CourseGroupSetDetailUiState).toString = function () { return 'CourseGroupSetDetailUiState(courseGroupSet=' + this.rvv_1 + ', membersList=' + this.svv_1 + ')'; }; protoOf(CourseGroupSetDetailUiState).hashCode = function () { var result = this.rvv_1 == null ? 0 : hashCode(this.rvv_1); result = imul(result, 31) + hashCode(this.svv_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.rvv_1, tmp0_other_with_cast.rvv_1)) return false; if (!equals(this.svv_1, tmp0_other_with_cast.svv_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.bvz_1 = this$0; this.cvz_1 = $courseGroupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda).pvz = function (db, $completion) { var tmp = this.pn8(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.pvz(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.dvz_1.f7d().lcy(this.bvz_1.wq1_1, this.bvz_1.pw0_1, systemTimeInMillis(), 0, this.bvz_1.dpu(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.evz_1 = suspendResult; var tmp_0 = this; tmp_0.fvz_1 = this.evz_1; var tmp_1 = this; tmp_1.gvz_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.evz_1, 10)); this.hvz_1 = this.fvz_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.hvz_1.f()) { this.hd_1 = 5; continue $sm; } this.ivz_1 = this.hvz_1.e(); var tmp_2 = this; tmp_2.jvz_1 = this.ivz_1; if (this.jvz_1.ad0_1 == null) { var tmp_3 = this; tmp_3.lvz_1 = new CourseGroupMemberAndName(); var tmp_4 = this; tmp_4.mvz_1 = this.lvz_1; this.mvz_1.bd0_1 = this.jvz_1.bd0_1; this.mvz_1.dd0_1 = this.jvz_1.dd0_1; this.mvz_1.cd0_1 = this.jvz_1.cd0_1; this.mvz_1.ed0_1 = this.jvz_1.ed0_1; var tmp_5 = this; tmp_5.nvz_1 = new CourseGroupMember(); var tmp_6 = this; tmp_6.ovz_1 = this.nvz_1; this.hd_1 = 3; var tmp_7 = get_doorPrimaryKeyManager(this.bvz_1.fpu()); suspendResult = tmp_7.b62(243, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_8 = this; tmp_8.kvz_1 = this.jvz_1; this.hd_1 = 4; continue $sm; } case 3: var ARGUMENT = suspendResult; this.ovz_1.icz_1 = ARGUMENT; this.ovz_1.jcz_1 = this.cvz_1; this.ovz_1.lcz_1 = this.jvz_1.cd0_1; var ARGUMENT_0 = this.nvz_1; this.mvz_1.ad0_1 = ARGUMENT_0; this.kvz_1 = this.lvz_1; this.hd_1 = 4; continue $sm; case 4: var ARGUMENT_1 = this.kvz_1; this.gvz_1.i1(ARGUMENT_1); this.hd_1 = 2; continue $sm; case 5: return this.gvz_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).pn8 = function (db, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda$slambda(this.bvz_1, this.cvz_1, completion); i.dvz_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.pvz(db, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).yw0 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).z77 = function ($completion) { return this.yw0($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).y77 = 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.yw0($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.nw0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel....' call var nextValue = prevValue.ew1(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.nw1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_3).rw1 = function (db, $completion) { var tmp = this.pn8(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.rw1(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.ow1_1; var tmp_1; if (!this.nw1_1.wq1_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } var tmp0_safe_receiver = tmp_1; tmp_0.pw1_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e7d(); if (this.pw1_1 == null) { this.qw1_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.pw1_1.id7(this.nw1_1.wq1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.qw1_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.qw1_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).pn8 = function (db, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda$slambda_3(this.nw1_1, completion); i.ow1_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.rw1(db, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda$slambda$slambda_5($courseGroupSetUid, this$0, resultContinuation) { this.aw2_1 = $courseGroupSetUid; this.bw2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_5).kdb = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_5).z77 = function ($completion) { return this.kdb($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.n7y_1 = this.aw2_1; this_0.r7y_1 = this.bw2_1.pw0_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).y77 = function (completion) { return new CourseGroupSetEditViewModel$slambda$slambda$slambda_5(this.aw2_1, this.bw2_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.kdb($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.nw0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel....' call var nextValue = prevValue.ew1(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseGroupSetEditViewModel$slambda$slambda(this$0, $courseGroupSetUid, resultContinuation) { this.kw2_1 = this$0; this.lw2_1 = $courseGroupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda).nw2 = 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.nw2((!(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.a4r()); var tmp_1 = listOf_0('courseGroupMembers'); var tmp_2 = CourseGroupSetEditViewModel$slambda$slambda$slambda_0(this.kw2_1, this.lw2_1, null); var tmp_3 = CourseGroupSetEditViewModel$slambda$slambda$slambda_2(null); suspendResult = this.kw2_1.rpu(tmp_0, tmp_1, VOID, tmp_2, tmp_3, CourseGroupSetEditViewModel$slambda$slambda$lambda(this.kw2_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.kw2_1, this.lw2_1, completion); i.mw2_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.nw2($this$async, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda$slambda_1(this$0, $courseGroupSetUid, resultContinuation) { this.ww2_1 = this$0; this.xw2_1 = $courseGroupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda_1).zw2 = 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.zw2((!(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.a4r(); var tmp_1 = CourseGroupSetEditViewModel$slambda$slambda$slambda_4(this.ww2_1, null); var tmp_2 = CourseGroupSetEditViewModel$slambda$slambda$slambda_6(this.xw2_1, this.ww2_1, null); suspendResult = this.ww2_1.rpu(tmp_0, VOID, VOID, tmp_1, tmp_2, CourseGroupSetEditViewModel$slambda$slambda$lambda_0(this.ww2_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.ww2_1, this.xw2_1, completion); i.yw2_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.zw2($this$async, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function CourseGroupSetEditViewModel$onClickSave$slambda$slambda(this$0, $courseGroupSet, $membersToSave, resultContinuation) { this.iw3_1 = this$0; this.jw3_1 = $courseGroupSet; this.kw3_1 = $membersToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onClickSave$slambda$slambda).on8 = function (it, $completion) { var tmp = this.pn8(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.on8(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.iw3_1.hpu().e7d().jd7(this.jw3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.iw3_1.hpu().f7d().ncy(this.kw3_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).pn8 = function (it, completion) { var i = new CourseGroupSetEditViewModel$onClickSave$slambda$slambda(this.iw3_1, this.jw3_1, this.kw3_1, completion); i.lw3_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.on8(it, $completion); }; l.$arity = 1; return l; } function Companion_150() { this.mw3_1 = 'CourseGroupsEdit'; this.nw3_1 = 'courseGroupMembers'; } var Companion_instance_199; function Companion_getInstance_167() { return Companion_instance_199; } function CourseGroupSetEditViewModel$slambda(this$0, resultContinuation) { this.ww3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda).krc = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda).he = function (p1, $completion) { return this.krc(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.xw3_1.b7f(); var tmp_1 = this.ww3_1.dpu(); PermissionFlags_getInstance(); suspendResult = tmp_0.cdf(tmp_1, this.ww3_1.pw0_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).pn8 = function (db, completion) { var i = new CourseGroupSetEditViewModel$slambda(this.ww3_1, completion); i.xw3_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.krc(db, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda_1(this$0, resultContinuation) { this.gw4_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.gw4_1.wq1_1.equals(new Long(0, 0))) { this.iw4_1 = this.gw4_1.wq1_1; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = get_doorPrimaryKeyManager(this.gw4_1.fpu()); suspendResult = tmp_0.b62(242, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.iw4_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.jw4_1 = this.iw4_1; this.hd_1 = 3; var tmp_1 = async(this.hw4_1, VOID, VOID, CourseGroupSetEditViewModel$slambda$slambda_0(this.gw4_1, this.jw4_1, null)); suspendResult = awaitAll([tmp_1, async(this.hw4_1, VOID, VOID, CourseGroupSetEditViewModel$slambda$slambda_2(this.gw4_1, this.jw4_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: l$ret$1: do { var this_0 = this.gw4_1.bpt_1; while (true) { var prevValue = this_0.t2(); var tmp_2 = this.gw4_1.npt().ant(strings_getInstance().zmd_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_2, true, CourseGroupSetEditViewModel$onClickSave$ref(this.gw4_1)); var tmp1_loadingState = Companion_getInstance_89().vpc_1; var nextValue = prevValue.npc(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.gw4_1.nw0_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ew1(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.gw4_1, completion); i.hw4_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.sw4_1 = $commitDelay; this.tw4_1 = $entity; this.uw4_1 = $this; this.vw4_1 = $key; this.ww4_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.sw4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.tw4_1 == null)) { this.hd_1 = 2; suspendResult = this.uw4_1.npu(this.uw4_1.xps_1, this.vw4_1, this.ww4_1, this.tw4_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.sw4_1, this.tw4_1, this.uw4_1, this.vw4_1, this.ww4_1, completion); i.xw4_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.kcz_1 = $groupNumber; return Unit_instance; }; } function CourseGroupSetEditViewModel$onChangeGroupAssignment$lambda_0($personUid) { return function (it) { return it.cd0_1.equals($personUid); }; } function CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda(this$0, $newState, resultContinuation) { this.gw5_1 = this$0; this.hw5_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.gw5_1.npu(this.gw5_1.xps_1, 'courseGroupMembers', ListSerializer(Companion_instance_43.a4r()), this.hw5_1.aw1_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.gw5_1, this.hw5_1, completion); i.iw5_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.kcz_1 = ($shuffledPersonUidList.x($it.cd0_1) % $totalGroups | 0) + 1 | 0; return Unit_instance; }; } function CourseGroupSetEditViewModel$onClickAssignRandomly$slambda(this$0, $newMemberList, resultContinuation) { this.rw5_1 = this$0; this.sw5_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.rw5_1.npu(this.rw5_1.xps_1, 'courseGroupMembers', ListSerializer(Companion_instance_43.a4r()), this.sw5_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.rw5_1, this.sw5_1, completion); i.tw5_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.cw6_1 = this$0; this.dw6_1 = $courseGroupSet; this.ew6_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.cw6_1.hpu(); suspendResult = withDoorTransactionAsync(tmp_0, VOID, CourseGroupSetEditViewModel$onClickSave$slambda$slambda_0(this.cw6_1, this.dw6_1, this.ew6_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this.dw6_1.n7y_1; Companion_getInstance_119(); this.cw6_1.xq1('CourseGroupSet', tmp_1, this.dw6_1, mapOf_0(to('clazzUid', this.cw6_1.pw0_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.cw6_1, this.dw6_1, this.ew6_1, completion); i.fw6_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.nw0_1 = MutableStateFlow(new CourseGroupSetEditUiState()); this.ow0_1 = asStateFlow(this.nw0_1); var tmp = this; Companion_getInstance_108(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.pw0_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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.' call var tmp0_title = this.yq2(strings_getInstance().bmt_1, strings_getInstance().cmt_1); var tmp1_loadingState = Companion_getInstance_89().upc_1; var nextValue = prevValue.npc(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.tpu(tmp_0, VOID, VOID, CourseGroupSetEditViewModel$slambda_2(this, null)); } protoOf(CourseGroupSetEditViewModel).gw6 = function (courseGroupSet) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.nw0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.zw0_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o7y_1; var tmp_0 = this.zq2(tmp, courseGroupSet == null ? null : courseGroupSet.o7y_1, prevValue.bw1_1); var tmp2_safe_receiver = prevValue.zw0_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.p7y_1; var nextValue = prevValue.ew1(courseGroupSet, VOID, tmp_0, this.zq2(tmp_1, courseGroupSet == null ? null : courseGroupSet.p7y_1, prevValue.cw1_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_44.a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this; var tmp_3 = this.cpu(); tmp_2.vq1_1 = launch(tmp_3, VOID, VOID, CourseGroupSetEditViewModel$onEntityChanged$slambda_0(commitDelay, courseGroupSet, this, key, serializer, null)); }; protoOf(CourseGroupSetEditViewModel).hw6 = function (personUid, groupNumber) { var tmp$ret$3; $l$block_0: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.nw0_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.aw1_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onChangeGroupAssignment..' call if (element.cd0_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.ad0_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.xjx(tmp); var nextValue = prevValue.ew1(VOID, replace_0(prevValue.aw1_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.cpu(); launch(tmp_1, VOID, VOID, CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda_0(this, newState, null)); }; protoOf(CourseGroupSetEditViewModel).iw6 = function () { var tmp0_safe_receiver = this.nw0_1.t2().zw0_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p7y_1; var totalGroups = tmp1_elvis_lhs == null ? 1 : tmp1_elvis_lhs; // Inline function 'kotlin.collections.map' call var this_0 = this.nw0_1.t2().aw1_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.cd0_1; destination.i1(tmp$ret$0); } var shuffledPersonUidList = shuffled(destination); // Inline function 'kotlin.collections.map' call var this_1 = this.nw0_1.t2().aw1_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.ad0_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.xjx(tmp); destination_0.i1(tmp$ret$3); } var newMemberList = destination_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.nw0_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onClickAssignRandomly.' call var nextValue = prevValue.ew1(VOID, newMemberList); if (this_2.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.cpu(); launch(tmp_0, VOID, VOID, CourseGroupSetEditViewModel$onClickAssignRandomly$slambda_0(this, newMemberList, null)); }; protoOf(CourseGroupSetEditViewModel).yr9 = function () { var tmp0_elvis_lhs = this.nw0_1.t2().zw0_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.nw0_1.t2().aw1_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.ad0_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.kcz_1 > courseGroupSet.p7y_1) { tmp$ret$4 = true; break $l$block_0; } } tmp$ret$4 = false; } var hasInvalidAssignments = tmp$ret$4; if (hasInvalidAssignments) { this.jpu().cpd(new Snack(this.npt().ant(strings_getInstance().vlt_1))); } // Inline function 'kotlin.text.isNullOrBlank' call var this_1 = courseGroupSet.o7y_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.nw0_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onClickSave.' call var nextValue = prevValue.ew1(VOID, VOID, this.npt().ant(strings_getInstance().sly_1)); if (this_2.y1k(prevValue, nextValue)) { break $l$block_1; } } } } if (courseGroupSet.p7y_1 < 1) { $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.nw0_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.ew1(VOID, VOID, VOID, this.npt().ant(strings_getInstance().omr_1)); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_2; } } } } if ((hasInvalidAssignments ? true : !(this.nw0_1.t2().cw1_1 == null)) ? true : !(this.nw0_1.t2().bw1_1 == null)) { return Unit_instance; } var tmp_1 = this.cpu(); 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.zw0_1 = courseGroupSet; this.aw1_1 = membersList; this.bw1_1 = courseTitleError; this.cw1_1 = numOfGroupsError; this.dw1_1 = fieldsEnabled; } protoOf(CourseGroupSetEditUiState).jw6 = function (courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled) { return new CourseGroupSetEditUiState(courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled); }; protoOf(CourseGroupSetEditUiState).ew1 = function (courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled, $super) { courseGroupSet = courseGroupSet === VOID ? this.zw0_1 : courseGroupSet; membersList = membersList === VOID ? this.aw1_1 : membersList; courseTitleError = courseTitleError === VOID ? this.bw1_1 : courseTitleError; numOfGroupsError = numOfGroupsError === VOID ? this.cw1_1 : numOfGroupsError; fieldsEnabled = fieldsEnabled === VOID ? this.dw1_1 : fieldsEnabled; return $super === VOID ? this.jw6(courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled) : $super.jw6.call(this, courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled); }; protoOf(CourseGroupSetEditUiState).toString = function () { return 'CourseGroupSetEditUiState(courseGroupSet=' + this.zw0_1 + ', membersList=' + this.aw1_1 + ', courseTitleError=' + this.bw1_1 + ', numOfGroupsError=' + this.cw1_1 + ', fieldsEnabled=' + this.dw1_1 + ')'; }; protoOf(CourseGroupSetEditUiState).hashCode = function () { var result = this.zw0_1 == null ? 0 : hashCode(this.zw0_1); result = imul(result, 31) + hashCode(this.aw1_1) | 0; result = imul(result, 31) + (this.bw1_1 == null ? 0 : getStringHashCode(this.bw1_1)) | 0; result = imul(result, 31) + (this.cw1_1 == null ? 0 : getStringHashCode(this.cw1_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.dw1_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.zw0_1, tmp0_other_with_cast.zw0_1)) return false; if (!equals(this.aw1_1, tmp0_other_with_cast.aw1_1)) return false; if (!(this.bw1_1 == tmp0_other_with_cast.bw1_1)) return false; if (!(this.cw1_1 == tmp0_other_with_cast.cw1_1)) return false; if (!(this.dw1_1 === tmp0_other_with_cast.dw1_1)) return false; return true; }; function CourseGroupSetListViewModel$slambda$lambda(this$0) { return function () { var tmp = this$0.hpu().b7f(); var tmp_0 = this$0.dpu(); PermissionFlags_getInstance(); return tmp.yde(tmp_0, this$0.kw7_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.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel...' call var tmp = Napier_getInstance(); tmp.r5d(VOID, VOID, CourseGroupSetListViewModel$slambda$lambda$lambda(visible)); var nextValue = prevValue.qw7(visible); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseGroupSetListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.zw7_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.zw7_1.kw7_1, this.zw7_1.fpu(), this.zw7_1.bpt_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.zw7_1, completion); i.aw8_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.jw8_1 = $this_launch; this.kw8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetListViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetListViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.jw8_1, VOID, VOID, CourseGroupSetListViewModel$slambda$slambda$slambda_0(this.kw8_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).y77 = function (completion) { return new CourseGroupSetListViewModel$slambda$slambda(this.jw8_1, this.kw8_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.w86($completion); }; l.$arity = 0; return l; } function Companion_151() { this.lw8_1 = 'CourseGroups'; } var Companion_instance_200; function Companion_getInstance_168() { return Companion_instance_200; } function CourseGroupSetListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.hpu().e7d().hd7(this$0.kw7_1, toQueryLikeParam(this$0.bpt_1.t2().fpc_1.upb_1), this$0.jq4_1.t2().pw7_1.spi_1); }; } function CourseGroupSetListViewModel$slambda(this$0, resultContinuation) { this.uw8_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.uw8_1); var tmp_1 = strings_getInstance().pmb_1; suspendResult = this.uw8_1.tq5(tmp_0, tmp_1, CourseGroupSetListViewModel$slambda$lambda_0(this.uw8_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.uw8_1, completion); i.vw8_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.ew9_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.ew9_1.jq4_1, CourseGroupSetListViewModel$slambda$slambda_0(this.fw9_1, this.ew9_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.ew9_1, completion); i.fw9_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_108(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.kw7_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; tmp_0.lw7_1 = CourseGroupSetListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel.' call var nextValue = prevValue.qw7(VOID, this.lw7_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bpt_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel.' call var nextValue_0 = prevValue_0.npc(VOID, VOID, VOID, true, VOID, VOID, VOID, this.sq5()); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_1 = this.cpu(); launch(tmp_1, VOID, VOID, CourseGroupSetListViewModel$slambda_0(this, null)); var tmp_2 = this.cpu(); launch(tmp_2, VOID, VOID, CourseGroupSetListViewModel$slambda_2(this, null)); } protoOf(CourseGroupSetListViewModel).dq5 = function (searchText) { this.lq4_1.i1h(new RefreshCommand()); }; protoOf(CourseGroupSetListViewModel).gw9 = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel.onSortOptionChanged.' call var nextValue = prevValue.qw7(VOID, VOID, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.lq4_1.i1h(new RefreshCommand()); }; protoOf(CourseGroupSetListViewModel).eq5 = function () { Companion_getInstance_108(); this.wq5('CourseGroupsEdit', mapOf_0(to('clazzUid', this.kw7_1.toString()))); }; protoOf(CourseGroupSetListViewModel).hw9 = function (entry) { var tmp = entry.n7y_1; Companion_getInstance_119(); this.yq5('CourseGroupSet', tmp, entry, mapOf_0(to('clazzUid', this.kw7_1.toString()))); }; function Companion_152() { Companion_instance_201 = this; var tmp = this; var tmp_0 = strings_getInstance().plv_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().plv_1; tmp.iw9_1 = listOf([tmp_1, new SortOrderOption(tmp_2, 2, false)]); } var Companion_instance_201; function Companion_getInstance_169() { if (Companion_instance_201 == null) new Companion_152(); return Companion_instance_201; } function CourseGroupSetListUiState$_init_$lambda_2d65m2() { return new EmptyPagingSource(); } function CourseGroupSetListUiState(showAddItem, courseGroupSets, sortOptions, sortOption) { Companion_getInstance_169(); 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_169().iw9_1 : sortOptions; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; this.mw7_1 = showAddItem; this.nw7_1 = courseGroupSets; this.ow7_1 = sortOptions; this.pw7_1 = sortOption; } protoOf(CourseGroupSetListUiState).jw9 = function (showAddItem, courseGroupSets, sortOptions, sortOption) { return new CourseGroupSetListUiState(showAddItem, courseGroupSets, sortOptions, sortOption); }; protoOf(CourseGroupSetListUiState).qw7 = function (showAddItem, courseGroupSets, sortOptions, sortOption, $super) { showAddItem = showAddItem === VOID ? this.mw7_1 : showAddItem; courseGroupSets = courseGroupSets === VOID ? this.nw7_1 : courseGroupSets; sortOptions = sortOptions === VOID ? this.ow7_1 : sortOptions; sortOption = sortOption === VOID ? this.pw7_1 : sortOption; return $super === VOID ? this.jw9(showAddItem, courseGroupSets, sortOptions, sortOption) : $super.jw9.call(this, showAddItem, courseGroupSets, sortOptions, sortOption); }; protoOf(CourseGroupSetListUiState).toString = function () { return 'CourseGroupSetListUiState(showAddItem=' + this.mw7_1 + ', courseGroupSets=' + this.nw7_1 + ', sortOptions=' + this.ow7_1 + ', sortOption=' + this.pw7_1 + ')'; }; protoOf(CourseGroupSetListUiState).hashCode = function () { var result = getBooleanHashCode(this.mw7_1); result = imul(result, 31) + hashCode(this.nw7_1) | 0; result = imul(result, 31) + hashCode(this.ow7_1) | 0; result = imul(result, 31) + this.pw7_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.mw7_1 === tmp0_other_with_cast.mw7_1)) return false; if (!equals(this.nw7_1, tmp0_other_with_cast.nw7_1)) return false; if (!equals(this.ow7_1, tmp0_other_with_cast.ow7_1)) return false; if (!this.pw7_1.equals(tmp0_other_with_cast.pw7_1)) return false; return true; }; function CourseTerminologyEditViewModel$slambda$slambda(this$0, resultContinuation) { this.sw9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$slambda$slambda).xqk = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.xqk(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.tw9_1.d7d(); var tmp_1; if (!this.sw9_1.wq1_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.uw9_1 = tmp_1; if (this.uw9_1 == null) { this.vw9_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.uw9_1.ze1(this.sw9_1.wq1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.vw9_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.vw9_1; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda).pn8 = function (it, completion) { var i = new CourseTerminologyEditViewModel$slambda$slambda(this.sw9_1, completion); i.tw9_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.xqk(it, $completion); }; l.$arity = 1; return l; } function CourseTerminologyEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.ewa_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$slambda$slambda_1).hwa = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda_1).z77 = function ($completion) { return this.hwa($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.fwa_1 = new CourseTerminology(); var tmp_1 = this; tmp_1.gwa_1 = this.fwa_1; this.hd_1 = 1; var tmp_2 = get_doorPrimaryKeyManager(this.ewa_1.fpu()); suspendResult = tmp_2.b62(450, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.gwa_1.z8f_1 = ARGUMENT; return this.fwa_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).y77 = function (completion) { return new CourseTerminologyEditViewModel$slambda$slambda_1(this.ewa_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.hwa($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.fwb_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel...' call var nextValue = prevValue.lwb(VOID, terminology, VOID, toTerminologyEntries(terminology, this$0.z4q(), this$0.npt())); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseTerminologyEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function Companion_153() { this.mwb_1 = 'CourseTerminologyEdit'; } var Companion_instance_202; function Companion_getInstance_170() { return Companion_instance_202; } function CourseTerminologyEditViewModel$slambda(this$0, resultContinuation) { this.vwb_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.xwb_1 = Companion_instance_34.a4r(); this.hd_1 = 1; var tmp_0 = CourseTerminologyEditViewModel$slambda$slambda_0(this.vwb_1, null); var tmp_1 = CourseTerminologyEditViewModel$slambda$slambda_2(this.vwb_1, null); suspendResult = this.vwb_1.rpu(this.xwb_1, VOID, VOID, tmp_0, tmp_1, CourseTerminologyEditViewModel$slambda$lambda(this.vwb_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.vwb_1.fwb_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.lwb(VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.vwb_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_2 = this.vwb_1.npt().ant(strings_getInstance().zmd_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_2, VOID, CourseTerminologyEditViewModel$onClickSave$ref(this.vwb_1)); var tmp1_loadingState = Companion_getInstance_89().vpc_1; var nextValue_0 = prevValue_0.npc(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.vwb_1, completion); i.wwb_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.gwc_1 = $commitDelay; this.hwc_1 = $entity; this.iwc_1 = $this; this.jwc_1 = $key; this.kwc_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.gwc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.hwc_1 == null)) { this.hd_1 = 2; suspendResult = this.iwc_1.npu(this.iwc_1.xps_1, this.jwc_1, this.kwc_1, this.hwc_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.gwc_1, this.hwc_1, this.iwc_1, this.jwc_1, this.kwc_1, completion); i.lwc_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.spe_1.equals($terminologyEntry.spe_1); }; } function CourseTerminologyEditViewModel$onTerminologyTermChanged$lambda_0($newTermList, this$0) { return function ($this$shallowCopy) { $this$shallowCopy.b8g_1 = encodeToStringMap($newTermList, this$0.z4q()); return Unit_instance; }; } function CourseTerminologyEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.uwc_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.uwc_1.fwb_1.t2().iwb_1; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.wwc_1 = tmp_1; this.hd_1 = 1; suspendResult = this.uwc_1.hpu().d7d().ae2(this.wwc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.uwc_1.fwb_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.lwb(VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.uwc_1.zq1(this.wwc_1); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.uwc_1, completion); i.vwc_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.fwb_1 = MutableStateFlow(new CourseTerminologyEditUiState()); this.gwb_1 = asStateFlow(this.fwb_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.' call var tmp0_title = this.yq2(strings_getInstance().vms_1, strings_getInstance().wms_1); var tmp1_loadingState = Companion_getInstance_89().upc_1; var nextValue = prevValue.npc(VOID, tmp1_loadingState, tmp0_title); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.cpu(); launch(tmp, VOID, VOID, CourseTerminologyEditViewModel$slambda_0(this, null)); } protoOf(CourseTerminologyEditViewModel).xwc = function (courseTerminology) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fwb_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.onEntityChanged.' call var nextValue = prevValue.lwb(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.a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver = this.vq1_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.cpu(); tmp.vq1_1 = launch(tmp_0, VOID, VOID, CourseTerminologyEditViewModel$onEntityChanged$slambda_0(commitDelay, courseTerminology, this, key, serializer, null)); }; protoOf(CourseTerminologyEditViewModel).ywc = function (terminologyEntry) { var tmp = this.fwb_1.t2().kwb_1; var newTermList = replace_0(tmp, terminologyEntry, CourseTerminologyEditViewModel$onTerminologyTermChanged$lambda(terminologyEntry)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fwb_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.onTerminologyTermChanged.' call var nextValue = prevValue.lwb(VOID, VOID, VOID, newTermList); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_safe_receiver = this.fwb_1.t2().iwb_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.xwc(tmp_0); }; protoOf(CourseTerminologyEditViewModel).yr9 = function () { if (!this.fwb_1.t2().jwb_1) return Unit_instance; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fwb_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.onClickSave.' call var nextValue = prevValue.lwb(VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.cpu(); 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.hwb_1 = titleError; this.iwb_1 = entity; this.jwb_1 = fieldsEnabled; this.kwb_1 = terminologyTermList; } protoOf(CourseTerminologyEditUiState).zwc = function (titleError, entity, fieldsEnabled, terminologyTermList) { return new CourseTerminologyEditUiState(titleError, entity, fieldsEnabled, terminologyTermList); }; protoOf(CourseTerminologyEditUiState).lwb = function (titleError, entity, fieldsEnabled, terminologyTermList, $super) { titleError = titleError === VOID ? this.hwb_1 : titleError; entity = entity === VOID ? this.iwb_1 : entity; fieldsEnabled = fieldsEnabled === VOID ? this.jwb_1 : fieldsEnabled; terminologyTermList = terminologyTermList === VOID ? this.kwb_1 : terminologyTermList; return $super === VOID ? this.zwc(titleError, entity, fieldsEnabled, terminologyTermList) : $super.zwc.call(this, titleError, entity, fieldsEnabled, terminologyTermList); }; protoOf(CourseTerminologyEditUiState).toString = function () { return 'CourseTerminologyEditUiState(titleError=' + this.hwb_1 + ', entity=' + this.iwb_1 + ', fieldsEnabled=' + this.jwb_1 + ', terminologyTermList=' + this.kwb_1 + ')'; }; protoOf(CourseTerminologyEditUiState).hashCode = function () { var result = this.hwb_1 == null ? 0 : getStringHashCode(this.hwb_1); result = imul(result, 31) + (this.iwb_1 == null ? 0 : hashCode(this.iwb_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.jwb_1) | 0; result = imul(result, 31) + hashCode(this.kwb_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.hwb_1 == tmp0_other_with_cast.hwb_1)) return false; if (!equals(this.iwb_1, tmp0_other_with_cast.iwb_1)) return false; if (!(this.jwb_1 === tmp0_other_with_cast.jwb_1)) return false; if (!equals(this.kwb_1, tmp0_other_with_cast.kwb_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.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.list.CourseTerminologyListViewModel...' call var nextValue = prevValue.cwd(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_154() { this.dwd_1 = 'CourseTerminologyList'; } var Companion_instance_203; function Companion_getInstance_171() { return Companion_instance_203; } function CourseTerminologyListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.hpu().d7d().we1(); }; } function CourseTerminologyListViewModel$slambda(this$0, resultContinuation) { this.mwd_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().tms_1; suspendResult = this.mwd_1.tq5(tmp_0, tmp_1, CourseTerminologyListViewModel$slambda$lambda_0(this.mwd_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.mwd_1, completion); i.nwd_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.owe_1 = CourseTerminologyListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.list.CourseTerminologyListViewModel.' call var nextValue = prevValue.npc(VOID, VOID, this.aq6(strings_getInstance().tms_1, strings_getInstance().ums_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.jq4_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.list.CourseTerminologyListViewModel.' call var nextValue_0 = prevValue_0.cwd(this.owe_1); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_0 = this.cpu(); launch(tmp_0, VOID, VOID, CourseTerminologyListViewModel$slambda_0(this, null)); } protoOf(CourseTerminologyListViewModel).eq5 = function () { this.xq5('CourseTerminologyEdit'); }; protoOf(CourseTerminologyListViewModel).pwe = function (entry) { this.zq5('CourseTerminologyEdit', entry.z8f_1, entry); }; protoOf(CourseTerminologyListViewModel).dq5 = 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.awd_1 = terminologyList; this.bwd_1 = showAddItemInList; } protoOf(CourseTerminologyListUiState).qwe = function (terminologyList, showAddItemInList) { return new CourseTerminologyListUiState(terminologyList, showAddItemInList); }; protoOf(CourseTerminologyListUiState).cwd = function (terminologyList, showAddItemInList, $super) { terminologyList = terminologyList === VOID ? this.awd_1 : terminologyList; showAddItemInList = showAddItemInList === VOID ? this.bwd_1 : showAddItemInList; return $super === VOID ? this.qwe(terminologyList, showAddItemInList) : $super.qwe.call(this, terminologyList, showAddItemInList); }; protoOf(CourseTerminologyListUiState).toString = function () { return 'CourseTerminologyListUiState(terminologyList=' + this.awd_1 + ', showAddItemInList=' + this.bwd_1 + ')'; }; protoOf(CourseTerminologyListUiState).hashCode = function () { var result = hashCode(this.awd_1); result = imul(result, 31) + getBooleanHashCode(this.bwd_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.awd_1, tmp0_other_with_cast.awd_1)) return false; if (!(this.bwd_1 === tmp0_other_with_cast.bwd_1)) return false; return true; }; function get_delItemContentTypeStringResource(_this__u8e3s4) { var tmp; var tmp_0; var tmp_1 = _this__u8e3s4.deb_1; if (tmp_1 === 7) { tmp_0 = _this__u8e3s4.heb_1; } else { tmp_0 = false; } if (tmp_0) { tmp = strings_getInstance().vmn_1; } else { var tmp_2 = _this__u8e3s4.deb_1; if (tmp_2 === 7) { tmp = strings_getInstance().amf_1; } else { tmp = null; } } return tmp; } function _get_restoreDeletedItemUseCase__7lscig($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.swf_1; restoreDeletedItemUseCase$factory_0(); return this_0.t2(); } function _get_deletePermanentlyUseCase__wdw610($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.twf_1; deletePermanentlyUseCase$factory_0(); return this_0.t2(); } function restoreItems($this, items) { var tmp = $this.cpu(); launch(tmp, VOID, VOID, DeletedItemListViewModel$restoreItems$slambda_0($this, items, null)); } function Companion_155() { this.uwf_1 = 'DeletedItems'; } var Companion_instance_204; function Companion_getInstance_172() { return Companion_instance_204; } function DeletedItemListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.hpu().z7e().wea(this$0.dpu(), false); }; } function DeletedItemListViewModel$onConfirmDeletePermanently$slambda(this$0, $itemsToDelete, resultContinuation) { this.dwg_1 = this$0; this.ewg_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.dwg_1).dol(this.ewg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.dwg_1.jpu().cpd(new Snack(this.dwg_1.npt().xve(plurals_getInstance().jn2_1, this.ewg_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().d5e('Exception deleting', e); this.dwg_1.jpu().cpd(new Snack(this.dwg_1.npt().ant(strings_getInstance().vlt_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.dwg_1, this.ewg_1, completion); i.fwg_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.owg_1 = this$0; this.pwg_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.owg_1).dol(this.pwg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.owg_1.jpu().cpd(new Snack(this.owg_1.npt().xve(plurals_getInstance().kn2_1, this.pwg_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.owg_1, this.pwg_1, completion); i.qwg_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.rwf_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.swf_1 = Instance(this_0, tmp$ret$0, null).n5c(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.twf_1 = Instance(this_1, tmp$ret$2, null).n5c(this, deletePermanentlyUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.jq4_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.' call var nextValue = prevValue.vwg(this.rwf_1); if (this_2.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.bpt_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.' call var nextValue_0 = prevValue_0.npc(VOID, VOID, this.npt().ant(strings_getInstance().umx_1)); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(DeletedItemListViewModel).dq5 = function (searchText) { }; protoOf(DeletedItemListViewModel).wwg = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.onDismissConfirmDialog.' call var nextValue = prevValue.vwg(VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(DeletedItemListViewModel).xwg = function () { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.getAndUpdate' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.onConfirmDeletePermanently.' call var nextValue = prevValue.vwg(VOID, false); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = prevValue; break $l$block; } } } var itemsToDelete = tmp$ret$1.uwg_1; var tmp = this.cpu(); launch(tmp, VOID, VOID, DeletedItemListViewModel$onConfirmDeletePermanently$slambda_0(this, itemsToDelete, null)); }; protoOf(DeletedItemListViewModel).ywg = function (item) { restoreItems(this, listOf_0(item)); }; protoOf(DeletedItemListViewModel).zwg = function (item) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_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.npt().xve(plurals_getInstance().ln2_1, 1); var nextValue = prevValue.vwg(VOID, true, tmp1_deleteConfirmText, tmp0_itemsToConfirmDeletion); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(DeletedItemListViewModel).eq5 = 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.rwg_1 = deletedItemsList; this.swg_1 = confirmDialogVisible; this.twg_1 = deleteConfirmText; this.uwg_1 = itemsToConfirmDeletion; } protoOf(DeletedItemListUiState).awh = function (deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion) { return new DeletedItemListUiState(deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion); }; protoOf(DeletedItemListUiState).vwg = function (deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion, $super) { deletedItemsList = deletedItemsList === VOID ? this.rwg_1 : deletedItemsList; confirmDialogVisible = confirmDialogVisible === VOID ? this.swg_1 : confirmDialogVisible; deleteConfirmText = deleteConfirmText === VOID ? this.twg_1 : deleteConfirmText; itemsToConfirmDeletion = itemsToConfirmDeletion === VOID ? this.uwg_1 : itemsToConfirmDeletion; return $super === VOID ? this.awh(deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion) : $super.awh.call(this, deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion); }; protoOf(DeletedItemListUiState).toString = function () { return 'DeletedItemListUiState(deletedItemsList=' + this.rwg_1 + ', confirmDialogVisible=' + this.swg_1 + ', deleteConfirmText=' + this.twg_1 + ', itemsToConfirmDeletion=' + this.uwg_1 + ')'; }; protoOf(DeletedItemListUiState).hashCode = function () { var result = hashCode(this.rwg_1); result = imul(result, 31) + getBooleanHashCode(this.swg_1) | 0; result = imul(result, 31) + (this.twg_1 == null ? 0 : getStringHashCode(this.twg_1)) | 0; result = imul(result, 31) + hashCode(this.uwg_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.rwg_1, tmp0_other_with_cast.rwg_1)) return false; if (!(this.swg_1 === tmp0_other_with_cast.swg_1)) return false; if (!(this.twg_1 == tmp0_other_with_cast.twg_1)) return false; if (!equals(this.uwg_1, tmp0_other_with_cast.uwg_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.eq5(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.mwi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda).kvr = function (it, $completion) { var tmp = this.lvr(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.kvr((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.mwi_1.jq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.twi(this.nwi_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).lvr = function (it, completion) { var i = new CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda(this.mwi_1, completion); i.nwi_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.kvr(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.cwj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda).os7 = function (permissionPair, $completion) { var tmp = this.ps7(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.os7(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.ewj_1 = this.dwj_1; this.fwj_1 = this.ewj_1.y6(); this.gwj_1 = this.ewj_1.z6(); if (this.fwj_1) { l$ret$1: do { var this_0 = this.cwj_1.bpt_1; while (true) { var prevValue = this_0.t2(); var tmp_0 = this.cwj_1.npt().ant(strings_getInstance().jmu_1); var tmp_1 = FabIcon_ADD_getInstance(); var nextValue = prevValue.npc(new FabUiState(true, tmp_0, tmp_1, CourseDiscussionDetailViewModel$onClickAdd$ref(this.cwj_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.cwj_1.jq4_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.twi(VOID, this.cwj_1.dwi_1, this.gwj_1, VOID, this.cwj_1.npt().ipb()); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.hd_1 = 1; var tmp_2 = this.cwj_1.hpu().c7d().zcf(this.cwj_1.bwi_1); var tmp_3 = CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda_0(this.cwj_1, null); suspendResult = tmp_2.z1b(new sam$kotlinx_coroutines_flow_FlowCollector$0_28(tmp_3), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { l$ret$5: do { var this_2 = this.cwj_1.bpt_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.npc(new FabUiState()); if (this_2.y1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); l$ret$7: do { var this_3 = this.cwj_1.jq4_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.twi(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).ps7 = function (permissionPair, completion) { var i = new CourseDiscussionDetailViewModel$slambda$slambda$slambda(this.cwj_1, completion); i.dwj_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.os7(permissionPair, $completion); }; l.$arity = 1; return l; } function CourseDiscussionDetailViewModel$slambda$slambda(this$0, resultContinuation) { this.pwj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.pwj_1.hpu().b7f(); var tmp_1 = this.pwj_1.dpu(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.zde(tmp_1, this.pwj_1.cwi_1, tmp_2, new Long(4, 0))); suspendResult = collectLatest(tmp_3, CourseDiscussionDetailViewModel$slambda$slambda$slambda_0(this.pwj_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).y77 = function (completion) { return new CourseDiscussionDetailViewModel$slambda$slambda(this.pwj_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.w86($completion); }; l.$arity = 0; return l; } function Companion_156() { this.qwj_1 = 'CourseDiscussion'; } var Companion_instance_205; function Companion_getInstance_173() { return Companion_instance_205; } function sam$kotlinx_coroutines_flow_FlowCollector$0_28(function_0) { this.rwj_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_28).t1d = function (value, $completion) { return this.rwj_1(value, $completion); }; function CourseDiscussionDetailViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.hpu().u7e().neg(this$0.bwi_1, false); }; } function CourseDiscussionDetailViewModel$slambda(this$0, resultContinuation) { this.awk_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.awk_1.jq4_1, CourseDiscussionDetailViewModel$slambda$slambda_0(this.awk_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.awk_1, completion); i.bwk_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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.courediscussiondetail.CourseDiscussionDetailViewModel..' call var nextValue = prevValue.npc(VOID, VOID, title); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseDiscussionDetailViewModel$onDeletePost$slambda(this$0, $post, resultContinuation) { this.kwk_1 = this$0; this.lwk_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.kwk_1.hpu().u7e().reg(this.lwk_1.geh_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.kwk_1.jpu().cpd(new Snack(this.kwk_1.npt().ant(strings_getInstance().qlu_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.kwk_1, this.lwk_1, completion); i.mwk_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_108(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.bwi_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; Companion_getInstance_119(); 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.cwi_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this; tmp_1.dwi_1 = CourseDiscussionDetailViewModel$pagingSourceFactory$lambda(this); var tmp_2 = this.cpu(); launch(tmp_2, VOID, VOID, CourseDiscussionDetailViewModel$slambda_0(this, null)); launchSetTitleFromClazzUid(this, this.cwi_1, CourseDiscussionDetailViewModel$lambda(this)); } protoOf(CourseDiscussionDetailViewModel).dq5 = function (searchText) { }; protoOf(CourseDiscussionDetailViewModel).eq5 = function () { Companion_getInstance_119(); var tmp = to('courseBlockUid', this.bwi_1.toString()); Companion_getInstance_119(); this.wq5('DiscussionPostEdit', mapOf([tmp, to('clazzUid', this.cwi_1.toString())])); }; protoOf(CourseDiscussionDetailViewModel).nwk = function (post) { Companion_getInstance_108(); var tmp = to('entityUid', post.geh_1.toString()); Companion_getInstance_119(); this.zps_1.fog('CourseDiscussionPost', mapOf([tmp, to('clazzUid', this.cwi_1.toString())])); }; protoOf(CourseDiscussionDetailViewModel).owk = function (post) { var tmp = this.cpu(); 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.dlp(), Companion_getInstance_9().clt()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.owi_1 = courseBlock; this.pwi_1 = posts; this.qwi_1 = showModerateOptions; this.rwi_1 = localDateTimeNow; this.swi_1 = dayOfWeekStrings; } protoOf(CourseDiscussionDetailUiState).pwk = function (courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings) { return new CourseDiscussionDetailUiState(courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(CourseDiscussionDetailUiState).twi = function (courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings, $super) { courseBlock = courseBlock === VOID ? this.owi_1 : courseBlock; posts = posts === VOID ? this.pwi_1 : posts; showModerateOptions = showModerateOptions === VOID ? this.qwi_1 : showModerateOptions; localDateTimeNow = localDateTimeNow === VOID ? this.rwi_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.swi_1 : dayOfWeekStrings; return $super === VOID ? this.pwk(courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings) : $super.pwk.call(this, courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(CourseDiscussionDetailUiState).toString = function () { return 'CourseDiscussionDetailUiState(courseBlock=' + this.owi_1 + ', posts=' + this.pwi_1 + ', showModerateOptions=' + this.qwi_1 + ', localDateTimeNow=' + this.rwi_1 + ', dayOfWeekStrings=' + this.swi_1 + ')'; }; protoOf(CourseDiscussionDetailUiState).hashCode = function () { var result = this.owi_1 == null ? 0 : this.owi_1.hashCode(); result = imul(result, 31) + hashCode(this.pwi_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.qwi_1) | 0; result = imul(result, 31) + this.rwi_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.swi_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.owi_1, tmp0_other_with_cast.owi_1)) return false; if (!equals(this.pwi_1, tmp0_other_with_cast.pwi_1)) return false; if (!(this.qwi_1 === tmp0_other_with_cast.qwi_1)) return false; if (!this.rwi_1.equals(tmp0_other_with_cast.rwi_1)) return false; if (!equals(this.swi_1, tmp0_other_with_cast.swi_1)) return false; return true; }; function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ywk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda).spg = function (result, $completion) { var tmp = this.tpg(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.spg(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.zwk_1.zpf_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.awl_1 = tmp_2; this.hd_1 = 1; suspendResult = submitReply(this.ywk_1, this.awl_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).tpg = function (result, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda(this.ywk_1, completion); i.zwk_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.spg(result, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.jwl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).aqj = function (postTitle, $completion) { var tmp = this.bqj(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.aqj((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.jwl_1.bpt_1; var tmp_0; if (!(this_0.t2().apc_1 == this.kwl_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.npc(VOID, VOID, this.kwl_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).bqj = function (postTitle, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this.jwl_1, completion); i.kwl_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.aqj(postTitle, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.twl_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.twl_1.gpx(this.twl_1.kpu(), 'replyTextResult'); var tmp_1 = DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_0(this.twl_1, null); suspendResult = tmp_0.z1b(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(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda(this.twl_1, completion); i.uwl_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.dwm_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.dwm_1.hpu().u7e().m8c(this.dwm_1.dpx_1); var tmp_1 = DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_2(this.dwm_1, null); suspendResult = tmp_0.z1b(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(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1).v1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1(this.dwm_1, completion); i.ewm_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.nwm_1 = this$0; this.owm_1 = $savedStateHandle; this.pwm_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda).os7 = function (permissionPair, $completion) { var tmp = this.ps7(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.os7(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.qwm_1; var hasViewPermission = tmp0_container.y6(); var hasModeratePermission = tmp0_container.z6(); if (hasViewPermission) { l$ret$1: do { var this_0 = this.nwm_1.own_1; while (true) { var prevValue = this_0.t2(); var tmp_0 = this.nwm_1.dpu(); var tmp_1 = this.nwm_1.bpu().rnj().en4_1.hk2(); var tmp0_safe_receiver = this.nwm_1.bpu().rnj().gn4_1; var nextValue = prevValue.cwo(this.nwm_1.nwn_1, tmp_0, tmp_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u96_1, VOID, hasModeratePermission); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp1_elvis_lhs = this.owm_1.ba('replyText'); this.nwm_1.qwn_1.x1k(tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); launch(this.pwm_1, VOID, VOID, DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_0(this.nwm_1, null)); launch(this.pwm_1, VOID, VOID, DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_2(this.nwm_1, null)); } else { l$ret$3: do { var this_1 = this.nwm_1.own_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_2 = DiscussionPostDetailViewModel$slambda$slambda$slambda$lambda; var tmp_3 = this.nwm_1.dpu(); var tmp_4 = this.nwm_1.bpu().rnj().en4_1.hk2(); var tmp0_safe_receiver_0 = this.nwm_1.bpu().rnj().gn4_1; var nextValue_0 = prevValue_0.cwo(tmp_2, tmp_3, tmp_4, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.u96_1, VOID, false); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); var tmp2_elvis_lhs = this.owm_1.ba('replyText'); this.nwm_1.qwn_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).ps7 = function (permissionPair, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda(this.nwm_1, this.owm_1, this.pwm_1, completion); i.qwm_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.os7(permissionPair, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda(this$0, $savedStateHandle, $this_launch, resultContinuation) { this.lwo_1 = this$0; this.mwo_1 = $savedStateHandle; this.nwo_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.lwo_1.hpu().b7f(); var tmp_1 = this.lwo_1.dpu(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.zde(tmp_1, this.lwo_1.twn_1, tmp_2, new Long(4, 0))); suspendResult = collectLatest(tmp_3, DiscussionPostDetailViewModel$slambda$slambda$slambda_0(this.lwo_1, this.mwo_1, this.nwo_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).y77 = function (completion) { return new DiscussionPostDetailViewModel$slambda$slambda(this.lwo_1, this.mwo_1, this.nwo_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.w86($completion); }; l.$arity = 0; return l; } function submitReply($this, replyText, $completion) { var tmp = new $submitReplyCOROUTINE$71($this, replyText, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_157() { this.ewp_1 = 'replyTextResult'; this.fwp_1 = 'replyText'; this.gwp_1 = 'CourseDiscussionPost'; } var Companion_instance_206; function Companion_getInstance_174() { return Companion_instance_206; } function sam$kotlinx_coroutines_flow_FlowCollector$0_29(function_0) { this.hwp_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_29).t1d = function (value, $completion) { return this.hwp_1(value, $completion); }; function DiscussionPostDetailViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.hpu().u7e().peg(this$0.dpx_1, false); }; } function DiscussionPostDetailViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.qwp_1 = this$0; this.rwp_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.qwp_1.own_1, DiscussionPostDetailViewModel$slambda$slambda_0(this.qwp_1, this.rwp_1, this.swp_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.qwp_1, this.rwp_1, completion); i.swp_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.bwq_1 = this$0; this.cwq_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.bwq_1.xps_1.app('replyText', this.cwq_1); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.bwq_1, this.cwq_1, completion); i.dwq_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.mwq_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.mwq_1, this.mwq_1.qwn_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.mwq_1, completion); i.nwq_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.wwq_1 = this$0; this.xwq_1 = $replyText; this.ywq_1 = $clazzAndBlockUids; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$submitReply$slambda).on8 = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$submitReply$slambda).he = function (p1, $completion) { return this.on8(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.wwq_1.hpu().u7e(); var this_0 = new DiscussionPost(); this_0.keh_1 = systemTimeInMillis(); this_0.heh_1 = this.wwq_1.dpx_1; this_0.jeh_1 = this.xwq_1; this_0.neh_1 = this.wwq_1.dpu(); this_0.oeh_1 = this.ywq_1.lcj_1; this_0.leh_1 = this.ywq_1.mcj_1; suspendResult = tmp_0.insertAsync(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.wwq_1.awr(''); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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).pn8 = function (it, completion) { var i = new DiscussionPostDetailViewModel$submitReply$slambda(this.wwq_1, this.xwq_1, this.ywq_1, completion); i.zwq_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.on8(it, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$onDeletePost$slambda(this$0, $post, resultContinuation) { this.jwr_1 = this$0; this.kwr_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.jwr_1.hpu().u7e().reg(this.kwr_1.geh_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.jwr_1.jpu().cpd(new Snack(this.jwr_1.npt().ant(strings_getInstance().qlu_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.jwr_1, this.kwr_1, completion); i.lwr_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$71(_this__u8e3s4, replyText, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wwo_1 = _this__u8e3s4; this.xwo_1 = replyText; } protoOf($submitReplyCOROUTINE$71).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.wwo_1.own_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.cwo(VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.wwo_1.epx(Companion_getInstance_89().upc_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.wwo_1.fpu().c7d().ecg(this.wwo_1.dpx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.awp_1 = suspendResult; var tmp_0 = this; tmp_0.bwp_1 = this.awp_1; if ((!(this.bwp_1 == null) ? !this.bwp_1.lcj_1.equals(new Long(0, 0)) : false) ? !this.bwp_1.mcj_1.equals(new Long(0, 0)) : false) { this.cwp_1 = this.bwp_1; this.hd_1 = 5; continue $sm; } else { this.hd_1 = 4; suspendResult = this.wwo_1.hpu().c7d().ecg(this.wwo_1.dpx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.cwp_1 = suspendResult; this.hd_1 = 5; continue $sm; case 5: this.dwp_1 = this.cwp_1; if ((this.dwp_1 == null ? true : this.dwp_1.mcj_1.equals(new Long(0, 0))) ? true : this.dwp_1.lcj_1.equals(new Long(0, 0))) { this.wwo_1.jpu().cpd(new Snack(this.wwo_1.npt().ant(strings_getInstance().vlt_1))); this.zwo_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.wwo_1.hpu(); suspendResult = withDoorTransactionAsync(tmp_1, VOID, DiscussionPostDetailViewModel$submitReply$slambda_0(this.wwo_1, this.xwo_1, this.dwp_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.ywo_1 = suspendResult; this.id_1 = 11; this.hd_1 = 9; continue $sm; case 8: this.id_1 = 11; this.wwo_1.epx(Companion_getInstance_89().vpc_1); l$ret$9: do { var this_1 = this.wwo_1.own_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.cwo(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.wwo_1.epx(Companion_getInstance_89().vpc_1); l$ret$11: do { var this_2 = this.wwo_1.own_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.cwo(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.wwo_1.epx(Companion_getInstance_89().vpc_1); l$ret$7: do { var this_3 = this.wwo_1.own_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.cwo(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.nwn_1 = DiscussionPostDetailViewModel$pagingSourceFactory$lambda(this); this.own_1 = MutableStateFlow(new DiscussionPostDetailUiState2()); this.pwn_1 = asStateFlow(this.own_1); this.qwn_1 = MutableStateFlow(''); this.rwn_1 = asStateFlow(this.qwn_1); this.swn_1 = null; var tmp_0 = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.twn_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_1 = this.cpu(); launch(tmp_1, VOID, VOID, DiscussionPostDetailViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(DiscussionPostDetailViewModel).awr = function (replyText) { this.qwn_1.x1k(replyText); var tmp0_safe_receiver = this.swn_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.cpu(); tmp.swn_1 = launch(tmp_0, VOID, VOID, DiscussionPostDetailViewModel$onChangeReplyText$slambda_0(this, replyText, null)); }; protoOf(DiscussionPostDetailViewModel).mwr = function () { var tmp = this.cpu(); launch(tmp, VOID, VOID, DiscussionPostDetailViewModel$onClickPostReply$slambda_0(this, null)); }; protoOf(DiscussionPostDetailViewModel).owk = function (post) { var tmp = this.cpu(); 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.dlp(), Companion_getInstance_9().clt()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.uwn_1 = discussionPosts; this.vwn_1 = loggedInPersonUid; this.wwn_1 = loggedInPersonName; this.xwn_1 = loggedInPersonPictureUri; this.ywn_1 = fieldsEnabled; this.zwn_1 = showModerateOptions; this.awo_1 = localDateTimeNow; this.bwo_1 = dayOfWeekStrings; } protoOf(DiscussionPostDetailUiState2).nwr = function (discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings) { return new DiscussionPostDetailUiState2(discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(DiscussionPostDetailUiState2).cwo = function (discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings, $super) { discussionPosts = discussionPosts === VOID ? this.uwn_1 : discussionPosts; loggedInPersonUid = loggedInPersonUid === VOID ? this.vwn_1 : loggedInPersonUid; loggedInPersonName = loggedInPersonName === VOID ? this.wwn_1 : loggedInPersonName; loggedInPersonPictureUri = loggedInPersonPictureUri === VOID ? this.xwn_1 : loggedInPersonPictureUri; fieldsEnabled = fieldsEnabled === VOID ? this.ywn_1 : fieldsEnabled; showModerateOptions = showModerateOptions === VOID ? this.zwn_1 : showModerateOptions; localDateTimeNow = localDateTimeNow === VOID ? this.awo_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.bwo_1 : dayOfWeekStrings; return $super === VOID ? this.nwr(discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings) : $super.nwr.call(this, discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(DiscussionPostDetailUiState2).toString = function () { return 'DiscussionPostDetailUiState2(discussionPosts=' + this.uwn_1 + ', loggedInPersonUid=' + this.vwn_1.toString() + ', loggedInPersonName=' + this.wwn_1 + ', loggedInPersonPictureUri=' + this.xwn_1 + ', fieldsEnabled=' + this.ywn_1 + ', showModerateOptions=' + this.zwn_1 + ', localDateTimeNow=' + this.awo_1 + ', dayOfWeekStrings=' + this.bwo_1 + ')'; }; protoOf(DiscussionPostDetailUiState2).hashCode = function () { var result = hashCode(this.uwn_1); result = imul(result, 31) + this.vwn_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.wwn_1) | 0; result = imul(result, 31) + (this.xwn_1 == null ? 0 : getStringHashCode(this.xwn_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.ywn_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.zwn_1) | 0; result = imul(result, 31) + this.awo_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.bwo_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.uwn_1, tmp0_other_with_cast.uwn_1)) return false; if (!this.vwn_1.equals(tmp0_other_with_cast.vwn_1)) return false; if (!(this.wwn_1 === tmp0_other_with_cast.wwn_1)) return false; if (!(this.xwn_1 == tmp0_other_with_cast.xwn_1)) return false; if (!(this.ywn_1 === tmp0_other_with_cast.ywn_1)) return false; if (!(this.zwn_1 === tmp0_other_with_cast.zwn_1)) return false; if (!this.awo_1.equals(tmp0_other_with_cast.awo_1)) return false; if (!equals(this.bwo_1, tmp0_other_with_cast.bwo_1)) return false; return true; }; function DiscussionPostEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.wwr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda).aws = function (it, $completion) { var tmp = this.pn8(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.aws(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.xwr_1.u7e(); var tmp_1; if (!this.wwr_1.wq1_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.ywr_1 = tmp_1; if (this.ywr_1 == null) { this.zwr_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.ywr_1.oeg(this.wwr_1.wq1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.zwr_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.zwr_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).pn8 = function (it, completion) { var i = new DiscussionPostEditViewModel$slambda$slambda$slambda(this.wwr_1, completion); i.xwr_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.aws(it, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.jws_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda_1).mws = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda_1).z77 = function ($completion) { return this.mws($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.kws_1 = new DiscussionPost(); var tmp_1 = this; tmp_1.lws_1 = this.kws_1; this.hd_1 = 1; var tmp_2 = get_doorPrimaryKeyManager(this.jws_1.fpu()); suspendResult = tmp_2.b62(132, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.lws_1.geh_1 = ARGUMENT; this.lws_1.leh_1 = _get_courseBlockUidArg__1bqljt(this.jws_1); this.lws_1.neh_1 = this.jws_1.bpu().lnk().yk9_1; this.lws_1.keh_1 = systemTimeInMillis(); return this.kws_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).y77 = function (completion) { return new DiscussionPostEditViewModel$slambda$slambda$slambda_1(this.jws_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.mws($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.kwt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.edit.DiscussionPostEditViewModel....' call var nextValue = prevValue.qwt(entityToDisplay); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function DiscussionPostEditViewModel$slambda$slambda(this$0, resultContinuation) { this.zwt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda$slambda).bwu = 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.bwu((!(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.a4r(); var tmp_1 = DiscussionPostEditViewModel$slambda$slambda$slambda_0(this.zwt_1, null); var tmp_2 = DiscussionPostEditViewModel$slambda$slambda$slambda_2(this.zwt_1, null); suspendResult = this.zwt_1.rpu(tmp_0, VOID, VOID, tmp_1, tmp_2, DiscussionPostEditViewModel$slambda$slambda$lambda(this.zwt_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.zwt_1, completion); i.awu_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.bwu($this$async, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function DiscussionPostEditViewModel$onClickSave$slambda$slambda(this$0, $post, resultContinuation) { this.kwu_1 = this$0; this.lwu_1 = $post; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$onClickSave$slambda$slambda).on8 = function (it, $completion) { var tmp = this.pn8(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.on8(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.kwu_1.hpu().u7e().qeg(this.lwu_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).pn8 = function (it, completion) { var i = new DiscussionPostEditViewModel$onClickSave$slambda$slambda(this.kwu_1, this.lwu_1, completion); i.mwu_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.on8(it, $completion); }; l.$arity = 1; return l; } function _get_discussionPostUid__impog9($this) { Companion_getInstance_108(); var tmp0_safe_receiver = $this.xps_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_119(); var tmp0_safe_receiver = $this.xps_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_158() { this.nwu_1 = 'DiscussionPostEdit'; } var Companion_instance_207; function Companion_getInstance_175() { return Companion_instance_207; } function DiscussionPostEditViewModel$slambda(this$0, resultContinuation) { this.wwu_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.xwu_1, VOID, VOID, DiscussionPostEditViewModel$slambda$slambda_0(this.wwu_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.wwu_1.kwt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.qwt(VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.wwu_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_0 = this.wwu_1.npt().ant(strings_getInstance().jmu_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_0, VOID, DiscussionPostEditViewModel$onClickSave$ref(this.wwu_1)); var tmp1_loadingState = Companion_getInstance_89().vpc_1; var nextValue_0 = prevValue_0.npc(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.wwu_1, completion); i.xwu_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.gwv_1 = $commitDelay; this.hwv_1 = $entity; this.iwv_1 = $this; this.jwv_1 = $key; this.kwv_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.gwv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.hwv_1 == null)) { this.hd_1 = 2; suspendResult = this.iwv_1.npu(this.iwv_1.xps_1, this.jwv_1, this.kwv_1, this.hwv_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.gwv_1, this.hwv_1, this.iwv_1, this.jwv_1, this.kwv_1, completion); i.lwv_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.uwv_1 = this$0; this.vwv_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.uwv_1.kwt_1.t2().owt_1 == null ? this.uwv_1.kwt_1.t2().pwt_1 == null : false) { this.hd_1 = 1; suspendResult = this.uwv_1.fpu().c7d().fcg(this.vwv_1.leh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 5; continue $sm; } case 1: this.xwv_1 = suspendResult; this.vwv_1.oeh_1 = this.xwv_1; if (this.vwv_1.oeh_1.equals(new Long(0, 0))) { this.hd_1 = 2; suspendResult = this.uwv_1.hpu().c7d().fcg(this.vwv_1.leh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.ywv_1 = suspendResult; this.vwv_1.oeh_1 = this.ywv_1; this.hd_1 = 3; continue $sm; case 3: this.hd_1 = 4; var tmp_0 = this.uwv_1.hpu(); suspendResult = withDoorTransactionAsync(tmp_0, VOID, DiscussionPostEditViewModel$onClickSave$slambda$slambda_0(this.uwv_1, this.vwv_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var tmp_1 = this.vwv_1.geh_1; var this_0 = LinkedHashMap_init_$Create$(); Companion_getInstance_119(); this.uwv_1.upu(this_0, 'clazzUid'); this.uwv_1.xq1('CourseDiscussionPost', tmp_1, this.vwv_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.uwv_1, this.vwv_1, completion); i.wwv_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.kwt_1 = MutableStateFlow(new DiscussionPostEditUiState()); this.lwt_1 = asStateFlow(this.kwt_1); this.epx(Companion_getInstance_89().upc_1); var title = _get_discussionPostUid__impog9(this).equals(new Long(0, 0)) ? this.npt().ant(strings_getInstance().imw_1) : this.npt().ant(strings_getInstance().lm6_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_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.cpu(); launch(tmp, VOID, VOID, DiscussionPostEditViewModel$slambda_0(this, null)); } protoOf(DiscussionPostEditViewModel).zwv = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kwt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.edit.DiscussionPostEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.mwt_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ieh_1; var tmp_0 = this.zq2(tmp, entity == null ? null : entity.ieh_1, prevValue.owt_1); var tmp2_safe_receiver = prevValue.mwt_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.jeh_1; var nextValue = prevValue.qwt(entity, VOID, tmp_0, this.zq2(tmp_1, entity == null ? null : entity.jeh_1, prevValue.pwt_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_45.a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this; var tmp_3 = this.cpu(); tmp_2.vq1_1 = launch(tmp_3, VOID, VOID, DiscussionPostEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(DiscussionPostEditViewModel).yr9 = function () { var tmp0_elvis_lhs = this.kwt_1.t2().mwt_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.kwt_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.ieh_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_0 = this.npt().ant(strings_getInstance().sly_1); } else { tmp_0 = null; } var tmp_1 = tmp_0; var tmp_2; // Inline function 'kotlin.text.isNullOrEmpty' call var this_2 = post.jeh_1; // Inline function 'kotlin.contracts.contract' call if (this_2 == null ? true : charSequenceLength(this_2) === 0) { tmp_2 = this.npt().ant(strings_getInstance().sly_1); } else { tmp_2 = null; } var nextValue = prevValue.qwt(VOID, VOID, tmp_1, tmp_2); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.cpu(); 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.mwt_1 = discussionPost; this.nwt_1 = fieldsEnabled; this.owt_1 = discussionPostTitleError; this.pwt_1 = discussionPostDescError; } protoOf(DiscussionPostEditUiState).aww = function (discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError) { return new DiscussionPostEditUiState(discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError); }; protoOf(DiscussionPostEditUiState).qwt = function (discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError, $super) { discussionPost = discussionPost === VOID ? this.mwt_1 : discussionPost; fieldsEnabled = fieldsEnabled === VOID ? this.nwt_1 : fieldsEnabled; discussionPostTitleError = discussionPostTitleError === VOID ? this.owt_1 : discussionPostTitleError; discussionPostDescError = discussionPostDescError === VOID ? this.pwt_1 : discussionPostDescError; return $super === VOID ? this.aww(discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError) : $super.aww.call(this, discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError); }; protoOf(DiscussionPostEditUiState).toString = function () { return 'DiscussionPostEditUiState(discussionPost=' + this.mwt_1 + ', fieldsEnabled=' + this.nwt_1 + ', discussionPostTitleError=' + this.owt_1 + ', discussionPostDescError=' + this.pwt_1 + ')'; }; protoOf(DiscussionPostEditUiState).hashCode = function () { var result = this.mwt_1 == null ? 0 : hashCode(this.mwt_1); result = imul(result, 31) + getBooleanHashCode(this.nwt_1) | 0; result = imul(result, 31) + (this.owt_1 == null ? 0 : getStringHashCode(this.owt_1)) | 0; result = imul(result, 31) + (this.pwt_1 == null ? 0 : getStringHashCode(this.pwt_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.mwt_1, tmp0_other_with_cast.mwt_1)) return false; if (!(this.nwt_1 === tmp0_other_with_cast.nwt_1)) return false; if (!(this.owt_1 == tmp0_other_with_cast.owt_1)) return false; if (!(this.pwt_1 == tmp0_other_with_cast.pwt_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.jno_1; } else { tmp = _this__u8e3s4.jno_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.fwx_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.....' call var nextValue = prevValue.twx(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.cwy_1 = this$0; this.dwy_1 = $cevOpenUri; this.ewy_1 = $manifest; this.fwy_1 = $cevManifestUrlObj; CoroutineImpl.call(this, resultContinuation); } protoOf(EpubContentViewModel$slambda$slambda$slambda).pwy = function (it, $completion) { var tmp = this.qwy(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.pwy(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.hwy_1 = _get_httpClient__2ty1zc_2(this.cwy_1); var tmp_1 = this; tmp_1.iwy_1 = invoke$urlToLoad(this.gwy_1, this.dwy_1, this.ewy_1, this.cwy_1, this.fwy_1); var tmp_2 = this; tmp_2.jwy_1 = this.hwy_1; var tmp_3 = this; tmp_3.kwy_1 = this.jwy_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.iwy_1); tmp_4.lwy_1 = this_0; this.lwy_1.j38_1 = Companion_getInstance().y2w_1; var tmp_5 = this; tmp_5.mwy_1 = this.kwy_1; var tmp_6 = this; tmp_6.nwy_1 = this.lwy_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.nwy_1, this.mwy_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.owy_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsDecodedText(this.owy_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).qwy = function (it, completion) { var i = new EpubContentViewModel$slambda$slambda$slambda(this.cwy_1, this.dwy_1, this.ewy_1, this.fwy_1, completion); i.gwy_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.pwy(it, $completion); }; l.$arity = 1; return l; } function invoke$urlToLoad_0(_this__u8e3s4, this$0, cevManifestUrlObj) { var tmp; if (this$0.bwx_1) { tmp = _this__u8e3s4.nnq_1; } else { tmp = cevManifestUrlObj.boc(_this__u8e3s4.fnq_1).toString(); } return tmp; } function EpubContentViewModel$slambda$slambda($manifest, $cevOpenUri, this$0, $opfBaseUrl, $argTocString, $cevManifestUrlObj, resultContinuation) { this.zwy_1 = $manifest; this.awz_1 = $cevOpenUri; this.bwz_1 = this$0; this.cwz_1 = $opfBaseUrl; this.dwz_1 = $argTocString; this.ewz_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.gwz_1 = requireEntryByUri(this.zwy_1, this.awz_1); var tmp_0 = this; tmp_0.hwz_1 = _get_httpClient__2ty1zc_2(this.bwz_1); var tmp_1 = this; tmp_1.iwz_1 = invoke$urlToLoad_0(this.gwz_1, this.bwz_1, this.ewz_1); var tmp_2 = this; tmp_2.jwz_1 = this.hwz_1; var tmp_3 = this; tmp_3.kwz_1 = this.jwz_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.iwz_1); tmp_4.lwz_1 = this_0; this.lwz_1.j38_1 = Companion_getInstance().y2w_1; var tmp_5 = this; tmp_5.mwz_1 = this.kwz_1; var tmp_6 = this; tmp_6.nwz_1 = this.lwz_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.nwz_1, this.mwz_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.owz_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsDecodedText(this.owz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.pwz_1 = suspendResult; this.qwz_1 = _get_xml__e6jxp6(this.bwz_1).f45(Companion_instance_75.a4r(), this.pwz_1); var tmp_7 = this; var this_1 = this.qwz_1.nnp_1.sno_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.ino_1, element); } tmp_7.rwz_1 = destination; var tmp_8 = this; var this_2 = this.qwz_1.onp_1.rnp_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.rwz_1.q(element_0.ono_1); var tmp_9; if (tmp0_safe_receiver == null) { tmp_9 = null; } else { tmp_9 = this.cwz_1.boc(tmp0_safe_receiver.jno_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.swz_1 = destination_0; var tmp_10 = this; var tmp0_safe_receiver_1 = this.qwz_1.pnp(); var tmp_11; if (tmp0_safe_receiver_1 == null) { tmp_11 = null; } else { tmp_11 = this.cwz_1.boc(tmp0_safe_receiver_1.jno_1); } var tmp1_safe_receiver_0 = tmp_11; tmp_10.twz_1 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.toString(); l$ret$1: do { var this_3 = this.bwz_1.fwx_1; while (true) { var prevValue = this_3.t2(); var tmp0_safe_receiver_2 = firstOrNull(this.qwz_1.mnp_1.cnp_1); var nextValue = prevValue.twx(VOID, this.swz_1, VOID, VOID, VOID, this.twz_1, tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.bno_1); if (this_3.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_4 = this.bwz_1.bpt_1; while (true) { var prevValue_0 = this_4.t2(); var tmp0_safe_receiver_3 = firstOrNull(this.qwz_1.mnp_1.anp_1); var tmp1_elvis_lhs = tmp0_safe_receiver_3 == null ? null : tmp0_safe_receiver_3.fno_1; var tmp_12 = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp2_elvis_lhs = this.dwz_1; var tmp_13 = tmp2_elvis_lhs == null ? this.bwz_1.npt().ant(strings_getInstance().rmw_1) : tmp2_elvis_lhs; var nextValue_0 = prevValue_0.npc(VOID, VOID, tmp_12, VOID, VOID, VOID, VOID, VOID, VOID, listOf_0(new OverflowItem(tmp_13, EpubContentViewModel$slambda$slambda$lambda(this.bwz_1)))); if (this_4.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); var tmp_14 = this.bwz_1; var tmp2_safe_receiver = this.qwz_1.qnp(); var tmp_15; if (tmp2_safe_receiver == null) { tmp_15 = null; } else { tmp_15 = this.cwz_1.boc(tmp2_safe_receiver.jno_1).toString(); } tmp_14.kwx_1 = tmp_15; this.hd_1 = 3; suspendResult = this.bwz_1.awx_1.tom(this.qwz_1, EpubContentViewModel$slambda$slambda$slambda_0(this.bwz_1, this.awz_1, this.zwy_1, this.ewz_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.bwz_1.fwx_1; while (true) { var prevValue_1 = this_5.t2(); var nextValue_1 = prevValue_1.twx(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.zwy_1, this.awz_1, this.bwz_1, this.cwz_1, this.dwz_1, this.ewz_1, completion); i.fwz_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.dwx_1; httpClient$factory_6(); return this_0.t2(); } function _get_xml__e6jxp6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ewx_1; xml$factory_0(); return this_0.t2(); } function _get_openExternalLinkUseCase__ku5z07_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hwx_1; openExternalLinkUseCase$factory_2(); return this_0.t2(); } function Companion_159() { this.uwz_1 = 'manifestUrl'; this.vwz_1 = 'cevUri'; this.wwz_1 = 'navigationVisible'; this.xwz_1 = 'tocString'; this.ywz_1 = 'xapiStatementsUrl'; this.zwz_1 = 'EpubContent'; } var Companion_instance_208; function Companion_getInstance_176() { return Companion_instance_208; } function EpubContentViewModel$slambda($argManifestUrl, $argCevOpenUri, this$0, $argTocString, resultContinuation) { this.ix0_1 = $argManifestUrl; this.jx0_1 = $argCevOpenUri; this.kx0_1 = this$0; this.lx0_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.ix0_1 == null) ? !(this.jx0_1 == null) : false) { var tmp_0 = this; tmp_0.nx0_1 = to(this.ix0_1, this.jx0_1); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.kx0_1.hpu().v7e().ybk(this.kx0_1.cwx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.ox0_1 = suspendResult; var tmp_1 = this; var tmp_2; if (this.ox0_1 == null) { return Unit_instance; } else { tmp_2 = this.ox0_1; } tmp_1.px0_1 = tmp_2; var tmp_3 = this; var tmp1_elvis_lhs = this.px0_1.dat_1; var tmp_4; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_4 = tmp1_elvis_lhs; } tmp_3.qx0_1 = tmp_4; var tmp_5 = this; var tmp2_elvis_lhs = this.px0_1.bat_1; var tmp_6; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp_6 = tmp2_elvis_lhs; } tmp_5.rx0_1 = tmp_6; this.nx0_1 = to(this.qx0_1, this.rx0_1); this.hd_1 = 2; continue $sm; case 2: this.sx0_1 = this.nx0_1; this.tx0_1 = this.sx0_1.y6(); this.ux0_1 = this.sx0_1.z6(); this.vx0_1 = UrlKmp(this.tx0_1); this.wx0_1 = this.vx0_1.boc(this.ux0_1); var tmp_7 = this; tmp_7.xx0_1 = this.kx0_1.z4q(); var tmp_8 = this; tmp_8.yx0_1 = _get_httpClient__2ty1zc_2(this.kx0_1); var tmp_9 = this; tmp_9.zx0_1 = this.tx0_1; var tmp_10 = this; tmp_10.ax1_1 = this.yx0_1; var tmp_11 = this; tmp_11.bx1_1 = this.ax1_1; var tmp_12 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.zx0_1); tmp_12.cx1_1 = this_0; this.cx1_1.j38_1 = Companion_getInstance().y2w_1; var tmp_13 = this; tmp_13.dx1_1 = this.bx1_1; var tmp_14 = this; tmp_14.ex1_1 = this.cx1_1; this.hd_1 = 3; suspendResult = (new HttpStatement(this.ex1_1, this.dx1_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.fx1_1 = suspendResult; this.hd_1 = 4; suspendResult = bodyAsDecodedText(this.fx1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.gx1_1 = suspendResult; var tmp_15 = this; var this_1 = this.xx0_1.g45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_15.hx1_1 = this.xx0_1.f45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.gx1_1); this.hd_1 = 5; var tmp_16 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_16, EpubContentViewModel$slambda$slambda_0(this.hx1_1, this.ux0_1, this.kx0_1, this.wx0_1, this.lx0_1, this.vx0_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.ix0_1, this.jx0_1, this.kx0_1, this.lx0_1, completion); i.mx0_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).s57(); // 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.q57(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.awx_1 = getEpubTableOfContentsUseCase; this.bwx_1 = useBodyDataUrls; var tmp_2 = this; Companion_getInstance_108(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_2.cwx_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.dwx_1 = Instance(this, tmp$ret$2, null).n5c(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.ewx_1 = Instance(this, tmp$ret$4, null).n5c(this, xml$factory()); this.fwx_1 = MutableStateFlow(new EpubContentUiState(this.cwx_1)); this.gwx_1 = asStateFlow(this.fwx_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.hwx_1 = Instance(this, tmp$ret$6, null).n5c(this, openExternalLinkUseCase$factory_1()); this.iwx_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.jwx_1 = asSharedFlow(this.iwx_1); this.kwx_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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.' call var nextValue = prevValue.npc(VOID, VOID, VOID, argNavigationVisible, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_9 = this.cpu(); launch(tmp_9, VOID, VOID, EpubContentViewModel$slambda_0(argManifestUrl, argCevOpenUri, this, argTocString, null)); } protoOf(EpubContentViewModel).ix1 = function () { var langCodeVal = this.fwx_1.t2().rwx_1; var titleVal = this.bpt_1.t2().apc_1; var tmp; if (!(langCodeVal == null) ? !(titleVal == null) : false) { tmp = new TitleAndLangCode(titleVal, langCodeVal); } else { tmp = null; } return tmp; }; protoOf(EpubContentViewModel).jx1 = function (baseUrl, href) { var url = UrlKmp(baseUrl).boc(href); var urlStr = url.toString(); var hashIndex = indexOf_0(urlStr, '#'); var urlWithoutHash = substringBefore_0(urlStr, '#'); var indexInSpine = this.fwx_1.t2().mwx_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.iwx_1.i1h(new EpubScrollCommand(indexInSpine, tmp)); } else { _get_openExternalLinkUseCase__ku5z07_0(this).ooq(url.toString(), LinkTarget_BLANK_getInstance()); } }; protoOf(EpubContentViewModel).kx1 = function (tocItem) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fwx_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onClickTocItem.' call var nextValue = prevValue.twx(VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_elvis_lhs = this.kwx_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var baseHref = tmp; var tmp1_elvis_lhs = tocItem.oom_1; var tmp_0; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_0 = tmp1_elvis_lhs; } var itemUrl = tmp_0; this.jx1(baseHref, itemUrl); }; protoOf(EpubContentViewModel).lx1 = function (tocItem) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fwx_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onClickToggleTocItem.' call var tmp; if (prevValue.pwx_1.a1(tocItem.mom_1)) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_1 = prevValue.pwx_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.mom_1)) { destination.i1(element); } } tmp = toSet(destination); } else { tmp = plus_2(prevValue.pwx_1, tocItem.mom_1); } var nextValue = prevValue.twx(VOID, VOID, VOID, VOID, tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(EpubContentViewModel).mx1 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fwx_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onDismissTableOfContentsDrawer.' call var nextValue = prevValue.twx(VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(EpubContentViewModel).nx1 = function (index) { var spineSize = this.fwx_1.t2().mwx_1.u(); if (spineSize <= 0) return Unit_instance; if (index === (spineSize - 1 | 0)) { this.hp9(); } else { this.gp9(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.lwx_1 = contentEntryVersionUid; this.mwx_1 = spineUrls; this.nwx_1 = tableOfContents; this.owx_1 = tableOfContentsOpen; this.pwx_1 = collapsedTocUids; this.qwx_1 = coverImageUrl; this.rwx_1 = langCode; var tmp = this; // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.nwx_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.pwx_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.nx2(element_0)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (!tmp$ret$0) { destination.i1(element); } } tmp.swx_1 = destination; } protoOf(EpubContentUiState).ox2 = function (contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode) { return new EpubContentUiState(contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode); }; protoOf(EpubContentUiState).twx = function (contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode, $super) { contentEntryVersionUid = contentEntryVersionUid === VOID ? this.lwx_1 : contentEntryVersionUid; spineUrls = spineUrls === VOID ? this.mwx_1 : spineUrls; tableOfContents = tableOfContents === VOID ? this.nwx_1 : tableOfContents; tableOfContentsOpen = tableOfContentsOpen === VOID ? this.owx_1 : tableOfContentsOpen; collapsedTocUids = collapsedTocUids === VOID ? this.pwx_1 : collapsedTocUids; coverImageUrl = coverImageUrl === VOID ? this.qwx_1 : coverImageUrl; langCode = langCode === VOID ? this.rwx_1 : langCode; return $super === VOID ? this.ox2(contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode) : $super.ox2.call(this, contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode); }; protoOf(EpubContentUiState).toString = function () { return 'EpubContentUiState(contentEntryVersionUid=' + this.lwx_1.toString() + ', spineUrls=' + this.mwx_1 + ', tableOfContents=' + this.nwx_1 + ', tableOfContentsOpen=' + this.owx_1 + ', collapsedTocUids=' + this.pwx_1 + ', coverImageUrl=' + this.qwx_1 + ', langCode=' + this.rwx_1 + ')'; }; protoOf(EpubContentUiState).hashCode = function () { var result = this.lwx_1.hashCode(); result = imul(result, 31) + hashCode(this.mwx_1) | 0; result = imul(result, 31) + hashCode(this.nwx_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.owx_1) | 0; result = imul(result, 31) + hashCode(this.pwx_1) | 0; result = imul(result, 31) + (this.qwx_1 == null ? 0 : getStringHashCode(this.qwx_1)) | 0; result = imul(result, 31) + (this.rwx_1 == null ? 0 : getStringHashCode(this.rwx_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.lwx_1.equals(tmp0_other_with_cast.lwx_1)) return false; if (!equals(this.mwx_1, tmp0_other_with_cast.mwx_1)) return false; if (!equals(this.nwx_1, tmp0_other_with_cast.nwx_1)) return false; if (!(this.owx_1 === tmp0_other_with_cast.owx_1)) return false; if (!equals(this.pwx_1, tmp0_other_with_cast.pwx_1)) return false; if (!(this.qwx_1 == tmp0_other_with_cast.qwx_1)) return false; if (!(this.rwx_1 == tmp0_other_with_cast.rwx_1)) return false; return true; }; function EpubScrollCommand(spineIndex, hash) { hash = hash === VOID ? null : hash; this.px2_1 = spineIndex; this.qx2_1 = hash; } protoOf(EpubScrollCommand).toString = function () { return 'EpubScrollCommand(spineIndex=' + this.px2_1 + ', hash=' + this.qx2_1 + ')'; }; protoOf(EpubScrollCommand).hashCode = function () { var result = this.px2_1; result = imul(result, 31) + (this.qx2_1 == null ? 0 : getStringHashCode(this.qx2_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.px2_1 === tmp0_other_with_cast.px2_1)) return false; if (!(this.qx2_1 == tmp0_other_with_cast.qx2_1)) return false; return true; }; function EpubTocItem(uid, label, href, children, parentUids, indentLevel) { parentUids = parentUids === VOID ? emptySet() : parentUids; indentLevel = indentLevel === VOID ? 0 : indentLevel; this.mom_1 = uid; this.nom_1 = label; this.oom_1 = href; this.pom_1 = children; this.qom_1 = parentUids; this.rom_1 = indentLevel; var tmp = this; // Inline function 'kotlin.collections.isNotEmpty' call tmp.som_1 = !this.pom_1.c1(); } protoOf(EpubTocItem).nx2 = function (uid) { return this.qom_1.a1(uid); }; protoOf(EpubTocItem).toString = function () { return 'EpubTocItem(uid=' + this.mom_1 + ', label=' + this.nom_1 + ', href=' + this.oom_1 + ', children=' + this.pom_1 + ', parentUids=' + this.qom_1 + ', indentLevel=' + this.rom_1 + ')'; }; protoOf(EpubTocItem).hashCode = function () { var result = this.mom_1; result = imul(result, 31) + getStringHashCode(this.nom_1) | 0; result = imul(result, 31) + (this.oom_1 == null ? 0 : getStringHashCode(this.oom_1)) | 0; result = imul(result, 31) + hashCode(this.pom_1) | 0; result = imul(result, 31) + hashCode(this.qom_1) | 0; result = imul(result, 31) + this.rom_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.mom_1 === tmp0_other_with_cast.mom_1)) return false; if (!(this.nom_1 === tmp0_other_with_cast.nom_1)) return false; if (!(this.oom_1 == tmp0_other_with_cast.oom_1)) return false; if (!equals(this.pom_1, tmp0_other_with_cast.pom_1)) return false; if (!equals(this.qom_1, tmp0_other_with_cast.qom_1)) return false; if (!(this.rom_1 === tmp0_other_with_cast.rom_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_160() { this.rx2_1 = 'Error'; } var Companion_instance_209; function Companion_getInstance_177() { return Companion_instance_209; } function LoginViewModel$getCredentials$slambda$lambda($credentialResult) { return function () { return 'Error occurred: ' + $credentialResult.sx2_1; }; } function LoginViewModel$getCredentials$slambda$lambda_0($e) { return function () { return 'Error occurred: ' + $e.message; }; } function _get_impl__d88w17($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.sx3_1; impl$factory_0(); return this_0.t2(); } function _get_httpClient__2ty1zc_3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.tx3_1; httpClient$factory_8(); return this_0.t2(); } function _get_apiUrlConfig__mldllg_3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ux3_1; apiUrlConfig$factory_8(); return this_0.t2(); } function _get_setLanguageUseCase__st7nci_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wx3_1; setLanguageUseCase$factory_2(); return this_0.t2(); } function _get_languagesConfig__hebcss($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xx3_1; languagesConfig$factory_0(); return this_0.t2(); } function _get_getVersionUseCase__n7x57g_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yx3_1; getVersionUseCase$factory_2(); return this_0.t2(); } function _get_getShowPoweredByUseCase__5l0p0e_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zx3_1; getShowPoweredByUseCase$factory_2(); return this_0.t2(); } function onSiteVerified($this, site) { $this.vx3_1 = site; $this.epx(Companion_getInstance_89().vpc_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.ox3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onSiteVerified.' call var tmp0_connectAsGuestVisible = site.ohe_1; var nextValue = prevValue.px4(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.x5d(VOID, VOID, LoginViewModel$goToNextDestAfterLoginOrGuestSelected$lambda($this)); if (person.a96_1) { var tmp_0 = $this; Companion_getInstance_158(); tmp_0.qx3_1 = 'ContentEntryListHome'; } $this.aq3($this.zps_1, appendSelectedAccount($this.qx3_1, person.s95_1, new LearningSpace($this.rx3_1)), goOptions); } function getCredentials($this) { // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.di.on' call var this_0 = $this.n56(); var context = new LearningSpace($this.rx3_1); var trigger = this_0.q56(); // 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.u56(tmp$ret$0, context); var tmp$ret$2 = On(this_0, tmp$ret$1, trigger); var tmp_1 = get_direct(tmp$ret$2).s57(); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(GetCredentialUseCase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); var credentialUseCase = tmp_1.r57(tmp$ret$3, null); var tmp_3 = $this.cpu(); launch(tmp_3, VOID, VOID, LoginViewModel$getCredentials$slambda_0(credentialUseCase, $this, null)); } function Companion_161() { this.qx4_1 = 'Login'; } var Companion_instance_210; function Companion_getInstance_178() { return Companion_instance_210; } function LoginViewModel$slambda(this$0, resultContinuation) { this.zx4_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.zx4_1.vx3_1 == null)) { this.hd_1 = 6; continue $sm; } this.id_1 = 3; this.hd_1 = 2; suspendResult = verifySite(_get_httpClient__2ty1zc_3(this.zx4_1), this.zx4_1.rx3_1, new Long(10000, 0), this.zx4_1.z4q(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.bx5_1 = suspendResult; onSiteVerified(this.zx4_1, this.bx5_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.cx5_1 = this.kd_1; Napier_getInstance().z5d('Could not load site object for ' + this.zx4_1.rx3_1, this.cx5_1); l$ret$1: do { var this_0 = this.zx4_1.ox3_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.px4(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _get_impl__d88w17(this.zx4_1).ant(strings_getInstance().flu_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.zx4_1, completion); i.ax5_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.qx3_1; }; } function LoginViewModel$onClickLogin$slambda(this$0, $username, $password, resultContinuation) { this.lx5_1 = this$0; this.mx5_1 = $username; this.nx5_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 = 6; this.px5_1 = null; this.hd_1 = 1; continue $sm; case 1: this.id_1 = 5; this.id_1 = 4; this.hd_1 = 2; var tmp_0 = this.lx5_1.bpu(); var this_0 = this.mx5_1; var tmp_1 = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); var this_1 = this.nx5_1; var tmp_2 = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())); var tmp_3 = this.lx5_1.rx3_1; Companion_getInstance_108(); var tmp0_safe_receiver = this.lx5_1.xps_1.ba('maxDob'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); suspendResult = tmp_0.xnk(tmp_1, tmp_2, tmp_3, tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs, this.lx5_1.ax4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.rx5_1 = suspendResult; this.hd_1 = 3; var tmp_4 = this.lx5_1.bpu(); var this_2 = this.mx5_1; suspendResult = tmp_4.qnk(toString(trim(isCharSequence(this_2) ? this_2 : THROW_CCE())), this.rx5_1.yk9_1, get_doorIdentityHashCode(this.lx5_1.n56()).toString(), systemTimeInMillis(), this.lx5_1.rx3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var tmp_5 = this; goToNextDestAfterLoginOrGuestSelected(this.lx5_1, this.rx5_1.gka()); tmp_5.qx5_1 = Unit_instance; this.id_1 = 6; this.hd_1 = 7; continue $sm; case 4: this.id_1 = 5; var tmp_6 = this.kd_1; if (tmp_6 instanceof AdultAccountRequiredException) { var e = this.kd_1; var tmp_7 = this; this.px5_1 = _get_impl__d88w17(this.lx5_1).ant(strings_getInstance().wmp_1); tmp_7.qx5_1 = Unit_instance; this.id_1 = 6; this.hd_1 = 7; continue $sm; } else { var tmp_8 = this.kd_1; if (tmp_8 instanceof UnauthorizedException) { var e_0 = this.kd_1; var tmp_9 = this; this.px5_1 = _get_impl__d88w17(this.lx5_1).ant(strings_getInstance().elu_1); tmp_9.qx5_1 = Unit_instance; this.id_1 = 6; this.hd_1 = 7; continue $sm; } else { var tmp_10 = this.kd_1; if (tmp_10 instanceof ConsentNotGrantedException) { var e_1 = this.kd_1; var tmp_11 = this; this.px5_1 = _get_impl__d88w17(this.lx5_1).ant(strings_getInstance().vmp_1); tmp_11.qx5_1 = Unit_instance; this.id_1 = 6; this.hd_1 = 7; continue $sm; } else { var tmp_12 = this.kd_1; if (tmp_12 instanceof Exception) { var e_2 = this.kd_1; var tmp_13 = this; this.px5_1 = _get_impl__d88w17(this.lx5_1).ant(strings_getInstance().flu_1); tmp_13.qx5_1 = Unit_instance; this.id_1 = 6; this.hd_1 = 7; continue $sm; } else { throw this.kd_1; } } } } case 5: this.id_1 = 6; var t = this.kd_1; this.lx5_1.epx(Companion_getInstance_89().vpc_1); l$ret$3: do { var this_3 = this.lx5_1.ox3_1; while (true) { var prevValue = this_3.t2(); var nextValue = prevValue.px4(VOID, VOID, true, VOID, VOID, VOID, VOID, VOID, this.px5_1); if (this_3.y1k(prevValue, nextValue)) { break l$ret$3; } } } while (false); throw t; case 6: throw this.kd_1; case 7: this.id_1 = 6; this.lx5_1.epx(Companion_getInstance_89().vpc_1); l$ret$5: do { var this_4 = this.lx5_1.ox3_1; while (true) { var prevValue_0 = this_4.t2(); var nextValue_0 = prevValue_0.px4(VOID, VOID, true, VOID, VOID, VOID, VOID, VOID, this.px5_1); if (this_4.y1k(prevValue_0, nextValue_0)) { break l$ret$5; } } } while (false); return Unit_instance; } } catch ($p) { var e_3 = $p; if (this.id_1 === 6) { 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.lx5_1, this.mx5_1, this.nx5_1, completion); i.ox5_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.ax6_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.ax6_1.bpu().ynk(this.ax6_1.rx3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var guestPerson = suspendResult; goToNextDestAfterLoginOrGuestSelected(this.ax6_1, guestPerson.en4_1); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.ax6_1, completion); i.bx6_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($credentialUseCase, this$0, resultContinuation) { this.kx6_1 = $credentialUseCase; this.lx6_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 = 6; this.id_1 = 5; this.nx6_1 = this.kx6_1; if (this.nx6_1 == null) { this.ox6_1 = null; this.hd_1 = 4; continue $sm; } else { var tmp_0 = this; tmp_0.px6_1 = this.nx6_1; var tmp_1 = this; tmp_1.qx6_1 = this.px6_1; this.hd_1 = 1; suspendResult = this.qx6_1.woq(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.rx6_1 = suspendResult; var tmp_2 = this.rx6_1; if (tmp_2 instanceof PasskeyCredentialResult) { this.hd_1 = 2; suspendResult = this.lx6_1.bpu().wnk(this.rx6_1.xx6_1, this.lx6_1.rx3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_3 = this.rx6_1; if (tmp_3 instanceof PasswordCredentialResult) { var tmp0_safe_receiver = this.rx6_1.sx6_1; if (tmp0_safe_receiver == null) null; else { this.lx6_1.ux6(tmp0_safe_receiver); } var tmp1_safe_receiver = this.rx6_1.tx6_1; if (tmp1_safe_receiver == null) null; else { this.lx6_1.vx6(tmp1_safe_receiver); } this.lx6_1.wx6(); this.hd_1 = 3; continue $sm; } else { var tmp_4 = this.rx6_1; if (tmp_4 instanceof Error_1) { var tmp_5 = Napier_getInstance(); tmp_5.f5e(VOID, VOID, LoginViewModel$getCredentials$slambda$lambda(this.rx6_1)); this.hd_1 = 3; continue $sm; } else { this.hd_1 = 3; continue $sm; } } } case 2: var account = suspendResult; goToNextDestAfterLoginOrGuestSelected(this.lx6_1, account.gka()); this.hd_1 = 3; continue $sm; case 3: this.ox6_1 = Unit_instance; this.hd_1 = 4; continue $sm; case 4: this.id_1 = 6; this.hd_1 = 7; continue $sm; case 5: this.id_1 = 6; var tmp_6 = this.kd_1; if (tmp_6 instanceof Exception) { var e = this.kd_1; var tmp_7 = Napier_getInstance(); tmp_7.f5e(VOID, VOID, LoginViewModel$getCredentials$slambda$lambda_0(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(LoginViewModel$getCredentials$slambda).v1m = function ($this$launch, completion) { var i = new LoginViewModel$getCredentials$slambda(this.kx6_1, this.lx6_1, completion); i.mx6_1 = $this$launch; return i; }; function LoginViewModel$getCredentials$slambda_0($credentialUseCase, this$0, resultContinuation) { var i = new LoginViewModel$getCredentials$slambda($credentialUseCase, 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.ox3_1 = MutableStateFlow(new LoginUiState()); this.px3_1 = asStateFlow(this.ox3_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.sx3_1 = Instance(this, tmp$ret$0, null).n5c(this, impl$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(HttpClient), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.tx3_1 = Instance(this, tmp$ret$2, null).n5c(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.ux3_1 = Instance(this, tmp$ret$4, null).n5c(this, apiUrlConfig$factory_7()); this.vx3_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.wx3_1 = Instance(this, tmp$ret$6, null).n5c(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.xx3_1 = Instance(this, tmp$ret$8, null).n5c(this, languagesConfig$factory()); 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.yx3_1 = InstanceOrNull(this, tmp$ret$10, null).n5c(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.zx3_1 = InstanceOrNull(this, tmp$ret$12, null).n5c(this, getShowPoweredByUseCase$factory_1()); var tmp_13 = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('noSessionChange'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver); tmp_13.ax4_1 = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; var tmp_14 = this; Companion_getInstance_108(); var tmp0_elvis_lhs = savedStateHandle.ba('next'); var tmp_15; if (tmp0_elvis_lhs == null) { Companion_getInstance_132(); tmp_15 = 'CourseListHome'; } else { tmp_15 = tmp0_elvis_lhs; } tmp_14.qx3_1 = tmp_15; var tmp_16 = this; Companion_getInstance_108(); var tmp1_elvis_lhs_0 = savedStateHandle.ba('learningSpaceUrl'); var tmp2_elvis_lhs = tmp1_elvis_lhs_0 == null ? _get_apiUrlConfig__mldllg_3(this).hnk_1 : tmp1_elvis_lhs_0; tmp_16.rx3_1 = tmp2_elvis_lhs == null ? 'http://localhost' : tmp2_elvis_lhs; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ox3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.' call var tmp_17 = this.npt().ant(strings_getInstance().imx_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.xom(); var tmp_18 = tmp_17 + (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.vom_1); Companion_getInstance_108(); var tmp_19 = savedStateHandle.ba('intMsg'); var tmp_20 = _get_languagesConfig__hebcss(this).ape(this.npt()); var tmp_21 = _get_languagesConfig__hebcss(this).bpe(this.npt()); var tmp2_safe_receiver = _get_getShowPoweredByUseCase__5l0p0e_0(this); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.xom(); var nextValue = prevValue.px4(VOID, VOID, VOID, VOID, VOID, tmp_18, VOID, tmp_19, VOID, tmp_20, tmp_21, VOID, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } Companion_getInstance_201(); if (savedStateHandle.ba('personalAccount') === 'true') { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.ox3_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.' call var nextValue_0 = prevValue_0.px4(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(this).ant(strings_getInstance().nlt_1); var baseAppUiState = new AppUiState(VOID, VOID, tmp3_title, false, VOID, VOID, false); this.rx3_1 = requirePostfix(this.rx3_1, '/'); Companion_getInstance_108(); var siteJsonStr = savedStateHandle.ba('site'); if (!(siteJsonStr == null)) { this.bpt_1.x1k(baseAppUiState); // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call var this_2 = this.z4q(); // Inline function 'kotlinx.serialization.serializer' call var this_3 = this_2.g45(); // Inline function 'kotlinx.serialization.internal.cast' call var this_4 = serializer(this_3, createKType(getKClass(Site), arrayOf([]), false)); var tmp$ret$19 = isInterface(this_4, KSerializer) ? this_4 : THROW_CCE(); var tmp$ret$20 = this_2.f45(tmp$ret$19, siteJsonStr); onSiteVerified(this, tmp$ret$20); } else { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_5 = this.ox3_1; while (true) { var prevValue_1 = this_5.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.' call var nextValue_1 = prevValue_1.px4(VOID, VOID, false); if (this_5.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } this.bpt_1.x1k(baseAppUiState.npc(VOID, Companion_getInstance_89().upc_1)); var tmp_22 = this.cpu(); launch(tmp_22, VOID, VOID, LoginViewModel$slambda_0(this, null)); } getCredentials(this); } protoOf(LoginViewModel).ux6 = function (username) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ox3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onUsernameChanged.' call var nextValue = prevValue.px4(username); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(LoginViewModel).vx6 = function (password) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ox3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onPasswordChanged.' call var nextValue = prevValue.px4(VOID, password); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(LoginViewModel).wx6 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ox3_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.bx4_1; var tmp0_username = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())); // Inline function 'kotlin.text.trim' call var this_2 = prevValue.cx4_1; var tmp1_password = toString(trim(isCharSequence(this_2) ? this_2 : THROW_CCE())); var nextValue = prevValue.px4(tmp0_username, tmp1_password, false, null, null); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var username = this.ox3_1.t2().bx4_1; var password = this.ox3_1.t2().cx4_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) { this.epx(Companion_getInstance_89().upc_1); var tmp_0 = this.cpu(); launch(tmp_0, VOID, VOID, LoginViewModel$onClickLogin$slambda_0(this, username, password, null)); } else { this.epx(Companion_getInstance_89().vpc_1); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.ox3_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onClickLogin.' call var tmp_1; // Inline function 'kotlin.text.isEmpty' call var this_4 = prevValue_0.bx4_1; if (charSequenceLength(this_4) === 0) { tmp_1 = _get_impl__d88w17(this).ant(strings_getInstance().sly_1); } else { tmp_1 = null; } var tmp_2 = tmp_1; var tmp_3; // Inline function 'kotlin.text.isEmpty' call var this_5 = prevValue_0.cx4_1; if (charSequenceLength(this_5) === 0) { tmp_3 = _get_impl__d88w17(this).ant(strings_getInstance().sly_1); } else { tmp_3 = null; } var nextValue_0 = prevValue_0.px4(VOID, VOID, true, tmp_2, tmp_3); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } }; protoOf(LoginViewModel).yx6 = function (uiLanguage) { if (!uiLanguage.equals(this.ox3_1.t2().kx4_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_108(); this.upu(this_0, 'next'); Companion_getInstance_108(); this.upu(this_0, 'learningSpaceUrl'); Companion_getInstance_108(); this.upu(this_0, 'site'); var tmp$ret$2 = this_0.f3(); var result = tmp.aoq(uiLanguage, 'Login', this.zps_1, tmp$ret$2); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.ox3_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onChangeLanguage.' call var nextValue = prevValue.px4(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, uiLanguage, VOID, result.zop_1); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } } }; protoOf(LoginViewModel).zx6 = function () { var tmp = this.cpu(); 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.bx4_1 = username; this.cx4_1 = password; this.dx4_1 = fieldsEnabled; this.ex4_1 = usernameError; this.fx4_1 = passwordError; this.gx4_1 = versionInfo; this.hx4_1 = connectAsGuestVisible; this.ix4_1 = loginIntentMessage; this.jx4_1 = errorMessage; this.kx4_1 = currentLanguage; this.lx4_1 = languageList; this.mx4_1 = showWaitForRestart; this.nx4_1 = showPoweredBy; this.ox4_1 = isPersonalAccount; } protoOf(LoginUiState).ax7 = 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).px4 = function (username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount, $super) { username = username === VOID ? this.bx4_1 : username; password = password === VOID ? this.cx4_1 : password; fieldsEnabled = fieldsEnabled === VOID ? this.dx4_1 : fieldsEnabled; usernameError = usernameError === VOID ? this.ex4_1 : usernameError; passwordError = passwordError === VOID ? this.fx4_1 : passwordError; versionInfo = versionInfo === VOID ? this.gx4_1 : versionInfo; connectAsGuestVisible = connectAsGuestVisible === VOID ? this.hx4_1 : connectAsGuestVisible; loginIntentMessage = loginIntentMessage === VOID ? this.ix4_1 : loginIntentMessage; errorMessage = errorMessage === VOID ? this.jx4_1 : errorMessage; currentLanguage = currentLanguage === VOID ? this.kx4_1 : currentLanguage; languageList = languageList === VOID ? this.lx4_1 : languageList; showWaitForRestart = showWaitForRestart === VOID ? this.mx4_1 : showWaitForRestart; showPoweredBy = showPoweredBy === VOID ? this.nx4_1 : showPoweredBy; isPersonalAccount = isPersonalAccount === VOID ? this.ox4_1 : isPersonalAccount; return $super === VOID ? this.ax7(username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount) : $super.ax7.call(this, username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount); }; protoOf(LoginUiState).toString = function () { return 'LoginUiState(username=' + this.bx4_1 + ', password=' + this.cx4_1 + ', fieldsEnabled=' + this.dx4_1 + ', usernameError=' + this.ex4_1 + ', passwordError=' + this.fx4_1 + ', versionInfo=' + this.gx4_1 + ', connectAsGuestVisible=' + this.hx4_1 + ', loginIntentMessage=' + this.ix4_1 + ', errorMessage=' + this.jx4_1 + ', currentLanguage=' + this.kx4_1 + ', languageList=' + this.lx4_1 + ', showWaitForRestart=' + this.mx4_1 + ', showPoweredBy=' + this.nx4_1 + ', isPersonalAccount=' + this.ox4_1 + ')'; }; protoOf(LoginUiState).hashCode = function () { var result = getStringHashCode(this.bx4_1); result = imul(result, 31) + getStringHashCode(this.cx4_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.dx4_1) | 0; result = imul(result, 31) + (this.ex4_1 == null ? 0 : getStringHashCode(this.ex4_1)) | 0; result = imul(result, 31) + (this.fx4_1 == null ? 0 : getStringHashCode(this.fx4_1)) | 0; result = imul(result, 31) + getStringHashCode(this.gx4_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.hx4_1) | 0; result = imul(result, 31) + (this.ix4_1 == null ? 0 : getStringHashCode(this.ix4_1)) | 0; result = imul(result, 31) + (this.jx4_1 == null ? 0 : getStringHashCode(this.jx4_1)) | 0; result = imul(result, 31) + this.kx4_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.lx4_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.mx4_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.nx4_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ox4_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.bx4_1 === tmp0_other_with_cast.bx4_1)) return false; if (!(this.cx4_1 === tmp0_other_with_cast.cx4_1)) return false; if (!(this.dx4_1 === tmp0_other_with_cast.dx4_1)) return false; if (!(this.ex4_1 == tmp0_other_with_cast.ex4_1)) return false; if (!(this.fx4_1 == tmp0_other_with_cast.fx4_1)) return false; if (!(this.gx4_1 === tmp0_other_with_cast.gx4_1)) return false; if (!(this.hx4_1 === tmp0_other_with_cast.hx4_1)) return false; if (!(this.ix4_1 == tmp0_other_with_cast.ix4_1)) return false; if (!(this.jx4_1 == tmp0_other_with_cast.jx4_1)) return false; if (!this.kx4_1.equals(tmp0_other_with_cast.kx4_1)) return false; if (!equals(this.lx4_1, tmp0_other_with_cast.lx4_1)) return false; if (!(this.mx4_1 === tmp0_other_with_cast.mx4_1)) return false; if (!(this.nx4_1 === tmp0_other_with_cast.nx4_1)) return false; if (!(this.ox4_1 === tmp0_other_with_cast.ox4_1)) return false; return true; }; function impl$factory() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17(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 impl$factory_0() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17(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 daysUntil_0(_this__u8e3s4, other) { return daysUntil(Companion_getInstance_6().kls(_this__u8e3s4.ofg_1), Companion_getInstance_6().kls(other.ofg_1), Companion_getInstance_9().clt()); } function Companion_162() { Companion_instance_211 = this; this.bx7_1 = 'ConversationList'; this.cx7_1 = 'ConversationListHome'; this.dx7_1 = listOf(['ConversationList', 'ConversationListHome']); } var Companion_instance_211; function Companion_getInstance_179() { if (Companion_instance_211 == null) new Companion_162(); return Companion_instance_211; } function ConversationListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.hpu().s7e().uff(toQueryLikeParam(this$0.bpt_1.t2().fpc_1.upb_1), this$0.dpu()); }; } function ConversationListViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.eq5(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function ConversationListViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_179(); destinationName = destinationName === VOID ? 'ConversationList' : destinationName; UstadListViewModel.call(this, di, savedStateHandle, new ConversationListUiState(), destinationName); var tmp = this; tmp.ex8_1 = ConversationListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_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.npt().ant(get_dayStringResource(element)); result.s(element, tmp$ret$0); } var tmp1_conversations = this.ex8_1; var nextValue = prevValue.kx8(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.bpt_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.conversationlist.ConversationListViewModel.' call var tmp0_searchState = this.sq5(); var tmp1_title = this.aq6(strings_getInstance().hmt_1, strings_getInstance().emw_1); var tmp_0 = this.npt().ant(strings_getInstance().imt_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.npc(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).dq5 = function (searchText) { this.lq4_1.i1h(new RefreshCommand()); }; protoOf(ConversationListViewModel).eq5 = function () { Companion_getInstance_193(); var tmp = to('goToOnPersonSelected', 'MessageList'); Companion_getInstance_108(); var tmp_0 = to('listMode', ListViewMode_PICKER_getInstance().xpp_1); Companion_getInstance_193(); var tmp_1 = to('excludeAlreadySelectedList', this.dpu().toString()); Companion_getInstance_193(); this.zps_1.fog('People', mapOf([tmp, tmp_0, tmp_1, to('popUpToOnPersonSelected', 'People')])); }; protoOf(ConversationListViewModel).lx8 = function (entry) { Companion_getInstance_108(); var tmp0_safe_receiver = entry.qfh_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s95_1; this.zps_1.fog('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.dlp(), Companion_getInstance_9().clt()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.fx8_1 = conversations; this.gx8_1 = sortOptions; this.hx8_1 = showAddItem; this.ix8_1 = localDateTimeNow; this.jx8_1 = dayOfWeekStrings; } protoOf(ConversationListUiState).mx8 = function (conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings) { return new ConversationListUiState(conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings); }; protoOf(ConversationListUiState).kx8 = function (conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings, $super) { conversations = conversations === VOID ? this.fx8_1 : conversations; sortOptions = sortOptions === VOID ? this.gx8_1 : sortOptions; showAddItem = showAddItem === VOID ? this.hx8_1 : showAddItem; localDateTimeNow = localDateTimeNow === VOID ? this.ix8_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.jx8_1 : dayOfWeekStrings; return $super === VOID ? this.mx8(conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings) : $super.mx8.call(this, conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings); }; protoOf(ConversationListUiState).toString = function () { return 'ConversationListUiState(conversations=' + this.fx8_1 + ', sortOptions=' + this.gx8_1 + ', showAddItem=' + this.hx8_1 + ', localDateTimeNow=' + this.ix8_1 + ', dayOfWeekStrings=' + this.jx8_1 + ')'; }; protoOf(ConversationListUiState).hashCode = function () { var result = hashCode(this.fx8_1); result = imul(result, 31) + hashCode(this.gx8_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.hx8_1) | 0; result = imul(result, 31) + this.ix8_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.jx8_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.fx8_1, tmp0_other_with_cast.fx8_1)) return false; if (!equals(this.gx8_1, tmp0_other_with_cast.gx8_1)) return false; if (!(this.hx8_1 === tmp0_other_with_cast.hx8_1)) return false; if (!this.ix8_1.equals(tmp0_other_with_cast.ix8_1)) return false; if (!equals(this.jx8_1, tmp0_other_with_cast.jx8_1)) return false; return true; }; function MessageListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.vx8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$slambda$slambda$slambda).tnw = function (it, $completion) { var tmp = this.unw(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.tnw((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.vx8_1.bpt_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.wx8_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cg2_1; var tmp_0 = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp2_safe_receiver = this.wx8_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.dg2_1; var nextValue = prevValue.npc(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).unw = function (it, completion) { var i = new MessageListViewModel$slambda$slambda$slambda(this.vx8_1, completion); i.wx8_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.tnw(it, $completion); }; l.$arity = 1; return l; } function MessageListViewModel$slambda$slambda(this$0, resultContinuation) { this.fx9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(MessageListViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.fx9_1.hpu().a7d().tfx(this.fx9_1.gxa_1); var tmp_1 = MessageListViewModel$slambda$slambda$slambda_0(this.fx9_1, null); suspendResult = tmp_0.z1b(new sam$kotlinx_coroutines_flow_FlowCollector$0_30(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).y77 = function (completion) { return new MessageListViewModel$slambda$slambda(this.fx9_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.w86($completion); }; l.$arity = 0; return l; } function _get_ustadAccountManager__el9prc_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hxa_1; ustadAccountManager$factory_2(); return this_0.t2(); } function _get_showSocialWarningUseCase__ft8jc6_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ixa_1; showSocialWarningUseCase$factory_2(); return this_0.t2(); } function _get_dismissSocialWarningUseCase__st8mv5_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jxa_1; dismissSocialWarningUseCase$factory_2(); return this_0.t2(); } function _get_openExternalLinkUseCase__ku5z07_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kxa_1; openExternalLinkUseCase$factory_4(); return this_0.t2(); } function Companion_163() { this.mxa_1 = 'MessageList'; } var Companion_instance_212; function Companion_getInstance_180() { return Companion_instance_212; } function sam$kotlinx_coroutines_flow_FlowCollector$0_30(function_0) { this.nxa_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_30).t1d = function (value, $completion) { return this.nxa_1(value, $completion); }; function MessageListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.hpu().s7e().tff(this$0.dpu(), this$0.gxa_1); }; } function MessageListViewModel$slambda(this$0, resultContinuation) { this.wxa_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.wxa_1.jq4_1, MessageListViewModel$slambda$slambda_0(this.wxa_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.wxa_1, completion); i.xxa_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.gxb_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.gxb_1).kob(toString_0(_get_ustadAccountManager__el9prc_0(this.gxb_1).rnj().en4_1.t95_1)); l$ret$1: do { var this_0 = this.gxb_1.jq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.oxb(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.gxb_1, completion); i.hxb_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.xxb_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.xxb_1.hpu().s7e(); var tmp0_messageSenderPersonUid = this.xxb_1.dpu(); var this_0 = this.xxb_1.jq4_1.t2().kxb_1; var tmp1_messageText = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); var tmp2_messageToPersonUid = this.xxb_1.gxa_1; var tmp3_messageTimestamp = systemTimeInMillis(); suspendResult = tmp_0.vff(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.xxb_1.jq4_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.oxb(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.xxb_1, completion); i.yxb_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_108(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.gxa_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.hxa_1 = Instance(di, tmp$ret$0, null).n5c(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.ixa_1 = Instance(di, tmp$ret$2, null).n5c(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.jxa_1 = Instance(di, tmp$ret$4, null).n5c(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.kxa_1 = Instance(di, tmp$ret$6, null).n5c(this, openExternalLinkUseCase$factory_3()); var tmp_8 = this; tmp_8.lxa_1 = MessageListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.messagelist.MessageListViewModel.' call var nextValue = prevValue.npc(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.jq4_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.npt().ant(get_dayStringResource(element)); result.s(element, tmp$ret$10); } var tmp1_messages = this.lxa_1; var tmp2_activePersonUid = this.dpu(); var tmp3_showSocialWarning = _get_showSocialWarningUseCase__ft8jc6_0(this).xnr(toString_0(_get_ustadAccountManager__el9prc_0(this).rnj().en4_1.t95_1)); var nextValue_0 = prevValue_0.oxb(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.cpu(); launch(tmp_9, VOID, VOID, MessageListViewModel$slambda_0(this, null)); } protoOf(MessageListViewModel).ksv = function () { var tmp = this.cpu(); launch(tmp, VOID, VOID, MessageListViewModel$onWarningDismiss$slambda_0(this, null)); }; protoOf(MessageListViewModel).dq5 = function (searchText) { // Inline function 'kotlin.TODO' call var reason = 'Not yet implemented'; throw new NotImplementedError('An operation is not implemented: ' + reason); }; protoOf(MessageListViewModel).eq5 = function () { }; protoOf(MessageListViewModel).zxb = function (text) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.messagelist.MessageListViewModel.onChangeNewMessageText.' call var nextValue = prevValue.oxb(VOID, VOID, text); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(MessageListViewModel).axc = function () { var tmp = this.cpu(); 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.dlp(), Companion_getInstance_9().clt()) : localDateTimeNow; showSocialWarning = showSocialWarning === VOID ? true : showSocialWarning; this.ixb_1 = messages; this.jxb_1 = activePersonUid; this.kxb_1 = newMessageText; this.lxb_1 = dayOfWeekStrings; this.mxb_1 = localDateTimeNow; this.nxb_1 = showSocialWarning; } protoOf(MessageListUiState).bxc = function (messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning) { return new MessageListUiState(messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning); }; protoOf(MessageListUiState).oxb = function (messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning, $super) { messages = messages === VOID ? this.ixb_1 : messages; activePersonUid = activePersonUid === VOID ? this.jxb_1 : activePersonUid; newMessageText = newMessageText === VOID ? this.kxb_1 : newMessageText; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.lxb_1 : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? this.mxb_1 : localDateTimeNow; showSocialWarning = showSocialWarning === VOID ? this.nxb_1 : showSocialWarning; return $super === VOID ? this.bxc(messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning) : $super.bxc.call(this, messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning); }; protoOf(MessageListUiState).toString = function () { return 'MessageListUiState(messages=' + this.ixb_1 + ', activePersonUid=' + this.jxb_1.toString() + ', newMessageText=' + this.kxb_1 + ', dayOfWeekStrings=' + this.lxb_1 + ', localDateTimeNow=' + this.mxb_1 + ', showSocialWarning=' + this.nxb_1 + ')'; }; protoOf(MessageListUiState).hashCode = function () { var result = hashCode(this.ixb_1); result = imul(result, 31) + this.jxb_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.kxb_1) | 0; result = imul(result, 31) + hashCode(this.lxb_1) | 0; result = imul(result, 31) + this.mxb_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.nxb_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.ixb_1, tmp0_other_with_cast.ixb_1)) return false; if (!this.jxb_1.equals(tmp0_other_with_cast.jxb_1)) return false; if (!(this.kxb_1 === tmp0_other_with_cast.kxb_1)) return false; if (!equals(this.lxb_1, tmp0_other_with_cast.lxb_1)) return false; if (!this.mxb_1.equals(tmp0_other_with_cast.mxb_1)) return false; if (!(this.nxb_1 === tmp0_other_with_cast.nxb_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.cxc_1 = title; this.dxc_1 = langCode; } protoOf(TitleAndLangCode).toString = function () { return 'TitleAndLangCode(title=' + this.cxc_1 + ', langCode=' + this.dxc_1 + ')'; }; protoOf(TitleAndLangCode).hashCode = function () { var result = getStringHashCode(this.cxc_1); result = imul(result, 31) + getStringHashCode(this.dxc_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.cxc_1 === tmp0_other_with_cast.cxc_1)) return false; if (!(this.dxc_1 === tmp0_other_with_cast.dxc_1)) return false; return true; }; function _get_statementRecorder__l4o9jw($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.mx2_1; statementRecorder$factory(); return this_0.t2(); } function AbstractNonInteractiveContentViewModel$statementRecorder$delegate$lambda$lambda(this$0) { return function () { var titleAndLangCodeVal = this$0.ix1(); var tmp = this$0.lx2_1.gjc_1; var tmp_0; if (!(titleAndLangCodeVal == null)) { tmp_0 = mapOf_0(to(titleAndLangCodeVal.dxc_1, titleAndLangCodeVal.cxc_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.ypu(this$0.kx2_1); var tmp_0 = this$0.cpu(); return this$0.jx2_1.op9(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)).s57(); // 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.jx2_1 = tmp_0.q57(tmp$ret$0, null); var tmp_2 = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('entryid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_2.kx2_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.lx2_1 = this.ypu(this.kx2_1); var tmp_3 = this; tmp_3.mx2_1 = lazy_0(AbstractNonInteractiveContentViewModel$statementRecorder$delegate$lambda(this)); } protoOf(AbstractNonInteractiveContentViewModel).hp9 = function () { _get_statementRecorder__l4o9jw(this).hp9(); }; protoOf(AbstractNonInteractiveContentViewModel).gp9 = function (progress) { _get_statementRecorder__l4o9jw(this).gp9(progress); }; protoOf(AbstractNonInteractiveContentViewModel).tp8 = function (active) { _get_statementRecorder__l4o9jw(this).tp8(active); }; protoOf(AbstractNonInteractiveContentViewModel).zli = function () { _get_statementRecorder__l4o9jw(this).zli(); protoOf(UstadViewModel).zli.call(this); }; protoOf(AbstractNonInteractiveContentViewModel).jp9 = function () { _get_statementRecorder__l4o9jw(this).jp9(); }; function statementRecorder$factory() { return getPropertyCallableRef('statementRecorder', 1, KProperty1, function (receiver) { return _get_statementRecorder__l4o9jw(receiver); }, null); } function ParentalConsentManagementViewModel$lambda$slambda$slambda(this$0, resultContinuation) { this.mxc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda).oxc = function (db, $completion) { var tmp = this.pn8(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.oxc(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.nxc_1.k7e().ygl(this.mxc_1.wq1_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.ggn_1; var tmp_2; if (tmp0_safe_receiver_0 == null) { tmp_2 = null; } else { tmp_2 = !(!tmp0_safe_receiver_0.hg1_1.equals(new Long(0, 0)) ? !tmp0_safe_receiver_0.hg1_1.equals(this.mxc_1.dpu()) : 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).pn8 = function (db, completion) { var i = new ParentalConsentManagementViewModel$lambda$slambda$slambda(this.mxc_1, completion); i.nxc_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.oxc(db, $completion); }; l.$arity = 1; return l; } function ParentalConsentManagementViewModel$lambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).xxc = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).z77 = function ($completion) { return this.xxc($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).y77 = 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.xxc($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.vxd_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel....' call var nextValue = prevValue.dxe(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.xxd_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.vxd_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.updateStatus.' call var tmp1_safe_receiver = prevValue.yxd_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.yxd_1.ggn_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.sk3(tmp_0); } var nextValue = prevValue.dxe(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.yxd_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.ggn_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.cpu(); launch(tmp_1, VOID, VOID, ParentalConsentManagementViewModel$updateStatus$slambda_0($this, tmp1_safe_receiver_0, null)); } $this.jpu().cpd(new Snack($this.npt().ant(strings_getInstance().nmq_1))); } function Companion_164() { this.exe_1 = 'ParentalConsentManagement'; } var Companion_instance_213; function Companion_getInstance_181() { return Companion_instance_213; } function ParentalConsentManagementViewModel$lambda$slambda(this$0, resultContinuation) { this.nxe_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.a4r(); var tmp_1 = ParentalConsentManagementViewModel$lambda$slambda$slambda_0(this.nxe_1, null); var tmp_2 = ParentalConsentManagementViewModel$lambda$slambda$slambda_2(null); suspendResult = this.nxe_1.rpu(tmp_0, VOID, VOID, tmp_1, tmp_2, ParentalConsentManagementViewModel$lambda$slambda$lambda(this.nxe_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.nxe_1.vxd_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.dxe(VOID, VOID, VOID, !(prevValue.yxd_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.nxe_1, completion); i.oxe_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.xxe_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.zxe_1 = this.xxe_1.hpu().j7e(); this.hd_1 = 1; suspendResult = _get_getLocaleForSiteTermsUseCase__hxw5id(this.xxe_1).bov(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.axf_1 = suspendResult; this.hd_1 = 2; suspendResult = this.zxe_1.bhj(this.axf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var terms = suspendResult; l$ret$1: do { var this_0 = this.xxe_1.vxd_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.dxe(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.xxe_1, completion); i.yxe_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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel..' call var nextValue = prevValue.npc(VOID, VOID, this$0.npt().ant(strings_getInstance().emm_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this$0.cpu(); launch(tmp, VOID, VOID, ParentalConsentManagementViewModel$lambda$slambda_0(this$0, null)); var tmp_0 = this$0.cpu(); 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.ng1_1 = $status; $this$shallowCopy.hg1_1 = this$0.dpu(); $this$shallowCopy.og1_1 = systemTimeInMillis(); return Unit_instance; }; } function ParentalConsentManagementViewModel$updateStatus$slambda(this$0, $personParentJoin, resultContinuation) { this.jxf_1 = this$0; this.kxf_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.jxf_1.hpu().k7e().zgl(this.kxf_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.jxf_1, this.kxf_1, completion); i.lxf_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.vxd_1 = MutableStateFlow(new ParentalConsentManagementUiState()); this.wxd_1 = asStateFlow(this.vxd_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.bpu().nnk(); var trigger = this.q56(); // 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.u56(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.xxd_1 = Instance(this_0, tmp$ret$3, null).n5c(this, getLocaleForSiteTermsUseCase$factory()); Companion_getInstance_119(); var tmp_3 = mapOf_0(to('entityUid', this.wq1_1.toString())); this.vpu(true, tmp_3, ParentalConsentManagementViewModel$lambda(this)); } protoOf(ParentalConsentManagementViewModel).mxf = function (personParentJoin) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vxd_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.yxd_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sk3(personParentJoin); var tmp1_safe_receiver = prevValue.yxd_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ggn_1; var tmp_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.jg1_1; var nextValue = prevValue.dxe(tmp, this.zq2(tmp_0, personParentJoin == null ? null : personParentJoin.jg1_1, prevValue.zxd_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ParentalConsentManagementViewModel).nxf = function () { var tmp0_safe_receiver = this.vxd_1.t2().yxd_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ggn_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.jg1_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.vxd_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.onClickConsent.' call var nextValue = prevValue.dxe(VOID, this.npt().ant(strings_getInstance().sly_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } updateStatus(this, 1); }; protoOf(ParentalConsentManagementViewModel).oxf = function () { updateStatus(this, 2); }; protoOf(ParentalConsentManagementViewModel).pxf = function () { var tmp0_safe_receiver = this.vxd_1.t2().yxd_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ggn_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ng1_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.yxd_1 = parentJoinAndMinor; this.zxd_1 = relationshipError; this.axe_1 = siteTerms; this.bxe_1 = fieldsEnabled; this.cxe_1 = appName; } protoOf(ParentalConsentManagementUiState).qxf = function () { var tmp0_safe_receiver = this.yxd_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ggn_1; return equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.hg1_1, new Long(0, 0)); }; protoOf(ParentalConsentManagementUiState).rxf = function () { var tmp0_safe_receiver = this.yxd_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ggn_1; return equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.hg1_1, new Long(0, 0)); }; protoOf(ParentalConsentManagementUiState).sxf = function () { var tmp0_safe_receiver = this.yxd_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ggn_1; return equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.hg1_1, new Long(0, 0)); }; protoOf(ParentalConsentManagementUiState).txf = function () { // Inline function 'kotlin.let' call var tmp0_safe_receiver = this.yxd_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ggn_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.hg1_1; return !(it == null) ? !equals(it, new Long(0, 0)) : false; }; protoOf(ParentalConsentManagementUiState).uxf = function () { // Inline function 'kotlin.let' call var tmp0_safe_receiver = this.yxd_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ggn_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.ng1_1; return !(it == null) ? !(it === 0) : false; }; protoOf(ParentalConsentManagementUiState).vxf = function () { var tmp0_safe_receiver = this.yxd_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ggn_1; var tmp2_subject = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ng1_1; var tmp; if (tmp2_subject === 1) { tmp = strings_getInstance().bmm_1; } else { if (tmp2_subject === 2) { tmp = strings_getInstance().cmm_1; } else { tmp = null; } } return tmp; }; protoOf(ParentalConsentManagementUiState).wxf = function () { var tmp0_safe_receiver = this.yxd_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ggn_1; var tmp2_subject = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ng1_1; var tmp; if (tmp2_subject === 1) { tmp = strings_getInstance().zml_1; } else { if (tmp2_subject === 2) { tmp = strings_getInstance().amm_1; } else { tmp = null; } } return tmp; }; protoOf(ParentalConsentManagementUiState).xxf = function (parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName) { return new ParentalConsentManagementUiState(parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName); }; protoOf(ParentalConsentManagementUiState).dxe = function (parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName, $super) { parentJoinAndMinor = parentJoinAndMinor === VOID ? this.yxd_1 : parentJoinAndMinor; relationshipError = relationshipError === VOID ? this.zxd_1 : relationshipError; siteTerms = siteTerms === VOID ? this.axe_1 : siteTerms; fieldsEnabled = fieldsEnabled === VOID ? this.bxe_1 : fieldsEnabled; appName = appName === VOID ? this.cxe_1 : appName; return $super === VOID ? this.xxf(parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName) : $super.xxf.call(this, parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName); }; protoOf(ParentalConsentManagementUiState).toString = function () { return 'ParentalConsentManagementUiState(parentJoinAndMinor=' + this.yxd_1 + ', relationshipError=' + this.zxd_1 + ', siteTerms=' + this.axe_1 + ', fieldsEnabled=' + this.bxe_1 + ', appName=' + this.cxe_1 + ')'; }; protoOf(ParentalConsentManagementUiState).hashCode = function () { var result = this.yxd_1 == null ? 0 : this.yxd_1.hashCode(); result = imul(result, 31) + (this.zxd_1 == null ? 0 : getStringHashCode(this.zxd_1)) | 0; result = imul(result, 31) + (this.axe_1 == null ? 0 : hashCode(this.axe_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.bxe_1) | 0; result = imul(result, 31) + getStringHashCode(this.cxe_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.yxd_1, tmp0_other_with_cast.yxd_1)) return false; if (!(this.zxd_1 == tmp0_other_with_cast.zxd_1)) return false; if (!equals(this.axe_1, tmp0_other_with_cast.axe_1)) return false; if (!(this.bxe_1 === tmp0_other_with_cast.bxe_1)) return false; if (!(this.cxe_1 === tmp0_other_with_cast.cxe_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.axh_1; httpClient$factory_10(); return this_0.t2(); } function Companion_165() { this.bxh_1 = 'PdfContent'; } var Companion_instance_214; function Companion_getInstance_182() { return Companion_instance_214; } function PdfContentViewModel$slambda(this$0, resultContinuation) { this.kxh_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.kxh_1.hpu().v7e().ybk(this.kxh_1.xxg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.mxh_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.mxh_1 == null) { return Unit_instance; } else { tmp_1 = this.mxh_1; } tmp_0.nxh_1 = tmp_1; this.oxh_1 = ensureNotNull(this.nxh_1.dat_1); var tmp_2 = this; tmp_2.pxh_1 = this.kxh_1.z4q(); var tmp_3 = this; tmp_3.qxh_1 = _get_httpClient__2ty1zc_4(this.kxh_1); var tmp_4 = this; tmp_4.rxh_1 = this.oxh_1; var tmp_5 = this; tmp_5.sxh_1 = this.qxh_1; var tmp_6 = this; tmp_6.txh_1 = this.sxh_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.rxh_1); tmp_7.uxh_1 = this_0; this.uxh_1.j38_1 = Companion_getInstance().y2w_1; var tmp_8 = this; tmp_8.vxh_1 = this.txh_1; var tmp_9 = this; tmp_9.wxh_1 = this.uxh_1; this.hd_1 = 2; suspendResult = (new HttpStatement(this.wxh_1, this.vxh_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.xxh_1 = suspendResult; this.hd_1 = 3; suspendResult = bodyAsDecodedText(this.xxh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.yxh_1 = suspendResult; var tmp_10 = this; var this_1 = this.pxh_1.g45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_10.zxh_1 = this.pxh_1.f45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.yxh_1); var tmp_11 = this; var tmp1_elvis_lhs = this.nxh_1.bat_1; var tmp_12; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_12 = tmp1_elvis_lhs; } tmp_11.axi_1 = tmp_12; this.bxi_1 = UrlKmp(this.oxh_1).boc(this.axi_1).toString(); this.cxi_1 = bodyDataUrlForUri(this.zxh_1, this.axi_1); l$ret$1: do { var this_3 = this.kxh_1.yxg_1; while (true) { var prevValue = this_3.t2(); var nextValue = prevValue.gxi(this.bxi_1, this.cxi_1); if (this_3.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 4; suspendResult = this.kxh_1.hpu().i7d().gaq(this.nxh_1.aat_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var contentEntry = suspendResult; l$ret$3: do { var this_4 = this.kxh_1.bpt_1; while (true) { var prevValue_0 = this_4.t2(); var tmp1_elvis_lhs_0 = contentEntry == null ? null : contentEntry.car_1; var nextValue_0 = prevValue_0.npc(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.kxh_1, completion); i.lxh_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_108(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.xxg_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.yxg_1 = MutableStateFlow(new PdfContentUiState()); this.zxg_1 = asStateFlow(this.yxg_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.axh_1 = Instance(di, tmp$ret$0, null).n5c(this, httpClient$factory_9()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.pdfcontent.PdfContentViewModel.' call var nextValue = prevValue.npc(VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.cpu(); launch(tmp_2, VOID, VOID, PdfContentViewModel$slambda_0(this, null)); } protoOf(PdfContentViewModel).ix1 = function () { var tmp0_safe_receiver = this.yxg_1.t2().fxi_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.car_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.dxi_1 = pdfUrl; this.exi_1 = dataUrl; this.fxi_1 = contentEntry; } protoOf(PdfContentUiState).hxi = function (pdfUrl, dataUrl, contentEntry) { return new PdfContentUiState(pdfUrl, dataUrl, contentEntry); }; protoOf(PdfContentUiState).gxi = function (pdfUrl, dataUrl, contentEntry, $super) { pdfUrl = pdfUrl === VOID ? this.dxi_1 : pdfUrl; dataUrl = dataUrl === VOID ? this.exi_1 : dataUrl; contentEntry = contentEntry === VOID ? this.fxi_1 : contentEntry; return $super === VOID ? this.hxi(pdfUrl, dataUrl, contentEntry) : $super.hxi.call(this, pdfUrl, dataUrl, contentEntry); }; protoOf(PdfContentUiState).toString = function () { return 'PdfContentUiState(pdfUrl=' + this.dxi_1 + ', dataUrl=' + this.exi_1 + ', contentEntry=' + this.fxi_1 + ')'; }; protoOf(PdfContentUiState).hashCode = function () { var result = this.dxi_1 == null ? 0 : getStringHashCode(this.dxi_1); result = imul(result, 31) + (this.exi_1 == null ? 0 : getStringHashCode(this.exi_1)) | 0; result = imul(result, 31) + (this.fxi_1 == null ? 0 : this.fxi_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.dxi_1 == tmp0_other_with_cast.dxi_1)) return false; if (!(this.exi_1 == tmp0_other_with_cast.exi_1)) return false; if (!equals(this.fxi_1, tmp0_other_with_cast.fxi_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.ixi_1 = 'goToOnPersonSelected'; this.jxi_1 = 'popUpToOnPersonSelected'; } var PersonViewModelConstants_instance; function PersonViewModelConstants_getInstance() { return PersonViewModelConstants_instance; } function PersonAccountEditViewModel$slambda$slambda(this$0, resultContinuation) { this.sxi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda$slambda).vxi = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.vxi(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.txi_1.a7d().pfx(this.sxi_1.wq1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uxi_1 = suspendResult; this.hd_1 = 2; var tmp_0 = this.txi_1.c7f(); var tmp_1 = this.sxi_1.dpu(); PermissionFlags_getInstance(); suspendResult = tmp_0.lhr(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.uxi_1 == null) { tmp_2 = null; } else { var tmp_3 = this.uxi_1.t95_1 == null ? 1 : hasResetPermission ? 2 : 3; var tmp_4 = this.uxi_1.s95_1; var tmp0_elvis_lhs = this.uxi_1.t95_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).pn8 = function (db, completion) { var i = new PersonAccountEditViewModel$slambda$slambda(this.sxi_1, completion); i.txi_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.vxi(db, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda$slambda_1).exj = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$slambda$slambda_1).z77 = function ($completion) { return this.exj($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).y77 = 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.exj($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.cxk_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.accountedit.PersonAccountEditViewModel...' call var nextValue = prevValue.mxk(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonAccountEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function PersonAccountEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation) { this.vxk_1 = this$0; this.wxk_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$onClickSave$slambda$slambda).on8 = function (it, $completion) { var tmp = this.pn8(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.on8(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.vxk_1).fn3(this.vxk_1.wq1_1, this.wxk_1.cxl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.vxk_1.hpu().a7d().vfx(this.vxk_1.wq1_1, this.wxk_1.axl_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var numChanges = suspendResult; Napier_getInstance().d5e('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).pn8 = function (it, completion) { var i = new PersonAccountEditViewModel$onClickSave$slambda$slambda(this.vxk_1, this.wxk_1, completion); i.xxk_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.on8(it, $completion); }; l.$arity = 1; return l; } function _get_authManager__mo6de4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.exk_1; authManager$factory_0(); return this_0.t2(); } function _get_setPasswordUseCase__c0ja9b($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.fxk_1; setPasswordUseCase$factory_0(); return this_0.t2(); } function Companion_166() { this.dxl_1 = 'AccountEdit'; this.exl_1 = 1; this.fxl_1 = 2; this.gxl_1 = 3; } var Companion_instance_215; function Companion_getInstance_183() { return Companion_instance_215; } function PersonAccountEditViewModel$slambda(this$0, resultContinuation) { this.pxl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda).krc = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$slambda).he = function (p1, $completion) { return this.krc(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.pxl_1.wq1_1.equals(this.pxl_1.dpu())) { var tmp_0 = this; tmp_0.rxl_1 = true; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_1 = this.qxl_1.c7f(); var tmp_2 = this.pxl_1.dpu(); PermissionFlags_getInstance(); suspendResult = tmp_1.lhr(tmp_2, new Long(32768, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.rxl_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.rxl_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).pn8 = function (db, completion) { var i = new PersonAccountEditViewModel$slambda(this.pxl_1, completion); i.qxl_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.krc(db, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$slambda_1(this$0, resultContinuation) { this.axm_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_216.a4r(); var tmp_1 = PersonAccountEditViewModel$slambda$slambda_0(this.axm_1, null); var tmp_2 = PersonAccountEditViewModel$slambda$slambda_2(null); suspendResult = this.axm_1.rpu(tmp_0, VOID, VOID, tmp_1, tmp_2, PersonAccountEditViewModel$slambda$lambda(this.axm_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.axm_1.bpt_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.axm_1.npt().ant(strings_getInstance().zmd_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_3, VOID, PersonAccountEditViewModel$onClickSave$ref(this.axm_1)); var tmp1_loadingState = Companion_getInstance_89().vpc_1; var nextValue = prevValue.npc(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.axm_1.cxk_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.mxk(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.axm_1, completion); i.bxm_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.kxm_1 = $commitDelay; this.lxm_1 = $entity; this.mxm_1 = $this; this.nxm_1 = $key; this.oxm_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.kxm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.lxm_1 == null)) { this.hd_1 = 2; suspendResult = this.mxm_1.npu(this.mxm_1.xps_1, this.nxm_1, this.oxm_1, this.lxm_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.kxm_1, this.lxm_1, this.mxm_1, this.nxm_1, this.oxm_1, completion); i.pxm_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.yxm_1 = $entity; this.zxm_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.yxm_1.yxk_1 === 1 ? isBlank(this.yxm_1.axl_1) : false) { l$ret$1: do { var this_0 = this.zxm_1.cxk_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.mxk(VOID, this.zxm_1.npt().ant(strings_getInstance().sly_1)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } if (isBlank(this.yxm_1.cxl_1)) { l$ret$3: do { var this_1 = this.zxm_1.cxk_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.mxk(VOID, VOID, VOID, this.zxm_1.npt().ant(strings_getInstance().sly_1)); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } if (this.yxm_1.yxk_1 === 3 ? isBlank(this.yxm_1.bxl_1) : false) if (this.zxm_1.cxk_1.t2().tt4()) { this.zxm_1.epx(Companion_getInstance_89().vpc_1); l$ret$5: do { var this_2 = this.zxm_1.cxk_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.mxk(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.yxm_1.yxk_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.zxm_1).znr(this.zxm_1.dpu(), this.yxm_1.zxk_1, this.yxm_1.axl_1, this.yxm_1.cxl_1, this.yxm_1.yxk_1 === 3 ? this.yxm_1.bxl_1 : null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.zxm_1.jpu().cpd(new Snack(this.zxm_1.npt().ant(strings_getInstance().bmx_1))); var tmp_0 = this; this.zxm_1.zq1(null); tmp_0.cxn_1 = Unit_instance; this.id_1 = 14; this.hd_1 = 5; continue $sm; case 3: this.id_1 = 4; var tmp_1 = this.kd_1; if (tmp_1 instanceof Exception) { this.dxn_1 = this.kd_1; var tmp_2 = this; var tmp_3; var tmp_4 = this.dxn_1; if (tmp_4 instanceof UnauthorizedException) { l$ret$19: do { var this_3 = this.zxm_1.cxk_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.mxk(VOID, VOID, this.zxm_1.npt().ant(strings_getInstance().elu_1)); if (this_3.y1k(prevValue_2, nextValue_2)) { break l$ret$19; } } } while (false); tmp_3 = Unit_instance; } else { l$ret$21: do { var this_4 = this.zxm_1.cxk_1; while (true) { var prevValue_3 = this_4.t2(); var nextValue_3 = prevValue_3.mxk(VOID, VOID, VOID, VOID, this.dxn_1.message); if (this_4.y1k(prevValue_3, nextValue_3)) { break l$ret$21; } } } while (false); tmp_3 = Unit_instance; } tmp_2.cxn_1 = tmp_3; this.id_1 = 14; this.hd_1 = 5; continue $sm; } else { throw this.kd_1; } case 4: this.id_1 = 14; this.exn_1 = this.kd_1; this.zxm_1.epx(Companion_getInstance_89().vpc_1); l$ret$23: do { var this_5 = this.zxm_1.cxk_1; while (true) { var prevValue_4 = this_5.t2(); var nextValue_4 = prevValue_4.mxk(VOID, VOID, VOID, VOID, VOID, true); if (this_5.y1k(prevValue_4, nextValue_4)) { break l$ret$23; } } } while (false); throw this.exn_1; case 5: this.id_1 = 14; this.zxm_1.epx(Companion_getInstance_89().vpc_1); l$ret$25: do { var this_6 = this.zxm_1.cxk_1; while (true) { var prevValue_5 = this_6.t2(); var nextValue_5 = prevValue_5.mxk(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.zxm_1.hpu().a7d().nfx(this.yxm_1.axl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.fxn_1 = suspendResult; if (this.fxn_1 === 0) { this.hd_1 = 8; var tmp_5 = this.zxm_1.hpu(); suspendResult = withDoorTransactionAsync(tmp_5, VOID, PersonAccountEditViewModel$onClickSave$slambda$slambda_0(this.zxm_1, this.yxm_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { l$ret$7: do { var this_7 = this.zxm_1.cxk_1; while (true) { var prevValue_6 = this_7.t2(); var nextValue_6 = prevValue_6.mxk(VOID, this.zxm_1.npt().ant(strings_getInstance().qmi_1)); if (this_7.y1k(prevValue_6, nextValue_6)) { break l$ret$7; } } } while (false); this.hd_1 = 9; continue $sm; } case 8: this.zxm_1.zq1(null); this.hd_1 = 9; continue $sm; case 9: this.bxn_1 = Unit_instance; this.id_1 = 14; this.hd_1 = 12; continue $sm; case 10: this.id_1 = 11; var tmp_6 = this.kd_1; if (tmp_6 instanceof Exception) { var e = this.kd_1; var tmp_7 = this; l$ret$11: do { var this_8 = this.zxm_1.cxk_1; while (true) { var prevValue_7 = this_8.t2(); var nextValue_7 = prevValue_7.mxk(VOID, this.zxm_1.npt().ant(strings_getInstance().flu_1)); if (this_8.y1k(prevValue_7, nextValue_7)) { break l$ret$11; } } } while (false); tmp_7.bxn_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.zxm_1.epx(Companion_getInstance_89().vpc_1); l$ret$13: do { var this_9 = this.zxm_1.cxk_1; while (true) { var prevValue_8 = this_9.t2(); var nextValue_8 = prevValue_8.mxk(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.zxm_1.epx(Companion_getInstance_89().vpc_1); l$ret$15: do { var this_10 = this.zxm_1.cxk_1; while (true) { var prevValue_9 = this_10.t2(); var nextValue_9 = prevValue_9.mxk(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.yxm_1, this.zxm_1, completion); i.axn_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.cxk_1 = MutableStateFlow(new PersonAccountEditUiState()); this.dxk_1 = asStateFlow(this.cxk_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.bpu().nnk(); var trigger = this.q56(); // 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.u56(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.exk_1 = Instance(this_0, tmp$ret$3, null).n5c(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.bpu().nnk(); var trigger_0 = this.q56(); // 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.u56(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.fxk_1 = Instance(this_1, tmp$ret$8, null).n5c(this, setPasswordUseCase$factory()); this.bpt_1.x1k(new AppUiState(VOID, Companion_getInstance_89().upc_1)); var tmp_7 = PersonAccountEditViewModel$slambda_0(this, null); this.tpu(tmp_7, VOID, VOID, PersonAccountEditViewModel$slambda_2(this, null)); } protoOf(PersonAccountEditViewModel).gxn = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.cxk_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.accountedit.PersonAccountEditViewModel.onEntityChanged.' call var tmp; var tmp_0; if (!(prevValue.hxk_1 == null)) { var tmp0_safe_receiver = prevValue.gxk_1; var tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.axl_1; tmp_0 = tmp_1 == (entity == null ? null : entity.axl_1); } else { tmp_0 = false; } if (tmp_0) { tmp = prevValue.hxk_1; } else { tmp = null; } var tmp_2 = tmp; var tmp_3; var tmp_4; if (!(prevValue.ixk_1 == null)) { var tmp2_safe_receiver = prevValue.gxk_1; var tmp_5 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.bxl_1; tmp_4 = tmp_5 == (entity == null ? null : entity.bxl_1); } else { tmp_4 = false; } if (tmp_4) { tmp_3 = prevValue.ixk_1; } else { tmp_3 = null; } var tmp_6 = tmp_3; var tmp_7; var tmp_8; if (!(prevValue.jxk_1 == null)) { var tmp4_safe_receiver = prevValue.gxk_1; var tmp_9 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.cxl_1; tmp_8 = tmp_9 == (entity == null ? null : entity.cxl_1); } else { tmp_8 = false; } if (tmp_8) { tmp_7 = prevValue.jxk_1; } else { tmp_7 = null; } var nextValue = prevValue.mxk(entity, tmp_2, tmp_6, tmp_7); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_216.a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_10 = this; var tmp_11 = this.cpu(); tmp_10.vq1_1 = launch(tmp_11, VOID, VOID, PersonAccountEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(PersonAccountEditViewModel).yr9 = function () { if (this.fpx().equals(Companion_getInstance_89().upc_1)) return Unit_instance; var tmp0_elvis_lhs = this.cxk_1.t2().gxk_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var entity = tmp; this.epx(Companion_getInstance_89().upc_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.cxk_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.accountedit.PersonAccountEditViewModel.onClickSave.' call var nextValue = prevValue.mxk(VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.cpu(); 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.gxk_1 = personAccount; this.hxk_1 = usernameError; this.ixk_1 = currentPasswordError; this.jxk_1 = newPasswordError; this.kxk_1 = errorMessage; this.lxk_1 = fieldsEnabled; } protoOf(PersonAccountEditUiState).hxn = function () { var tmp0_safe_receiver = this.gxk_1; return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yxk_1) === 1; }; protoOf(PersonAccountEditUiState).ixn = function () { var tmp0_safe_receiver = this.gxk_1; return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yxk_1) === 3; }; protoOf(PersonAccountEditUiState).tt4 = function () { return (!(this.hxk_1 == null) ? true : !(this.ixk_1 == null)) ? true : !(this.jxk_1 == null); }; protoOf(PersonAccountEditUiState).jxn = function (personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled) { return new PersonAccountEditUiState(personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled); }; protoOf(PersonAccountEditUiState).mxk = function (personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled, $super) { personAccount = personAccount === VOID ? this.gxk_1 : personAccount; usernameError = usernameError === VOID ? this.hxk_1 : usernameError; currentPasswordError = currentPasswordError === VOID ? this.ixk_1 : currentPasswordError; newPasswordError = newPasswordError === VOID ? this.jxk_1 : newPasswordError; errorMessage = errorMessage === VOID ? this.kxk_1 : errorMessage; fieldsEnabled = fieldsEnabled === VOID ? this.lxk_1 : fieldsEnabled; return $super === VOID ? this.jxn(personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled) : $super.jxn.call(this, personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled); }; protoOf(PersonAccountEditUiState).toString = function () { return 'PersonAccountEditUiState(personAccount=' + this.gxk_1 + ', usernameError=' + this.hxk_1 + ', currentPasswordError=' + this.ixk_1 + ', newPasswordError=' + this.jxk_1 + ', errorMessage=' + this.kxk_1 + ', fieldsEnabled=' + this.lxk_1 + ')'; }; protoOf(PersonAccountEditUiState).hashCode = function () { var result = this.gxk_1 == null ? 0 : this.gxk_1.hashCode(); result = imul(result, 31) + (this.hxk_1 == null ? 0 : getStringHashCode(this.hxk_1)) | 0; result = imul(result, 31) + (this.ixk_1 == null ? 0 : getStringHashCode(this.ixk_1)) | 0; result = imul(result, 31) + (this.jxk_1 == null ? 0 : getStringHashCode(this.jxk_1)) | 0; result = imul(result, 31) + (this.kxk_1 == null ? 0 : getStringHashCode(this.kxk_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.lxk_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.gxk_1, tmp0_other_with_cast.gxk_1)) return false; if (!(this.hxk_1 == tmp0_other_with_cast.hxk_1)) return false; if (!(this.ixk_1 == tmp0_other_with_cast.ixk_1)) return false; if (!(this.jxk_1 == tmp0_other_with_cast.jxk_1)) return false; if (!(this.kxk_1 == tmp0_other_with_cast.kxk_1)) return false; if (!(this.lxk_1 === tmp0_other_with_cast.lxk_1)) return false; return true; }; function Companion_167() { } protoOf(Companion_167).a4r = function () { return $serializer_getInstance_71(); }; var Companion_instance_216; function Companion_getInstance_184() { return Companion_instance_216; } function $serializer_59() { $serializer_instance_59 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.person.accountedit.PersonUsernameAndPasswordModel', this, 5); tmp0_serialDesc.g4f('mode', true); tmp0_serialDesc.g4f('personUid', true); tmp0_serialDesc.g4f('username', true); tmp0_serialDesc.g4f('currentPassword', true); tmp0_serialDesc.g4f('newPassword', true); this.kxn_1 = tmp0_serialDesc; } protoOf($serializer_59).d44 = function () { return this.kxn_1; }; protoOf($serializer_59).x4f = 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_59).f44 = function (decoder) { var tmp0_desc = this.kxn_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.v47(tmp0_desc); if (tmp9_input.k48()) { tmp4_local0 = tmp9_input.a48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.b48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.f48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.f48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.f48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.a48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.b48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.f48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.f48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.f48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.w47(tmp0_desc); return PersonUsernameAndPasswordModel_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_59).lxn = function (encoder, value) { var tmp0_desc = this.kxn_1; var tmp1_output = encoder.v47(tmp0_desc); if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.yxk_1 === 1)) { tmp1_output.e49(tmp0_desc, 0, value.yxk_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.zxk_1.equals(new Long(0, 0))) { tmp1_output.f49(tmp0_desc, 1, value.zxk_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.axl_1 === '')) { tmp1_output.j49(tmp0_desc, 2, value.axl_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.bxl_1 === '')) { tmp1_output.j49(tmp0_desc, 3, value.bxl_1); } if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.cxl_1 === '')) { tmp1_output.j49(tmp0_desc, 4, value.cxl_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_59).e44 = function (encoder, value) { return this.lxn(encoder, value instanceof PersonUsernameAndPasswordModel ? value : THROW_CCE()); }; var $serializer_instance_59; function $serializer_getInstance_71() { if ($serializer_instance_59 == null) new $serializer_59(); return $serializer_instance_59; } function PersonUsernameAndPasswordModel_init_$Init$(seen1, mode, personUid, username, currentPassword, newPassword, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_71().kxn_1); } if (0 === (seen1 & 1)) $this.yxk_1 = 1; else $this.yxk_1 = mode; if (0 === (seen1 & 2)) $this.zxk_1 = new Long(0, 0); else $this.zxk_1 = personUid; if (0 === (seen1 & 4)) $this.axl_1 = ''; else $this.axl_1 = username; if (0 === (seen1 & 8)) $this.bxl_1 = ''; else $this.bxl_1 = currentPassword; if (0 === (seen1 & 16)) $this.cxl_1 = ''; else $this.cxl_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.yxk_1 = mode; this.zxk_1 = personUid; this.axl_1 = username; this.bxl_1 = currentPassword; this.cxl_1 = newPassword; } protoOf(PersonUsernameAndPasswordModel).mxn = function (mode, personUid, username, currentPassword, newPassword) { return new PersonUsernameAndPasswordModel(mode, personUid, username, currentPassword, newPassword); }; protoOf(PersonUsernameAndPasswordModel).nxn = function (mode, personUid, username, currentPassword, newPassword, $super) { mode = mode === VOID ? this.yxk_1 : mode; personUid = personUid === VOID ? this.zxk_1 : personUid; username = username === VOID ? this.axl_1 : username; currentPassword = currentPassword === VOID ? this.bxl_1 : currentPassword; newPassword = newPassword === VOID ? this.cxl_1 : newPassword; return $super === VOID ? this.mxn(mode, personUid, username, currentPassword, newPassword) : $super.mxn.call(this, mode, personUid, username, currentPassword, newPassword); }; protoOf(PersonUsernameAndPasswordModel).toString = function () { return 'PersonUsernameAndPasswordModel(mode=' + this.yxk_1 + ', personUid=' + this.zxk_1.toString() + ', username=' + this.axl_1 + ', currentPassword=' + this.bxl_1 + ', newPassword=' + this.cxl_1 + ')'; }; protoOf(PersonUsernameAndPasswordModel).hashCode = function () { var result = this.yxk_1; result = imul(result, 31) + this.zxk_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.axl_1) | 0; result = imul(result, 31) + getStringHashCode(this.bxl_1) | 0; result = imul(result, 31) + getStringHashCode(this.cxl_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.yxk_1 === tmp0_other_with_cast.yxk_1)) return false; if (!this.zxk_1.equals(tmp0_other_with_cast.zxk_1)) return false; if (!(this.axl_1 === tmp0_other_with_cast.axl_1)) return false; if (!(this.bxl_1 === tmp0_other_with_cast.bxl_1)) return false; if (!(this.cxl_1 === tmp0_other_with_cast.cxl_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.jxo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddrunimport.BulkAddPersonRunImportViewModel...' call var nextValue = prevValue.sxo(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.mxo_1; bulkAddFromUriUseCase$factory_0(); return this_0.t2(); } function Companion_168() { this.txo_1 = 'BulkAddPersonRunImport'; this.uxo_1 = 'uri'; } var Companion_instance_217; function Companion_getInstance_185() { return Companion_instance_217; } function sam$com_ustadmobile_core_domain_person_bulkadd_BulkAddPersonsUseCase_BulkAddOnProgress$0(function_0) { this.vxo_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_person_bulkadd_BulkAddPersonsUseCase_BulkAddOnProgress$0).wxo = function (numImported, totalRecords) { return this.vxo_1(numImported, totalRecords); }; function BulkAddPersonRunImportViewModel$slambda(this$0, resultContinuation) { this.fxp_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.fxp_1); var tmp_1 = Companion_getInstance_3().b2r(this.fxp_1.lxo_1); var tmp_2 = this.fxp_1.dpu(); var tmp_3 = BulkAddPersonRunImportViewModel$slambda$lambda(this.fxp_1); suspendResult = tmp_0.aou(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.fxp_1.jxo_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.sxo(false, VOID, result.dou_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().d5e('Exception running import', e); l$ret$3: do { var this_1 = this.fxp_1.jxo_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.uot_1; var nextValue_0 = prevValue_0.sxo(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.fxp_1, completion); i.gxp_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.jxo_1 = MutableStateFlow(new BulkAddPersonRunImportUiState()); this.kxo_1 = asStateFlow(this.jxo_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.lxo_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.mxo_1 = Instance(this_0, tmp$ret$0, null).n5c(this, bulkAddFromUriUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bpt_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddrunimport.BulkAddPersonRunImportViewModel.' call var nextValue = prevValue.npc(VOID, VOID, this.npt().ant(strings_getInstance().fmz_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.cpu(); launch(tmp_3, VOID, VOID, BulkAddPersonRunImportViewModel$slambda_0(this, null)); } function Companion_169() { Companion_instance_218 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.hxp_1 = [null, null, null, new ArrayListSerializer($serializer_getInstance_49()), null]; } var Companion_instance_218; function Companion_getInstance_186() { if (Companion_instance_218 == null) new Companion_169(); return Companion_instance_218; } function $serializer_60() { $serializer_instance_60 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.person.bulkaddrunimport.BulkAddPersonRunImportUiState', this, 5); tmp0_serialDesc.g4f('inProgress', true); tmp0_serialDesc.g4f('totalRecords', true); tmp0_serialDesc.g4f('numImported', true); tmp0_serialDesc.g4f('errors', true); tmp0_serialDesc.g4f('errorMessage', true); this.ixp_1 = tmp0_serialDesc; } protoOf($serializer_60).d44 = function () { return this.ixp_1; }; protoOf($serializer_60).x4f = function () { var tmp0_cached = Companion_getInstance_186().hxp_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_60).f44 = function (decoder) { var tmp0_desc = this.ixp_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.v47(tmp0_desc); var tmp10_cached = Companion_getInstance_186().hxp_1; if (tmp9_input.k48()) { tmp4_local0 = tmp9_input.x47(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.a48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.a48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.h48(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.l48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.x47(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.a48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.a48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.h48(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.w47(tmp0_desc); return BulkAddPersonRunImportUiState_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_60).jxp = function (encoder, value) { var tmp0_desc = this.ixp_1; var tmp1_output = encoder.v47(tmp0_desc); var tmp2_cached = Companion_getInstance_186().hxp_1; if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.nxo_1 === true)) { tmp1_output.b49(tmp0_desc, 0, value.nxo_1); } if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.oxo_1 === 0)) { tmp1_output.e49(tmp0_desc, 1, value.oxo_1); } if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.pxo_1 === 0)) { tmp1_output.e49(tmp0_desc, 2, value.pxo_1); } if (tmp1_output.r49(tmp0_desc, 3) ? true : !equals(value.qxo_1, emptyList())) { tmp1_output.l49(tmp0_desc, 3, tmp2_cached[3], value.qxo_1); } if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.rxo_1 == null)) { tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.rxo_1); } tmp1_output.w47(tmp0_desc); }; protoOf($serializer_60).e44 = function (encoder, value) { return this.jxp(encoder, value instanceof BulkAddPersonRunImportUiState ? value : THROW_CCE()); }; var $serializer_instance_60; function $serializer_getInstance_72() { if ($serializer_instance_60 == null) new $serializer_60(); return $serializer_instance_60; } function BulkAddPersonRunImportUiState_init_$Init$(seen1, inProgress, totalRecords, numImported, errors, errorMessage, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_72().ixp_1); } if (0 === (seen1 & 1)) $this.nxo_1 = true; else $this.nxo_1 = inProgress; if (0 === (seen1 & 2)) $this.oxo_1 = 0; else $this.oxo_1 = totalRecords; if (0 === (seen1 & 4)) $this.pxo_1 = 0; else $this.pxo_1 = numImported; if (0 === (seen1 & 8)) $this.qxo_1 = emptyList(); else $this.qxo_1 = errors; if (0 === (seen1 & 16)) $this.rxo_1 = null; else $this.rxo_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_186(); 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.nxo_1 = inProgress; this.oxo_1 = totalRecords; this.pxo_1 = numImported; this.qxo_1 = errors; this.rxo_1 = errorMessage; } protoOf(BulkAddPersonRunImportUiState).tt4 = function () { var tmp; // Inline function 'kotlin.collections.isNotEmpty' call if (!this.qxo_1.c1()) { tmp = true; } else { tmp = !(this.rxo_1 == null); } return tmp; }; protoOf(BulkAddPersonRunImportUiState).eod = function () { var tmp; if (this.oxo_1 > 0) { tmp = this.pxo_1 / this.oxo_1; } else { tmp = 0.0; } return tmp; }; protoOf(BulkAddPersonRunImportUiState).kxp = function (inProgress, totalRecords, numImported, errors, errorMessage) { return new BulkAddPersonRunImportUiState(inProgress, totalRecords, numImported, errors, errorMessage); }; protoOf(BulkAddPersonRunImportUiState).sxo = function (inProgress, totalRecords, numImported, errors, errorMessage, $super) { inProgress = inProgress === VOID ? this.nxo_1 : inProgress; totalRecords = totalRecords === VOID ? this.oxo_1 : totalRecords; numImported = numImported === VOID ? this.pxo_1 : numImported; errors = errors === VOID ? this.qxo_1 : errors; errorMessage = errorMessage === VOID ? this.rxo_1 : errorMessage; return $super === VOID ? this.kxp(inProgress, totalRecords, numImported, errors, errorMessage) : $super.kxp.call(this, inProgress, totalRecords, numImported, errors, errorMessage); }; protoOf(BulkAddPersonRunImportUiState).toString = function () { return 'BulkAddPersonRunImportUiState(inProgress=' + this.nxo_1 + ', totalRecords=' + this.oxo_1 + ', numImported=' + this.pxo_1 + ', errors=' + this.qxo_1 + ', errorMessage=' + this.rxo_1 + ')'; }; protoOf(BulkAddPersonRunImportUiState).hashCode = function () { var result = getBooleanHashCode(this.nxo_1); result = imul(result, 31) + this.oxo_1 | 0; result = imul(result, 31) + this.pxo_1 | 0; result = imul(result, 31) + hashCode(this.qxo_1) | 0; result = imul(result, 31) + (this.rxo_1 == null ? 0 : getStringHashCode(this.rxo_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.nxo_1 === tmp0_other_with_cast.nxo_1)) return false; if (!(this.oxo_1 === tmp0_other_with_cast.oxo_1)) return false; if (!(this.pxo_1 === tmp0_other_with_cast.pxo_1)) return false; if (!equals(this.qxo_1, tmp0_other_with_cast.qxo_1)) return false; if (!(this.rxo_1 == tmp0_other_with_cast.rxo_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.ixq_1; openBlobUiUseCase$factory_4(); return this_0.t2(); } function Companion_170() { this.jxq_1 = 'BulkAddPersonSelectFile'; } var Companion_instance_219; function Companion_getInstance_187() { return Companion_instance_219; } function BulkAddPersonSelectFileViewModel$slambda(this$0, resultContinuation) { this.sxq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonSelectFileViewModel$slambda).krc = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(BulkAddPersonSelectFileViewModel$slambda).he = function (p1, $completion) { return this.krc(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.txq_1.c7f(); var tmp_1 = this.sxq_1.dpu(); PermissionFlags_getInstance(); var tmp_2 = new Long(1024, 0); PermissionFlags_getInstance(); suspendResult = tmp_0.ohr(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.adi_1 ? it.bdi_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).pn8 = function (db, completion) { var i = new BulkAddPersonSelectFileViewModel$slambda(this.sxq_1, completion); i.txq_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.krc(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.gxq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddselectfile.BulkAddPersonSelectFileViewModel..' call var nextValue = prevValue.yxq(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.hxr_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.qxr_1 = this$0; this.rxr_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.qxr_1); var tmp_1 = new OpenBlobItem(this.rxr_1, 'text/csv', 'bulk-add-persons-template.csv', new Long(186, 0)); suspendResult = tmp_0.gnz(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.qxr_1, this.rxr_1, completion); i.sxr_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.gxq_1 = MutableStateFlow(new BulkAddPersonSelectFileUiState()); this.hxq_1 = asStateFlow(this.gxq_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.ixq_1 = Instance(this_0, tmp$ret$0, null).n5c(this, openBlobUiUseCase$factory_3()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bpt_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddselectfile.BulkAddPersonSelectFileViewModel.' call var nextValue = prevValue.npc(VOID, VOID, this.npt().ant(strings_getInstance().fmz_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.spu(tmp_1, true, tmp_2, BulkAddPersonSelectFileViewModel$slambda_2(null)); } protoOf(BulkAddPersonSelectFileViewModel).txr = function (uri, name) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gxq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddselectfile.BulkAddPersonSelectFileViewModel.onFileSelected.' call var nextValue = prevValue.yxq(uri, name); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(BulkAddPersonSelectFileViewModel).uxr = function () { var tmp0_elvis_lhs = this.gxq_1.t2().uxq_1; this.zps_1.fog('BulkAddPersonRunImport', mapOf_0(to('uri', tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs))); }; protoOf(BulkAddPersonSelectFileViewModel).vxr = function () { var templatePath = this.bpu().nnk().in3_1 + 'staticfiles/bulkaddpersons/bulk-add-persons-template.csv'; var tmp = this.cpu(); 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.uxq_1 = selectedFileUri; this.vxq_1 = selectedFileName; this.wxq_1 = fileSelectError; this.xxq_1 = fieldsEnabled; } protoOf(BulkAddPersonSelectFileUiState).wxr = function () { return !(this.uxq_1 == null) ? this.xxq_1 : false; }; protoOf(BulkAddPersonSelectFileUiState).xxr = function (selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled) { return new BulkAddPersonSelectFileUiState(selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled); }; protoOf(BulkAddPersonSelectFileUiState).yxq = function (selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled, $super) { selectedFileUri = selectedFileUri === VOID ? this.uxq_1 : selectedFileUri; selectedFileName = selectedFileName === VOID ? this.vxq_1 : selectedFileName; fileSelectError = fileSelectError === VOID ? this.wxq_1 : fileSelectError; fieldsEnabled = fieldsEnabled === VOID ? this.xxq_1 : fieldsEnabled; return $super === VOID ? this.xxr(selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled) : $super.xxr.call(this, selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled); }; protoOf(BulkAddPersonSelectFileUiState).toString = function () { return 'BulkAddPersonSelectFileUiState(selectedFileUri=' + this.uxq_1 + ', selectedFileName=' + this.vxq_1 + ', fileSelectError=' + this.wxq_1 + ', fieldsEnabled=' + this.xxq_1 + ')'; }; protoOf(BulkAddPersonSelectFileUiState).hashCode = function () { var result = this.uxq_1 == null ? 0 : getStringHashCode(this.uxq_1); result = imul(result, 31) + (this.vxq_1 == null ? 0 : getStringHashCode(this.vxq_1)) | 0; result = imul(result, 31) + (this.wxq_1 == null ? 0 : getStringHashCode(this.wxq_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.xxq_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.uxq_1 == tmp0_other_with_cast.uxq_1)) return false; if (!(this.vxq_1 == tmp0_other_with_cast.vxq_1)) return false; if (!(this.wxq_1 == tmp0_other_with_cast.wxq_1)) return false; if (!(this.xxq_1 === tmp0_other_with_cast.xxq_1)) return false; return true; }; function openBlobUiUseCase$factory_3() { return getPropertyCallableRef('openBlobUiUseCase', 1, KProperty1, function (receiver) { return _get_openBlobUiUseCase__fzusqz_1(receiver); }, null); } function openBlobUiUseCase$factory_4() { return getPropertyCallableRef('openBlobUiUseCase', 1, KProperty1, function (receiver) { return _get_openBlobUiUseCase__fzusqz_1(receiver); }, null); } function AddChildProfilesViewModel$slambda$slambda$slambda$lambda($childProfileResult) { return function (it) { return it.s95_1.equals($childProfileResult.s95_1); }; } function AddChildProfilesViewModel$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda$slambda$slambda).hxs = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.hxs(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda).pn8 = function (it, completion) { var i = new AddChildProfilesViewModel$slambda$slambda$slambda(completion); i.gxs_1 = it; return i; }; function AddChildProfilesViewModel$slambda$slambda$slambda_0(resultContinuation) { var i = new AddChildProfilesViewModel$slambda$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.hxs(it, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$slambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_1).qxs = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_1).z77 = function ($completion) { return this.qxs($completion); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_1).y77 = function (completion) { return new AddChildProfilesViewModel$slambda$slambda$slambda_1(completion); }; function AddChildProfilesViewModel$slambda$slambda$slambda_2(resultContinuation) { var i = new AddChildProfilesViewModel$slambda$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.qxs($completion); }; l.$arity = 0; return l; } function AddChildProfilesViewModel$slambda$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.oxt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel....' call var nextValue = prevValue.xxt(VOID, it == null ? emptyList() : it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function AddChildProfilesViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.gxu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_3).spg = function (result, $completion) { var tmp = this.tpg(result, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.spg(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp_1 = this.hxu_1.zpf_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.ixu_1 = tmp_2; var tmp_3 = this; var tmp_4 = this.gxu_1.oxt_1.t2().txt_1; tmp_3.jxu_1 = replaceOrAppend(tmp_4, this.ixu_1, AddChildProfilesViewModel$slambda$slambda$slambda$lambda(this.ixu_1)); this.hd_1 = 1; suspendResult = updateChildProfileList(this.gxu_1, this.jxu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_3).tpg = function (result, completion) { var i = new AddChildProfilesViewModel$slambda$slambda$slambda_3(this.gxu_1, completion); i.hxu_1 = result; return i; }; function AddChildProfilesViewModel$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new AddChildProfilesViewModel$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (result, $completion) { return i.spg(result, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$slambda$slambda(this$0, resultContinuation) { this.sxu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$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(AddChildProfilesViewModel$slambda$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; var tmp_0 = ListSerializer(Companion_instance_3.a4r()); var tmp_1 = listOf_0('persons'); var tmp_2 = AddChildProfilesViewModel$slambda$slambda$slambda_0(null); var tmp_3 = AddChildProfilesViewModel$slambda$slambda$slambda_2(null); suspendResult = this.sxu_1.rpu(tmp_0, tmp_1, VOID, tmp_2, tmp_3, AddChildProfilesViewModel$slambda$slambda$lambda(this.sxu_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_4 = this.sxu_1.gpx(this.sxu_1.ipu(), 'person'); var tmp_5 = AddChildProfilesViewModel$slambda$slambda$slambda_4(this.sxu_1, null); suspendResult = tmp_4.z1b(new sam$kotlinx_coroutines_flow_FlowCollector$0_31(tmp_5), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AddChildProfilesViewModel$slambda$slambda).v1m = function ($this$async, completion) { var i = new AddChildProfilesViewModel$slambda$slambda(this.sxu_1, completion); i.txu_1 = $this$async; return i; }; function AddChildProfilesViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new AddChildProfilesViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($this$async, $completion) { return i.u1m($this$async, $completion); }; l.$arity = 1; return l; } function updateChildProfileList($this, newChildProfileList, $completion) { var tmp = new $updateChildProfileListCOROUTINE$72($this, newChildProfileList, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_171() { this.fxv_1 = 'AddChildProfile'; this.gxv_1 = 'person'; this.hxv_1 = 'persons'; } var Companion_instance_220; function Companion_getInstance_188() { return Companion_instance_220; } function sam$kotlinx_coroutines_flow_FlowCollector$0_31(function_0) { this.ixv_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_31).t1d = function (value, $completion) { return this.ixv_1(value, $completion); }; function AddChildProfilesViewModel$onClickFinish$ref($boundThis) { var l = function () { $boundThis.jxv(); return Unit_instance; }; l.callableName = 'onClickFinish'; return l; } function AddChildProfilesViewModel$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda).krc = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddChildProfilesViewModel$slambda).he = function (p1, $completion) { return this.krc(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return true; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AddChildProfilesViewModel$slambda).pn8 = function (it, completion) { var i = new AddChildProfilesViewModel$slambda(completion); i.sxv_1 = it; return i; }; function AddChildProfilesViewModel$slambda_0(resultContinuation) { var i = new AddChildProfilesViewModel$slambda(resultContinuation); var l = function (it, $completion) { return i.krc(it, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$slambda_1(this$0, resultContinuation) { this.bxw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$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(AddChildProfilesViewModel$slambda_1).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; async(this.cxw_1, VOID, VOID, AddChildProfilesViewModel$slambda$slambda_0(this.bxw_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AddChildProfilesViewModel$slambda_1).v1m = function ($this$launchIfHasPermission, completion) { var i = new AddChildProfilesViewModel$slambda_1(this.bxw_1, completion); i.cxw_1 = $this$launchIfHasPermission; return i; }; function AddChildProfilesViewModel$slambda_2(this$0, resultContinuation) { var i = new AddChildProfilesViewModel$slambda_1(this$0, resultContinuation); var l = function ($this$launchIfHasPermission, $completion) { return i.u1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$updateChildProfileList$slambda(this$0, $newChildProfileList, resultContinuation) { this.lxw_1 = this$0; this.mxw_1 = $newChildProfileList; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$updateChildProfileList$slambda).bq9 = function ($this$withContext, $completion) { var tmp = this.v1m($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddChildProfilesViewModel$updateChildProfileList$slambda).he = function (p1, $completion) { return this.bq9((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$updateChildProfileList$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return this.lxw_1.z4q().e45(ListSerializer(Companion_instance_3.a4r()), this.mxw_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AddChildProfilesViewModel$updateChildProfileList$slambda).v1m = function ($this$withContext, completion) { var i = new AddChildProfilesViewModel$updateChildProfileList$slambda(this.lxw_1, this.mxw_1, completion); i.nxw_1 = $this$withContext; return i; }; function AddChildProfilesViewModel$updateChildProfileList$slambda_0(this$0, $newChildProfileList, resultContinuation) { var i = new AddChildProfilesViewModel$updateChildProfileList$slambda(this$0, $newChildProfileList, resultContinuation); var l = function ($this$withContext, $completion) { return i.bq9($this$withContext, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$onClickDeleteChildProfile$slambda(this$0, $person, resultContinuation) { this.wxw_1 = this$0; this.xxw_1 = $person; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$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(AddChildProfilesViewModel$onClickDeleteChildProfile$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$onClickDeleteChildProfile$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var this_0 = this.wxw_1.oxt_1.t2().txt_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (!element.s95_1.equals(this.xxw_1.s95_1)) { destination.i1(element); } } suspendResult = updateChildProfileList(this.wxw_1, destination, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AddChildProfilesViewModel$onClickDeleteChildProfile$slambda).v1m = function ($this$launch, completion) { var i = new AddChildProfilesViewModel$onClickDeleteChildProfile$slambda(this.wxw_1, this.xxw_1, completion); i.yxw_1 = $this$launch; return i; }; function AddChildProfilesViewModel$onClickDeleteChildProfile$slambda_0(this$0, $person, resultContinuation) { var i = new AddChildProfilesViewModel$onClickDeleteChildProfile$slambda(this$0, $person, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$onProfileSelected$slambda(this$0, $profile, resultContinuation) { this.hxx_1 = this$0; this.ixx_1 = $profile; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$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(AddChildProfilesViewModel$onProfileSelected$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$onProfileSelected$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 10; this.kxx_1 = new UstadGoOptions(VOID, VOID, true); if (!this.hxx_1.oxt_1.t2().txt_1.c1()) { var tmp_0 = this; var tmp0_elvis_lhs = this.hxx_1.gpu(); tmp_0.lxx_1 = tmp0_elvis_lhs == null ? this.hxx_1.fpu() : tmp0_elvis_lhs; this.hd_1 = 1; suspendResult = this.lxx_1.a7d().mfx(this.hxx_1.oxt_1.t2().txt_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.hxx_1.oxt_1.t2().txt_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.s95_1; var tmp1_ppjParentPersonUid = this.hxx_1.bpu().lnk().yk9_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.mxx_1 = destination; var tmp_2 = this; tmp_2.nxx_1 = this.hxx_1.oxt_1.t2().txt_1; this.oxx_1 = this.nxx_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.oxx_1.f()) { this.hd_1 = 5; continue $sm; } this.pxx_1 = this.oxx_1.e(); var tmp_3 = this; tmp_3.qxx_1 = this.pxx_1; if (!this.qxx_1.equals(this.ixx_1)) { this.hd_1 = 3; suspendResult = this.hxx_1.bpu().nnc(this.qxx_1, this.hxx_1.bpu().nnk().in3_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.lxx_1.k7e().wgl(this.mxx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.hd_1 = 7; continue $sm; case 7: if (!this.ixx_1.equals(this.hxx_1.bpu().rnj().en4_1)) { this.hd_1 = 8; suspendResult = this.hxx_1.bpu().nnc(this.ixx_1, this.hxx_1.bpu().nnk().in3_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.hxx_1.bpu().fn7(sessionWithPersonAndLearningSpace); this.hd_1 = 9; continue $sm; case 9: this.hxx_1.aq3(this.hxx_1.zps_1, appendSelectedAccount(this.hxx_1.pxt_1, this.ixx_1.s95_1, new LearningSpace(this.hxx_1.bpu().nnk().in3_1)), this.kxx_1); return Unit_instance; case 10: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 10) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AddChildProfilesViewModel$onProfileSelected$slambda).v1m = function ($this$launch, completion) { var i = new AddChildProfilesViewModel$onProfileSelected$slambda(this.hxx_1, this.ixx_1, completion); i.jxx_1 = $this$launch; return i; }; function AddChildProfilesViewModel$onProfileSelected$slambda_0(this$0, $profile, resultContinuation) { var i = new AddChildProfilesViewModel$onProfileSelected$slambda(this$0, $profile, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function $updateChildProfileListCOROUTINE$72(_this__u8e3s4, newChildProfileList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cxv_1 = _this__u8e3s4; this.dxv_1 = newChildProfileList; } protoOf($updateChildProfileListCOROUTINE$72).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.cxv_1.oxt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xxt(VOID, this.dxv_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.exv_1 = this.cxv_1.xps_1; this.hd_1 = 1; var tmp_0 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_0, AddChildProfilesViewModel$updateChildProfileList$slambda_0(this.cxv_1, this.dxv_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.exv_1.app('persons', ARGUMENT); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function AddChildProfilesViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'AddChildProfile'); this.oxt_1 = MutableStateFlow(new AddChildProfilesUiState()); var tmp = this; Companion_getInstance_108(); var tmp0_elvis_lhs = savedStateHandle.ba('next'); var tmp_0; if (tmp0_elvis_lhs == null) { Companion_getInstance_132(); tmp_0 = 'CourseListHome'; } else { tmp_0 = tmp0_elvis_lhs; } tmp.pxt_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.qxt_1 = Instance(this_0, tmp$ret$0, null).n5c(this, repo$factory()); this.rxt_1 = asStateFlow(this.oxt_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.oxt_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.' call var nextValue = prevValue.xxt(VOID, VOID, VOID, VOID, this.bpu().rnj().en4_1); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.bpt_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.' call var tmp0_title = this.npt().ant(strings_getInstance().nn0_1); var tmp_3 = this.npt().ant(strings_getInstance().pn0_1); var tmp1_actionBarButtonState = new ActionBarButtonUiState(true, tmp_3, VOID, AddChildProfilesViewModel$onClickFinish$ref(this)); var nextValue_0 = prevValue_0.npc(VOID, VOID, tmp0_title, false, true, VOID, false, VOID, tmp1_actionBarButtonState); if (this_2.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_4 = AddChildProfilesViewModel$slambda_0(null); this.tpu(tmp_4, VOID, VOID, AddChildProfilesViewModel$slambda_2(this, null)); } protoOf(AddChildProfilesViewModel).rxx = function () { // Inline function 'kotlin.getValue' call var this_0 = this.qxt_1; repo$factory_0(); return this_0.t2(); }; protoOf(AddChildProfilesViewModel).jxv = function () { // Inline function 'kotlin.collections.isNotEmpty' call if (!this.oxt_1.t2().txt_1.c1()) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.oxt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.onClickFinish.' call var nextValue = prevValue.xxt(VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } else { this.sxx(this.bpu().lnk().gka()); } }; protoOf(AddChildProfilesViewModel).txx = function () { var tmp0_nextViewName = 'EditChildProfile'; // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.onClickAddChileProfile.' call Companion_getInstance_107(); this.xps_1.ba('entity'); var tmp2_args = this_0.f3(); var tmp3_serializer = Companion_instance_3.a4r(); this.ppu(tmp0_nextViewName, 'person', null, tmp3_serializer, tmp2_args); }; protoOf(AddChildProfilesViewModel).uxx = function (person) { var tmp0_nextViewName = 'EditChildProfile'; var tmp2_serializer = Companion_instance_3.a4r(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.onClickEditChileProfile.' call Companion_getInstance_107(); this.xps_1.ba('entity'); var tmp3_args = this_0.f3(); this.ppu(tmp0_nextViewName, 'person', person, tmp2_serializer, tmp3_args); }; protoOf(AddChildProfilesViewModel).vxx = function (person) { var tmp = this.cpu(); launch(tmp, VOID, VOID, AddChildProfilesViewModel$onClickDeleteChildProfile$slambda_0(this, person, null)); }; protoOf(AddChildProfilesViewModel).wxx = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.oxt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.onDismissLangDialog.' call var nextValue = prevValue.xxt(VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(AddChildProfilesViewModel).sxx = function (profile) { var tmp = this.cpu(); launch(tmp, VOID, VOID, AddChildProfilesViewModel$onProfileSelected$slambda_0(this, profile, null)); }; function AddChildProfilesUiState(onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent) { onAddChildProfile = onAddChildProfile === VOID ? null : onAddChildProfile; childProfiles = childProfiles === VOID ? emptyList() : childProfiles; personParenJoinList = personParenJoinList === VOID ? emptyList() : personParenJoinList; showProfileSelectionDialog = showProfileSelectionDialog === VOID ? false : showProfileSelectionDialog; parent = parent === VOID ? null : parent; this.sxt_1 = onAddChildProfile; this.txt_1 = childProfiles; this.uxt_1 = personParenJoinList; this.vxt_1 = showProfileSelectionDialog; this.wxt_1 = parent; } protoOf(AddChildProfilesUiState).xxx = function () { var tmp0_safe_receiver = this.wxt_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesUiState..' call tmp = listOf_0(tmp0_safe_receiver); } var tmp1_elvis_lhs = tmp; return plus(tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs, this.txt_1); }; protoOf(AddChildProfilesUiState).yxx = function (onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent) { return new AddChildProfilesUiState(onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent); }; protoOf(AddChildProfilesUiState).xxt = function (onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent, $super) { onAddChildProfile = onAddChildProfile === VOID ? this.sxt_1 : onAddChildProfile; childProfiles = childProfiles === VOID ? this.txt_1 : childProfiles; personParenJoinList = personParenJoinList === VOID ? this.uxt_1 : personParenJoinList; showProfileSelectionDialog = showProfileSelectionDialog === VOID ? this.vxt_1 : showProfileSelectionDialog; parent = parent === VOID ? this.wxt_1 : parent; return $super === VOID ? this.yxx(onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent) : $super.yxx.call(this, onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent); }; protoOf(AddChildProfilesUiState).toString = function () { return 'AddChildProfilesUiState(onAddChildProfile=' + this.sxt_1 + ', childProfiles=' + this.txt_1 + ', personParenJoinList=' + this.uxt_1 + ', showProfileSelectionDialog=' + this.vxt_1 + ', parent=' + this.wxt_1 + ')'; }; protoOf(AddChildProfilesUiState).hashCode = function () { var result = this.sxt_1 == null ? 0 : getStringHashCode(this.sxt_1); result = imul(result, 31) + hashCode(this.txt_1) | 0; result = imul(result, 31) + hashCode(this.uxt_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.vxt_1) | 0; result = imul(result, 31) + (this.wxt_1 == null ? 0 : this.wxt_1.hashCode()) | 0; return result; }; protoOf(AddChildProfilesUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof AddChildProfilesUiState)) return false; var tmp0_other_with_cast = other instanceof AddChildProfilesUiState ? other : THROW_CCE(); if (!(this.sxt_1 == tmp0_other_with_cast.sxt_1)) return false; if (!equals(this.txt_1, tmp0_other_with_cast.txt_1)) return false; if (!equals(this.uxt_1, tmp0_other_with_cast.uxt_1)) return false; if (!(this.vxt_1 === tmp0_other_with_cast.vxt_1)) return false; if (!equals(this.wxt_1, tmp0_other_with_cast.wxt_1)) return false; return true; }; function repo$factory() { return getPropertyCallableRef('repo', 1, KProperty1, function (receiver) { return receiver.rxx(); }, null); } function repo$factory_0() { return getPropertyCallableRef('repo', 1, KProperty1, function (receiver) { return receiver.rxx(); }, null); } function EditChildProfileViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(EditChildProfileViewModel$slambda$slambda).ixy = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EditChildProfileViewModel$slambda$slambda).he = function (p1, $completion) { return this.ixy(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).pn8 = function (it, completion) { var i = new EditChildProfileViewModel$slambda$slambda(completion); i.hxy_1 = it; return i; }; function EditChildProfileViewModel$slambda$slambda_0(resultContinuation) { var i = new EditChildProfileViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.ixy(it, $completion); }; l.$arity = 1; return l; } function EditChildProfileViewModel$slambda$slambda_1(this$0, resultContinuation) { this.rxy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(EditChildProfileViewModel$slambda$slambda_1).sxy = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EditChildProfileViewModel$slambda$slambda_1).z77 = function ($completion) { return this.sxy($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.rxy_1.fpu()); suspendResult = tmp_0.b62(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).y77 = function (completion) { return new EditChildProfileViewModel$slambda$slambda_1(this.rxy_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.sxy($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.qxz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel...' call var nextValue = prevValue.zxz(it); 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.sxz_1; genderConfig$factory_0(); return this_0.t2(); } function hasErrors_3(_this__u8e3s4, $this) { return ((!(_this__u8e3s4.uxz_1 == null) ? true : !(_this__u8e3s4.xxz_1 == null)) ? true : !(_this__u8e3s4.yxz_1 == null)) ? true : !(_this__u8e3s4.wxz_1 == null); } function Companion_172() { this.ay0_1 = 'EditChildProfile'; } var Companion_instance_221; function Companion_getInstance_189() { return Companion_instance_221; } function EditChildProfileViewModel$onClickDone$ref($boundThis) { var l = function () { $boundThis.fvk(); return Unit_instance; }; l.callableName = 'onClickDone'; return l; } function EditChildProfileViewModel$slambda(this$0, resultContinuation) { this.jy0_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.ly0_1 = Companion_instance_3.a4r(); this.hd_1 = 1; var tmp_0 = EditChildProfileViewModel$slambda$slambda_0(null); var tmp_1 = EditChildProfileViewModel$slambda$slambda_2(this.jy0_1, null); suspendResult = this.jy0_1.rpu(this.ly0_1, VOID, VOID, tmp_0, tmp_1, EditChildProfileViewModel$slambda$lambda(this.jy0_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.jy0_1, completion); i.ky0_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.uy0_1 = $commitDelay; this.vy0_1 = $entity; this.wy0_1 = $this; this.xy0_1 = $key; this.yy0_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.uy0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.vy0_1 == null)) { this.hd_1 = 2; suspendResult = this.wy0_1.npu(this.wy0_1.xps_1, this.xy0_1, this.yy0_1, this.vy0_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.uy0_1, this.vy0_1, this.wy0_1, this.xy0_1, this.yy0_1, completion); i.zy0_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(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'EditChildProfile'); this.qxz_1 = MutableStateFlow(new EditChildProfileUiState()); this.rxz_1 = asStateFlow(this.qxz_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.sxz_1 = Instance(this, tmp$ret$0, null).n5c(this, genderConfig$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qxz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.' call var nextValue = prevValue.zxz(VOID, VOID, _get_genderConfig__kyr0zc(this).mpd_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bpt_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.' call var tmp0_title = this.npt().ant(strings_getInstance().on0_1); var nextValue_0 = prevValue_0.npc(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.bpt_1; while (true) { var prevValue_1 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.' call var tmp_1 = this.npt().ant(strings_getInstance().nm2_1); var nextValue_1 = prevValue_1.npc(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_1, VOID, EditChildProfileViewModel$onClickDone$ref(this))); if (this_2.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } var tmp_2 = this.cpu(); launch(tmp_2, VOID, VOID, EditChildProfileViewModel$slambda_0(this, null)); } protoOf(EditChildProfileViewModel).ay1 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qxz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.txz_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y95_1; var tmp_0 = this.zq2(tmp, entity == null ? null : entity.y95_1, prevValue.wxz_1); var tmp2_safe_receiver = prevValue.txz_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.u95_1; var tmp_2 = this.zq2(tmp_1, entity == null ? null : entity.u95_1, prevValue.xxz_1); var tmp4_safe_receiver = prevValue.txz_1; var tmp_3 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.v95_1; var nextValue = prevValue.zxz(entity, VOID, VOID, tmp_0, tmp_2, this.zq2(tmp_3, entity == null ? null : entity.v95_1, prevValue.yxz_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_4 = this; var tmp_5 = this.cpu(); tmp_4.vq1_1 = launch(tmp_5, VOID, VOID, EditChildProfileViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(EditChildProfileViewModel).fvk = function () { this.epx(Companion_getInstance_89().upc_1); var tmp0_elvis_lhs = this.qxz_1.t2().txz_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var savePerson = tmp; var requiredFieldMessage = this.npt().ant(strings_getInstance().sly_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qxz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.onClickDone.' call var tmp_0; // Inline function 'kotlin.text.isNullOrEmpty' call var this_1 = savePerson.u95_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_0 = requiredFieldMessage; } else { tmp_0 = null; } var tmp0_firstNameError = tmp_0; var tmp_1; // Inline function 'kotlin.text.isNullOrEmpty' call var this_2 = savePerson.v95_1; // Inline function 'kotlin.contracts.contract' call if (this_2 == null ? true : charSequenceLength(this_2) === 0) { tmp_1 = requiredFieldMessage; } else { tmp_1 = null; } var tmp1_lastNameError = tmp_1; var tmp_2; if (savePerson.b96_1.equals(new Long(0, 0))) { tmp_2 = requiredFieldMessage; } else { tmp_2 = null; } var tmp2_dateOfBirthError = tmp_2; var tmp_3; var tmp_4 = savePerson.y95_1; if (tmp_4 === 0) { tmp_3 = requiredFieldMessage; } else { tmp_3 = null; } var tmp3_genderError = tmp_3; var nextValue = prevValue.zxz(VOID, tmp2_dateOfBirthError, VOID, tmp3_genderError, tmp0_firstNameError, tmp1_lastNameError); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_3(this.qxz_1.t2(), this)) { this.epx(Companion_getInstance_89().vpc_1); return Unit_instance; } this.zq1(this.qxz_1.t2().txz_1); }; function EditChildProfileUiState(person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError) { person = person === VOID ? null : person; dateOfBirthError = dateOfBirthError === VOID ? null : dateOfBirthError; genderOptions = genderOptions === VOID ? PersonConstants_getInstance_0().opd_1 : genderOptions; genderError = genderError === VOID ? null : genderError; firstNameError = firstNameError === VOID ? null : firstNameError; lastNameError = lastNameError === VOID ? null : lastNameError; this.txz_1 = person; this.uxz_1 = dateOfBirthError; this.vxz_1 = genderOptions; this.wxz_1 = genderError; this.xxz_1 = firstNameError; this.yxz_1 = lastNameError; } protoOf(EditChildProfileUiState).by1 = function (person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError) { return new EditChildProfileUiState(person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError); }; protoOf(EditChildProfileUiState).zxz = function (person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError, $super) { person = person === VOID ? this.txz_1 : person; dateOfBirthError = dateOfBirthError === VOID ? this.uxz_1 : dateOfBirthError; genderOptions = genderOptions === VOID ? this.vxz_1 : genderOptions; genderError = genderError === VOID ? this.wxz_1 : genderError; firstNameError = firstNameError === VOID ? this.xxz_1 : firstNameError; lastNameError = lastNameError === VOID ? this.yxz_1 : lastNameError; return $super === VOID ? this.by1(person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError) : $super.by1.call(this, person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError); }; protoOf(EditChildProfileUiState).toString = function () { return 'EditChildProfileUiState(person=' + this.txz_1 + ', dateOfBirthError=' + this.uxz_1 + ', genderOptions=' + this.vxz_1 + ', genderError=' + this.wxz_1 + ', firstNameError=' + this.xxz_1 + ', lastNameError=' + this.yxz_1 + ')'; }; protoOf(EditChildProfileUiState).hashCode = function () { var result = this.txz_1 == null ? 0 : this.txz_1.hashCode(); result = imul(result, 31) + (this.uxz_1 == null ? 0 : getStringHashCode(this.uxz_1)) | 0; result = imul(result, 31) + hashCode(this.vxz_1) | 0; result = imul(result, 31) + (this.wxz_1 == null ? 0 : getStringHashCode(this.wxz_1)) | 0; result = imul(result, 31) + (this.xxz_1 == null ? 0 : getStringHashCode(this.xxz_1)) | 0; result = imul(result, 31) + (this.yxz_1 == null ? 0 : getStringHashCode(this.yxz_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.txz_1, tmp0_other_with_cast.txz_1)) return false; if (!(this.uxz_1 == tmp0_other_with_cast.uxz_1)) return false; if (!equals(this.vxz_1, tmp0_other_with_cast.vxz_1)) return false; if (!(this.wxz_1 == tmp0_other_with_cast.wxz_1)) return false; if (!(this.xxz_1 == tmp0_other_with_cast.xxz_1)) return false; if (!(this.yxz_1 == tmp0_other_with_cast.yxz_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).my1 = function (entity, permissions, $completion) { var tmp = this.ny1(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.my1(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.ky1_1; var tmp_0; if (this.ly1_1.tht_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).ny1 = function (entity, permissions, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda(completion); i.ky1_1 = entity; i.ly1_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.my1(entity, permissions, $completion); }; l.$arity = 2; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.wy1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_1).yy1 = function (person, $completion) { var tmp = this.zy1(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.yy1((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.wy1_1.wy2_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.xy1_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yg0_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.x95_1; var tmp_0; if (tmp2_safe_receiver == null) { tmp_0 = null; } else { var tmp0_safe_receiver_0 = _get_phoneNumberUtil__i6ank8(this.wy1_1); tmp_0 = tmp0_safe_receiver_0 == null ? null : formatInternationalOrNull(tmp0_safe_receiver_0, tmp2_safe_receiver); } var nextValue = prevValue.ky3(this.xy1_1, tmp_0); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.wy1_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver_1 = this.xy1_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.yg0_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.xy1_1 == null)) { tmp_1 = Companion_getInstance_89().vpc_1; } else { tmp_1 = Companion_getInstance_89().upc_1; } var tmp4_loadingState = tmp_1; var nextValue_0 = prevValue_0.npc(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).zy1 = function (person, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_1(this.wy1_1, completion); i.xy1_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.yy1(person, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.ty3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_3).kpl = function (it, $completion) { var tmp = this.lpl(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.kpl((!(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.ty3_1.wy2_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ky3(VOID, VOID, VOID, VOID, VOID, this.uy3_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).lpl = function (it, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_3(this.ty3_1, completion); i.uy3_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.kpl(it, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { $boundThis.svu(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.dy4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_5).fy4 = function (it, $completion) { var tmp = this.gy4(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.fy4(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.dy4_1.wy2_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ky3(VOID, VOID, VOID, VOID, this.ey4_1.uht_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.dy4_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_0; if (this.ey4_1.uht_1) { var tmp_1 = this.dy4_1.npt().ant(strings_getInstance().lm6_1); var tmp_2 = FabIcon_EDIT_getInstance(); tmp_0 = new FabUiState(true, tmp_1, tmp_2, PersonDetailViewModel$onClickEdit$ref(this.dy4_1)); } else { tmp_0 = new FabUiState(); } var nextValue_0 = prevValue_0.npc(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).gy4 = function (it, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_5(this.dy4_1, completion); i.ey4_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.fy4(it, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.py4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_7).ry4 = function (it, $completion) { var tmp = this.sy4(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.ry4((!(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.py4_1.wy2_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ky3(VOID, VOID, VOID, this.qy4_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).sy4 = function (it, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_7(this.py4_1, completion); i.qy4_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.ry4(it, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda($entityFlow, $viewAndEditPermissionFlow, this$0, resultContinuation) { this.by5_1 = $entityFlow; this.cy5_1 = $viewAndEditPermissionFlow; this.dy5_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.by5_1, this.cy5_1, PersonDetailViewModel$slambda$slambda$slambda$slambda_0(null)); var tmp_1 = PersonDetailViewModel$slambda$slambda$slambda$slambda_2(this.dy5_1, null); suspendResult = tmp_0.z1b(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(PersonDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda(this.by5_1, this.cy5_1, this.dy5_1, completion); i.ey5_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.ny5_1 = $hasManagePermissionsPermissionFlow; this.oy5_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.ny5_1); var tmp_1 = PersonDetailViewModel$slambda$slambda$slambda$slambda_4(this.oy5_1, null); suspendResult = tmp_0.z1b(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(PersonDetailViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda_1(this.ny5_1, this.oy5_1, completion); i.py5_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.yy5_1 = $viewAndEditPermissionFlow; this.zy5_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.zy5_1, null); suspendResult = this.yy5_1.h1h(new sam$kotlinx_coroutines_flow_FlowCollector$0_32(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.yy5_1, this.zy5_1, completion); i.ay6_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.jy6_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.jy6_1.fpu().g7d().u92(this.jy6_1.dpu(), this.jy6_1.dpx_1); var tmp_1 = PersonDetailViewModel$slambda$slambda$slambda$slambda_8(this.jy6_1, null); suspendResult = tmp_0.z1b(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(PersonDetailViewModel$slambda$slambda$slambda_5).v1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda_5(this.jy6_1, completion); i.ky6_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.ty6_1 = $this_launch; this.uy6_1 = $entityFlow; this.vy6_1 = $viewAndEditPermissionFlow; this.wy6_1 = this$0; this.xy6_1 = $hasManagePermissionsPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.ty6_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_0(this.uy6_1, this.vy6_1, this.wy6_1, null)); launch(this.ty6_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_2(this.xy6_1, this.wy6_1, null)); launch(this.ty6_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_4(this.vy6_1, this.wy6_1, null)); launch(this.ty6_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_6(this.wy6_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).y77 = function (completion) { return new PersonDetailViewModel$slambda$slambda(this.ty6_1, this.uy6_1, this.vy6_1, this.wy6_1, this.xy6_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.w86($completion); }; l.$arity = 0; return l; } function _get_phoneNumberUtil__i6ank8($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zy2_1; phoneNumberUtil$factory_0(); return this_0.t2(); } function _get_onClickPhoneNumUseCase__2tcaut($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ay3_1; onClickPhoneNumUseCase$factory_0(); return this_0.t2(); } function _get_onClickSendSmsUseCase__plj4zm($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.by3_1; onClickSendSmsUseCase$factory_0(); return this_0.t2(); } function _get_onClickEmailUseCase__v8uzjh($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.cy3_1; onClickEmailUseCase$factory_0(); return this_0.t2(); } function navigateToEditAccount($this) { Companion_getInstance_119(); $this.zps_1.fog('AccountEdit', mapOf_0(to('entityUid', $this.yy2_1.toString()))); } function Companion_173() { this.yy6_1 = 'PersonDetailView'; } var Companion_instance_222; function Companion_getInstance_190() { return Companion_instance_222; } function sam$kotlinx_coroutines_flow_FlowCollector$0_32(function_0) { this.zy6_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_32).t1d = function (value, $completion) { return this.zy6_1(value, $completion); }; function PersonDetailViewModel$onClickEdit$ref_0($boundThis) { var l = function () { $boundThis.svu(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function PersonDetailViewModel$slambda(this$0, resultContinuation) { this.iy7_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.ky7_1 = this.iy7_1.hpu().a7d().sfx(this.iy7_1.dpx_1, this.iy7_1.dpu()); this.ly7_1 = shareIn(this.iy7_1.hpu().c7f().phr(this.iy7_1.dpu(), this.iy7_1.dpx_1), this.iy7_1.cpu(), Companion_getInstance_12().v1h()); var tmp_0 = this; var tmp_1 = this.iy7_1.fpu().c7f(); var tmp_2 = this.iy7_1.dpu(); PermissionFlags_getInstance(); tmp_0.my7_1 = tmp_1.mhr(tmp_2, new Long(4096, 0)); this.hd_1 = 1; suspendResult = whenSubscribed(this.iy7_1.wy2_1, PersonDetailViewModel$slambda$slambda_0(this.jy7_1, this.ky7_1, this.ly7_1, this.iy7_1, this.my7_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.iy7_1, completion); i.jy7_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.wy2_1 = MutableStateFlow(new PersonDetailUiState()); this.xy2_1 = asStateFlow(this.wy2_1); var tmp = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.yy2_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.zy2_1 = InstanceOrNull(this, tmp$ret$0, null).n5c(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.ay3_1 = Instance(this, tmp$ret$2, null).n5c(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.by3_1 = InstanceOrNull(this, tmp$ret$4, null).n5c(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.cy3_1 = Instance(this, tmp$ret$6, null).n5c(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).n5c(null, getLocalDelegateReference('accountManager', KProperty0, false, function () { return THROW_ISE(); })); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.detail.PersonDetailViewModel.' call var tmp0_loadingState = Companion_getInstance_89().upc_1; var tmp_9 = this.npt().ant(strings_getInstance().lm6_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.npc(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.wy2_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.detail.PersonDetailViewModel.' call var tmp0_isActiveUser = this.dpx_1.equals(this.dpu()); var tmp1_canSendSms = !(_get_onClickSendSmsUseCase__plj4zm(this) == null); var nextValue_0 = prevValue_0.ky3(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.cpu(); launch(tmp_11, VOID, VOID, PersonDetailViewModel$slambda_0(this, null)); } protoOf(PersonDetailViewModel).svu = function () { Companion_getInstance_191(); Companion_getInstance_119(); this.zps_1.fog('PersonEditView', mapOf_0(to('entityUid', this.yy2_1.toString()))); }; protoOf(PersonDetailViewModel).ny7 = function () { return navigateToEditAccount(this); }; protoOf(PersonDetailViewModel).oy7 = function () { return navigateToEditAccount(this); }; protoOf(PersonDetailViewModel).py7 = function () { Companion_getInstance_108(); this.zps_1.fog('MessageList', mapOf_0(to('personUid', this.yy2_1.toString()))); }; protoOf(PersonDetailViewModel).qy7 = function () { var tmp0_safe_receiver = this.wy2_1.t2().dy3_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yg0_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.x95_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).kob(tmp2_safe_receiver); } }; protoOf(PersonDetailViewModel).ry7 = function () { var tmp0_safe_receiver = this.wy2_1.t2().dy3_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yg0_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w95_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).kob(tmp2_safe_receiver); } }; protoOf(PersonDetailViewModel).vqy = function () { Companion_getInstance_119(); this.zps_1.fog('SystemPermission', mapOf_0(to('personUid', this.dpx_1.toString()))); }; protoOf(PersonDetailViewModel).sy7 = function () { var tmp0_safe_receiver = this.wy2_1.t2().dy3_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zg0_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.cg1_1; var ppjUid = tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs; if (!ppjUid.equals(new Long(0, 0))) { Companion_getInstance_119(); var tmp = to('entityUid', ppjUid.toString()); Companion_getInstance_119(); Companion_getInstance_108(); this.zps_1.fog('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.dy3_1 = person; this.ey3_1 = displayPhoneNum; this.fy3_1 = canSendSms; this.gy3_1 = clazzes; this.hy3_1 = hasChangePasswordPermission; this.iy3_1 = showPermissionButton; this.jy3_1 = isActiveUser; } protoOf(PersonDetailUiState).ty7 = function () { var tmp0_safe_receiver = this.dy3_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yg0_1; return isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.b96_1); }; protoOf(PersonDetailUiState).uy7 = function () { var tmp; var tmp0_safe_receiver = this.dy3_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yg0_1; if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.y95_1) == null)) { var tmp2_safe_receiver = this.dy3_1.yg0_1; tmp = !((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.y95_1) === 0); } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).vy7 = function () { var tmp; var tmp0_safe_receiver = this.dy3_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yg0_1; if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t95_1) == null)) { tmp = this.hy3_1; } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).wy7 = function () { var tmp; var tmp_0; if (!(this.dy3_1 == null)) { var tmp0_safe_receiver = this.dy3_1.yg0_1; tmp_0 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t95_1) == null; } else { tmp_0 = false; } if (tmp_0) { tmp = this.hy3_1; } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).xy7 = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.dy3_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yg0_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.c96_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).yy7 = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.dy3_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yg0_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.x95_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).zy7 = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.dy3_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yg0_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w95_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).ay8 = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.dy3_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yg0_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d96_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).by8 = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.dy3_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yg0_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t95_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).cy8 = function () { var tmp0_safe_receiver = this.dy3_1; return !((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zg0_1) == null); }; protoOf(PersonDetailUiState).dy8 = function () { var tmp; // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.dy3_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yg0_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t95_1; // Inline function 'kotlin.contracts.contract' call if (!(this_0 == null ? true : isBlank(this_0))) { tmp = !this.jy3_1; } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).ey8 = function (person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser) { return new PersonDetailUiState(person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser); }; protoOf(PersonDetailUiState).ky3 = function (person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser, $super) { person = person === VOID ? this.dy3_1 : person; displayPhoneNum = displayPhoneNum === VOID ? this.ey3_1 : displayPhoneNum; canSendSms = canSendSms === VOID ? this.fy3_1 : canSendSms; clazzes = clazzes === VOID ? this.gy3_1 : clazzes; hasChangePasswordPermission = hasChangePasswordPermission === VOID ? this.hy3_1 : hasChangePasswordPermission; showPermissionButton = showPermissionButton === VOID ? this.iy3_1 : showPermissionButton; isActiveUser = isActiveUser === VOID ? this.jy3_1 : isActiveUser; return $super === VOID ? this.ey8(person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser) : $super.ey8.call(this, person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser); }; protoOf(PersonDetailUiState).toString = function () { return 'PersonDetailUiState(person=' + this.dy3_1 + ', displayPhoneNum=' + this.ey3_1 + ', canSendSms=' + this.fy3_1 + ', clazzes=' + this.gy3_1 + ', hasChangePasswordPermission=' + this.hy3_1 + ', showPermissionButton=' + this.iy3_1 + ', isActiveUser=' + this.jy3_1 + ')'; }; protoOf(PersonDetailUiState).hashCode = function () { var result = this.dy3_1 == null ? 0 : this.dy3_1.hashCode(); result = imul(result, 31) + (this.ey3_1 == null ? 0 : getStringHashCode(this.ey3_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.fy3_1) | 0; result = imul(result, 31) + hashCode(this.gy3_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.hy3_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.iy3_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.jy3_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.dy3_1, tmp0_other_with_cast.dy3_1)) return false; if (!(this.ey3_1 == tmp0_other_with_cast.ey3_1)) return false; if (!(this.fy3_1 === tmp0_other_with_cast.fy3_1)) return false; if (!equals(this.gy3_1, tmp0_other_with_cast.gy3_1)) return false; if (!(this.hy3_1 === tmp0_other_with_cast.hy3_1)) return false; if (!(this.iy3_1 === tmp0_other_with_cast.iy3_1)) return false; if (!(this.jy3_1 === tmp0_other_with_cast.jy3_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.ny8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda).ixy = function (it, $completion) { var tmp = this.pn8(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.ixy(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.oy8_1.a7d(); var tmp_1; if (!_get_entityUid__ovkepw(this.ny8_1).equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.py8_1 = tmp_1; if (this.py8_1 == null) { this.qy8_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.py8_1.pfx(_get_entityUid__ovkepw(this.ny8_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.qy8_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.qy8_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).pn8 = function (it, completion) { var i = new PersonEditViewModel$slambda$slambda$slambda(this.ny8_1, completion); i.oy8_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.ixy(it, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$slambda$slambda$slambda_1($savedStateHandle, resultContinuation) { this.zy8_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda_1).sxy = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_1).z77 = function ($completion) { return this.sxy($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.zy8_1.ba('DateOfBirth'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.b96_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).y77 = function (completion) { return new PersonEditViewModel$slambda$slambda$slambda_1(this.zy8_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.sxy($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.xy9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel....' call var nextValue = prevValue.cyb(entityToDisplay); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.lyb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda_3).nyb = function (it, $completion) { var tmp = this.pn8(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.nyb(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.myb_1.s7d().mgv(_get_entityUid__ovkepw(this.lyb_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).pn8 = function (it, completion) { var i = new PersonEditViewModel$slambda$slambda$slambda_3(this.lyb_1, completion); i.myb_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.nyb(it, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$slambda$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda_5).wyb = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_5).z77 = function ($completion) { return this.wyb($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).y77 = 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.wyb($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.xy9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel....' call var nextValue = prevValue.cyb(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.fyc_1 = this$0; this.gyc_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda).iyc = 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.iyc((!(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.a4r(); var tmp_1 = PersonEditViewModel$slambda$slambda$slambda_0(this.fyc_1, null); var tmp_2 = PersonEditViewModel$slambda$slambda$slambda_2(this.gyc_1, null); suspendResult = this.fyc_1.rpu(tmp_0, VOID, VOID, tmp_1, tmp_2, PersonEditViewModel$slambda$slambda$lambda(this.fyc_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.fyc_1, this.gyc_1, completion); i.hyc_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.iyc($this$async, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.ryc_1 = this$0; this.syc_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda_1).uyc = 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.uyc((!(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.a4r(); var tmp_1 = listOf_0('picState'); var tmp_2; if (!_get_entityUid__ovkepw(this.ryc_1).equals(new Long(0, 0))) { tmp_2 = PersonEditViewModel$slambda$slambda$slambda_4(this.ryc_1, null); } else { tmp_2 = null; } var tmp_3 = tmp_2; var tmp_4 = PersonEditViewModel$slambda$slambda$slambda_6(null); suspendResult = this.ryc_1.rpu(tmp_0, tmp_1, VOID, tmp_3, tmp_4, PersonEditViewModel$slambda$slambda$lambda_0(this.ryc_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_0 = suspendResult; Companion_getInstance_117(); var tmp1_elvis_lhs = this_0 == null ? null : this_0.t96_1; setIfNoValueSetYet(this.syc_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.ryc_1, this.syc_1, completion); i.tyc_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.uyc($this$async, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function PersonEditViewModel$onClickSave$slambda$slambda(this$0, $savePerson, $consentToUpsert, resultContinuation) { this.dyd_1 = this$0; this.eyd_1 = $savePerson; this.fyd_1 = $consentToUpsert; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$onClickSave$slambda$slambda).myd = function (it, $completion) { var tmp = this.pn8(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.myd(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.dyd_1.wq1_1.equals(new Long(0, 0))) { this.hd_1 = 4; suspendResult = _get_addNewPersonUseCase__raa2qa(this.dyd_1).tot(this.eyd_1, this.dyd_1.dpu(), true, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; suspendResult = this.dyd_1.hpu().a7d().qfx(this.eyd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.iyd_1 = this.fyd_1; if (this.iyd_1 == null) { this.jyd_1 = null; this.hd_1 = 3; continue $sm; } else { var tmp_0 = this; tmp_0.kyd_1 = this.iyd_1; var tmp_1 = this; tmp_1.lyd_1 = this.kyd_1; this.hd_1 = 2; suspendResult = this.dyd_1.hpu().k7e().xgl(this.lyd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.jyd_1 = this.kyd_1; this.hd_1 = 3; continue $sm; case 3: this.hyd_1 = this.jyd_1; this.hd_1 = 5; continue $sm; case 4: this.hyd_1 = suspendResult; this.hd_1 = 5; continue $sm; case 5: return this.hyd_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).pn8 = function (it, completion) { var i = new PersonEditViewModel$onClickSave$slambda$slambda(this.dyd_1, this.eyd_1, this.fyd_1, completion); i.gyd_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.myd(it, $completion); }; l.$arity = 1; return l; } function _get_apiUrlConfig__mldllg_4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.aya_1; apiUrlConfig$factory_10(); return this_0.t2(); } function _get_entityUid__ovkepw($this) { Companion_getInstance_108(); var tmp0_safe_receiver = $this.xps_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.dya_1; phoneNumValidatorUseCase$factory_0(); return this_0.t2(); } function _get_genderConfig__kyr0zc_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.fya_1; genderConfig$factory_2(); return this_0.t2(); } function _get_enqueueSavePictureUseCase__rl1s31($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.gya_1; enqueueSavePictureUseCase$factory_0(); return this_0.t2(); } function _get_addNewPersonUseCase__raa2qa($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hya_1; addNewPersonUseCase$factory_0(); return this_0.t2(); } function hasErrors_4(_this__u8e3s4, $this) { return ((((((((!(_this__u8e3s4.qya_1 == null) ? true : !(_this__u8e3s4.sya_1 == null)) ? true : !(_this__u8e3s4.uya_1 == null)) ? true : !(_this__u8e3s4.vya_1 == null)) ? true : !(_this__u8e3s4.yya_1 == null)) ? true : !(_this__u8e3s4.zya_1 == null)) ? true : !(_this__u8e3s4.xya_1 == null)) ? true : !(_this__u8e3s4.tya_1 == null)) ? true : !(_this__u8e3s4.wya_1 == null)) ? true : !(_this__u8e3s4.ayb_1 == null); } function validateUsername($this, username) { var isValid = true; // Inline function 'kotlin.text.isNullOrEmpty' call // Inline function 'kotlin.contracts.contract' call if (username == null ? true : 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 Companion_174() { Companion_instance_223 = this; this.nyd_1 = 'picState'; this.oyd_1 = 'PersonEditView'; this.pyd_1 = 'Register'; this.qyd_1 = listOf(['PersonEditView', 'Register']); this.ryd_1 = 'RegMode'; this.syd_1 = 'DateOfBirth'; this.tyd_1 = 'RegViaLink'; this.uyd_1 = 0; this.vyd_1 = 1; this.wyd_1 = 2; var tmp = this; Companion_getInstance_108(); Companion_getInstance_108(); Companion_getInstance_119(); Companion_getInstance_119(); tmp.xyd_1 = listOf(['learningSpaceUrl', 'showAccept', 'popUpToOnFinish', 'next', 'RegViaLink', 'DateOfBirth', 'RegMode', 'noSessionChange']); this.yyd_1 = 'initDob'; } var Companion_instance_223; function Companion_getInstance_191() { if (Companion_instance_223 == null) new Companion_174(); return Companion_instance_223; } function PersonEditViewModel$slambda(this$0, resultContinuation) { this.hye_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda).krc = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda).he = function (p1, $completion) { return this.krc(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.hye_1.zy9_1 === 0) ? this.hye_1.wq1_1.equals(new Long(0, 0)) : false) { this.jye_1 = true; this.hd_1 = 4; continue $sm; } else { if (!this.hye_1.wq1_1.equals(new Long(0, 0)) ? this.hye_1.dpu().equals(this.hye_1.wq1_1) : false) { this.jye_1 = true; this.hd_1 = 4; continue $sm; } else { if (this.hye_1.wq1_1.equals(new Long(0, 0))) { this.hd_1 = 2; var tmp_0 = this.iye_1.c7f(); var tmp_1 = this.hye_1.dpu(); PermissionFlags_getInstance(); suspendResult = tmp_0.lhr(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.iye_1.c7f(); var tmp_3 = this.hye_1.dpu(); PermissionFlags_getInstance(); suspendResult = tmp_2.lhr(tmp_3, new Long(32768, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } } case 1: this.jye_1 = suspendResult; this.hd_1 = 4; continue $sm; case 2: this.jye_1 = suspendResult; this.hd_1 = 4; continue $sm; case 3: throw this.kd_1; case 4: return this.jye_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).pn8 = function (db, completion) { var i = new PersonEditViewModel$slambda(this.hye_1, completion); i.iye_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.krc(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.xy9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel..' call var nextValue = prevValue.cyb(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.sye_1 = this$0; this.tye_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.uye_1, VOID, VOID, PersonEditViewModel$slambda$slambda_0(this.sye_1, this.tye_1, null)); suspendResult = awaitAll([tmp_0, async(this.uye_1, VOID, VOID, PersonEditViewModel$slambda$slambda_2(this.sye_1, this.tye_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.sye_1.bpt_1; while (true) { var prevValue = this_0.t2(); var tmp_1; if (hasFlag(this.sye_1.zy9_1, 1)) { tmp_1 = this.sye_1.npt().ant(strings_getInstance().nlv_1); } else { tmp_1 = this.sye_1.npt().ant(strings_getInstance().zmd_1); } var tmp_2 = tmp_1; var nextValue = prevValue.npc(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_2, VOID, PersonEditViewModel$onClickSave$ref(this.sye_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp_3; if (hasFlag(this.sye_1.zy9_1, 2)) { tmp_3 = new PersonParentJoin(); } else { tmp_3 = null; } var personParentJoin = tmp_3; l$ret$3: do { var this_1 = this.sye_1.xy9_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.cyb(VOID, VOID, VOID, VOID, true, personParentJoin); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.sye_1.epx(Companion_getInstance_89().vpc_1); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.sye_1, this.tye_1, completion); i.uye_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$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.dyf_1 = $commitDelay; this.eyf_1 = $entity; this.fyf_1 = $this; this.gyf_1 = $key; this.hyf_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.dyf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.eyf_1 == null)) { this.hd_1 = 2; suspendResult = this.fyf_1.npu(this.fyf_1.xps_1, this.gyf_1, this.hyf_1, this.eyf_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.dyf_1, this.eyf_1, this.fyf_1, this.gyf_1, this.hyf_1, completion); i.iyf_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.ryf_1 = this$0; this.syf_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.ryf_1.npu(this.ryf_1.xps_1, 'picState', Companion_instance_7.a4r(), this.syf_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.ryf_1, this.syf_1, completion); i.tyf_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.x95_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.x95_1 = tmp1_safe_receiver == null ? null : replace(tmp1_safe_receiver, ' ', ''); var tmp_1 = $this$shallowCopy; var tmp2_safe_receiver = $this$shallowCopy.w95_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.w95_1 = tmp_2; return Unit_instance; } function PersonEditViewModel$onClickSave$slambda($isRegistrationMode, this$0, $savePerson, $requiredFieldMessage, resultContinuation) { this.cyg_1 = $isRegistrationMode; this.dyg_1 = this$0; this.eyg_1 = $savePerson; this.fyg_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.cyg_1) { this.hyg_1 = this.dyg_1.xy9_1.t2().oya_1; this.iyg_1 = this.dyg_1.xy9_1.t2().kya_1; var tmp_0 = this; var tmp$ret$0; l$ret$1: do { var this_0 = this.dyg_1.xy9_1; while (true) { var prevValue = this_0.t2(); var tmp_1; var this_1 = this.eyg_1.t95_1; if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_1 = this.fyg_1; } else { tmp_1 = null; } var tmp3_usernameError = tmp_1; var tmp_2; var this_2 = this.iyg_1; if (this_2 == null ? true : charSequenceLength(this_2) === 0) { tmp_2 = this.fyg_1; } else { tmp_2 = null; } var tmp4_passwordError = tmp_2; var tmp_3; if (!hasFlag(this.dyg_1.zy9_1, 2)) { tmp_3 = null; } else { var tmp0_safe_receiver = this.hyg_1; var this_3 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kg1_1; if (this_3 == null ? true : charSequenceLength(this_3) === 0) { tmp_3 = this.fyg_1; } else { var tmp1_safe_receiver = this.hyg_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.kg1_1; var tmp_4; if (tmp2_safe_receiver == null) { tmp_4 = null; } else { tmp_4 = this.dyg_1.eya_1.xnr(tmp2_safe_receiver); } if (tmp_4 == null) { tmp_3 = this.dyg_1.npt().ant(strings_getInstance().gml_1); } else { tmp_3 = null; } } } var tmp5_parentContactError = tmp_3; var tmp_5; if (this.eyg_1.b96_1.equals(new Long(0, 0))) { tmp_5 = this.fyg_1; } else { tmp_5 = null; } var tmp6_dateOfBirthError = tmp_5; var nextValue = prevValue.cyb(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.jyg_1 = tmp$ret$0; if (hasErrors_4(this.jyg_1, this.dyg_1) ? true : this.iyg_1 == null) { this.dyg_1.epx(Companion_getInstance_89().vpc_1); l$ret$3: do { var this_4 = this.dyg_1.xy9_1; while (true) { var prevValue_0 = this_4.t2(); var nextValue_0 = prevValue_0.cyb(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.dyg_1.wq1_1.equals(new Long(0, 0)) ? isDateOfBirthAMinor(Companion_getInstance_6().kls(this.eyg_1.b96_1)) : false) { var tmp_7 = Companion_getInstance_6(); var tmp0_safe_receiver_0 = this.dyg_1.xps_1.ba('initDob'); var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); tmp_6 = !isDateOfBirthAMinor(tmp_7.kls(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs)); } else { tmp_6 = false; } if (tmp_6) { this.hd_1 = 1; suspendResult = this.dyg_1.hpu().k7e().agm(this.eyg_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.myg_1 = false; this.hd_1 = 2; continue $sm; } } case 1: this.nyg_1 = suspendResult; this.myg_1 = !this.nyg_1; this.hd_1 = 2; continue $sm; case 2: if (this.myg_1) { var tmp_8 = this; var this_5 = new PersonParentJoin(); this_5.ig1_1 = this.eyg_1.s95_1; this_5.hg1_1 = this.dyg_1.bpu().lnk().yk9_1; var tmp_9 = this_5; tmp_9.ng1_1 = 1; this_5.og1_1 = systemTimeInMillis(); tmp_8.lyg_1 = this_5; this.hd_1 = 3; continue $sm; } else { var tmp_10 = this; tmp_10.lyg_1 = null; this.hd_1 = 3; continue $sm; } case 3: this.oyg_1 = this.lyg_1; this.hd_1 = 4; var tmp_11 = this.dyg_1.hpu(); suspendResult = withDoorTransactionAsync(tmp_11, VOID, PersonEditViewModel$onClickSave$slambda$slambda_0(this.dyg_1, this.eyg_1, this.oyg_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.pyg_1 = this.dyg_1.xy9_1.t2().mya_1; if (!(this.pyg_1 == null)) { this.pyg_1.r96_1 = this.eyg_1.s95_1; this.pyg_1.s96_1 = systemTimeInMillis(); var tmp_12 = this; Companion_getInstance_117(); var tmp2_elvis_lhs = this.dyg_1.xps_1.ba('initPicUri'); tmp_12.qyg_1 = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; this.ryg_1 = this.pyg_1.t96_1; if (!(this.qyg_1 === this.ryg_1)) { this.hd_1 = 5; suspendResult = this.dyg_1.fpu().s7d().lgv(this.pyg_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.dyg_1); var tmp_14 = this.eyg_1.s95_1; suspendResult = tmp_13.po1(tmp_14, 50, this.ryg_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.syg_1 = this.dyg_1.xps_1.ba('goToOnPersonSelected'); if (!(this.syg_1 == null)) { var tmp_16 = UMFileUtil_getInstance().parseURLQueryString(this.syg_1); Companion_getInstance_108(); var args = plus_0(tmp_16, mapOf_0(to('personUid', this.eyg_1.s95_1.toString()))); this.dyg_1.zps_1.fog(substringBefore_0(this.syg_1, '?'), args); } else { this.dyg_1.yq1('PersonDetailView', this.eyg_1.s95_1, this.eyg_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.dyg_1.bpu().snk(this.eyg_1, this.iyg_1, this.dyg_1.bya_1, new AccountRegisterOptions(!hasFlag(this.dyg_1.zy9_1, 2) ? !this.dyg_1.iya_1 : false, this.hyg_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.dyg_1.zy9_1, 2)) { var goOptions = new UstadGoOptions('RegisterAgeRedirect', true); var this_6 = LinkedHashMap_init_$Create$(); var key = 'username'; var tmp0_elvis_lhs = this.eyg_1.t95_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.hyg_1; var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.kg1_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.dyg_1.xy9_1.t2().kya_1; var value_1 = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs; this_6.s(key_1, value_1); Companion_getInstance_108(); putFromSavedStateIfPresent(this_6, this.dyg_1.xps_1, 'popUpToOnFinish'); var args_0 = this_6; this.dyg_1.zps_1.npf('WaitForParent', args_0, goOptions); tmp_18 = Unit_instance; } else { this.dyg_1.aq3(this.dyg_1.zps_1, appendSelectedAccount(this.dyg_1.cya_1, registeredPerson.s95_1, new LearningSpace(this.dyg_1.bya_1)), new UstadGoOptions(VOID, VOID, true)); tmp_18 = Unit_instance; } tmp_17.kyg_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.dyg_1.xy9_1; while (true) { var prevValue_1 = this_7.t2(); var nextValue_1 = prevValue_1.cyb(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.dyg_1.npt().ant(strings_getInstance().qmi_1)); if (this_7.y1k(prevValue_1, nextValue_1)) { break l$ret$7; } } } while (false); } else { this.dyg_1.jpu().cpd(new Snack(this.dyg_1.npt().ant(strings_getInstance().flu_1))); } this.tyg_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.dyg_1.epx(Companion_getInstance_89().vpc_1); l$ret$11: do { var this_8 = this.dyg_1.xy9_1; while (true) { var prevValue_2 = this_8.t2(); var nextValue_2 = prevValue_2.cyb(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.dyg_1.epx(Companion_getInstance_89().vpc_1); l$ret$13: do { var this_9 = this.dyg_1.xy9_1; while (true) { var prevValue_3 = this_9.t2(); var nextValue_3 = prevValue_3.cyb(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.dyg_1.epx(Companion_getInstance_89().vpc_1); l$ret$15: do { var this_10 = this.dyg_1.xy9_1; while (true) { var prevValue_4 = this_10.t2(); var nextValue_4 = prevValue_4.cyb(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.cyg_1, this.dyg_1, this.eyg_1, this.fyg_1, completion); i.gyg_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_191(); destName = destName === VOID ? 'PersonEditView' : destName; UstadEditViewModel.call(this, di, savedStateHandle, destName); this.xy9_1 = MutableStateFlow(new PersonEditUiState()); this.yy9_1 = asStateFlow(this.xy9_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.zy9_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.aya_1 = Instance(this, tmp$ret$0, null).n5c(this, apiUrlConfig$factory_9()); var tmp_2 = this; Companion_getInstance_108(); var tmp0_elvis_lhs = savedStateHandle.ba('learningSpaceUrl'); var tmp1_elvis_lhs_0 = tmp0_elvis_lhs == null ? _get_apiUrlConfig__mldllg_4(this).hnk_1 : tmp0_elvis_lhs; tmp_2.bya_1 = tmp1_elvis_lhs_0 == null ? 'http://localhost' : tmp1_elvis_lhs_0; var tmp_3 = this; Companion_getInstance_108(); var tmp0_elvis_lhs_0 = savedStateHandle.ba('next'); tmp_3.cya_1 = tmp0_elvis_lhs_0 == null ? this.npt().hpb() : 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.dya_1 = Instance(this, tmp$ret$2, null).n5c(this, phoneNumValidatorUseCase$factory()); this.eya_1 = new ValidateEmailUseCase(); 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.fya_1 = Instance(this, tmp$ret$4, null).n5c(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.bpu().nnk(); var trigger = this.q56(); // 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.u56(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.gya_1 = Instance(this_0, tmp$ret$9, null).n5c(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.hya_1 = Instance(this_1, tmp$ret$11, null).n5c(this, addNewPersonUseCase$factory()); var tmp_14 = this; Companion_getInstance_119(); 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.iya_1 = tmp1_elvis_lhs_1 == null ? false : tmp1_elvis_lhs_1; this.epx(Companion_getInstance_89().upc_1); var tmp_15; if (hasFlag(this.zy9_1, 1)) { tmp_15 = this.npt().ant(strings_getInstance().bmw_1); } else { tmp_15 = _get_entityUid__ovkepw(this).equals(new Long(0, 0)) ? this.npt().ant(strings_getInstance().lmc_1) : this.npt().ant(strings_getInstance().mmc_1); } var title = tmp_15; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.bpt_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.' call var tmp0_navigationVisible = !hasFlag(this.zy9_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.xy9_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.' call var nextValue_0 = prevValue_0.cyb(VOID, VOID, _get_genderConfig__kyr0zc_0(this).mpd_1, VOID, VOID, VOID, this.zy9_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.spu(tmp_16, true, tmp_17, PersonEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(PersonEditViewModel).ay1 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xy9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onEntityChanged.' call var tmp4_safe_receiver = prevValue.jya_1; var tmp = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.y95_1; var tmp12_genderError = this.zq2(tmp, entity == null ? null : entity.y95_1, prevValue.xya_1); var tmp6_safe_receiver = prevValue.jya_1; var tmp_0 = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.u95_1; var tmp13_firstNameError = this.zq2(tmp_0, entity == null ? null : entity.u95_1, prevValue.yya_1); var tmp8_safe_receiver = prevValue.jya_1; var tmp_1 = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.v95_1; var tmp14_lastNameError = this.zq2(tmp_1, entity == null ? null : entity.v95_1, prevValue.zya_1); var tmp10_safe_receiver = prevValue.jya_1; var tmp_2 = tmp10_safe_receiver == null ? null : tmp10_safe_receiver.x95_1; var tmp15_phoneNumError = this.zq2(tmp_2, entity == null ? null : entity.x95_1, prevValue.ayb_1); var tmp2_safe_receiver = prevValue.jya_1; var tmp_3 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.w95_1; var tmp16_emailError = this.zq2(tmp_3, entity == null ? null : entity.w95_1, prevValue.tya_1); var tmp0_safe_receiver = prevValue.jya_1; var tmp_4 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t95_1; var tmp17_usernameError = this.zq2(tmp_4, entity == null ? null : entity.t95_1, prevValue.qya_1); var nextValue = prevValue.cyb(entity, VOID, VOID, VOID, VOID, VOID, VOID, tmp17_usernameError, VOID, VOID, tmp16_emailError, VOID, VOID, VOID, tmp12_genderError, tmp13_firstNameError, tmp14_lastNameError, tmp15_phoneNumError); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_5 = this; var tmp_6 = this.cpu(); tmp_5.vq1_1 = launch(tmp_6, VOID, VOID, PersonEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(PersonEditViewModel).uyg = function (password) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xy9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onPasswordChanged.' call var nextValue = prevValue.cyb(VOID, password, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(PersonEditViewModel).vyg = 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.xy9_1.t2().mya_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r96_1; tmp.r96_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this_0.t96_1 = pictureUri; var personPicture = this_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.xy9_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onPersonPictureChanged.' call var nextValue = prevValue.cyb(VOID, VOID, VOID, personPicture); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.cpu(); launch(tmp_0, VOID, VOID, PersonEditViewModel$onPersonPictureChanged$slambda_0(this, personPicture, null)); }; protoOf(PersonEditViewModel).wyg = function (personParentJoin) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xy9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onApprovalPersonParentJoinChanged.' call var nextValue = prevValue.cyb(VOID, VOID, VOID, VOID, VOID, personParentJoin); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(PersonEditViewModel).xyg = function (phoneNumSet) { // Inline function 'kotlin.takeIf' call var this_0 = this.xy9_1; // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onNationalPhoneNumSetChanged.' call if (!(this_0.t2().byb_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.cyb(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).yr9 = function () { if (!this.xy9_1.t2().nya_1) return Unit_instance; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xy9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onClickSave.' call var nextValue = prevValue.cyb(VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.epx(Companion_getInstance_89().upc_1); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.xy9_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.cyb(VOID, VOID, VOID, VOID, false); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp0_safe_receiver = this.xy9_1.t2().jya_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.npt().ant(strings_getInstance().sly_1); var currentTime = systemTimeInMillis(); var isRegistrationMode = hasFlag(this.zy9_1, 1); var tmp2_safe_receiver = savePerson.w95_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.eya_1.xnr(tmp2_safe_receiver); } var validatedEmailAddr = tmp_1; $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.xy9_1; while (true) { var prevValue_1 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onClickSave.' call var tmp_2; var tmp_3; if (isRegistrationMode) { var tmp0_elvis_lhs = savePerson.t95_1; tmp_3 = !validateUsername(this, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); } else { tmp_3 = false; } if (tmp_3) { tmp_2 = this.npt().ant(strings_getInstance().em1_1); } else { tmp_2 = null; } var tmp2_usernameError = tmp_2; var tmp_4; var tmp_5; if (isRegistrationMode) { // Inline function 'kotlin.text.isNullOrBlank' call var this_3 = savePerson.t95_1; // Inline function 'kotlin.contracts.contract' call tmp_5 = this_3 == null ? true : isBlank(this_3); } else { tmp_5 = false; } if (tmp_5) { tmp_4 = this.npt().ant(strings_getInstance().sly_1); } else { tmp_4 = null; } var tmp3_passwordError = tmp_4; var tmp_6; if (savePerson.b96_1.c7(currentTime) > 0) { tmp_6 = this.npt().ant(strings_getInstance().em1_1); } else if (isRegistrationMode ? !isDateSet(savePerson.b96_1) : false) { tmp_6 = this.npt().ant(strings_getInstance().sly_1); } else { tmp_6 = null; } var tmp4_dateOfBirthError = tmp_6; var tmp_7; // Inline function 'kotlin.text.isNullOrEmpty' call var this_4 = savePerson.u95_1; // Inline function 'kotlin.contracts.contract' call if (this_4 == null ? true : charSequenceLength(this_4) === 0) { tmp_7 = requiredFieldMessage; } else { tmp_7 = null; } var tmp5_firstNameError = tmp_7; var tmp_8; // Inline function 'kotlin.text.isNullOrEmpty' call var this_5 = savePerson.v95_1; // Inline function 'kotlin.contracts.contract' call if (this_5 == null ? true : charSequenceLength(this_5) === 0) { tmp_8 = requiredFieldMessage; } else { tmp_8 = null; } var tmp6_lastNameError = tmp_8; var tmp_9; var tmp_10 = savePerson.y95_1; if (tmp_10 === 0) { tmp_9 = requiredFieldMessage; } else { tmp_9 = null; } var tmp7_genderError = tmp_9; var tmp_11; var tmp_12; if (this.xy9_1.t2().byb_1) { var tmp1_safe_receiver = savePerson.x95_1; var tmp_13; if (tmp1_safe_receiver == null) { tmp_13 = 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_13 = _get_phoneNumValidatorUseCase__4guu7i(this).yop(tmp1_safe_receiver); } tmp_12 = !(tmp_13 === true); } else { tmp_12 = false; } if (tmp_12) { tmp_11 = this.npt().ant(strings_getInstance().em1_1); } else { tmp_11 = null; } var tmp8_phoneNumError = tmp_11; var tmp_14; var tmp_15; // Inline function 'kotlin.text.isNullOrBlank' call var this_6 = savePerson.w95_1; // Inline function 'kotlin.contracts.contract' call if (!(this_6 == null ? true : isBlank(this_6))) { tmp_15 = validatedEmailAddr == null; } else { tmp_15 = false; } if (tmp_15) { tmp_14 = this.npt().ant(strings_getInstance().em1_1); } else { tmp_14 = null; } var tmp9_emailError = tmp_14; var nextValue_1 = prevValue_1.cyb(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_usernameError, VOID, tmp3_passwordError, tmp9_emailError, null, tmp4_dateOfBirthError, null, tmp7_genderError, tmp5_firstNameError, tmp6_lastNameError, tmp8_phoneNumError); if (this_2.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } if (hasErrors_4(this.xy9_1.t2(), this)) { this.epx(Companion_getInstance_89().vpc_1); $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_7 = this.xy9_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.cyb(VOID, VOID, VOID, VOID, true); if (this_7.y1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } return Unit_instance; } var tmp_16 = this.cpu(); launch(tmp_16, 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().opd_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.jya_1 = person; this.kya_1 = password; this.lya_1 = genderOptions; this.mya_1 = personPicture; this.nya_1 = fieldsEnabled; this.oya_1 = approvalPersonParentJoin; this.pya_1 = registrationMode; this.qya_1 = usernameError; this.rya_1 = passwordConfirmedError; this.sya_1 = passwordError; this.tya_1 = emailError; this.uya_1 = confirmError; this.vya_1 = dateOfBirthError; this.wya_1 = parentContactError; this.xya_1 = genderError; this.yya_1 = firstNameError; this.zya_1 = lastNameError; this.ayb_1 = phoneNumError; this.byb_1 = nationalPhoneNumSet; } protoOf(PersonEditUiState).yyg = function () { return !(this.oya_1 == null); }; protoOf(PersonEditUiState).ty7 = function () { return !hasFlag(this.pya_1, 1); }; protoOf(PersonEditUiState).hxn = function () { return hasFlag(this.pya_1, 1); }; protoOf(PersonEditUiState).zyg = function () { return hasFlag(this.pya_1, 1); }; protoOf(PersonEditUiState).zy7 = function () { return !hasFlag(this.pya_1, 2); }; protoOf(PersonEditUiState).yy7 = function () { return !hasFlag(this.pya_1, 2); }; protoOf(PersonEditUiState).xy7 = function () { return !hasFlag(this.pya_1, 2); }; protoOf(PersonEditUiState).ayh = 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).cyb = 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.jya_1 : person; password = password === VOID ? this.kya_1 : password; genderOptions = genderOptions === VOID ? this.lya_1 : genderOptions; personPicture = personPicture === VOID ? this.mya_1 : personPicture; fieldsEnabled = fieldsEnabled === VOID ? this.nya_1 : fieldsEnabled; approvalPersonParentJoin = approvalPersonParentJoin === VOID ? this.oya_1 : approvalPersonParentJoin; registrationMode = registrationMode === VOID ? this.pya_1 : registrationMode; usernameError = usernameError === VOID ? this.qya_1 : usernameError; passwordConfirmedError = passwordConfirmedError === VOID ? this.rya_1 : passwordConfirmedError; passwordError = passwordError === VOID ? this.sya_1 : passwordError; emailError = emailError === VOID ? this.tya_1 : emailError; confirmError = confirmError === VOID ? this.uya_1 : confirmError; dateOfBirthError = dateOfBirthError === VOID ? this.vya_1 : dateOfBirthError; parentContactError = parentContactError === VOID ? this.wya_1 : parentContactError; genderError = genderError === VOID ? this.xya_1 : genderError; firstNameError = firstNameError === VOID ? this.yya_1 : firstNameError; lastNameError = lastNameError === VOID ? this.zya_1 : lastNameError; phoneNumError = phoneNumError === VOID ? this.ayb_1 : phoneNumError; nationalPhoneNumSet = nationalPhoneNumSet === VOID ? this.byb_1 : nationalPhoneNumSet; return $super === VOID ? this.ayh(person, password, genderOptions, personPicture, fieldsEnabled, approvalPersonParentJoin, registrationMode, usernameError, passwordConfirmedError, passwordError, emailError, confirmError, dateOfBirthError, parentContactError, genderError, firstNameError, lastNameError, phoneNumError, nationalPhoneNumSet) : $super.ayh.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.jya_1 + ', password=' + this.kya_1 + ', genderOptions=' + this.lya_1 + ', personPicture=' + this.mya_1 + ', fieldsEnabled=' + this.nya_1 + ', approvalPersonParentJoin=' + this.oya_1 + ', registrationMode=' + this.pya_1 + ', usernameError=' + this.qya_1 + ', passwordConfirmedError=' + this.rya_1 + ', passwordError=' + this.sya_1 + ', emailError=' + this.tya_1 + ', confirmError=' + this.uya_1 + ', dateOfBirthError=' + this.vya_1 + ', parentContactError=' + this.wya_1 + ', genderError=' + this.xya_1 + ', firstNameError=' + this.yya_1 + ', lastNameError=' + this.zya_1 + ', phoneNumError=' + this.ayb_1 + ', nationalPhoneNumSet=' + this.byb_1 + ')'; }; protoOf(PersonEditUiState).hashCode = function () { var result = this.jya_1 == null ? 0 : this.jya_1.hashCode(); result = imul(result, 31) + (this.kya_1 == null ? 0 : getStringHashCode(this.kya_1)) | 0; result = imul(result, 31) + hashCode(this.lya_1) | 0; result = imul(result, 31) + (this.mya_1 == null ? 0 : this.mya_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.nya_1) | 0; result = imul(result, 31) + (this.oya_1 == null ? 0 : this.oya_1.hashCode()) | 0; result = imul(result, 31) + this.pya_1 | 0; result = imul(result, 31) + (this.qya_1 == null ? 0 : getStringHashCode(this.qya_1)) | 0; result = imul(result, 31) + (this.rya_1 == null ? 0 : getStringHashCode(this.rya_1)) | 0; result = imul(result, 31) + (this.sya_1 == null ? 0 : getStringHashCode(this.sya_1)) | 0; result = imul(result, 31) + (this.tya_1 == null ? 0 : getStringHashCode(this.tya_1)) | 0; result = imul(result, 31) + (this.uya_1 == null ? 0 : getStringHashCode(this.uya_1)) | 0; result = imul(result, 31) + (this.vya_1 == null ? 0 : getStringHashCode(this.vya_1)) | 0; result = imul(result, 31) + (this.wya_1 == null ? 0 : getStringHashCode(this.wya_1)) | 0; result = imul(result, 31) + (this.xya_1 == null ? 0 : getStringHashCode(this.xya_1)) | 0; result = imul(result, 31) + (this.yya_1 == null ? 0 : getStringHashCode(this.yya_1)) | 0; result = imul(result, 31) + (this.zya_1 == null ? 0 : getStringHashCode(this.zya_1)) | 0; result = imul(result, 31) + (this.ayb_1 == null ? 0 : getStringHashCode(this.ayb_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.byb_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.jya_1, tmp0_other_with_cast.jya_1)) return false; if (!(this.kya_1 == tmp0_other_with_cast.kya_1)) return false; if (!equals(this.lya_1, tmp0_other_with_cast.lya_1)) return false; if (!equals(this.mya_1, tmp0_other_with_cast.mya_1)) return false; if (!(this.nya_1 === tmp0_other_with_cast.nya_1)) return false; if (!equals(this.oya_1, tmp0_other_with_cast.oya_1)) return false; if (!(this.pya_1 === tmp0_other_with_cast.pya_1)) return false; if (!(this.qya_1 == tmp0_other_with_cast.qya_1)) return false; if (!(this.rya_1 == tmp0_other_with_cast.rya_1)) return false; if (!(this.sya_1 == tmp0_other_with_cast.sya_1)) return false; if (!(this.tya_1 == tmp0_other_with_cast.tya_1)) return false; if (!(this.uya_1 == tmp0_other_with_cast.uya_1)) return false; if (!(this.vya_1 == tmp0_other_with_cast.vya_1)) return false; if (!(this.wya_1 == tmp0_other_with_cast.wya_1)) return false; if (!(this.xya_1 == tmp0_other_with_cast.xya_1)) return false; if (!(this.yya_1 == tmp0_other_with_cast.yya_1)) return false; if (!(this.zya_1 == tmp0_other_with_cast.zya_1)) return false; if (!(this.ayb_1 == tmp0_other_with_cast.ayb_1)) return false; if (!(this.byb_1 === tmp0_other_with_cast.byb_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.jyh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LearningSpaceListViewModel$slambda$slambda$slambda).lyh = function (learningSpaceList, $completion) { var tmp = this.myh(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.lyh((!(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.jyh_1.jq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.pyh(VOID, this.kyh_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).myh = function (learningSpaceList, completion) { var i = new LearningSpaceListViewModel$slambda$slambda$slambda(this.jyh_1, completion); i.kyh_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.lyh(learningSpaceList, $completion); }; l.$arity = 1; return l; } function LearningSpaceListViewModel$slambda$slambda(this$0, resultContinuation) { this.yyh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LearningSpaceListViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LearningSpaceListViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.yyh_1.byj_1.dkf(); var tmp_1 = LearningSpaceListViewModel$slambda$slambda$slambda_0(this.yyh_1, null); suspendResult = tmp_0.z1b(new sam$kotlinx_coroutines_flow_FlowCollector$0_33(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).y77 = function (completion) { return new LearningSpaceListViewModel$slambda$slambda(this.yyh_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.w86($completion); }; l.$arity = 0; return l; } function _get_impl__d88w17_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zyi_1; impl$factory_2(); return this_0.t2(); } function _get_goToLearningSpaceUseCase__yq7hh5($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ayj_1; goToLearningSpaceUseCase$factory_0(); return this_0.t2(); } function Companion_175() { this.cyj_1 = 'LearningSpaceList'; this.dyj_1 = 'stateUrl'; } var Companion_instance_224; function Companion_getInstance_192() { return Companion_instance_224; } function sam$kotlinx_coroutines_flow_FlowCollector$0_33(function_0) { this.eyj_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_33).t1d = function (value, $completion) { return this.eyj_1(value, $completion); }; function LearningSpaceListViewModel$slambda(this$0, resultContinuation) { this.nyj_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.nyj_1.jq4_1, LearningSpaceListViewModel$slambda$slambda_0(this.nyj_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.nyj_1, completion); i.oyj_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.zyi_1 = Instance(this, tmp$ret$0, null).n5c(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(GoToLearningSpaceUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.ayj_1 = Instance(this, tmp$ret$2, null).n5c(this, goToLearningSpaceUseCase$factory()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call var tmp_4 = get_direct(di).s57(); // 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.byj_1 = tmp_4.q57(tmp$ret$4, null).ake(); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.learningspacelist.LearningSpaceListViewModel.' call var tmp0_title = _get_impl__d88w17_0(this).ant(strings_getInstance().xn0_1); var nextValue = prevValue.npc(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.jq4_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_224.dyj_1); var nextValue_0 = prevValue_0.pyh(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_6 = this.cpu(); launch(tmp_6, VOID, VOID, LearningSpaceListViewModel$slambda_0(this, null)); } protoOf(LearningSpaceListViewModel).gv9 = function () { Companion_getInstance_206(); // 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 this.ypt(this_0, Companion_getInstance_201().wpt_1); var tmp$ret$2 = this_0.f3(); this.zps_1.fog('LearningSpaceEnterLink', tmp$ret$2); }; protoOf(LearningSpaceListViewModel).pyj = function (learningSpace) { var tmp; Companion_getInstance_201(); if (this.xps_1.ba('NewOrExistingUser') === '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 this.ypt(this_0, Companion_getInstance_201().wpt_1); Companion_getInstance_108(); this_0.s('learningSpaceUrl', learningSpace); var args = this_0.f3(); _get_goToLearningSpaceUseCase__yq7hh5(this).coq(learningSpace, this.zps_1, args, viewName); }; protoOf(LearningSpaceListViewModel).dq5 = function (searchText) { this.lq4_1.i1h(new RefreshCommand()); }; protoOf(LearningSpaceListViewModel).eq5 = function () { }; function LearningSpaceListUiState(siteLink, learningSpaces) { siteLink = siteLink === VOID ? '' : siteLink; learningSpaces = learningSpaces === VOID ? emptyList() : learningSpaces; this.nyh_1 = siteLink; this.oyh_1 = learningSpaces; } protoOf(LearningSpaceListUiState).qyj = function (siteLink, learningSpaces) { return new LearningSpaceListUiState(siteLink, learningSpaces); }; protoOf(LearningSpaceListUiState).pyh = function (siteLink, learningSpaces, $super) { siteLink = siteLink === VOID ? this.nyh_1 : siteLink; learningSpaces = learningSpaces === VOID ? this.oyh_1 : learningSpaces; return $super === VOID ? this.qyj(siteLink, learningSpaces) : $super.qyj.call(this, siteLink, learningSpaces); }; protoOf(LearningSpaceListUiState).toString = function () { return 'LearningSpaceListUiState(siteLink=' + this.nyh_1 + ', learningSpaces=' + this.oyh_1 + ')'; }; protoOf(LearningSpaceListUiState).hashCode = function () { var result = getStringHashCode(this.nyh_1); result = imul(result, 31) + hashCode(this.oyh_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.nyh_1 === tmp0_other_with_cast.nyh_1)) return false; if (!equals(this.oyh_1, tmp0_other_with_cast.oyh_1)) return false; return true; }; function impl$factory_1() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17_0(receiver); }, null); } function goToLearningSpaceUseCase$factory() { return getPropertyCallableRef('goToLearningSpaceUseCase', 1, KProperty1, function (receiver) { return _get_goToLearningSpaceUseCase__yq7hh5(receiver); }, null); } function impl$factory_2() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17_0(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).c54 = 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.ayk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda$slambda$slambda).kpl = function (hasPermissionToList, $completion) { var tmp = this.lpl(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.kpl((!(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.ayk_1.jq4_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (this.byk_1) { tmp_0 = this.ayk_1.gyl_1; } else { tmp_0 = PersonListViewModel$slambda$slambda$slambda$lambda; } var tmp0_personList = tmp_0; var tmp1_showInviteViaLink = !(this.ayk_1.hyl_1 == null); var tmp2_inviteCode = this.ayk_1.hyl_1; var tmp3_showInviteViaContact = this.ayk_1.iyl_1; var nextValue = prevValue.uyl(tmp0_personList, VOID, VOID, VOID, tmp1_showInviteViaLink, tmp3_showInviteViaContact, tmp2_inviteCode, this.byk_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.ayk_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.npc(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.fpc_1.xpb(this.byk_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).lpl = function (hasPermissionToList, completion) { var i = new PersonListViewModel$slambda$slambda$slambda(this.ayk_1, completion); i.byk_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.kpl(hasPermissionToList, $completion); }; l.$arity = 1; return l; } function PersonListViewModel$slambda$slambda($hasPermissionToListFlow, this$0, resultContinuation) { this.dym_1 = $hasPermissionToListFlow; this.eym_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonListViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.dym_1); var tmp_1 = PersonListViewModel$slambda$slambda$slambda_0(this.eym_1, null); suspendResult = tmp_0.z1b(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(PersonListViewModel$slambda$slambda).y77 = function (completion) { return new PersonListViewModel$slambda$slambda(this.dym_1, this.eym_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.w86($completion); }; l.$arity = 0; return l; } function PersonListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.nym_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda$slambda_1).os7 = function (it, $completion) { var tmp = this.ps7(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.os7(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.oym_1; var hasAddPermission = tmp0_container.y6(); var hasViewAllPermission = tmp0_container.z6(); var hasBulkAddPermission = hasAddPermission ? hasViewAllPermission : false; l$ret$1: do { var this_0 = this.nym_1.jq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.uyl(VOID, VOID, VOID, this.nym_1.oq4().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.nym_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.npc(prevValue_0.ypb_1.tpc(this.nym_1.oq4().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).ps7 = function (it, completion) { var i = new PersonListViewModel$slambda$slambda_1(this.nym_1, completion); i.oym_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.os7(it, $completion); }; l.$arity = 1; return l; } function _get_setClipboardStringUseCase__31i1s1_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jyl_1; setClipboardStringUseCase$factory_4(); return this_0.t2(); } function onClickFab($this) { if ($this.jq4_1.t2().tyl_1) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onClickFab.' call var nextValue = prevValue.uyl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } else { $this.eq5(); } } function Companion_176() { Companion_instance_225 = this; this.pym_1 = 'People'; this.qym_1 = 'PersonListHome'; this.rym_1 = listOf(['People', 'PersonListHome']); this.sym_1 = 'exlcudeFromClazz'; this.tym_1 = 'excludeAlreadySelectedList'; this.uym_1 = 'showAddViaInviteLink'; this.vym_1 = 'showAddViaContact'; this.wym_1 = 'role'; this.xym_1 = 'rptsl'; } var Companion_instance_225; function Companion_getInstance_193() { if (Companion_instance_225 == null) new Companion_176(); return Companion_instance_225; } function sam$kotlinx_coroutines_flow_FlowCollector$0_34(function_0) { this.yym_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_34).t1d = function (value, $completion) { return this.yym_1(value, $completion); }; function PersonListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.hpu().a7d().rfx(getSystemTimeInMillis(), this$0.cyl_1, this$0.eyl_1, this$0.dpu(), this$0.jq4_1.t2().myl_1.spi_1, toQueryLikeParam(this$0.bpt_1.t2().fpc_1.upb_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.hyn_1 = this$0; this.iyn_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.hyn_1.jq4_1, PersonListViewModel$slambda$slambda_0(this.iyn_1, this.hyn_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.hyn_1, this.iyn_1, completion); i.jyn_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.syn_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.syn_1.hpu().c7f(); var tmp_1 = this.syn_1.dpu(); PermissionFlags_getInstance(); var tmp_2 = new Long(1024, 0); PermissionFlags_getInstance(); var tmp_3 = tmp_0.nhr(tmp_1, tmp_2, new Long(8192, 0)); var tmp_4 = PersonListViewModel$slambda$slambda_2(this.syn_1, null); suspendResult = tmp_3.z1b(new sam$kotlinx_coroutines_flow_FlowCollector$0_34(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.syn_1, completion); i.tyn_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_193(); 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.cyl_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.dyl_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.eyl_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.fyl_1 = tmp1_elvis_lhs_1 == null ? new Long(0, 0) : tmp1_elvis_lhs_1; var tmp_6 = this; tmp_6.gyl_1 = PersonListViewModel$pagingSourceFactory$lambda(this); this.hyl_1 = savedStateHandle.ba('showAddViaInviteLink'); this.iyl_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.jyl_1 = Instance(this, tmp$ret$9, null).n5c(this, setClipboardStringUseCase$factory_3()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.' call var tmp1_searchState = this.rq5(false); Companion_getInstance_119(); var tmp0_elvis_lhs = savedStateHandle.ba('t'); var tmp2_title = tmp0_elvis_lhs == null ? this.aq6(strings_getInstance().nm5_1, strings_getInstance().emw_1) : tmp0_elvis_lhs; var tmp_9 = this.npt().ant(strings_getInstance().kmc_1); var tmp_10 = FabIcon_ADD_getInstance(); var tmp3_fabState = new FabUiState(VOID, tmp_9, tmp_10, PersonListViewModel$onClickFab$ref(this)); var nextValue = prevValue.npc(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.fyl_1.equals(new Long(0, 0))) { tmp_11 = flowOf(true); } else { tmp_11 = this.hpu().c7f().mhr(this.dpu(), this.fyl_1); } var hasPermissionToListFlow = tmp_11; var tmp_12 = this.cpu(); launch(tmp_12, VOID, VOID, PersonListViewModel$slambda_0(this, hasPermissionToListFlow, null)); var tmp_13 = this.cpu(); launch(tmp_13, VOID, VOID, PersonListViewModel$slambda_2(this, null)); } protoOf(PersonListViewModel).dq5 = function (searchText) { this.lq4_1.i1h(new RefreshCommand()); }; protoOf(PersonListViewModel).prz = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onSortOrderChanged.' call var nextValue = prevValue.uyl(VOID, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.lq4_1.i1h(new RefreshCommand()); }; protoOf(PersonListViewModel).uyn = function () { if (this.hyl_1 == null) return Unit_instance; Companion_getInstance_119(); this.zps_1.fog('InviteWithLink', mapOf_0(to('inviteCode', this.hyl_1))); }; protoOf(PersonListViewModel).vyn = function () { var tmp0_safe_receiver = this.jq4_1.t2().qyl_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).kob(tmp0_safe_receiver); this.jpu().cpd(new Snack(this.npt().ant(strings_getInstance().jmj_1))); } }; protoOf(PersonListViewModel).wyn = 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.dyl_1.toString()); this_0.s('clazz_uid', this.cyl_1.toString()); var args = this_0.f3(); this.zps_1.fog('invite_via_contact', args); }; protoOf(PersonListViewModel).xyn = function () { this.zps_1.fog('BulkAddPersonSelectFile', emptyMap()); }; protoOf(PersonListViewModel).eq5 = function () { Companion_getInstance_191(); var tmp0_safe_receiver = this.xps_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.wq5('PersonEditView', tmp1_elvis_lhs == null ? emptyMap() : tmp1_elvis_lhs); }; protoOf(PersonListViewModel).yyn = function (entry) { var goToOnPersonSelected = this.xps_1.ba('goToOnPersonSelected'); if (!(goToOnPersonSelected == null)) { var tmp = UMFileUtil_getInstance().parseURLQueryString(goToOnPersonSelected); Companion_getInstance_108(); var args = plus_0(tmp, mapOf_0(to('personUid', entry.s95_1.toString()))); var goToDestName = substringBefore_0(goToOnPersonSelected, '?'); var popUpTo = this.xps_1.ba('popUpToOnPersonSelected'); this.zps_1.npf(goToDestName, args, new UstadGoOptions(popUpTo, true)); } else { this.zq5('PersonDetailView', entry.s95_1, entry); } }; protoOf(PersonListViewModel).zyn = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onDismissAddSheetOrDialog.' call var nextValue = prevValue.uyl(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().hlv_1; var tmp_2 = new SortOrderOption(tmp_1, 1, true); var tmp_3 = strings_getInstance().hlv_1; var tmp_4 = new SortOrderOption(tmp_3, 2, false); var tmp_5 = strings_getInstance().glv_1; var tmp_6 = new SortOrderOption(tmp_5, 3, true); var tmp_7 = strings_getInstance().glv_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.kyl_1 = personList; this.lyl_1 = sortOptions; this.myl_1 = sortOption; this.nyl_1 = showAddItem; this.oyl_1 = showInviteViaLink; this.pyl_1 = showInviteViaContact; this.qyl_1 = inviteCode; this.ryl_1 = showSortOptions; this.syl_1 = addSheetOrDialogVisible; this.tyl_1 = hasBulkImportPermission; } protoOf(PersonListUiState).ayo = 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).uyl = function (personList, sortOptions, sortOption, showAddItem, showInviteViaLink, showInviteViaContact, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission, $super) { personList = personList === VOID ? this.kyl_1 : personList; sortOptions = sortOptions === VOID ? this.lyl_1 : sortOptions; sortOption = sortOption === VOID ? this.myl_1 : sortOption; showAddItem = showAddItem === VOID ? this.nyl_1 : showAddItem; showInviteViaLink = showInviteViaLink === VOID ? this.oyl_1 : showInviteViaLink; showInviteViaContact = showInviteViaContact === VOID ? this.pyl_1 : showInviteViaContact; inviteCode = inviteCode === VOID ? this.qyl_1 : inviteCode; showSortOptions = showSortOptions === VOID ? this.ryl_1 : showSortOptions; addSheetOrDialogVisible = addSheetOrDialogVisible === VOID ? this.syl_1 : addSheetOrDialogVisible; hasBulkImportPermission = hasBulkImportPermission === VOID ? this.tyl_1 : hasBulkImportPermission; return $super === VOID ? this.ayo(personList, sortOptions, sortOption, showAddItem, showInviteViaLink, showInviteViaContact, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission) : $super.ayo.call(this, personList, sortOptions, sortOption, showAddItem, showInviteViaLink, showInviteViaContact, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission); }; protoOf(PersonListUiState).toString = function () { return 'PersonListUiState(personList=' + this.kyl_1 + ', sortOptions=' + this.lyl_1 + ', sortOption=' + this.myl_1 + ', showAddItem=' + this.nyl_1 + ', showInviteViaLink=' + this.oyl_1 + ', showInviteViaContact=' + this.pyl_1 + ', inviteCode=' + this.qyl_1 + ', showSortOptions=' + this.ryl_1 + ', addSheetOrDialogVisible=' + this.syl_1 + ', hasBulkImportPermission=' + this.tyl_1 + ')'; }; protoOf(PersonListUiState).hashCode = function () { var result = hashCode(this.kyl_1); result = imul(result, 31) + hashCode(this.lyl_1) | 0; result = imul(result, 31) + this.myl_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.nyl_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.oyl_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.pyl_1) | 0; result = imul(result, 31) + (this.qyl_1 == null ? 0 : getStringHashCode(this.qyl_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.ryl_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.syl_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.tyl_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.kyl_1, tmp0_other_with_cast.kyl_1)) return false; if (!equals(this.lyl_1, tmp0_other_with_cast.lyl_1)) return false; if (!this.myl_1.equals(tmp0_other_with_cast.myl_1)) return false; if (!(this.nyl_1 === tmp0_other_with_cast.nyl_1)) return false; if (!(this.oyl_1 === tmp0_other_with_cast.oyl_1)) return false; if (!(this.pyl_1 === tmp0_other_with_cast.pyl_1)) return false; if (!(this.qyl_1 == tmp0_other_with_cast.qyl_1)) return false; if (!(this.ryl_1 === tmp0_other_with_cast.ryl_1)) return false; if (!(this.syl_1 === tmp0_other_with_cast.syl_1)) return false; if (!(this.tyl_1 === tmp0_other_with_cast.tyl_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_177() { this.byo_1 = 'RegisterAgeRedirect'; } var Companion_instance_226; function Companion_getInstance_194() { return Companion_instance_226; } function RegisterAgeRedirectViewModel$onClickNext$ref($boundThis) { var l = function () { $boundThis.gv9(); return Unit_instance; }; l.callableName = 'onClickNext'; return l; } function RegisterAgeRedirectViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'RegisterAgeRedirect'); this.xyo_1 = MutableStateFlow(new RegisterAgeRedirectUiState(VOID, systemTimeInMillis())); this.yyo_1 = asStateFlow(this.xyo_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerageredirect.RegisterAgeRedirectViewModel.' call var tmp0_title = this.npt().ant(strings_getInstance().mn0_1); var tmp = this.npt().ant(strings_getInstance().alv_1); var tmp1_actionBarButtonState = new ActionBarButtonUiState(true, tmp, VOID, RegisterAgeRedirectViewModel$onClickNext$ref(this)); var nextValue = prevValue.npc(VOID, VOID, tmp0_title, false, VOID, VOID, false, VOID, tmp1_actionBarButtonState); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } protoOf(RegisterAgeRedirectViewModel).zyo = function (date) { $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.registerageredirect.RegisterAgeRedirectViewModel.onSetDate.' call var nextValue = prevValue.dyp(date, VOID, !prevValue.ayp_1.equals(date) ? null : prevValue.cyp_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(RegisterAgeRedirectViewModel).gv9 = function () { var date = this.xyo_1.t2().ayp_1; if (date.equals(new Long(0, 0))) { $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.registerageredirect.RegisterAgeRedirectViewModel.onClickNext.' call var nextValue = prevValue.dyp(VOID, VOID, this.npt().ant(strings_getInstance().sly_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.xyo_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.dyp(VOID, VOID, this.npt().ant(strings_getInstance().em1_1)); if (this_2.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } var dateOfBirthInstant = Companion_getInstance_6().kls(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.ypt(this_3, Companion_getInstance_201().wpt_1); this_3.s('showAccept', 'true'); Companion_getInstance_191(); this_3.s('DateOfBirth', date.toString()); var args = this_3.f3(); if (!isMinor) { this.zps_1.fog('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.ayp_1 = dateOfBirth; this.byp_1 = maxDate; this.cyp_1 = dateOfBirthError; } protoOf(RegisterAgeRedirectUiState).eyp = function (dateOfBirth, maxDate, dateOfBirthError) { return new RegisterAgeRedirectUiState(dateOfBirth, maxDate, dateOfBirthError); }; protoOf(RegisterAgeRedirectUiState).dyp = function (dateOfBirth, maxDate, dateOfBirthError, $super) { dateOfBirth = dateOfBirth === VOID ? this.ayp_1 : dateOfBirth; maxDate = maxDate === VOID ? this.byp_1 : maxDate; dateOfBirthError = dateOfBirthError === VOID ? this.cyp_1 : dateOfBirthError; return $super === VOID ? this.eyp(dateOfBirth, maxDate, dateOfBirthError) : $super.eyp.call(this, dateOfBirth, maxDate, dateOfBirthError); }; protoOf(RegisterAgeRedirectUiState).toString = function () { return 'RegisterAgeRedirectUiState(dateOfBirth=' + this.ayp_1.toString() + ', maxDate=' + this.byp_1.toString() + ', dateOfBirthError=' + this.cyp_1 + ')'; }; protoOf(RegisterAgeRedirectUiState).hashCode = function () { var result = this.ayp_1.hashCode(); result = imul(result, 31) + this.byp_1.hashCode() | 0; result = imul(result, 31) + (this.cyp_1 == null ? 0 : getStringHashCode(this.cyp_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.ayp_1.equals(tmp0_other_with_cast.ayp_1)) return false; if (!this.byp_1.equals(tmp0_other_with_cast.byp_1)) return false; if (!(this.cyp_1 == tmp0_other_with_cast.cyp_1)) return false; return true; }; function Companion_178() { this.fyp_1 = 'WaitForParent'; this.gyp_1 = 'username'; this.hyp_1 = 'password'; this.iyp_1 = 'parentContact'; } var Companion_instance_227; function Companion_getInstance_195() { return Companion_instance_227; } function RegisterMinorWaitForParentViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'WaitForParent'); this.eyq_1 = MutableStateFlow(new RegisterMinorWaitForParentUiState()); this.fyq_1 = asStateFlow(this.eyq_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerminorwaitforparent.RegisterMinorWaitForParentViewModel.' call var nextValue = prevValue.npc(VOID, VOID, this.npt().ant(strings_getInstance().nlv_1), 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.eyq_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerminorwaitforparent.RegisterMinorWaitForParentViewModel.' call var tmp0_elvis_lhs = savedStateHandle.ba('username'); var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = savedStateHandle.ba('password'); var tmp_0 = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp2_elvis_lhs = savedStateHandle.ba('parentContact'); var nextValue_0 = prevValue_0.jyq(tmp, tmp_0, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(RegisterMinorWaitForParentViewModel).kyq = function () { this.zps_1.opf('WaitForParent', true); }; function RegisterMinorWaitForParentUiState(username, password, parentContact) { username = username === VOID ? '' : username; password = password === VOID ? '' : password; parentContact = parentContact === VOID ? '' : parentContact; this.gyq_1 = username; this.hyq_1 = password; this.iyq_1 = parentContact; } protoOf(RegisterMinorWaitForParentUiState).jyq = function (username, password, parentContact) { return new RegisterMinorWaitForParentUiState(username, password, parentContact); }; protoOf(RegisterMinorWaitForParentUiState).toString = function () { return 'RegisterMinorWaitForParentUiState(username=' + this.gyq_1 + ', password=' + this.hyq_1 + ', parentContact=' + this.iyq_1 + ')'; }; protoOf(RegisterMinorWaitForParentUiState).hashCode = function () { var result = getStringHashCode(this.gyq_1); result = imul(result, 31) + getStringHashCode(this.hyq_1) | 0; result = imul(result, 31) + getStringHashCode(this.iyq_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.gyq_1 === tmp0_other_with_cast.gyq_1)) return false; if (!(this.hyq_1 === tmp0_other_with_cast.hyq_1)) return false; if (!(this.iyq_1 === tmp0_other_with_cast.iyq_1)) return false; return true; }; function RedirectViewModel$slambda$lambda(_anonymous_parameter_0__qggqh8, _anonymous_parameter_1__qggqgd) { return Unit_instance; } function RedirectViewModel$slambda$lambda_0($di) { return function (it) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var this_0 = $di; var trigger = this_0.q56(); // 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.u56(tmp$ret$0, it); var tmp$ret$2 = On(this_0, tmp$ret$1, trigger); var tmp_1 = get_direct(tmp$ret$2).s57(); // 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(); return tmp_1.q57(tmp$ret$3, null).hjf(); }; } function _get_apiUrlConfig__mldllg_5($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.iyr_1; apiUrlConfig$factory_12(); return this_0.t2(); } function _get_makeLinkUseCase__qbv742_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jyr_1; makeLinkUseCase$factory_2(); return this_0.t2(); } function _get_settings__lbkut4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kyr_1; settings$factory_0(); return this_0.t2(); } function Companion_179() { this.lyr_1 = ''; } var Companion_instance_228; function Companion_getInstance_196() { return Companion_instance_228; } function sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_1(function_0) { this.myr_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_1).ooq = function (url, target) { return this.myr_1(url, target); }; function RedirectViewModel$slambda(this$0, $destinationArg, $destination, $di, resultContinuation) { this.vyr_1 = this$0; this.wyr_1 = $destinationArg; this.xyr_1 = $destination; this.yyr_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.vyr_1.zps_1; var tmp1_accountManager = this.vyr_1.bpu(); 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.vyr_1).jnk_1; var tmp4_goOptions = new UstadGoOptions(VOID, VOID, true); var tmp5_forceAccountSelection = !(this.wyr_1 == null); var tmp6_presetLearningSpaceUrl = _get_apiUrlConfig__mldllg_5(this.vyr_1).hnk_1; navigateToLink(tmp0_$receiver, this.xyr_1, tmp1_accountManager, tmp2_openExternalLinkUseCase, tmp4_goOptions, tmp5_forceAccountSelection, tmp3_userCanSelectServer, VOID, VOID, VOID, VOID, RedirectViewModel$slambda$lambda_0(this.yyr_1), tmp6_presetLearningSpaceUrl); 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.vyr_1, this.wyr_1, this.xyr_1, this.yyr_1, completion); i.zyr_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_108(); tmp.gyr_1 = savedStateHandle.ba('next'); var tmp_0 = this; Companion_getInstance_108(); tmp_0.hyr_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.iyr_1 = Instance(this, tmp$ret$0, null).n5c(this, apiUrlConfig$factory_11()); 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(MakeLinkUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.jyr_1 = Instance(this_0, tmp$ret$2, null).n5c(this, makeLinkUseCase$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(Settings), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_5.kyr_1 = Instance(this, tmp$ret$4, null).n5c(this, settings$factory()); this.bpt_1.x1k(new AppUiState(VOID, VOID, VOID, false, VOID, VOID, VOID, VOID, VOID, VOID, true)); var tmp0_elvis_lhs = this.hyr_1; var destinationArg = tmp0_elvis_lhs == null ? this.gyr_1 : tmp0_elvis_lhs; var activeLearningSpace = this.bpu().nnk(); if (!contains(activeLearningSpace.in3_1, 'localhost')) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var tmp_7 = get_direct(di).s57(); // 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$6 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); var tmp$ret$7 = tmp_8.u56(tmp$ret$6, activeLearningSpace); var tmp_10 = tmp_7.p57(tmp$ret$7).s57(); // Inline function 'org.kodein.type.generic' call var tmp_11 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$9 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(); var db = tmp_10.q57(tmp$ret$9, 1); println(db); } var tmp_12; if (this.bpu().rnj().en4_1.a96_1) { Companion_getInstance_158(); tmp_12 = 'ContentEntryListHome'; } else { Companion_getInstance_132(); tmp_12 = 'CourseListHome'; } var clazzType = tmp_12; var presetLearningSpaceUrl = _get_apiUrlConfig__mldllg_5(this).hnk_1; var tmp_13; // Inline function 'kotlin.text.isNullOrEmpty' call // Inline function 'kotlin.contracts.contract' call if (!(presetLearningSpaceUrl == null ? true : charSequenceLength(presetLearningSpaceUrl) === 0)) { var tmp_14 = _get_makeLinkUseCase__qbv742_0(this); var tmp_15 = destinationArg == null ? clazzType : destinationArg; // 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.redirect.RedirectViewModel.' call this.ypt(this_1, Companion_getInstance_201().wpt_1); Companion_getInstance_108(); this_1.s('learningSpaceUrl', requirePostfix(requireHttpPrefix(presetLearningSpaceUrl), '/')); var tmp$ret$14 = this_1.f3(); tmp_13 = tmp_14.ioq(tmp_15, tmp$ret$14); } else { tmp_13 = destinationArg == null ? clazzType : destinationArg; } var destination = tmp_13; var tmp_16 = this.cpu(); launch(tmp_16, 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 makeLinkUseCase$factory_1() { return getPropertyCallableRef('makeLinkUseCase', 1, KProperty1, function (receiver) { return _get_makeLinkUseCase__qbv742_0(receiver); }, null); } function settings$factory() { return getPropertyCallableRef('settings', 1, KProperty1, function (receiver) { return _get_settings__lbkut4(receiver); }, null); } function apiUrlConfig$factory_12() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_5(receiver); }, null); } function makeLinkUseCase$factory_2() { return getPropertyCallableRef('makeLinkUseCase', 1, KProperty1, function (receiver) { return _get_makeLinkUseCase__qbv742_0(receiver); }, null); } function settings$factory_0() { return getPropertyCallableRef('settings', 1, KProperty1, function (receiver) { return _get_settings__lbkut4(receiver); }, null); } function ScheduleEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleEditViewModel$slambda$slambda).jys = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ScheduleEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.jys(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).pn8 = function (it, completion) { var i = new ScheduleEditViewModel$slambda$slambda(completion); i.iys_1 = it; return i; }; function ScheduleEditViewModel$slambda$slambda_0(resultContinuation) { var i = new ScheduleEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.jys(it, $completion); }; l.$arity = 1; return l; } function ScheduleEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.sys_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleEditViewModel$slambda$slambda_1).vys = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ScheduleEditViewModel$slambda$slambda_1).z77 = function ($completion) { return this.vys($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.tys_1 = new Schedule(); var tmp_1 = this; tmp_1.uys_1 = this.tys_1; this.hd_1 = 1; var tmp_2 = get_doorPrimaryKeyManager(this.sys_1.fpu()); suspendResult = tmp_2.b62(21, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.uys_1.hh6_1 = ARGUMENT; this.uys_1.th6_1 = true; this.uys_1.mh6_1 = Companion_instance_29.ak7_1; return this.tys_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).y77 = function (completion) { return new ScheduleEditViewModel$slambda$slambda_1(this.sys_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.vys($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.tyt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel...' call var nextValue = prevValue.zyt(schedule); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_180() { this.ayu_1 = 'ScheduleEdit'; } var Companion_instance_229; function Companion_getInstance_197() { return Companion_instance_229; } function ScheduleEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ScheduleEditViewModel$slambda(this$0, resultContinuation) { this.jyu_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.lyu_1 = Companion_instance_29.a4r(); this.hd_1 = 1; var tmp_0 = ScheduleEditViewModel$slambda$slambda_0(null); var tmp_1 = ScheduleEditViewModel$slambda$slambda_2(this.jyu_1, null); suspendResult = this.jyu_1.rpu(this.lyu_1, VOID, VOID, tmp_0, tmp_1, ScheduleEditViewModel$slambda$lambda(this.jyu_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.jyu_1.tyt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.zyt(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.jyu_1, completion); i.kyu_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.uyu_1 = $commitDelay; this.vyu_1 = $entity; this.wyu_1 = $this; this.xyu_1 = $key; this.yyu_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.uyu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.vyu_1 == null)) { this.hd_1 = 2; suspendResult = this.wyu_1.npu(this.wyu_1.xps_1, this.xyu_1, this.yyu_1, this.vyu_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.uyu_1, this.vyu_1, this.wyu_1, this.xyu_1, this.yyu_1, completion); i.zyu_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.tyt_1 = MutableStateFlow(new ScheduleEditUiState(VOID, VOID, VOID, false)); this.uyt_1 = asStateFlow(this.tyt_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel.' call var tmp0_title = this.yq2(strings_getInstance().tm5_1, strings_getInstance().um5_1); var tmp = this.npt().ant(strings_getInstance().nm2_1); var tmp1_actionBarButtonState = new ActionBarButtonUiState(true, tmp, VOID, ScheduleEditViewModel$onClickSave$ref(this)); var nextValue = prevValue.npc(VOID, VOID, tmp0_title, VOID, true, VOID, VOID, VOID, tmp1_actionBarButtonState); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.cpu(); launch(tmp_0, VOID, VOID, ScheduleEditViewModel$slambda_0(this, null)); } protoOf(ScheduleEditViewModel).ayv = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tyt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel.onEntityChanged.' call var tmp2_safe_receiver = prevValue.vyt_1; var tmp = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ih6_1; var tmp4_toTimeError = this.zq2(tmp, entity == null ? null : entity.ih6_1, prevValue.xyt_1); var tmp0_safe_receiver = prevValue.vyt_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jh6_1; var tmp5_fromTimeError = this.zq2(tmp_0, entity == null ? null : entity.jh6_1, prevValue.wyt_1); var nextValue = prevValue.zyt(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.a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_1 = this; var tmp_2 = this.cpu(); tmp_1.vq1_1 = launch(tmp_2, VOID, VOID, ScheduleEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ScheduleEditViewModel).yr9 = function () { var tmp0_elvis_lhs = this.tyt_1.t2().vyt_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.tyt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel.onClickSave.' call var tmp_0; if (schedule.ih6_1.equals(new Long(0, 0))) { tmp_0 = this.npt().ant(strings_getInstance().sly_1); } else { tmp_0 = null; } var tmp_1 = tmp_0; var tmp_2; if (schedule.jh6_1.equals(new Long(0, 0))) { tmp_2 = this.npt().ant(strings_getInstance().sly_1); } else if (schedule.jh6_1.c7(schedule.ih6_1) <= 0) { tmp_2 = this.npt().ant(strings_getInstance().gmk_1); } else { tmp_2 = null; } var nextValue = prevValue.zyt(VOID, tmp_1, tmp_2); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (this.tyt_1.t2().wyt_1 == null ? this.tyt_1.t2().xyt_1 == null : false) { this.zq1(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.vyt_1 = entity; this.wyt_1 = fromTimeError; this.xyt_1 = toTimeError; this.yyt_1 = fieldsEnabled; } protoOf(ScheduleEditUiState).byv = function (entity, fromTimeError, toTimeError, fieldsEnabled) { return new ScheduleEditUiState(entity, fromTimeError, toTimeError, fieldsEnabled); }; protoOf(ScheduleEditUiState).zyt = function (entity, fromTimeError, toTimeError, fieldsEnabled, $super) { entity = entity === VOID ? this.vyt_1 : entity; fromTimeError = fromTimeError === VOID ? this.wyt_1 : fromTimeError; toTimeError = toTimeError === VOID ? this.xyt_1 : toTimeError; fieldsEnabled = fieldsEnabled === VOID ? this.yyt_1 : fieldsEnabled; return $super === VOID ? this.byv(entity, fromTimeError, toTimeError, fieldsEnabled) : $super.byv.call(this, entity, fromTimeError, toTimeError, fieldsEnabled); }; protoOf(ScheduleEditUiState).toString = function () { return 'ScheduleEditUiState(entity=' + this.vyt_1 + ', fromTimeError=' + this.wyt_1 + ', toTimeError=' + this.xyt_1 + ', fieldsEnabled=' + this.yyt_1 + ')'; }; protoOf(ScheduleEditUiState).hashCode = function () { var result = this.vyt_1 == null ? 0 : this.vyt_1.hashCode(); result = imul(result, 31) + (this.wyt_1 == null ? 0 : getStringHashCode(this.wyt_1)) | 0; result = imul(result, 31) + (this.xyt_1 == null ? 0 : getStringHashCode(this.xyt_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.yyt_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.vyt_1, tmp0_other_with_cast.vyt_1)) return false; if (!(this.wyt_1 == tmp0_other_with_cast.wyt_1)) return false; if (!(this.xyt_1 == tmp0_other_with_cast.xyt_1)) return false; if (!(this.yyt_1 === tmp0_other_with_cast.yyt_1)) return false; return true; }; function Companion_181() { this.cyv_1 = 'DevSettings'; this.dyv_1 = 'showDevSettings'; } var Companion_instance_230; function Companion_getInstance_198() { return Companion_instance_230; } function SettingsViewModel$slambda$slambda(this$0, resultContinuation) { this.myv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SettingsViewModel$slambda$slambda).kpl = function (siteAdminSettingsVisible, $completion) { var tmp = this.lpl(siteAdminSettingsVisible, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SettingsViewModel$slambda$slambda).he = function (p1, $completion) { return this.kpl((!(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.myv_1.jyw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.syx(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.nyv_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).lpl = function (siteAdminSettingsVisible, completion) { var i = new SettingsViewModel$slambda$slambda(this.myv_1, completion); i.nyv_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.kpl(siteAdminSettingsVisible, $completion); }; l.$arity = 1; return l; } function _get_supportedLangConfig__llzj1v($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lyw_1; supportedLangConfig$factory_0(); return this_0.t2(); } function _get_setLanguageUseCase__st7nci_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.myw_1; setLanguageUseCase$factory_4(); return this_0.t2(); } function _get_getHtmlContentDisplayOptsUseCase__lppxoi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.oyw_1; getHtmlContentDisplayOptsUseCase$factory_0(); return this_0.t2(); } function _get_getHtmlContentDisplaySettingUseCase__usawf4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.pyw_1; getHtmlContentDisplaySettingUseCase$factory_0(); return this_0.t2(); } function _get_setHtmlContentDisplaySettingUseCase__8cgzqk($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.qyw_1; setHtmlContentDisplaySettingUseCase$factory_0(); return this_0.t2(); } function _get_getVersionUseCase__n7x57g_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ryw_1; getVersionUseCase$factory_4(); return this_0.t2(); } function _get_enableNearbySharingUseCase__zat9e6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.syw_1; enableNearbySharingUseCase$factory_0(); return this_0.t2(); } function _get_settings__lbkut4_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.uyw_1; settings$factory_2(); return this_0.t2(); } function _get_zipFileUseCase__jhxb01($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.vyw_1; zipFileUseCase$factory_0(); return this_0.t2(); } function Companion_182() { this.tyx_1 = 'Settings'; } var Companion_instance_231; function Companion_getInstance_199() { return Companion_instance_231; } function sam$kotlinx_coroutines_flow_FlowCollector$0_35(function_0) { this.uyx_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_35).t1d = function (value, $completion) { return this.uyx_1(value, $completion); }; function SettingsViewModel$slambda(this$0, resultContinuation) { this.dyy_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 = 2; this.hd_1 = 1; var tmp_0 = this.dyy_1.hpu().c7f(); var tmp_1 = this.dyy_1.dpu(); PermissionFlags_getInstance(); var tmp_2 = tmp_0.mhr(tmp_1, new Long(16384, 0)); var tmp_3 = SettingsViewModel$slambda$slambda_0(this.dyy_1, null); suspendResult = tmp_2.z1b(new sam$kotlinx_coroutines_flow_FlowCollector$0_35(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).v1m = function ($this$launch, completion) { var i = new SettingsViewModel$slambda(this.dyy_1, completion); i.eyy_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(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'Settings'); this.jyw_1 = MutableStateFlow(new SettingsUiState()); this.kyw_1 = asStateFlow(this.jyw_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.lyw_1 = Instance(this, tmp$ret$0, null).n5c(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.myw_1 = Instance(this, tmp$ret$2, null).n5c(this, setLanguageUseCase$factory_3()); this.nyw_1 = _get_supportedLangConfig__llzj1v(this).bpe(this.npt()); 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.oyw_1 = InstanceOrNull(this, tmp$ret$4, null).n5c(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.pyw_1 = InstanceOrNull(this, tmp$ret$6, null).n5c(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.qyw_1 = InstanceOrNull(this, tmp$ret$8, null).n5c(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.ryw_1 = Instance(this, tmp$ret$10, null).n5c(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(SetLocalSharingEnabledUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); tmp_11.syw_1 = InstanceOrNull(this, tmp$ret$12, null).n5c(this, enableNearbySharingUseCase$factory()); this.tyw_1 = atomic$int$1(0); var tmp_13 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_14 = typeToken(createKType(getKClass(Settings), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(); tmp_13.uyw_1 = Instance(this, tmp$ret$14, null).n5c(this, settings$factory_1()); var tmp_15 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_16 = typeToken(createKType(getKClass(ZipFileUseCase), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE(); tmp_15.vyw_1 = Instance(this, tmp$ret$16, null).n5c(this, zipFileUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.' call var nextValue = prevValue.npc(VOID, VOID, this.npt().ant(strings_getInstance().vlv_1), VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_elvis_lhs = _get_supportedLangConfig__llzj1v(this).tpd(); var tmp_17; if (tmp0_elvis_lhs == null) { Companion_getInstance_88(); tmp_17 = ''; } else { tmp_17 = tmp0_elvis_lhs; } var langSetting = tmp_17; var tmp$ret$21; $l$block_0: { // Inline function 'kotlin.collections.first' call var tmp0_iterator = this.nyw_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.' call if (element.ipa_1 === langSetting) { tmp$ret$21 = element; break $l$block_0; } } throw NoSuchElementException_init_$Create$_0('Collection contains no element matching the predicate.'); } var currentLang = tmp$ret$21; $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.jyw_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.' call var tmp3_currentLanguage = currentLang.jpa_1; var tmp4_availableLanguages = this.nyw_1; var tmp0_safe_receiver = _get_getHtmlContentDisplayOptsUseCase__lppxoi(this); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xom(); 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.xom(); var tmp7_version = _get_getVersionUseCase__n7x57g_1(this).xom().vom_1; var tmp_18 = _get_settings__lbkut4_0(this); var tmp8_showDeveloperOptions = tmp_18.flj('showDevSettings', false); var tmp9_storageAndDataSettingsVisible = !(_get_enableNearbySharingUseCase__zat9e6(this) == null); var nextValue_0 = prevValue_0.syx(VOID, VOID, VOID, VOID, VOID, VOID, tmp5_htmlContentDisplayOptions, tmp6_currentHtmlContentDisplayOption, VOID, VOID, VOID, VOID, VOID, tmp3_currentLanguage, tmp4_availableLanguages, VOID, tmp8_showDeveloperOptions, tmp7_version, VOID, VOID, VOID, tmp9_storageAndDataSettingsVisible); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_1; } } } var tmp_19 = this.cpu(); launch(tmp_19, VOID, VOID, SettingsViewModel$slambda_0(this, null)); } protoOf(SettingsViewModel).fyy = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jyw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLanguage.' call var nextValue = prevValue.syx(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SettingsViewModel).gyy = function (lang) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jyw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLang.' call var nextValue = prevValue.syx(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).boq(lang, 'Settings', this.zps_1); if (result.zop_1) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.jyw_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLang.' call var nextValue_0 = prevValue_0.syx(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.jyw_1; while (true) { var prevValue_1 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLang.' call var nextValue_1 = prevValue_1.syx(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, lang.jpa_1); if (this_2.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } }; protoOf(SettingsViewModel).wxx = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jyw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onDismissLangDialog.' call var nextValue = prevValue.syx(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SettingsViewModel).hyy = function () { this.zps_1.fog('Community', emptyMap()); }; protoOf(SettingsViewModel).iyy = function () { this.zps_1.fog('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, storageAndDataSettingsVisible) { 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; storageAndDataSettingsVisible = storageAndDataSettingsVisible === VOID ? false : storageAndDataSettingsVisible; this.wyw_1 = sendAppOptionVisible; this.xyw_1 = selectedBackupFolderUri; this.yyw_1 = selectedBackupFolderName; this.zyw_1 = isCreatingBackup; this.ayx_1 = backupProgress; this.byx_1 = selectedBackupPath; this.cyx_1 = htmlContentDisplayOptions; this.dyx_1 = currentHtmlContentDisplayOption; this.eyx_1 = holidayCalendarVisible; this.fyx_1 = workspaceSettingsVisible; this.gyx_1 = reasonLeavingVisible; this.hyx_1 = langDialogVisible; this.iyx_1 = htmlContentDisplayDialogVisible; this.jyx_1 = currentLanguage; this.kyx_1 = availableLanguages; this.lyx_1 = waitForRestartDialogVisible; this.myx_1 = showDeveloperOptions; this.nyx_1 = version; this.oyx_1 = storageOptions; this.pyx_1 = selectedOfflineStorageOption; this.qyx_1 = storageOptionsDialogVisible; this.ryx_1 = storageAndDataSettingsVisible; } protoOf(SettingsUiState).jyy = function (sendAppOptionVisible, selectedBackupFolderUri, selectedBackupFolderName, isCreatingBackup, backupProgress, selectedBackupPath, htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible, storageAndDataSettingsVisible) { return new SettingsUiState(sendAppOptionVisible, selectedBackupFolderUri, selectedBackupFolderName, isCreatingBackup, backupProgress, selectedBackupPath, htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible, storageAndDataSettingsVisible); }; protoOf(SettingsUiState).syx = function (sendAppOptionVisible, selectedBackupFolderUri, selectedBackupFolderName, isCreatingBackup, backupProgress, selectedBackupPath, htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible, storageAndDataSettingsVisible, $super) { sendAppOptionVisible = sendAppOptionVisible === VOID ? this.wyw_1 : sendAppOptionVisible; selectedBackupFolderUri = selectedBackupFolderUri === VOID ? this.xyw_1 : selectedBackupFolderUri; selectedBackupFolderName = selectedBackupFolderName === VOID ? this.yyw_1 : selectedBackupFolderName; isCreatingBackup = isCreatingBackup === VOID ? this.zyw_1 : isCreatingBackup; backupProgress = backupProgress === VOID ? this.ayx_1 : backupProgress; selectedBackupPath = selectedBackupPath === VOID ? this.byx_1 : selectedBackupPath; htmlContentDisplayOptions = htmlContentDisplayOptions === VOID ? this.cyx_1 : htmlContentDisplayOptions; currentHtmlContentDisplayOption = currentHtmlContentDisplayOption === VOID ? this.dyx_1 : currentHtmlContentDisplayOption; holidayCalendarVisible = holidayCalendarVisible === VOID ? this.eyx_1 : holidayCalendarVisible; workspaceSettingsVisible = workspaceSettingsVisible === VOID ? this.fyx_1 : workspaceSettingsVisible; reasonLeavingVisible = reasonLeavingVisible === VOID ? this.gyx_1 : reasonLeavingVisible; langDialogVisible = langDialogVisible === VOID ? this.hyx_1 : langDialogVisible; htmlContentDisplayDialogVisible = htmlContentDisplayDialogVisible === VOID ? this.iyx_1 : htmlContentDisplayDialogVisible; currentLanguage = currentLanguage === VOID ? this.jyx_1 : currentLanguage; availableLanguages = availableLanguages === VOID ? this.kyx_1 : availableLanguages; waitForRestartDialogVisible = waitForRestartDialogVisible === VOID ? this.lyx_1 : waitForRestartDialogVisible; showDeveloperOptions = showDeveloperOptions === VOID ? this.myx_1 : showDeveloperOptions; version = version === VOID ? this.nyx_1 : version; storageOptions = storageOptions === VOID ? this.oyx_1 : storageOptions; selectedOfflineStorageOption = selectedOfflineStorageOption === VOID ? this.pyx_1 : selectedOfflineStorageOption; storageOptionsDialogVisible = storageOptionsDialogVisible === VOID ? this.qyx_1 : storageOptionsDialogVisible; storageAndDataSettingsVisible = storageAndDataSettingsVisible === VOID ? this.ryx_1 : storageAndDataSettingsVisible; return $super === VOID ? this.jyy(sendAppOptionVisible, selectedBackupFolderUri, selectedBackupFolderName, isCreatingBackup, backupProgress, selectedBackupPath, htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible, storageAndDataSettingsVisible) : $super.jyy.call(this, sendAppOptionVisible, selectedBackupFolderUri, selectedBackupFolderName, isCreatingBackup, backupProgress, selectedBackupPath, htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible, storageAndDataSettingsVisible); }; protoOf(SettingsUiState).toString = function () { return 'SettingsUiState(sendAppOptionVisible=' + this.wyw_1 + ', selectedBackupFolderUri=' + this.xyw_1 + ', selectedBackupFolderName=' + this.yyw_1 + ', isCreatingBackup=' + this.zyw_1 + ', backupProgress=' + this.ayx_1 + ', selectedBackupPath=' + this.byx_1 + ', htmlContentDisplayOptions=' + this.cyx_1 + ', currentHtmlContentDisplayOption=' + this.dyx_1 + ', holidayCalendarVisible=' + this.eyx_1 + ', workspaceSettingsVisible=' + this.fyx_1 + ', reasonLeavingVisible=' + this.gyx_1 + ', langDialogVisible=' + this.hyx_1 + ', htmlContentDisplayDialogVisible=' + this.iyx_1 + ', currentLanguage=' + this.jyx_1 + ', availableLanguages=' + this.kyx_1 + ', waitForRestartDialogVisible=' + this.lyx_1 + ', showDeveloperOptions=' + this.myx_1 + ', version=' + this.nyx_1 + ', storageOptions=' + this.oyx_1 + ', selectedOfflineStorageOption=' + this.pyx_1 + ', storageOptionsDialogVisible=' + this.qyx_1 + ', storageAndDataSettingsVisible=' + this.ryx_1 + ')'; }; protoOf(SettingsUiState).hashCode = function () { var result = getBooleanHashCode(this.wyw_1); result = imul(result, 31) + (this.xyw_1 == null ? 0 : getStringHashCode(this.xyw_1)) | 0; result = imul(result, 31) + (this.yyw_1 == null ? 0 : getStringHashCode(this.yyw_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.zyw_1) | 0; result = imul(result, 31) + getNumberHashCode(this.ayx_1) | 0; result = imul(result, 31) + (this.byx_1 == null ? 0 : getStringHashCode(this.byx_1)) | 0; result = imul(result, 31) + hashCode(this.cyx_1) | 0; result = imul(result, 31) + (this.dyx_1 == null ? 0 : this.dyx_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.eyx_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.fyx_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.gyx_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.hyx_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.iyx_1) | 0; result = imul(result, 31) + getStringHashCode(this.jyx_1) | 0; result = imul(result, 31) + hashCode(this.kyx_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.lyx_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.myx_1) | 0; result = imul(result, 31) + getStringHashCode(this.nyx_1) | 0; result = imul(result, 31) + hashCode(this.oyx_1) | 0; result = imul(result, 31) + (this.pyx_1 == null ? 0 : this.pyx_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.qyx_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ryx_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.wyw_1 === tmp0_other_with_cast.wyw_1)) return false; if (!(this.xyw_1 == tmp0_other_with_cast.xyw_1)) return false; if (!(this.yyw_1 == tmp0_other_with_cast.yyw_1)) return false; if (!(this.zyw_1 === tmp0_other_with_cast.zyw_1)) return false; if (!equals(this.ayx_1, tmp0_other_with_cast.ayx_1)) return false; if (!(this.byx_1 == tmp0_other_with_cast.byx_1)) return false; if (!equals(this.cyx_1, tmp0_other_with_cast.cyx_1)) return false; if (!equals(this.dyx_1, tmp0_other_with_cast.dyx_1)) return false; if (!(this.eyx_1 === tmp0_other_with_cast.eyx_1)) return false; if (!(this.fyx_1 === tmp0_other_with_cast.fyx_1)) return false; if (!(this.gyx_1 === tmp0_other_with_cast.gyx_1)) return false; if (!(this.hyx_1 === tmp0_other_with_cast.hyx_1)) return false; if (!(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; if (!(this.lyx_1 === tmp0_other_with_cast.lyx_1)) return false; if (!(this.myx_1 === tmp0_other_with_cast.myx_1)) return false; if (!(this.nyx_1 === tmp0_other_with_cast.nyx_1)) return false; if (!equals(this.oyx_1, tmp0_other_with_cast.oyx_1)) return false; if (!equals(this.pyx_1, tmp0_other_with_cast.pyx_1)) return false; if (!(this.qyx_1 === tmp0_other_with_cast.qyx_1)) return false; if (!(this.ryx_1 === tmp0_other_with_cast.ryx_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 enableNearbySharingUseCase$factory() { return getPropertyCallableRef('enableNearbySharingUseCase', 1, KProperty1, function (receiver) { return _get_enableNearbySharingUseCase__zat9e6(receiver); }, null); } function settings$factory_1() { return getPropertyCallableRef('settings', 1, KProperty1, function (receiver) { return _get_settings__lbkut4_0(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 enableNearbySharingUseCase$factory_0() { return getPropertyCallableRef('enableNearbySharingUseCase', 1, KProperty1, function (receiver) { return _get_enableNearbySharingUseCase__zat9e6(receiver); }, null); } function settings$factory_2() { return getPropertyCallableRef('settings', 1, KProperty1, function (receiver) { return _get_settings__lbkut4_0(receiver); }, null); } function zipFileUseCase$factory_0() { return getPropertyCallableRef('zipFileUseCase', 1, KProperty1, function (receiver) { return _get_zipFileUseCase__jhxb01(receiver); }, null); } function Companion_183() { this.kyy_1 = 'otheroption'; this.lyy_1 = 'otheroptionperson'; this.myy_1 = 'otheroptionpersonprofilepic'; this.nyy_1 = 'isparent'; } var Companion_instance_232; function Companion_getInstance_200() { return Companion_instance_232; } 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.myz_1; createPasskeyUseCase$factory_0(); return this_0.t2(); } function _get_apiUrlConfig__mldllg_6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.qyz_1; apiUrlConfig$factory_14(); return this_0.t2(); } function _get_getLocalAccountsSupportedUseCase__hoi7c7($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ryz_1; getLocalAccountsSupportedUseCase$factory_0(); return this_0.t2(); } function _get_genderConfig__kyr0zc_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.uyz_1; genderConfig$factory_4(); return this_0.t2(); } function _get_enqueueSavePictureUseCase__rl1s31_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.vyz_1; enqueueSavePictureUseCase$factory_2(); return this_0.t2(); } function hasErrors_5(_this__u8e3s4, $this) { return !(_this__u8e3s4.ez0_1 == null) ? true : !(_this__u8e3s4.dz0_1 == null); } function navigateToAppropriateScreen($this, savePerson) { if ($this.lyz_1.t2().fz0_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_119(); this_0.s('next', $this.oyz_1); $this.ypt(this_0, Companion_getInstance_201().wpt_1); var tmp$ret$2 = this_0.f3(); $this.zps_1.fog('AddChildProfile', tmp$ret$2); } else { var goOptions = new UstadGoOptions(VOID, VOID, true); var tmp = Napier_getInstance(); tmp.x5d(VOID, VOID, SignUpViewModel$navigateToAppropriateScreen$lambda($this)); $this.aq3($this.zps_1, appendSelectedAccount($this.oyz_1, savePerson.s95_1, new LearningSpace($this.bpu().nnk().in3_1)), goOptions); } } function Companion_184() { Companion_instance_233 = this; this.rpt_1 = 'picState'; this.spt_1 = 'SignUp'; this.tpt_1 = 'DateOfBirth'; this.upt_1 = 'personalAccount'; this.vpt_1 = 'NewOrExistingUser'; var tmp = this; Companion_getInstance_108(); Companion_getInstance_108(); Companion_getInstance_191(); tmp.wpt_1 = listOf(['learningSpaceUrl', 'showAccept', 'popUpToOnFinish', 'DateOfBirth', 'RegMode', 'NewOrExistingUser', 'personalAccount']); this.xpt_1 = 'SignupWithUsernameAndPassword'; } var Companion_instance_233; function Companion_getInstance_201() { if (Companion_instance_233 == null) new Companion_184(); return Companion_instance_233; } function SignUpViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.uz0_1 = this$0; this.vz0_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.uz0_1.mpu(this.vz0_1, 'otheroptionperson', Companion_instance_3.a4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xz0_1 = suspendResult; this.yz0_1 = this.xz0_1 == null ? new Person() : this.xz0_1; this.hd_1 = 2; suspendResult = this.uz0_1.mpu(this.vz0_1, 'otheroptionpersonprofilepic', Companion_instance_7.a4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var personPicture = suspendResult; l$ret$1: do { var this_0 = this.uz0_1.lyz_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (this.yz0_1.u95_1 === '') { tmp_0 = null; } else { tmp_0 = this.yz0_1.hk2(); } var nextValue = prevValue.zz0(this.yz0_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.uz0_1, this.vz0_1, completion); i.wz0_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$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.iz1_1 = $commitDelay; this.jz1_1 = $entity; this.kz1_1 = $this; this.lz1_1 = $key; this.mz1_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.iz1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.jz1_1 == null)) { this.hd_1 = 2; suspendResult = this.kz1_1.npu(this.kz1_1.xps_1, this.lz1_1, this.mz1_1, this.jz1_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.iz1_1, this.jz1_1, this.kz1_1, this.lz1_1, this.mz1_1, completion); i.nz1_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$onPersonPictureChanged$slambda(this$0, $personPicture, resultContinuation) { this.wz1_1 = this$0; this.xz1_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.wz1_1.npu(this.wz1_1.xps_1, 'picState', Companion_instance_7.a4r(), this.xz1_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.wz1_1, this.xz1_1, completion); i.yz1_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.u95_1 = $firstName; $this$shallowCopy.v95_1 = $lastName; return Unit_instance; }; } function SignUpViewModel$onClickedSignup$slambda(this$0, $savePerson, resultContinuation) { this.hz2_1 = this$0; this.iz2_1 = $savePerson; 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 = 16; this.hd_1 = 1; continue $sm; case 1: this.hd_1 = 2; continue $sm; case 2: this.id_1 = 15; this.id_1 = 12; this.hd_1 = 3; var tmp_0 = get_doorPrimaryKeyManager(this.hz2_1.fpu()); suspendResult = tmp_0.b62(9, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.mz2_1 = suspendResult; this.iz2_1.s95_1 = this.mz2_1; if (this.hz2_1.lyz_1.t2().hz0_1) { this.nz2_1 = _get_createPasskeyUseCase__ryoxza(this.hz2_1); if (this.nz2_1 == null) { this.oz2_1 = null; this.hd_1 = 5; continue $sm; } else { this.hd_1 = 4; suspendResult = this.nz2_1.voq(new CreatePasskeyParams(toString_0(this.iz2_1.u95_1), this.mz2_1.toString(), get_doorIdentityHashCode(this.hz2_1.n56()).toString(), systemTimeInMillis(), this.hz2_1.syz_1, this.iz2_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } else { var this_0 = LinkedHashMap_init_$Create$(); this.hz2_1.ypt(this_0, Companion_getInstance_201().wpt_1); this_0.s('otheroptionperson', this.hz2_1.z4q().e45(Companion_instance_3.a4r(), this.iz2_1)); var tmp_1 = this.hz2_1.z4q(); var tmp_2 = Companion_instance_7.a4r(); var tmp0_elvis_lhs = this.hz2_1.lyz_1.t2().zyz_1; this_0.s('otheroptionpersonprofilepic', tmp_1.e45(tmp_2, tmp0_elvis_lhs == null ? new PersonPicture() : tmp0_elvis_lhs)); this_0.s('isparent', this.hz2_1.lyz_1.t2().fz0_1.toString()); this.hz2_1.zps_1.fog('SignupEnterUsernamePassword', this_0.f3()); this.hd_1 = 11; continue $sm; } case 4: this.oz2_1 = suspendResult; this.hd_1 = 5; continue $sm; case 5: this.pz2_1 = this.oz2_1; this.qz2_1 = this.pz2_1; if (this.qz2_1 == null) { this.rz2_1 = null; this.hd_1 = 7; continue $sm; } else { var tmp_3 = this; tmp_3.sz2_1 = this.qz2_1; var tmp_4 = this; tmp_4.tz2_1 = this.sz2_1; this.hd_1 = 6; suspendResult = this.hz2_1.bpu().rnk(this.hz2_1.syz_1, this.tz2_1, this.iz2_1, this.hz2_1.lyz_1.t2().zyz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 6: var tmp_5 = this; tmp_5.rz2_1 = Unit_instance; this.hd_1 = 7; continue $sm; case 7: if (this.pz2_1 == null) { this.hz2_1.jpu().cpd(new Snack(this.hz2_1.npt().ant(strings_getInstance().emp_1))); var tmp_6 = Napier_getInstance(); tmp_6.f5e(VOID, VOID, SignUpViewModel$onClickedSignup$slambda$lambda); this.lz2_1 = Unit_instance; this.id_1 = 16; this.hd_1 = 13; continue $sm; } else { this.hd_1 = 8; continue $sm; } case 8: this.uz2_1 = this.hz2_1.lyz_1.t2().zyz_1; if (!(this.uz2_1 == null)) { this.uz2_1.r96_1 = this.iz2_1.s95_1; this.uz2_1.s96_1 = systemTimeInMillis(); this.vz2_1 = this.uz2_1.t96_1; this.hd_1 = 9; var tmp_7 = _get_enqueueSavePictureUseCase__rl1s31_0(this.hz2_1); var tmp_8 = this.iz2_1.s95_1; suspendResult = tmp_7.po1(tmp_8, 50, this.vz2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 10; continue $sm; } case 9: this.hd_1 = 10; continue $sm; case 10: navigateToAppropriateScreen(this.hz2_1, this.iz2_1); this.hd_1 = 11; continue $sm; case 11: this.kz2_1 = Unit_instance; this.id_1 = 16; this.hd_1 = 14; continue $sm; case 12: this.id_1 = 15; var tmp_9 = this.kd_1; if (tmp_9 instanceof Exception) { var e = this.kd_1; var tmp_10 = Napier_getInstance(); tmp_10.x5d(VOID, VOID, SignUpViewModel$onClickedSignup$slambda$lambda_0(e)); this.hz2_1.jpu().cpd(new Snack(this.hz2_1.npt().ant(strings_getInstance().flu_1))); this.lz2_1 = Unit_instance; this.id_1 = 16; this.hd_1 = 13; var tmp_11 = this; continue $sm; } else { throw this.kd_1; } case 13: this.id_1 = 16; this.hz2_1.epx(Companion_getInstance_89().vpc_1); return Unit_instance; case 14: this.id_1 = 16; this.hz2_1.epx(Companion_getInstance_89().vpc_1); return Unit_instance; case 15: this.id_1 = 16; var t = this.kd_1; this.hz2_1.epx(Companion_getInstance_89().vpc_1); throw t; case 16: throw this.kd_1; } } catch ($p) { var e_0 = $p; if (this.id_1 === 16) { 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.hz2_1, this.iz2_1, completion); i.jz2_1 = $this$launch; return i; }; function SignUpViewModel$onClickedSignup$slambda_0(this$0, $savePerson, resultContinuation) { var i = new SignUpViewModel$onClickedSignup$slambda(this$0, $savePerson, 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.oyz_1; }; } function SignUpViewModel(di, savedStateHandle, destName) { Companion_getInstance_201(); destName = destName === VOID ? 'SignUp' : destName; UstadEditViewModel.call(this, di, savedStateHandle, destName); this.lyz_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.myz_1 = InstanceOrNull(this, tmp$ret$0, null).n5c(this, createPasskeyUseCase$factory()); this.nyz_1 = new ValidateUsernameUseCase(); var tmp_1 = this; Companion_getInstance_108(); var tmp0_elvis_lhs = savedStateHandle.ba('next'); var tmp_2; if (tmp0_elvis_lhs == null) { Companion_getInstance_132(); tmp_2 = 'CourseListHome'; } else { tmp_2 = tmp0_elvis_lhs; } tmp_1.oyz_1 = tmp_2; this.pyz_1 = asStateFlow(this.lyz_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.qyz_1 = Instance(this, tmp$ret$2, null).n5c(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.ryz_1 = Instance(this, tmp$ret$4, null).n5c(this, getLocalAccountsSupportedUseCase$factory()); var tmp_7 = this; Companion_getInstance_108(); var tmp0_elvis_lhs_0 = savedStateHandle.ba('learningSpaceUrl'); var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? _get_apiUrlConfig__mldllg_6(this).ink_1 : tmp0_elvis_lhs_0; tmp_7.syz_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.syz_1); var trigger = di.q56(); // 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.u56(tmp$ret$6, context); var tmp$ret$8 = On(di, tmp$ret$7, trigger); var tmp_11 = get_direct(tmp$ret$8).s57(); // 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.tyz_1 = tmp_11.q57(tmp$ret$9, 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$11 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(); tmp_13.uyz_1 = Instance(this, tmp$ret$11, null).n5c(this, genderConfig$factory_3()); var tmp_15 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_0 = new LearningSpace(this.syz_1); var trigger_0 = this.q56(); // 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$13 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE(); var tmp$ret$14 = tmp_16.u56(tmp$ret$13, context_0); var this_0 = On(this, tmp$ret$14, trigger_0); // Inline function 'org.kodein.type.generic' call var tmp_18 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE(); tmp_15.vyz_1 = Instance(this_0, tmp$ret$16, null).n5c(this, enqueueSavePictureUseCase$factory_1()); this.epx(Companion_getInstance_89().upc_1); var title = this.npt().ant(strings_getInstance().mmi_1); var tmp_19 = this.cpu(); launch(tmp_19, VOID, VOID, SignUpViewModel$slambda_0(this, savedStateHandle, null)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bpt_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.' call var nextValue = new AppUiState(VOID, VOID, title, false, VOID, VOID, false, VOID, VOID, VOID, false); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } if (savedStateHandle.ba('personalAccount') === 'true') { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.lyz_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.' call var nextValue_0 = prevValue_0.zz0(VOID, VOID, 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_20 = this; Companion_getInstance_158(); tmp_20.oyz_1 = 'ContentEntryListHome'; } $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.lyz_1; while (true) { var prevValue_1 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.' call var tmp4_genderOptions = _get_genderConfig__kyr0zc_1(this).mpd_1; Companion_getInstance_191(); 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.lyz_1.t2().lz0_1; var tmp5_person = new Person(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_isPersonalAccount, tmp2_dateOfBirth); var tmp6_serverUrl_ = this.syz_1; var tmp7_passkeySupported = !(_get_createPasskeyUseCase__ryoxza(this) == null); var tmp8_showOtherOption = _get_createPasskeyUseCase__ryoxza(this) == null ? _get_getLocalAccountsSupportedUseCase__hoi7c7(this).xom() : false; var nextValue_1 = prevValue_1.zz0(tmp5_person, VOID, tmp4_genderOptions, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp7_passkeySupported, VOID, tmp6_serverUrl_, tmp8_showOtherOption); if (this_3.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } protoOf(SignUpViewModel).ay1 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.lyz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.wyz_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y95_1; var tmp_0 = this.zq2(tmp, entity == null ? null : entity.y95_1, prevValue.dz0_1); var tmp2_safe_receiver = prevValue.wyz_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.u95_1; var nextValue = prevValue.zz0(entity, VOID, VOID, VOID, VOID, VOID, VOID, tmp_0, this.zq2(tmp_1, entity == null ? null : entity.u95_1, prevValue.ez0_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this; var tmp_3 = this.cpu(); tmp_2.vq1_1 = launch(tmp_3, VOID, VOID, SignUpViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SignUpViewModel).wz2 = function (checked) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.lyz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onParentCheckChanged.' call var nextValue = prevValue.zz0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, checked); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignUpViewModel).xz2 = function (checked) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.lyz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onTeacherCheckChanged.' call var nextValue = prevValue.zz0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, checked); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignUpViewModel).vyg = 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.lyz_1.t2().zyz_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r96_1; tmp.r96_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this_0.t96_1 = pictureUri; var personPicture = this_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.lyz_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onPersonPictureChanged.' call var nextValue = prevValue.zz0(VOID, VOID, VOID, personPicture); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.cpu(); launch(tmp_0, VOID, VOID, SignUpViewModel$onPersonPictureChanged$slambda_0(this, personPicture, null)); }; protoOf(SignUpViewModel).yz2 = function (fullName) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.lyz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onFullNameValueChange.' call var nextValue = prevValue.zz0(VOID, VOID, VOID, VOID, VOID, fullName); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignUpViewModel).zz2 = function () { this.epx(Companion_getInstance_89().upc_1); var tmp0_safe_receiver = this.lyz_1.t2().bz0_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.text.trim' call tmp = toString(trim(isCharSequence(tmp0_safe_receiver) ? tmp0_safe_receiver : THROW_CCE())); } var fullName = tmp; var tmp_0; if (fullName == null) { tmp_0 = null; } else { // Inline function 'kotlin.text.trim' call tmp_0 = toString(trim(isCharSequence(fullName) ? fullName : THROW_CCE())); } var tmp2_safe_receiver = tmp_0; var parts = tmp2_safe_receiver == null ? null : split(tmp2_safe_receiver, [' '], VOID, 2); var firstName = parts == null ? null : parts.v(0); var tmp_1; if (parts == null) { tmp_1 = null; } else { // Inline function 'kotlin.collections.getOrElse' call var tmp_2; if (1 >= 0 ? 1 <= get_lastIndex(parts) : false) { tmp_2 = parts.v(1); } else { // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onClickedSignup.' call tmp_2 = ''; } tmp_1 = tmp_2; } var lastName = tmp_1; var tmp5_safe_receiver = this.lyz_1.t2().wyz_1; var tmp_3; if (tmp5_safe_receiver == null) { tmp_3 = null; } else { tmp_3 = shallowCopy(tmp5_safe_receiver, SignUpViewModel$onClickedSignup$lambda(firstName, lastName)); } this.ay1(tmp_3); var tmp6_elvis_lhs = this.lyz_1.t2().wyz_1; var tmp_4; if (tmp6_elvis_lhs == null) { return Unit_instance; } else { tmp_4 = tmp6_elvis_lhs; } var savePerson = tmp_4; var requiredFieldMessage = this.npt().ant(strings_getInstance().sly_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.lyz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onClickedSignup.' call var tmp_5; // Inline function 'kotlin.text.isNullOrEmpty' call var this_1 = savePerson.u95_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_5 = requiredFieldMessage; } else { tmp_5 = null; } var tmp0_fullNameError = tmp_5; var tmp_6; var tmp_7 = savePerson.y95_1; if (tmp_7 === 0) { tmp_6 = requiredFieldMessage; } else { tmp_6 = null; } var tmp1_genderError = tmp_6; var nextValue = prevValue.zz0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_genderError, tmp0_fullNameError); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_5(this.lyz_1.t2(), this)) { this.epx(Companion_getInstance_89().vpc_1); return Unit_instance; } var tmp_8 = this.cpu(); launch(tmp_8, VOID, VOID, SignUpViewModel$onClickedSignup$slambda_0(this, savePerson, null)); }; function SignUpUiState(person, password, genderOptions, personPicture, registrationMode, firstName, dateOfBirthError, genderError, fullNameError, isParent, isTeacher, passkeySupported, doorNodeId, serverUrl_, showOtherOption, isPersonalAccount) { person = person === VOID ? null : person; password = password === VOID ? null : password; genderOptions = genderOptions === VOID ? PersonConstants_getInstance_0().opd_1 : genderOptions; personPicture = personPicture === VOID ? null : personPicture; registrationMode = registrationMode === VOID ? 0 : registrationMode; firstName = firstName === VOID ? null : firstName; dateOfBirthError = dateOfBirthError === VOID ? null : dateOfBirthError; genderError = genderError === VOID ? null : genderError; fullNameError = fullNameError === VOID ? null : fullNameError; isParent = isParent === VOID ? false : isParent; isTeacher = isTeacher === VOID ? false : isTeacher; passkeySupported = passkeySupported === VOID ? true : passkeySupported; doorNodeId = doorNodeId === VOID ? null : doorNodeId; serverUrl_ = serverUrl_ === VOID ? null : serverUrl_; showOtherOption = showOtherOption === VOID ? true : showOtherOption; isPersonalAccount = isPersonalAccount === VOID ? false : isPersonalAccount; this.wyz_1 = person; this.xyz_1 = password; this.yyz_1 = genderOptions; this.zyz_1 = personPicture; this.az0_1 = registrationMode; this.bz0_1 = firstName; this.cz0_1 = dateOfBirthError; this.dz0_1 = genderError; this.ez0_1 = fullNameError; this.fz0_1 = isParent; this.gz0_1 = isTeacher; this.hz0_1 = passkeySupported; this.iz0_1 = doorNodeId; this.jz0_1 = serverUrl_; this.kz0_1 = showOtherOption; this.lz0_1 = isPersonalAccount; } protoOf(SignUpUiState).az3 = function (person, password, genderOptions, personPicture, registrationMode, firstName, dateOfBirthError, genderError, fullNameError, isParent, isTeacher, passkeySupported, doorNodeId, serverUrl_, showOtherOption, isPersonalAccount) { return new SignUpUiState(person, password, genderOptions, personPicture, registrationMode, firstName, dateOfBirthError, genderError, fullNameError, isParent, isTeacher, passkeySupported, doorNodeId, serverUrl_, showOtherOption, isPersonalAccount); }; protoOf(SignUpUiState).zz0 = function (person, password, genderOptions, personPicture, registrationMode, firstName, dateOfBirthError, genderError, fullNameError, isParent, isTeacher, passkeySupported, doorNodeId, serverUrl_, showOtherOption, isPersonalAccount, $super) { person = person === VOID ? this.wyz_1 : person; password = password === VOID ? this.xyz_1 : password; genderOptions = genderOptions === VOID ? this.yyz_1 : genderOptions; personPicture = personPicture === VOID ? this.zyz_1 : personPicture; registrationMode = registrationMode === VOID ? this.az0_1 : registrationMode; firstName = firstName === VOID ? this.bz0_1 : firstName; dateOfBirthError = dateOfBirthError === VOID ? this.cz0_1 : dateOfBirthError; genderError = genderError === VOID ? this.dz0_1 : genderError; fullNameError = fullNameError === VOID ? this.ez0_1 : fullNameError; isParent = isParent === VOID ? this.fz0_1 : isParent; isTeacher = isTeacher === VOID ? this.gz0_1 : isTeacher; passkeySupported = passkeySupported === VOID ? this.hz0_1 : passkeySupported; doorNodeId = doorNodeId === VOID ? this.iz0_1 : doorNodeId; serverUrl_ = serverUrl_ === VOID ? this.jz0_1 : serverUrl_; showOtherOption = showOtherOption === VOID ? this.kz0_1 : showOtherOption; isPersonalAccount = isPersonalAccount === VOID ? this.lz0_1 : isPersonalAccount; return $super === VOID ? this.az3(person, password, genderOptions, personPicture, registrationMode, firstName, dateOfBirthError, genderError, fullNameError, isParent, isTeacher, passkeySupported, doorNodeId, serverUrl_, showOtherOption, isPersonalAccount) : $super.az3.call(this, person, password, genderOptions, personPicture, registrationMode, firstName, dateOfBirthError, genderError, fullNameError, isParent, isTeacher, passkeySupported, doorNodeId, serverUrl_, showOtherOption, isPersonalAccount); }; protoOf(SignUpUiState).toString = function () { return 'SignUpUiState(person=' + this.wyz_1 + ', password=' + this.xyz_1 + ', genderOptions=' + this.yyz_1 + ', personPicture=' + this.zyz_1 + ', registrationMode=' + this.az0_1 + ', firstName=' + this.bz0_1 + ', dateOfBirthError=' + this.cz0_1 + ', genderError=' + this.dz0_1 + ', fullNameError=' + this.ez0_1 + ', isParent=' + this.fz0_1 + ', isTeacher=' + this.gz0_1 + ', passkeySupported=' + this.hz0_1 + ', doorNodeId=' + this.iz0_1 + ', serverUrl_=' + this.jz0_1 + ', showOtherOption=' + this.kz0_1 + ', isPersonalAccount=' + this.lz0_1 + ')'; }; protoOf(SignUpUiState).hashCode = function () { var result = this.wyz_1 == null ? 0 : this.wyz_1.hashCode(); result = imul(result, 31) + (this.xyz_1 == null ? 0 : getStringHashCode(this.xyz_1)) | 0; result = imul(result, 31) + hashCode(this.yyz_1) | 0; result = imul(result, 31) + (this.zyz_1 == null ? 0 : this.zyz_1.hashCode()) | 0; result = imul(result, 31) + this.az0_1 | 0; result = imul(result, 31) + (this.bz0_1 == null ? 0 : getStringHashCode(this.bz0_1)) | 0; result = imul(result, 31) + (this.cz0_1 == null ? 0 : getStringHashCode(this.cz0_1)) | 0; result = imul(result, 31) + (this.dz0_1 == null ? 0 : getStringHashCode(this.dz0_1)) | 0; result = imul(result, 31) + (this.ez0_1 == null ? 0 : getStringHashCode(this.ez0_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.fz0_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.gz0_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.hz0_1) | 0; result = imul(result, 31) + (this.iz0_1 == null ? 0 : getStringHashCode(this.iz0_1)) | 0; result = imul(result, 31) + (this.jz0_1 == null ? 0 : getStringHashCode(this.jz0_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.kz0_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.lz0_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.wyz_1, tmp0_other_with_cast.wyz_1)) return false; if (!(this.xyz_1 == tmp0_other_with_cast.xyz_1)) return false; if (!equals(this.yyz_1, tmp0_other_with_cast.yyz_1)) return false; if (!equals(this.zyz_1, tmp0_other_with_cast.zyz_1)) return false; if (!(this.az0_1 === tmp0_other_with_cast.az0_1)) return false; if (!(this.bz0_1 == tmp0_other_with_cast.bz0_1)) return false; if (!(this.cz0_1 == tmp0_other_with_cast.cz0_1)) return false; if (!(this.dz0_1 == tmp0_other_with_cast.dz0_1)) return false; if (!(this.ez0_1 == tmp0_other_with_cast.ez0_1)) return false; if (!(this.fz0_1 === tmp0_other_with_cast.fz0_1)) return false; if (!(this.gz0_1 === tmp0_other_with_cast.gz0_1)) return false; if (!(this.hz0_1 === tmp0_other_with_cast.hz0_1)) return false; if (!(this.iz0_1 == tmp0_other_with_cast.iz0_1)) return false; if (!(this.jz0_1 == tmp0_other_with_cast.jz0_1)) return false; if (!(this.kz0_1 === tmp0_other_with_cast.kz0_1)) return false; if (!(this.lz0_1 === tmp0_other_with_cast.lz0_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 _get_savePasswordUseCase__awoktu($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zz3_1; savePasswordUseCase$factory_0(); return this_0.t2(); } function _get_apiUrlConfig__mldllg_7($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.dz4_1; apiUrlConfig$factory_16(); return this_0.t2(); } function _get_genderConfig__kyr0zc_2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hz4_1; genderConfig$factory_6(); return this_0.t2(); } function _get_enqueueSavePictureUseCase__rl1s31_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.iz4_1; enqueueSavePictureUseCase$factory_4(); return this_0.t2(); } function hasErrors_6(_this__u8e3s4, $this) { return !(_this__u8e3s4.oz4_1 == null) ? true : !(_this__u8e3s4.qz4_1 == null); } function navigateToAppropriateScreen_0($this, savePerson) { if ($this.ez4_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_119(); this_0.s('next', $this.bz4_1); $this.ypt(this_0, Companion_getInstance_201().wpt_1); var tmp$ret$2 = this_0.f3(); $this.zps_1.fog('AddChildProfile', tmp$ret$2); } else { var goOptions = new UstadGoOptions(VOID, VOID, true); var tmp = Napier_getInstance(); tmp.x5d(VOID, VOID, SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$lambda($this)); $this.aq3($this.zps_1, appendSelectedAccount($this.bz4_1, savePerson.s95_1, new LearningSpace($this.bpu().nnk().in3_1)), goOptions); } } function Companion_185() { this.xz4_1 = 'SignupEnterUsernamePassword'; } var Companion_instance_234; function Companion_getInstance_202() { return Companion_instance_234; } function SignupEnterUsernamePasswordViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.gz5_1 = this$0; this.hz5_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.gz5_1.mpu(this.hz5_1, 'otheroptionperson', Companion_instance_3.a4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.jz5_1 = suspendResult; this.kz5_1 = this.jz5_1 == null ? new Person() : this.jz5_1; this.hd_1 = 2; suspendResult = this.gz5_1.mpu(this.hz5_1, 'otheroptionpersonprofilepic', Companion_instance_7.a4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var personPicture = suspendResult; l$ret$1: do { var this_0 = this.gz5_1.yz3_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (this.kz5_1.u95_1 === '') { tmp_0 = null; } else { tmp_0 = this.kz5_1.hk2(); } var nextValue = prevValue.lz5(this.kz5_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.gz5_1, this.hz5_1, completion); i.iz5_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.uz5_1 = $commitDelay; this.vz5_1 = $entity; this.wz5_1 = $this; this.xz5_1 = $key; this.yz5_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.uz5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.vz5_1 == null)) { this.hd_1 = 2; suspendResult = this.wz5_1.npu(this.wz5_1.xps_1, this.xz5_1, this.yz5_1, this.vz5_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.uz5_1, this.vz5_1, this.wz5_1, this.xz5_1, this.yz5_1, completion); i.zz5_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.u95_1 = $firstName; $this$shallowCopy.v95_1 = $lastName; return Unit_instance; }; } function SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda(this$0, $savePerson, resultContinuation) { this.iz6_1 = this$0; this.jz6_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 = 12; this.hd_1 = 1; continue $sm; case 1: this.hd_1 = 2; continue $sm; case 2: this.id_1 = 11; this.id_1 = 10; this.hd_1 = 3; var tmp_0 = get_doorPrimaryKeyManager(this.iz6_1.fpu()); suspendResult = tmp_0.b62(9, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.nz6_1 = suspendResult; this.jz6_1.s95_1 = this.nz6_1; this.oz6_1 = this.iz6_1.yz3_1.t2().kz4_1; if (this.oz6_1 == null) { this.mz6_1 = Unit_instance; this.id_1 = 12; this.hd_1 = 13; var tmp_1 = this; continue $sm; } else { this.pz6_1 = this.oz6_1; this.hd_1 = 4; continue $sm; } case 4: this.qz6_1 = this.pz6_1; this.hd_1 = 5; suspendResult = this.iz6_1.bpu().tnk(this.jz6_1, this.qz6_1, this.iz6_1.fz4_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.rz6_1 = this.iz6_1.yz3_1.t2().mz4_1; if (!(this.rz6_1 == null)) { this.rz6_1.r96_1 = this.jz6_1.s95_1; this.rz6_1.s96_1 = systemTimeInMillis(); this.sz6_1 = this.rz6_1.t96_1; this.hd_1 = 6; var tmp_2 = _get_enqueueSavePictureUseCase__rl1s31_1(this.iz6_1); var tmp_3 = this.jz6_1.s95_1; suspendResult = tmp_2.po1(tmp_3, 50, this.sz6_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.tz6_1 = _get_savePasswordUseCase__awoktu(this.iz6_1); if (this.tz6_1 == null) { this.uz6_1 = null; this.hd_1 = 9; continue $sm; } else { this.hd_1 = 8; suspendResult = this.tz6_1.kor(toString_0(this.jz6_1.t95_1), toString_0(this.iz6_1.yz3_1.t2().kz4_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 8: var tmp_4 = this; tmp_4.uz6_1 = Unit_instance; this.hd_1 = 9; continue $sm; case 9: var tmp_5 = this; navigateToAppropriateScreen_0(this.iz6_1, this.jz6_1); tmp_5.lz6_1 = Unit_instance; this.id_1 = 12; this.hd_1 = 14; continue $sm; case 10: this.id_1 = 11; var tmp_6 = this.kd_1; if (tmp_6 instanceof Exception) { var e = this.kd_1; if (e instanceof IllegalStateException) { l$ret$5: do { var this_0 = this.iz6_1.yz3_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.lz5(VOID, VOID, VOID, VOID, VOID, this.iz6_1.npt().ant(strings_getInstance().qmi_1)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$5; } } } while (false); } else { this.iz6_1.jpu().cpd(new Snack(this.iz6_1.npt().ant(strings_getInstance().flu_1))); } this.mz6_1 = Unit_instance; this.id_1 = 12; this.hd_1 = 13; var tmp_7 = this; continue $sm; } else { throw this.kd_1; } case 11: this.id_1 = 12; var t = this.kd_1; this.iz6_1.epx(Companion_getInstance_89().vpc_1); throw t; case 12: throw this.kd_1; case 13: this.id_1 = 12; this.iz6_1.epx(Companion_getInstance_89().vpc_1); return Unit_instance; case 14: this.id_1 = 12; this.iz6_1.epx(Companion_getInstance_89().vpc_1); return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 12) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda).v1m = function ($this$launch, completion) { var i = new SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda(this.iz6_1, this.jz6_1, completion); i.kz6_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$lambda(this$0) { return function () { return 'AddSignupEnterUsernamePasswordPresenter: go to next destination: ' + this$0.bz4_1; }; } function SignupEnterUsernamePasswordViewModel(di, savedStateHandle, destName) { destName = destName === VOID ? 'SignupEnterUsernamePassword' : destName; UstadEditViewModel.call(this, di, savedStateHandle, destName); this.yz3_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.zz3_1 = InstanceOrNull(this, tmp$ret$0, null).n5c(this, savePasswordUseCase$factory()); this.az4_1 = new ValidateUsernameUseCase(); var tmp_1 = this; Companion_getInstance_108(); var tmp0_elvis_lhs = savedStateHandle.ba('next'); var tmp_2; if (tmp0_elvis_lhs == null) { Companion_getInstance_132(); tmp_2 = 'CourseListHome'; } else { tmp_2 = tmp0_elvis_lhs; } tmp_1.bz4_1 = tmp_2; this.cz4_1 = asStateFlow(this.yz3_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.dz4_1 = Instance(this, tmp$ret$2, null).n5c(this, apiUrlConfig$factory_15()); var tmp_5 = this; tmp_5.ez4_1 = toBoolean(savedStateHandle.ba('isparent')); var tmp_6 = this; Companion_getInstance_108(); var tmp0_elvis_lhs_0 = savedStateHandle.ba('learningSpaceUrl'); var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? _get_apiUrlConfig__mldllg_7(this).ink_1 : tmp0_elvis_lhs_0; tmp_6.fz4_1 = tmp1_elvis_lhs == null ? 'http://localhost' : tmp1_elvis_lhs; var tmp_7 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = new LearningSpace(this.fz4_1); var trigger = di.q56(); // 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$4 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); var tmp$ret$5 = tmp_8.u56(tmp$ret$4, context); var tmp$ret$6 = On(di, tmp$ret$5, trigger); var tmp_10 = get_direct(tmp$ret$6).s57(); // Inline function 'org.kodein.type.generic' call var tmp_11 = typeToken(createKType(getKClass(AddNewPersonUseCase), arrayOf([]), false)); var tmp$ret$7 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(); tmp_7.gz4_1 = tmp_10.q57(tmp$ret$7, 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(GenderConfig), arrayOf([]), false)); var tmp$ret$9 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); tmp_12.hz4_1 = Instance(this, tmp$ret$9, null).n5c(this, genderConfig$factory_5()); var tmp_14 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_0 = new LearningSpace(this.fz4_1); var trigger_0 = this.q56(); // Inline function 'org.kodein.di.diContext' call var tmp_15 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_16 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$11 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE(); var tmp$ret$12 = tmp_15.u56(tmp$ret$11, context_0); var this_0 = On(this, tmp$ret$12, trigger_0); // Inline function 'org.kodein.type.generic' call var tmp_17 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE(); tmp_14.iz4_1 = Instance(this_0, tmp$ret$14, null).n5c(this, enqueueSavePictureUseCase$factory_3()); this.epx(Companion_getInstance_89().upc_1); var title = this.npt().ant(strings_getInstance().mmi_1); var tmp_18 = this.cpu(); launch(tmp_18, VOID, VOID, SignupEnterUsernamePasswordViewModel$slambda_0(this, savedStateHandle, null)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bpt_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_201(); if (savedStateHandle.ba('personalAccount') === 'true') { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.yz3_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.' call var nextValue_0 = prevValue_0.lz5(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_19 = this; Companion_getInstance_158(); tmp_19.bz4_1 = 'ContentEntryListHome'; } $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.yz3_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).mpd_1; Companion_getInstance_191(); 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.yz3_1.t2().wz4_1; var tmp5_person = new Person(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_isPersonalAccount, tmp2_dateOfBirth); var nextValue_1 = prevValue_1.lz5(tmp5_person, VOID, tmp4_genderOptions); if (this_3.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } protoOf(SignupEnterUsernamePasswordViewModel).ay1 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.yz3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.jz4_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t95_1; var nextValue = prevValue.lz5(entity, VOID, VOID, VOID, VOID, this.zq2(tmp, entity == null ? null : entity.t95_1, prevValue.oz4_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.cpu(); tmp_0.vq1_1 = launch(tmp_1, VOID, VOID, SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SignupEnterUsernamePasswordViewModel).uyg = function (password) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.yz3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.onPasswordChanged.' call var nextValue = prevValue.lz5(VOID, password, VOID, VOID, VOID, VOID, VOID, null); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignupEnterUsernamePasswordViewModel).vz6 = function () { this.epx(Companion_getInstance_89().upc_1); var tmp0_safe_receiver = this.yz3_1.t2().pz4_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.yz3_1.t2().jz4_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.ay1(tmp_3); var tmp6_elvis_lhs = this.yz3_1.t2().jz4_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.yz3_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.t95_1; if (!this.az4_1.xnr(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs)) { tmp_5 = this.npt().ant(strings_getInstance().em1_1); } else { tmp_5 = null; } var tmp_6 = tmp_5; var tmp_7; // Inline function 'kotlin.text.isNullOrEmpty' call var this_1 = prevValue.kz4_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_7 = this.npt().ant(strings_getInstance().sly_1); } else { tmp_7 = null; } var nextValue = prevValue.lz5(VOID, VOID, VOID, VOID, VOID, tmp_6, VOID, tmp_7); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_6(this.yz3_1.t2(), this)) { this.epx(Companion_getInstance_89().vpc_1); return Unit_instance; } var tmp_8 = this.cpu(); 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().opd_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.jz4_1 = person; this.kz4_1 = password; this.lz4_1 = genderOptions; this.mz4_1 = personPicture; this.nz4_1 = registrationMode; this.oz4_1 = usernameError; this.pz4_1 = firstName; this.qz4_1 = passwordError; this.rz4_1 = dateOfBirthError; this.sz4_1 = parentContactError; this.tz4_1 = genderError; this.uz4_1 = fullNameError; this.vz4_1 = passkeySupported; this.wz4_1 = isPersonalAccount; } protoOf(SignupEnterUsernamePasswordUiState).wz6 = 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).lz5 = function (person, password, genderOptions, personPicture, registrationMode, usernameError, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount, $super) { person = person === VOID ? this.jz4_1 : person; password = password === VOID ? this.kz4_1 : password; genderOptions = genderOptions === VOID ? this.lz4_1 : genderOptions; personPicture = personPicture === VOID ? this.mz4_1 : personPicture; registrationMode = registrationMode === VOID ? this.nz4_1 : registrationMode; usernameError = usernameError === VOID ? this.oz4_1 : usernameError; firstName = firstName === VOID ? this.pz4_1 : firstName; passwordError = passwordError === VOID ? this.qz4_1 : passwordError; dateOfBirthError = dateOfBirthError === VOID ? this.rz4_1 : dateOfBirthError; parentContactError = parentContactError === VOID ? this.sz4_1 : parentContactError; genderError = genderError === VOID ? this.tz4_1 : genderError; fullNameError = fullNameError === VOID ? this.uz4_1 : fullNameError; passkeySupported = passkeySupported === VOID ? this.vz4_1 : passkeySupported; isPersonalAccount = isPersonalAccount === VOID ? this.wz4_1 : isPersonalAccount; return $super === VOID ? this.wz6(person, password, genderOptions, personPicture, registrationMode, usernameError, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount) : $super.wz6.call(this, person, password, genderOptions, personPicture, registrationMode, usernameError, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount); }; protoOf(SignupEnterUsernamePasswordUiState).toString = function () { return 'SignupEnterUsernamePasswordUiState(person=' + this.jz4_1 + ', password=' + this.kz4_1 + ', genderOptions=' + this.lz4_1 + ', personPicture=' + this.mz4_1 + ', registrationMode=' + this.nz4_1 + ', usernameError=' + this.oz4_1 + ', firstName=' + this.pz4_1 + ', passwordError=' + this.qz4_1 + ', dateOfBirthError=' + this.rz4_1 + ', parentContactError=' + this.sz4_1 + ', genderError=' + this.tz4_1 + ', fullNameError=' + this.uz4_1 + ', passkeySupported=' + this.vz4_1 + ', isPersonalAccount=' + this.wz4_1 + ')'; }; protoOf(SignupEnterUsernamePasswordUiState).hashCode = function () { var result = this.jz4_1 == null ? 0 : this.jz4_1.hashCode(); result = imul(result, 31) + (this.kz4_1 == null ? 0 : getStringHashCode(this.kz4_1)) | 0; result = imul(result, 31) + hashCode(this.lz4_1) | 0; result = imul(result, 31) + (this.mz4_1 == null ? 0 : this.mz4_1.hashCode()) | 0; result = imul(result, 31) + this.nz4_1 | 0; result = imul(result, 31) + (this.oz4_1 == null ? 0 : getStringHashCode(this.oz4_1)) | 0; result = imul(result, 31) + (this.pz4_1 == null ? 0 : getStringHashCode(this.pz4_1)) | 0; result = imul(result, 31) + (this.qz4_1 == null ? 0 : getStringHashCode(this.qz4_1)) | 0; result = imul(result, 31) + (this.rz4_1 == null ? 0 : getStringHashCode(this.rz4_1)) | 0; result = imul(result, 31) + (this.sz4_1 == null ? 0 : getStringHashCode(this.sz4_1)) | 0; result = imul(result, 31) + (this.tz4_1 == null ? 0 : getStringHashCode(this.tz4_1)) | 0; result = imul(result, 31) + (this.uz4_1 == null ? 0 : getStringHashCode(this.uz4_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.vz4_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.wz4_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.jz4_1, tmp0_other_with_cast.jz4_1)) return false; if (!(this.kz4_1 == tmp0_other_with_cast.kz4_1)) return false; if (!equals(this.lz4_1, tmp0_other_with_cast.lz4_1)) return false; if (!equals(this.mz4_1, tmp0_other_with_cast.mz4_1)) return false; if (!(this.nz4_1 === tmp0_other_with_cast.nz4_1)) return false; if (!(this.oz4_1 == tmp0_other_with_cast.oz4_1)) return false; if (!(this.pz4_1 == tmp0_other_with_cast.pz4_1)) return false; if (!(this.qz4_1 == tmp0_other_with_cast.qz4_1)) return false; if (!(this.rz4_1 == tmp0_other_with_cast.rz4_1)) return false; if (!(this.sz4_1 == tmp0_other_with_cast.sz4_1)) return false; if (!(this.tz4_1 == tmp0_other_with_cast.tz4_1)) return false; if (!(this.uz4_1 == tmp0_other_with_cast.uz4_1)) return false; if (!(this.vz4_1 === tmp0_other_with_cast.vz4_1)) return false; if (!(this.wz4_1 === tmp0_other_with_cast.wz4_1)) return false; return true; }; function savePasswordUseCase$factory() { return getPropertyCallableRef('savePasswordUseCase', 1, KProperty1, function (receiver) { return _get_savePasswordUseCase__awoktu(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_0() { return getPropertyCallableRef('savePasswordUseCase', 1, KProperty1, function (receiver) { return _get_savePasswordUseCase__awoktu(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).hz7 = function (site, hasAdminPermission, $completion) { var tmp = this.iz7(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.hz7(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.fz7_1, this.gz7_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda).iz7 = function (site, hasAdminPermission, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda(completion); i.fz7_1 = site; i.gz7_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.hz7(site, hasAdminPermission, $completion); }; l.$arity = 2; return l; } function SiteDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.rz7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_1).tz7 = function (it, $completion) { var tmp = this.uz7(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.tz7(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.sz7_1; var entity = tmp0_container.y6(); var hasEditSitePermission = tmp0_container.z6(); l$ret$1: do { var this_0 = this.rz7_1.rz8_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vz8(entity); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.rz7_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.npc(prevValue_0.ypb_1.tpc(!(this.sz7_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).uz7 = function (it, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda_1(this.rz7_1, completion); i.sz7_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.tz7(it, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, $uiLangList, resultContinuation) { this.ez9_1 = this$0; this.fz9_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_3).hz9 = function (it, $completion) { var tmp = this.iz9(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.hz9((!(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.ez9_1.rz8_1; while (true) { var prevValue = this_0.t2(); var this_1 = this.gz9_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.fz9_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); if (element_0.ipa_1 === element.xhj_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.jpa_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.vz8(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).iz9 = function (it, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda_3(this.ez9_1, this.fz9_1, completion); i.gz9_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.hz9(it, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda$slambda($siteFlow, $permissionFlow, this$0, resultContinuation) { this.rz9_1 = $siteFlow; this.sz9_1 = $permissionFlow; this.tz9_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.rz9_1, this.sz9_1, SiteDetailViewModel$slambda$slambda$slambda$slambda_0(null)); var tmp_1 = SiteDetailViewModel$slambda$slambda$slambda$slambda_2(this.tz9_1, null); suspendResult = tmp_0.z1b(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(SiteDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda(this.rz9_1, this.sz9_1, this.tz9_1, completion); i.uz9_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.dza_1 = this$0; this.eza_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.dza_1.hpu().j7e().xhi(1); var tmp_1 = SiteDetailViewModel$slambda$slambda$slambda$slambda_4(this.dza_1, this.eza_1, null); suspendResult = tmp_0.z1b(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(SiteDetailViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda_1(this.dza_1, this.eza_1, completion); i.fza_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.oza_1 = this$0; this.pza_1 = $this_launch; this.qza_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteDetailViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.oza_1.hpu().i7e().ehe(); var tmp_0 = this.oza_1.hpu().c7f(); var tmp_1 = this.oza_1.dpu(); PermissionFlags_getInstance(); var permissionFlow = tmp_0.mhr(tmp_1, new Long(16384, 0)); launch(this.pza_1, VOID, VOID, SiteDetailViewModel$slambda$slambda$slambda_0(siteFlow, permissionFlow, this.oza_1, null)); launch(this.pza_1, VOID, VOID, SiteDetailViewModel$slambda$slambda$slambda_2(this.oza_1, this.qza_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).y77 = function (completion) { return new SiteDetailViewModel$slambda$slambda(this.oza_1, this.pza_1, this.qza_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.w86($completion); }; l.$arity = 0; return l; } function Companion_186() { this.rza_1 = 'Community'; } var Companion_instance_235; function Companion_getInstance_203() { return Companion_instance_235; } function sam$kotlinx_coroutines_flow_FlowCollector$0_36(function_0) { this.sza_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_36).t1d = function (value, $completion) { return this.sza_1(value, $completion); }; function SiteDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { $boundThis.svu(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function SiteDetailViewModel$slambda(this$0, $uiLangList, resultContinuation) { this.bzb_1 = this$0; this.czb_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.bzb_1.rz8_1, SiteDetailViewModel$slambda$slambda_0(this.bzb_1, this.dzb_1, this.czb_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.bzb_1, this.czb_1, completion); i.dzb_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.rz8_1 = MutableStateFlow(new SiteDetailUiState()); this.sz8_1 = asStateFlow(this.rz8_1); // Inline function 'org.kodein.di.instance' call var tmp = get_direct(this).s57(); // 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.q57(tmp$ret$0, null); var uiLangList = supportLangConfig.wou_1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.detail.SiteDetailViewModel.' call var tmp0_text = this.npt().ant(strings_getInstance().lm6_1); var tmp1_onClick = SiteDetailViewModel$onClickEdit$ref(this); var tmp2_icon = FabIcon_EDIT_getInstance(); var nextValue = prevValue.npc(new FabUiState(false, tmp0_text, tmp2_icon, tmp1_onClick), VOID, this.npt().ant(strings_getInstance().rmk_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = this.cpu(); launch(tmp_1, VOID, VOID, SiteDetailViewModel$slambda_0(this, uiLangList, null)); } protoOf(SiteDetailViewModel).svu = function () { Companion_getInstance_119(); var tmp0_safe_receiver = this.rz8_1.t2().tz8_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ihe_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.toString(); this.zps_1.fog('SiteEdit', mapOf_0(to('entityUid', tmp2_elvis_lhs == null ? '-1' : tmp2_elvis_lhs))); }; protoOf(SiteDetailViewModel).ezb = function (termsAndLang) { var tmp0_elvis_lhs = termsAndLang.ujm_1.xhj_1; this.zps_1.fog('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.tz8_1 = site; this.uz8_1 = siteTerms; } protoOf(SiteDetailUiState).fzb = function (site, siteTerms) { return new SiteDetailUiState(site, siteTerms); }; protoOf(SiteDetailUiState).vz8 = function (site, siteTerms, $super) { site = site === VOID ? this.tz8_1 : site; siteTerms = siteTerms === VOID ? this.uz8_1 : siteTerms; return $super === VOID ? this.fzb(site, siteTerms) : $super.fzb.call(this, site, siteTerms); }; protoOf(SiteDetailUiState).toString = function () { return 'SiteDetailUiState(site=' + this.tz8_1 + ', siteTerms=' + this.uz8_1 + ')'; }; protoOf(SiteDetailUiState).hashCode = function () { var result = this.tz8_1 == null ? 0 : hashCode(this.tz8_1); result = imul(result, 31) + hashCode(this.uz8_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.tz8_1, tmp0_other_with_cast.tz8_1)) return false; if (!equals(this.uz8_1, tmp0_other_with_cast.uz8_1)) return false; return true; }; function SiteEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.ozb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda$slambda).spg = function (it, $completion) { var tmp = this.tpg(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.spg(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.pzb_1.zpf_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.ozb_1.rzc(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).tpg = function (it, completion) { var i = new SiteEditViewModel$slambda$slambda$slambda(this.ozb_1, completion); i.pzb_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.spg(it, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda).bzd = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.bzd(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.azd_1.i7e().dhe(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).pn8 = function (db, completion) { var i = new SiteEditViewModel$slambda$slambda(completion); i.azd_1 = db; return i; }; function SiteEditViewModel$slambda$slambda_0(resultContinuation) { var i = new SiteEditViewModel$slambda$slambda(resultContinuation); var l = function (db, $completion) { return i.bzd(db, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_1).lhg = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda$slambda_1).z77 = function ($completion) { return this.lhg($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).y77 = 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.lhg($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.nzc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel...' call var nextValue = prevValue.szd(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SiteEditViewModel$slambda$slambda_3($supportedLangCodes, resultContinuation) { this.bze_1 = $supportedLangCodes; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_3).dze = function (it, $completion) { var tmp = this.pn8(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.dze(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.cze_1.j7e().yhi(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.bze_1, element.xhj_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.xhj_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.bze_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.xhj_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).pn8 = function (it, completion) { var i = new SiteEditViewModel$slambda$slambda_3(this.bze_1, completion); i.cze_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.dze(it, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_5).mze = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda$slambda_5).z77 = function ($completion) { return this.mze($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).y77 = 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.mze($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.nzc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel...' call var nextValue = prevValue.szd(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.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function SiteEditViewModel$slambda$slambda_7(this$0, resultContinuation) { this.vze_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.vze_1.gpx(this.vze_1.ipu(), 'siteTermsHtml'); var tmp_1 = SiteEditViewModel$slambda$slambda$slambda_0(this.vze_1, null); suspendResult = tmp_0.z1b(new sam$kotlinx_coroutines_flow_FlowCollector$0_37(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteEditViewModel$slambda$slambda_7).v1m = function ($this$launch, completion) { var i = new SiteEditViewModel$slambda$slambda_7(this.vze_1, completion); i.wze_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.whj_1; var this_0 = tmp0_safe_receiver == null ? null : htmlToPlainText(tmp0_safe_receiver); // Inline function 'kotlin.contracts.contract' call tmp.zhj_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.pzc_1; languagesConfig$factory_2(); return this_0.t2(); } function Companion_187() { this.xze_1 = 'SiteEdit'; this.yze_1 = 'siteTermsLang'; this.zze_1 = 'termsList'; this.azf_1 = 'siteTermsHtml'; } var Companion_instance_236; function Companion_getInstance_204() { return Companion_instance_236; } function sam$kotlinx_coroutines_flow_FlowCollector$0_37(function_0) { this.bzf_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_37).t1d = function (value, $completion) { return this.bzf_1(value, $completion); }; function SiteEditViewModel$slambda(this$0, resultContinuation) { this.kzf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda).krc = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda).he = function (p1, $completion) { return this.krc(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.lzf_1.c7f(); var tmp_1 = this.kzf_1.dpu(); PermissionFlags_getInstance(); suspendResult = tmp_0.lhr(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).pn8 = function (db, completion) { var i = new SiteEditViewModel$slambda(this.kzf_1, completion); i.lzf_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.krc(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.nzc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel..' call var nextValue = prevValue.szd(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.uzf_1 = this$0; this.vzf_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.a4r(); var tmp_1 = SiteEditViewModel$slambda$slambda_0(null); var tmp_2 = SiteEditViewModel$slambda$slambda_2(null); suspendResult = this.uzf_1.rpu(tmp_0, VOID, VOID, tmp_1, tmp_2, SiteEditViewModel$slambda$lambda(this.uzf_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_3 = ListSerializer(Companion_instance_47.a4r()); var tmp_4 = listOf_0('termsList'); var tmp_5 = SiteEditViewModel$slambda$slambda_4(this.vzf_1, null); var tmp_6 = SiteEditViewModel$slambda$slambda_6(null); suspendResult = this.uzf_1.qpu(tmp_3, tmp_4, 'termsList', tmp_5, tmp_6, SiteEditViewModel$slambda$lambda_0(this.uzf_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: l$ret$1: do { var this_0 = this.uzf_1.bpt_1; while (true) { var prevValue = this_0.t2(); var tmp_7 = this.uzf_1.npt().ant(strings_getInstance().zmd_1); var nextValue = prevValue.npc(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_7, VOID, SiteEditViewModel$onClickSave$ref(this.uzf_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.wzf_1, VOID, VOID, SiteEditViewModel$slambda$slambda_8(this.uzf_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.uzf_1, this.vzf_1, completion); i.wzf_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.whj_1 = $html; return Unit_instance; }; } function SiteEditViewModel$onChangeTermsHtml$lambda_0($prev) { return function (it) { return it.xhj_1 === $prev.qzd_1.ipa_1; }; } function SiteEditViewModel$onChangeTermsHtml$slambda(this$0, $newTerms, resultContinuation) { this.fzg_1 = this$0; this.gzg_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.fzg_1.npu(this.fzg_1.xps_1, 'termsList', ListSerializer(Companion_instance_47.a4r()), this.gzg_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.fzg_1, this.gzg_1, completion); i.hzg_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.qzg_1 = $commitDelay; this.rzg_1 = $entity; this.szg_1 = $this; this.tzg_1 = $key; this.uzg_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.qzg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.rzg_1 == null)) { this.hd_1 = 2; suspendResult = this.szg_1.npu(this.szg_1.xps_1, this.tzg_1, this.uzg_1, this.rzg_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.qzg_1, this.rzg_1, this.szg_1, this.tzg_1, this.uzg_1, completion); i.vzg_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.ezh_1 = this$0; this.fzh_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.ezh_1.hpu().i7e().fhe(this.fzh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_0 = this.ezh_1.hpu().j7e(); var this_0 = this.ezh_1.nzc_1.t2().lzd_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.whj_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.vhj_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.zhi(destination_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ezh_1.yq1('Community', this.fzh_1.ihe_1, this.fzh_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.ezh_1, this.fzh_1, completion); i.gzh_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.nzc_1 = MutableStateFlow(new SiteEditUiState()); this.ozc_1 = asStateFlow(this.nzc_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.pzc_1 = Instance(this, tmp$ret$0, null).n5c(this, languagesConfig$factory_1()); this.qzc_1 = null; var supportedLangs = _get_languagesConfig__hebcss_0(this).wou_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.ipa_1; destination.i1(tmp$ret$2); } var supportedLangCodes = destination; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.' call var tmp0_title = this.npt().ant(strings_getInstance().qmk_1); var nextValue = prevValue.npc(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.nzc_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.ipa_1 === (tmp0_elvis_lhs == null ? _get_languagesConfig__hebcss_0(this).you_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.szd(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.spu(tmp_1, true, tmp_2, SiteEditViewModel$slambda_2(this, supportedLangCodes, null)); } protoOf(SiteEditViewModel).hzh = function (uiLang) { this.xps_1.app('siteTermsLang', uiLang.ipa_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.nzc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onChangeTermsLanguage.' call var nextValue = prevValue.szd(VOID, VOID, VOID, VOID, VOID, VOID, uiLang); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SiteEditViewModel).rzc = function (html) { var tmp0_elvis_lhs = this.nzc_1.t2().izh(); 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.nzc_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.szd(VOID, replace_0(prevValue.lzd_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.lzd_1; var tmp1_safe_receiver = this.qzc_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.mr(); } var tmp_1 = this; var tmp_2 = this.cpu(); tmp_1.qzc_1 = launch(tmp_2, VOID, VOID, SiteEditViewModel$onChangeTermsHtml$slambda_0(this, newTerms, null)); }; protoOf(SiteEditViewModel).jzh = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.nzc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.kzd_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nhe_1; var nextValue = prevValue.szd(entity, VOID, VOID, VOID, this.zq2(tmp, entity == null ? null : entity.nhe_1, prevValue.ozd_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_31.a4r(); var commitDelay = new Long(200, 0); Companion_getInstance_119(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.vq1_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.cpu(); tmp_0.vq1_1 = launch(tmp_1, VOID, VOID, SiteEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SiteEditViewModel).yr9 = function () { var tmp0_elvis_lhs = this.nzc_1.t2().kzd_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.nhe_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.nzc_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onClickSave.' call var nextValue = prevValue.szd(VOID, VOID, VOID, VOID, this.npt().ant(strings_getInstance().nmw_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } } // Inline function 'kotlin.collections.map' call var this_2 = this.nzc_1.t2().lzd_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.xhj_1; var tmp_0 = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; var tmp0_safe_receiver = item.whj_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.phe_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.nzc_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.szd(VOID, VOID, VOID, VOID, VOID, this.npt().ant(strings_getInstance().ymw_1)); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_2; } } } } if (this.nzc_1.t2().rzd_1) return Unit_instance; var tmp_2 = this.cpu(); 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.kzd_1 = site; this.lzd_1 = siteTerms; this.mzd_1 = uiLangs; this.nzd_1 = fieldsEnabled; this.ozd_1 = siteNameError; this.pzd_1 = registrationEnabledError; this.qzd_1 = currentSiteTermsLang; this.rzd_1 = !(this.ozd_1 == null) ? true : !(this.pzd_1 == null); } protoOf(SiteEditUiState).izh = function () { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.lzd_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditUiState..' call if (element.xhj_1 === this.qzd_1.ipa_1) { tmp$ret$1 = element; break $l$block; } } tmp$ret$1 = null; } return tmp$ret$1; }; protoOf(SiteEditUiState).kzh = function () { var tmp0_safe_receiver = this.izh(); return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.whj_1; }; protoOf(SiteEditUiState).lzh = function (site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang) { return new SiteEditUiState(site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang); }; protoOf(SiteEditUiState).szd = function (site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang, $super) { site = site === VOID ? this.kzd_1 : site; siteTerms = siteTerms === VOID ? this.lzd_1 : siteTerms; uiLangs = uiLangs === VOID ? this.mzd_1 : uiLangs; fieldsEnabled = fieldsEnabled === VOID ? this.nzd_1 : fieldsEnabled; siteNameError = siteNameError === VOID ? this.ozd_1 : siteNameError; registrationEnabledError = registrationEnabledError === VOID ? this.pzd_1 : registrationEnabledError; currentSiteTermsLang = currentSiteTermsLang === VOID ? this.qzd_1 : currentSiteTermsLang; return $super === VOID ? this.lzh(site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang) : $super.lzh.call(this, site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang); }; protoOf(SiteEditUiState).toString = function () { return 'SiteEditUiState(site=' + this.kzd_1 + ', siteTerms=' + this.lzd_1 + ', uiLangs=' + this.mzd_1 + ', fieldsEnabled=' + this.nzd_1 + ', siteNameError=' + this.ozd_1 + ', registrationEnabledError=' + this.pzd_1 + ', currentSiteTermsLang=' + this.qzd_1 + ')'; }; protoOf(SiteEditUiState).hashCode = function () { var result = this.kzd_1 == null ? 0 : hashCode(this.kzd_1); result = imul(result, 31) + hashCode(this.lzd_1) | 0; result = imul(result, 31) + hashCode(this.mzd_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.nzd_1) | 0; result = imul(result, 31) + (this.ozd_1 == null ? 0 : getStringHashCode(this.ozd_1)) | 0; result = imul(result, 31) + (this.pzd_1 == null ? 0 : getStringHashCode(this.pzd_1)) | 0; result = imul(result, 31) + this.qzd_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.kzd_1, tmp0_other_with_cast.kzd_1)) return false; if (!equals(this.lzd_1, tmp0_other_with_cast.lzd_1)) return false; if (!equals(this.mzd_1, tmp0_other_with_cast.mzd_1)) return false; if (!(this.nzd_1 === tmp0_other_with_cast.nzd_1)) return false; if (!(this.ozd_1 == tmp0_other_with_cast.ozd_1)) return false; if (!(this.pzd_1 == tmp0_other_with_cast.pzd_1)) return false; if (!this.qzd_1.equals(tmp0_other_with_cast.qzd_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_188() { this.mzh_1 = 'locale'; this.nzh_1 = 'Terms'; } var Companion_instance_237; function Companion_getInstance_205() { return Companion_instance_237; } 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.wzh_1 = $acceptButtonMode; this.xzh_1 = $apiUrl; this.yzh_1 = $di; this.zzh_1 = $learningSpace; this.azi_1 = this$0; this.bzi_1 = $savedStateHandle; this.czi_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.wzh_1 ? !(this.xzh_1 == null) : false) { var this_0 = get_direct(this.yzh_1); var context = this.zzh_1; var tmp_2 = this_0.s57(); var tmp_3 = Companion_instance_0; var tmp_4 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_5 = tmp_2.p57(tmp_3.u56(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), context)).s57(); var tmp_6 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_1 = tmp_5.q57(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), null).ijf(); } else { tmp_1 = this.azi_1.hpu(); } tmp_0.ezi_1 = tmp_1; this.fzi_1 = this.bzi_1.ba('locale'); this.gzi_1 = this.fzi_1; if (this.gzi_1 == null) { this.hd_1 = 1; suspendResult = _init_$lambda(this.czi_1).bov(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hzi_1 = this.gzi_1; this.hd_1 = 2; continue $sm; } case 1: this.hzi_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.izi_1 = this.hzi_1; this.hd_1 = 3; suspendResult = this.ezi_1.j7e().bhj(this.izi_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.azi_1.fzj_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.kzj(displayTerms, this.wzh_1); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } else { l$ret$3: do { var this_2 = this.azi_1.fzj_1; while (true) { var prevValue_0 = this_2.t2(); var nextValue_0 = prevValue_0.kzj(VOID, VOID, this.azi_1.npt().ant(strings_getInstance().flu_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.wzh_1, this.xzh_1, this.yzh_1, this.zzh_1, this.azi_1, this.bzi_1, this.czi_1, completion); i.dzi_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.fzj_1 = MutableStateFlow(new SiteTermsDetailUiState()); this.gzj_1 = asStateFlow(this.fzj_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_108(); var apiUrl = savedStateHandle.ba('learningSpaceUrl'); var tmp; if (acceptButtonMode ? !(apiUrl == null) : false) { tmp = new LearningSpace(apiUrl); } else { tmp = this.bpu().nnk(); } var learningSpace = tmp; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var trigger = this.q56(); // 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.u56(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).n5c(null, getLocalDelegateReference('getLocaleForSiteTermsUseCase', KProperty0, false, function () { return THROW_ISE(); })); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bpt_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.npt().ant(strings_getInstance().kmk_1); var nextValue = prevValue.npc(VOID, VOID, tmp1_title, tmp0_navigationVisible, true, VOID, false); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.cpu(); launch(tmp_3, VOID, VOID, SiteTermsDetailViewModel$slambda_0(acceptButtonMode, apiUrl, di, learningSpace, this, savedStateHandle, getLocaleForSiteTermsUseCase$delegate, null)); } protoOf(SiteTermsDetailViewModel).lzj = function () { Companion_getInstance_201(); // 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.ypt(this_0, Companion_getInstance_201().wpt_1); var tmp$ret$2 = this_0.f3(); this.zps_1.fog('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.hzj_1 = siteTerms; this.izj_1 = acceptButtonVisible; this.jzj_1 = error; } protoOf(SiteTermsDetailUiState).mzj = function (siteTerms, acceptButtonVisible, error) { return new SiteTermsDetailUiState(siteTerms, acceptButtonVisible, error); }; protoOf(SiteTermsDetailUiState).kzj = function (siteTerms, acceptButtonVisible, error, $super) { siteTerms = siteTerms === VOID ? this.hzj_1 : siteTerms; acceptButtonVisible = acceptButtonVisible === VOID ? this.izj_1 : acceptButtonVisible; error = error === VOID ? this.jzj_1 : error; return $super === VOID ? this.mzj(siteTerms, acceptButtonVisible, error) : $super.mzj.call(this, siteTerms, acceptButtonVisible, error); }; protoOf(SiteTermsDetailUiState).toString = function () { return 'SiteTermsDetailUiState(siteTerms=' + this.hzj_1 + ', acceptButtonVisible=' + this.izj_1 + ', error=' + this.jzj_1 + ')'; }; protoOf(SiteTermsDetailUiState).hashCode = function () { var result = this.hzj_1 == null ? 0 : hashCode(this.hzj_1); result = imul(result, 31) + getBooleanHashCode(this.izj_1) | 0; result = imul(result, 31) + (this.jzj_1 == null ? 0 : getStringHashCode(this.jzj_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.hzj_1, tmp0_other_with_cast.hzj_1)) return false; if (!(this.izj_1 === tmp0_other_with_cast.izj_1)) return false; if (!(this.jzj_1 == tmp0_other_with_cast.jzj_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.kzk_1; httpClient$factory_12(); return this_0.t2(); } function _get_impl__d88w17_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lzk_1; impl$factory_4(); return this_0.t2(); } function Companion_189() { Companion_instance_238 = this; this.mzk_1 = 'LearningSpaceEnterLink'; var tmp = this; Companion_getInstance_119(); Companion_getInstance_108(); Companion_getInstance_119(); tmp.nzk_1 = listOf(['next', 'intMsg', 'noSessionChange']); this.ozk_1 = 'stateUrl'; } var Companion_instance_238; function Companion_getInstance_206() { if (Companion_instance_238 == null) new Companion_189(); return Companion_instance_238; } function LearningSpaceEnterLinkViewModel$onClickNext$slambda(this$0, $endpointUrl, $viewName, resultContinuation) { this.xzk_1 = this$0; this.yzk_1 = $endpointUrl; this.zzk_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.xzk_1), this.yzk_1, VOID, this.xzk_1.z4q(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var site = suspendResult; Companion_getInstance_108(); var tmp_0 = to('learningSpaceUrl', this.yzk_1); Companion_getInstance_108(); var this_0 = this.xzk_1.z4q(); var this_1 = this_0.g45(); var this_2 = serializer(this_1, createKType(getKClass(Site), arrayOf([]), false)); var args = mutableMapOf([tmp_0, to('site', this_0.e45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), site))]); var tmp0_iterator = Companion_getInstance_206().nzk_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); this.xzk_1.upu(args, element); } this.xzk_1.epx(Companion_getInstance_89().vpc_1); l$ret$1: do { var this_3 = this.xzk_1.izk_1; while (true) { var prevValue = this_3.t2(); var nextValue = prevValue.gzl(VOID, true, VOID, null, true); if (this_3.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp_1; if (equals(this.zzk_1, 'RegisterAgeRedirect')) { tmp_1 = !site.phe_1; } else { tmp_1 = false; } if (tmp_1) { this.xzk_1.epx(Companion_getInstance_89().vpc_1); l$ret$3: do { var this_4 = this.xzk_1.izk_1; while (true) { var prevValue_0 = this_4.t2(); this.xzk_1.epx(Companion_getInstance_89().vpc_1); var tmp0_linkError = _get_impl__d88w17_1(this.xzk_1).ant(strings_getInstance().hn1_1); var nextValue_0 = prevValue_0.gzl(VOID, true, VOID, tmp0_linkError, true); if (this_4.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } this.xzk_1.zps_1.fog(this.zzk_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.x5d(e, VOID, LearningSpaceEnterLinkViewModel$onClickNext$slambda$lambda(this.yzk_1)); l$ret$5: do { var this_5 = this.xzk_1.izk_1; while (true) { var prevValue_1 = this_5.t2(); this.xzk_1.epx(Companion_getInstance_89().vpc_1); var tmp0_linkError_0 = _get_impl__d88w17_1(this.xzk_1).ant(strings_getInstance().pm4_1); var nextValue_1 = prevValue_1.gzl(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.xzk_1, this.yzk_1, this.zzk_1, completion); i.azl_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_206(); UstadViewModel.call(this, di, savedStateHandle, 'LearningSpaceEnterLink'); this.izk_1 = MutableStateFlow(new LearningSpaceEnterLinkUiState()); this.jzk_1 = asStateFlow(this.izk_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.kzk_1 = Instance(this, tmp$ret$0, null).n5c(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.lzk_1 = Instance(this, tmp$ret$2, null).n5c(this, impl$factory_3()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.siteenterlink.LearningSpaceEnterLinkViewModel.' call var tmp0_title = _get_impl__d88w17_1(this).ant(strings_getInstance().imn_1); var nextValue = prevValue.npc(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.izk_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_206().ozk_1); var nextValue_0 = prevValue_0.gzl(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(LearningSpaceEnterLinkViewModel).gv9 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.izk_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.siteenterlink.LearningSpaceEnterLinkViewModel.onClickNext.' call var nextValue = prevValue.gzl(VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp; Companion_getInstance_201(); if (this.xps_1.ba('NewOrExistingUser') === 'new') { tmp = 'RegisterAgeRedirect'; } else { tmp = 'Login'; } var viewName = tmp; this.epx(Companion_getInstance_89().upc_1); var endpointUrl = requirePostfix(requireHttpPrefix(this.izk_1.t2().bzl_1), '/'); var tmp_0 = this.cpu(); launch(tmp_0, VOID, VOID, LearningSpaceEnterLinkViewModel$onClickNext$slambda_0(this, endpointUrl, viewName, null)); }; protoOf(LearningSpaceEnterLinkViewModel).hzl = function (siteLink) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.izk_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.siteenterlink.LearningSpaceEnterLinkViewModel.onSiteLinkUpdated.' call var nextValue = prevValue.gzl(siteLink); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.xps_1.app(Companion_getInstance_206().ozk_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.bzl_1 = siteLink; this.czl_1 = validLink; this.dzl_1 = progressVisible; this.ezl_1 = linkError; this.fzl_1 = fieldsEnabled; } protoOf(LearningSpaceEnterLinkUiState).izl = function (siteLink, validLink, progressVisible, linkError, fieldsEnabled) { return new LearningSpaceEnterLinkUiState(siteLink, validLink, progressVisible, linkError, fieldsEnabled); }; protoOf(LearningSpaceEnterLinkUiState).gzl = function (siteLink, validLink, progressVisible, linkError, fieldsEnabled, $super) { siteLink = siteLink === VOID ? this.bzl_1 : siteLink; validLink = validLink === VOID ? this.czl_1 : validLink; progressVisible = progressVisible === VOID ? this.dzl_1 : progressVisible; linkError = linkError === VOID ? this.ezl_1 : linkError; fieldsEnabled = fieldsEnabled === VOID ? this.fzl_1 : fieldsEnabled; return $super === VOID ? this.izl(siteLink, validLink, progressVisible, linkError, fieldsEnabled) : $super.izl.call(this, siteLink, validLink, progressVisible, linkError, fieldsEnabled); }; protoOf(LearningSpaceEnterLinkUiState).toString = function () { return 'LearningSpaceEnterLinkUiState(siteLink=' + this.bzl_1 + ', validLink=' + this.czl_1 + ', progressVisible=' + this.dzl_1 + ', linkError=' + this.ezl_1 + ', fieldsEnabled=' + this.fzl_1 + ')'; }; protoOf(LearningSpaceEnterLinkUiState).hashCode = function () { var result = getStringHashCode(this.bzl_1); result = imul(result, 31) + getBooleanHashCode(this.czl_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.dzl_1) | 0; result = imul(result, 31) + (this.ezl_1 == null ? 0 : getStringHashCode(this.ezl_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.fzl_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.bzl_1 === tmp0_other_with_cast.bzl_1)) return false; if (!(this.czl_1 === tmp0_other_with_cast.czl_1)) return false; if (!(this.dzl_1 === tmp0_other_with_cast.dzl_1)) return false; if (!(this.ezl_1 == tmp0_other_with_cast.ezl_1)) return false; if (!(this.fzl_1 === tmp0_other_with_cast.fzl_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_3() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17_1(receiver); }, null); } function httpClient$factory_12() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_5(receiver); }, null); } function impl$factory_4() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17_1(receiver); }, null); } function SystemPermissionConstants() { SystemPermissionConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().umy_1; PermissionFlags_getInstance(); var tmp_1 = to(tmp_0, new Long(1024, 0)); var tmp_2 = strings_getInstance().vmy_1; PermissionFlags_getInstance(); var tmp_3 = to(tmp_2, new Long(8192, 0)); var tmp_4 = strings_getInstance().wmy_1; PermissionFlags_getInstance(); var tmp_5 = to(tmp_4, new Long(32768, 0)); var tmp_6 = strings_getInstance().bmz_1; PermissionFlags_getInstance(); var tmp_7 = to(tmp_6, new Long(131072, 0)); var tmp_8 = strings_getInstance().amz_1; PermissionFlags_getInstance(); var tmp_9 = to(tmp_8, new Long(4096, 0)); var tmp_10 = strings_getInstance().zmy_1; PermissionFlags_getInstance(); var tmp_11 = to(tmp_10, new Long(512, 0)); var tmp_12 = strings_getInstance().nmy_1; PermissionFlags_getInstance(); var tmp_13 = to(tmp_12, new Long(1, 0)); var tmp_14 = strings_getInstance().omy_1; PermissionFlags_getInstance(); var tmp_15 = to(tmp_14, new Long(2, 0)); var tmp_16 = strings_getInstance().pmy_1; PermissionFlags_getInstance(); var tmp_17 = to(tmp_16, new Long(4, 0)); var tmp_18 = strings_getInstance().kmy_1; PermissionFlags_getInstance(); var tmp_19 = to(tmp_18, new Long(2048, 0)); var tmp_20 = strings_getInstance().qmy_1; PermissionFlags_getInstance(); var tmp_21 = to(tmp_20, new Long(8, 0)); var tmp_22 = strings_getInstance().rmy_1; PermissionFlags_getInstance(); var tmp_23 = to(tmp_22, new Long(16, 0)); var tmp_24 = strings_getInstance().smy_1; PermissionFlags_getInstance(); var tmp_25 = to(tmp_24, new Long(32, 0)); var tmp_26 = strings_getInstance().tmy_1; PermissionFlags_getInstance(); var tmp_27 = to(tmp_26, new Long(64, 0)); var tmp_28 = strings_getInstance().xmy_1; PermissionFlags_getInstance(); var tmp_29 = to(tmp_28, new Long(128, 0)); var tmp_30 = strings_getInstance().ymy_1; PermissionFlags_getInstance(); tmp.jzl_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.mhr(accountPersonUid, new Long(-1, 2147483647)); } return tmp; } function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda).uzl = function (entity, hasViewPermission, $completion) { var tmp = this.vzl(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.uzl(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.szl_1; var tmp_0; if (this.tzl_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).vzl = function (entity, hasViewPermission, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda(completion); i.szl_1 = entity; i.tzl_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.uzl(entity, hasViewPermission, $completion); }; l.$arity = 2; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.ezm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1).gzm = function (it, $completion) { var tmp = this.hzm(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.gzm((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.ezm_1.fzn_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (!(this.fzm_1 == null)) { tmp_0 = SystemPermissionConstants_getInstance().jzl_1; } else { tmp_0 = emptyList(); } var nextValue = prevValue.jzn(this.fzm_1, tmp_0); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); if (!(this.fzm_1 == null)) { this.hd_1 = 1; suspendResult = this.ezm_1.hpu().a7d().ufx(this.ezm_1.ezn_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.ezm_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var tmp1_elvis_lhs = title == null ? null : title.toString(); var nextValue_0 = prevValue_0.npc(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).hzm = function (it, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this.ezm_1, completion); i.fzm_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.gzm(it, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.szn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3).kpl = function (hasEditPermission, $completion) { var tmp = this.lpl(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.kpl((!(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.szn_1.bpt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.npc(prevValue.ypb_1.tpc(this.tzn_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).lpl = function (hasEditPermission, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3(this.szn_1, completion); i.tzn_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.kpl(hasEditPermission, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda($entityFlow, $viewPermissionFlow, this$0, resultContinuation) { this.czo_1 = $entityFlow; this.dzo_1 = $viewPermissionFlow; this.ezo_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.czo_1, this.dzo_1, SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_0(null)); suspendResult = collectLatest(tmp_0, SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_2(this.ezo_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.czo_1, this.dzo_1, this.ezo_1, completion); i.fzo_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.ozo_1 = $editPermissionFlow; this.pzo_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.pzo_1, null); suspendResult = this.ozo_1.z1b(new sam$kotlinx_coroutines_flow_FlowCollector$0_38(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.ozo_1, this.pzo_1, completion); i.qzo_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.zzo_1 = $this_launch; this.azp_1 = $entityFlow; this.bzp_1 = $viewPermissionFlow; this.czp_1 = this$0; this.dzp_1 = $editPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda).z77 = function ($completion) { return this.w86($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.zzo_1, VOID, VOID, SystemPermissionDetailViewModel$slambda$slambda$slambda_0(this.azp_1, this.bzp_1, this.czp_1, null)); launch(this.zzo_1, VOID, VOID, SystemPermissionDetailViewModel$slambda$slambda$slambda_2(this.dzp_1, this.czp_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).y77 = function (completion) { return new SystemPermissionDetailViewModel$slambda$slambda(this.zzo_1, this.azp_1, this.bzp_1, this.czp_1, this.dzp_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.w86($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_119(); $this.upu(this_0, 'personUid'); var tmp$ret$2 = this_0.f3(); $this.zps_1.fog('SystemPermissionEdit', tmp$ret$2); } function Companion_190() { this.ezp_1 = 'SystemPermission'; } var Companion_instance_239; function Companion_getInstance_207() { return Companion_instance_239; } function sam$kotlinx_coroutines_flow_FlowCollector$0_38(function_0) { this.fzp_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_38).t1d = function (value, $completion) { return this.fzp_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.ozp_1 = this$0; this.pzp_1 = $entityFlow; this.qzp_1 = $viewPermissionFlow; this.rzp_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.ozp_1.fzn_1, SystemPermissionDetailViewModel$slambda$slambda_0(this.szp_1, this.pzp_1, this.qzp_1, this.ozp_1, this.rzp_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.ozp_1, this.pzp_1, this.qzp_1, this.rzp_1, completion); i.szp_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_119(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.ezn_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.fzn_1 = MutableStateFlow(new SystemPermissionDetailUiState()); this.gzn_1 = asStateFlow(this.fzn_1); var entityFlow = this.hpu().c7f().jhr(this.ezn_1); var viewPermissionFlow = personHasSystemPermissionAsFlowForUser(this.hpu().c7f(), this.dpu(), this.ezn_1); var tmp_0 = this.hpu().c7f(); var tmp_1 = this.dpu(); PermissionFlags_getInstance(); var editPermissionFlow = tmp_0.mhr(tmp_1, new Long(4096, 0)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.detail.SystemPermissionDetailViewModel.' call var tmp0_text = this.npt().ant(strings_getInstance().lm6_1); var tmp1_onClick = SystemPermissionDetailViewModel$onClickEdit$ref(this); var tmp2_icon = FabIcon_EDIT_getInstance(); var nextValue = prevValue.npc(new FabUiState(VOID, tmp0_text, tmp2_icon, tmp1_onClick)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.cpu(); 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.hzn_1 = systemPermission; this.izn_1 = permissionLabels; } protoOf(SystemPermissionDetailUiState).jzn = function (systemPermission, permissionLabels) { return new SystemPermissionDetailUiState(systemPermission, permissionLabels); }; protoOf(SystemPermissionDetailUiState).toString = function () { return 'SystemPermissionDetailUiState(systemPermission=' + this.hzn_1 + ', permissionLabels=' + this.izn_1 + ')'; }; protoOf(SystemPermissionDetailUiState).hashCode = function () { var result = this.hzn_1 == null ? 0 : this.hzn_1.hashCode(); result = imul(result, 31) + hashCode(this.izn_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.hzn_1, tmp0_other_with_cast.hzn_1)) return false; if (!equals(this.izn_1, tmp0_other_with_cast.izn_1)) return false; return true; }; function SystemPermissionEditViewModel$slambda$slambda(this$0, resultContinuation) { this.bzq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda$slambda).dzq = function (db, $completion) { var tmp = this.pn8(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.dzq(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.czq_1.c7f().khr(this.bzq_1.dzr_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).pn8 = function (db, completion) { var i = new SystemPermissionEditViewModel$slambda$slambda(this.bzq_1, completion); i.czq_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.dzq(db, $completion); }; l.$arity = 1; return l; } function SystemPermissionEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda$slambda_1).whu = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$slambda$slambda_1).z77 = function ($completion) { return this.whu($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).y77 = 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.whu($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.bzr_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().jzl_1; } else { tmp = emptyList(); } var nextValue = prevValue.pzr(it, VOID, tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SystemPermissionEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.yr9(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function SystemPermissionEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation) { this.yzr_1 = this$0; this.zzr_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$onClickSave$slambda$slambda).on8 = function (it, $completion) { var tmp = this.pn8(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.on8(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.yzr_1.hpu().c7f().qhr(this.zzr_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).pn8 = function (it, completion) { var i = new SystemPermissionEditViewModel$onClickSave$slambda$slambda(this.yzr_1, this.zzr_1, completion); i.azs_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.on8(it, $completion); }; l.$arity = 1; return l; } function Companion_191() { this.bzs_1 = 'SystemPermissionEdit'; } var Companion_instance_240; function Companion_getInstance_208() { return Companion_instance_240; } function SystemPermissionEditViewModel$slambda(this$0, resultContinuation) { this.kzs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda).krc = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$slambda).he = function (p1, $completion) { return this.krc(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.kzs_1.hpu().c7f(); var tmp_1 = this.kzs_1.dpu(); PermissionFlags_getInstance(); suspendResult = tmp_0.lhr(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).pn8 = function (it, completion) { var i = new SystemPermissionEditViewModel$slambda(this.kzs_1, completion); i.lzs_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.krc(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.bzr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel..' call var nextValue = prevValue.pzr(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SystemPermissionEditViewModel$slambda_1(this$0, resultContinuation) { this.uzs_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().a4r(); var tmp_1 = SystemPermissionEditViewModel$slambda$slambda_0(this.uzs_1, null); var tmp_2 = SystemPermissionEditViewModel$slambda$slambda_2(null); suspendResult = this.uzs_1.rpu(tmp_0, VOID, VOID, tmp_1, tmp_2, SystemPermissionEditViewModel$slambda$lambda(this.uzs_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.uzs_1.bpt_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.uzs_1.npt().ant(strings_getInstance().zmd_1); var nextValue = prevValue.npc(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, SystemPermissionEditViewModel$onClickSave$ref(this.uzs_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 2; suspendResult = this.uzs_1.hpu().a7d().ufx(this.uzs_1.dzr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var title = suspendResult; l$ret$3: do { var this_1 = this.uzs_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var tmp1_elvis_lhs = title == null ? null : title.toString(); var nextValue_0 = prevValue_0.npc(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.uzs_1, completion); i.vzs_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.bzr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel.onClickSave..' call var nextValue = prevValue.pzr(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SystemPermissionEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.ezt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$onClickSave$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda).z77 = function ($completion) { return this.w86($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.ezt_1.bzr_1.t2().mzr_1; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.fzt_1 = tmp_1; this.hd_1 = 1; var tmp_2 = this.ezt_1.hpu(); suspendResult = withDoorTransactionAsync(tmp_2, VOID, SystemPermissionEditViewModel$onClickSave$slambda$slambda_0(this.ezt_1, this.fzt_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Companion_getInstance_108(); this.ezt_1.zps_1.opf('', 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).y77 = function (completion) { return new SystemPermissionEditViewModel$onClickSave$slambda(this.ezt_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.w86($completion); }; l.$arity = 0; return l; } function SystemPermissionEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'SystemPermissionEdit'); this.bzr_1 = MutableStateFlow(new SystemPermissionEditUiState()); this.czr_1 = asStateFlow(this.bzr_1); var tmp = this; Companion_getInstance_119(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.dzr_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.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel.' call var nextValue = prevValue.npc(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.tpu(tmp_0, VOID, tmp_1, SystemPermissionEditViewModel$slambda_2(this, null)); } protoOf(SystemPermissionEditViewModel).cs7 = function (flag) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bzr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel.onTogglePermission.' call var tmp0_safe_receiver = prevValue.mzr_1; var nextValue = prevValue.pzr(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ek9(VOID, VOID, VOID, toggleFlag(prevValue.mzr_1.ihs_1, flag))); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SystemPermissionEditViewModel).yr9 = function () { var tmp = SystemPermissionEditViewModel$onClickSave$lambda(this); this.bq3(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.mzr_1 = entity; this.nzr_1 = fieldsEnabled; this.ozr_1 = permissionLabels; } protoOf(SystemPermissionEditUiState).gzt = function (entity, fieldsEnabled, permissionLabels) { return new SystemPermissionEditUiState(entity, fieldsEnabled, permissionLabels); }; protoOf(SystemPermissionEditUiState).pzr = function (entity, fieldsEnabled, permissionLabels, $super) { entity = entity === VOID ? this.mzr_1 : entity; fieldsEnabled = fieldsEnabled === VOID ? this.nzr_1 : fieldsEnabled; permissionLabels = permissionLabels === VOID ? this.ozr_1 : permissionLabels; return $super === VOID ? this.gzt(entity, fieldsEnabled, permissionLabels) : $super.gzt.call(this, entity, fieldsEnabled, permissionLabels); }; protoOf(SystemPermissionEditUiState).toString = function () { return 'SystemPermissionEditUiState(entity=' + this.mzr_1 + ', fieldsEnabled=' + this.nzr_1 + ', permissionLabels=' + this.ozr_1 + ')'; }; protoOf(SystemPermissionEditUiState).hashCode = function () { var result = this.mzr_1 == null ? 0 : this.mzr_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.nzr_1) | 0; result = imul(result, 31) + hashCode(this.ozr_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.mzr_1, tmp0_other_with_cast.mzr_1)) return false; if (!(this.nzr_1 === tmp0_other_with_cast.nzr_1)) return false; if (!equals(this.ozr_1, tmp0_other_with_cast.ozr_1)) return false; return true; }; function TimeZoneListViewModel$slambda$slambda(this$0, resultContinuation) { this.pzt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$slambda$slambda).rzt = 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.rzt((!(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.pzt_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.pzt_1, completion); i.qzt_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.rzt($this$withContext, $completion); }; l.$arity = 1; return l; } function TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda($searchText, this$0, resultContinuation) { this.azu_1 = $searchText; this.bzu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda).rzt = 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.rzt((!(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.azu_1; var searchWords = Regex_init_$Create$('\\s+').y9(this_0, 0); var this_1 = _get_allTimeZones__4t4mtu(this.bzu_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.dls(), 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.azu_1, this.bzu_1, completion); i.czu_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.rzt($this$withContext, $completion); }; l.$arity = 1; return l; } function _get_allTimeZones__4t4mtu($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.dzv_1; allTimeZones$factory(); return this_0.t2(); } function Companion_192() { this.fzv_1 = 'TimeZoneList'; } var Companion_instance_241; function Companion_getInstance_209() { return Companion_instance_241; } function sam$kotlin_Comparator$0_3(function_0) { this.gzv_1 = function_0; } protoOf(sam$kotlin_Comparator$0_3).pa = function (a, b) { return this.gzv_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.dlp(); // Inline function 'kotlin.collections.sortedBy' call // Inline function 'kotlin.collections.map' call var this_0 = Companion_getInstance_9().dlt(); // 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().als(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).hlt(); // Inline function 'com.ustadmobile.core.viewmodel.timezone.TimeZoneListViewModel.allTimeZones$delegate..' call var tmp$ret$1 = offsetAt(b, $now).hlt(); return compareValues(tmp, tmp$ret$1); }; } function TimeZoneListViewModel$slambda(this$0, resultContinuation) { this.pzv_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.pzv_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.pzv_1.jq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.szv(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.pzv_1, completion); i.qzv_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.bzw_1 = this$0; this.czw_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.czw_1, this.bzw_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.bzw_1.jq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.szv(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.bzw_1, this.czw_1, completion); i.dzw_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.dzv_1 = lazy_0(TimeZoneListViewModel$allTimeZones$delegate$lambda); this.ezv_1 = null; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.timezone.TimeZoneListViewModel.' call var nextValue = prevValue.npc(VOID, VOID, this.npt().ant(strings_getInstance().dme_1), VOID, VOID, VOID, VOID, this.sq5()); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.cpu(); launch(tmp_0, VOID, VOID, TimeZoneListViewModel$slambda_0(this, null)); } protoOf(TimeZoneListViewModel).dq5 = function (searchText) { var tmp0_safe_receiver = this.ezv_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.cpu(); tmp.ezv_1 = launch(tmp_0, VOID, VOID, TimeZoneListViewModel$onUpdateSearchResult$slambda_0(this, searchText, null)); }; protoOf(TimeZoneListViewModel).ezw = function (entry) { this.zq1(entry.dls()); }; protoOf(TimeZoneListViewModel).eq5 = function () { }; function TimezoneListUiState(timeZoneList) { timeZoneList = timeZoneList === VOID ? emptyList() : timeZoneList; this.rzv_1 = timeZoneList; } protoOf(TimezoneListUiState).szv = function (timeZoneList) { return new TimezoneListUiState(timeZoneList); }; protoOf(TimezoneListUiState).toString = function () { return 'TimezoneListUiState(timeZoneList=' + this.rzv_1 + ')'; }; protoOf(TimezoneListUiState).hashCode = function () { return hashCode(this.rzv_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.rzv_1, tmp0_other_with_cast.rzv_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.nzw_1 = this$0; this.ozw_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.qzw_1 = this.nzw_1.z4q(); var tmp_1 = this; tmp_1.rzw_1 = _get_httpClient__2ty1zc_6(this.nzw_1); var tmp_2 = this; tmp_2.szw_1 = ensureNotNull(this.ozw_1.dat_1); var tmp_3 = this; tmp_3.tzw_1 = this.rzw_1; var tmp_4 = this; tmp_4.uzw_1 = this.tzw_1; var tmp_5 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.szw_1); tmp_5.vzw_1 = this_0; this.vzw_1.j38_1 = Companion_getInstance().y2w_1; var tmp_6 = this; tmp_6.wzw_1 = this.uzw_1; var tmp_7 = this; tmp_7.xzw_1 = this.vzw_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.xzw_1, this.wzw_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.yzw_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsDecodedText(this.yzw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.zzw_1 = suspendResult; var tmp_8 = this; var this_1 = this.qzw_1.g45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_8.azx_1 = this.qzw_1.f45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.zzw_1); this.bzx_1 = requireBodyUrlForUri(this.azx_1, ensureNotNull(this.ozw_1.bat_1)); var tmp_9 = this; tmp_9.czx_1 = this.nzw_1.z4q(); var tmp_10 = this; tmp_10.dzx_1 = _get_httpClient__2ty1zc_6(this.nzw_1); var tmp_11 = this; tmp_11.ezx_1 = this.bzx_1; var tmp_12 = this; tmp_12.fzx_1 = this.dzx_1; var tmp_13 = this; tmp_13.gzx_1 = this.fzx_1; var tmp_14 = this; var this_3 = new HttpRequestBuilder(); url(this_3, this.ezx_1); tmp_14.hzx_1 = this_3; this.hzx_1.j38_1 = Companion_getInstance().y2w_1; var tmp_15 = this; tmp_15.izx_1 = this.gzx_1; var tmp_16 = this; tmp_16.jzx_1 = this.hzx_1; this.hd_1 = 3; suspendResult = (new HttpStatement(this.jzx_1, this.izx_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.kzx_1 = suspendResult; this.hd_1 = 4; suspendResult = bodyAsDecodedText(this.kzx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var string = suspendResult; var this_4 = this.czx_1.g45(); var this_5 = serializer(this_4, createKType(getKClass(MediaContentInfo), arrayOf([]), false)); var mediaInfo = this.czx_1.f45(isInterface(this_5, KSerializer) ? this_5 : THROW_CCE(), string); l$ret$1: do { var this_6 = this.nzw_1.mzy_1; while (true) { var prevValue = this_6.t2(); var tmp0_contentEntryVersionUid = this.nzw_1.lzy_1; var tmp1_learningSpace = this.nzw_1.bpu().nnk(); var tmp2_manifestUrl = ensureNotNull(this.ozw_1.dat_1); var tmp3_contentManifestMap = new ContentManifestMap(this.azx_1); var nextValue = prevValue.xzy(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.nzw_1, this.ozw_1, completion); i.pzw_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.gzz_1 = this$0; this.hzz_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.gzz_1.hpu().i7d().gaq(this.hzz_1.aat_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var contentEntry = suspendResult; l$ret$1: do { var this_0 = this.gzz_1.mzy_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xzy(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.gzz_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var tmp1_elvis_lhs = contentEntry == null ? null : contentEntry.car_1; var nextValue_0 = prevValue_0.npc(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.gzz_1, this.hzz_1, completion); i.izz_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.jzz_1 = timestamp; this.kzz_1 = timeInMillis; this.lzz_1 = totalDuration; this.mzz_1 = resumed; } protoOf(MediaPlayState).nzz = function () { var tmp; if (this.lzz_1.c7(new Long(0, 0)) > 0) { // Inline function 'kotlin.Long.times' call tmp = this.kzz_1.cb(toLong(100)).bb(this.lzz_1).mb(); } else { tmp = 0; } return tmp; }; protoOf(MediaPlayState).toString = function () { return 'MediaPlayState(timestamp=' + this.jzz_1.toString() + ', timeInMillis=' + this.kzz_1.toString() + ', totalDuration=' + this.lzz_1.toString() + ', resumed=' + this.mzz_1 + ')'; }; protoOf(MediaPlayState).hashCode = function () { var result = this.jzz_1.hashCode(); result = imul(result, 31) + this.kzz_1.hashCode() | 0; result = imul(result, 31) + this.lzz_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.mzz_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.jzz_1.equals(tmp0_other_with_cast.jzz_1)) return false; if (!this.kzz_1.equals(tmp0_other_with_cast.kzz_1)) return false; if (!this.lzz_1.equals(tmp0_other_with_cast.lzz_1)) return false; if (!(this.mzz_1 === tmp0_other_with_cast.mzz_1)) return false; return true; }; function _get_httpClient__2ty1zc_6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ozy_1; httpClient$factory_14(); return this_0.t2(); } function Companion_193() { this.ozz_1 = 'Video'; } var Companion_instance_242; function Companion_getInstance_210() { return Companion_instance_242; } function VideoContentViewModel$slambda(this$0, resultContinuation) { this.xzz_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.xzz_1.hpu().v7e().ybk(this.xzz_1.lzy_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.yzz_1, VOID, VOID, VideoContentViewModel$slambda$slambda_0(this.xzz_1, contentEntryVersion, null)); launch(this.yzz_1, VOID, VOID, VideoContentViewModel$slambda$slambda_2(this.xzz_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.xzz_1, completion); i.yzz_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.kzy_1 = MutableStateFlow(new MediaPlayState()); var tmp = this; Companion_getInstance_108(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.lzy_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.mzy_1 = MutableStateFlow(new VideoContentUiState()); this.nzy_1 = asStateFlow(this.mzy_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.ozy_1 = Instance(this, tmp$ret$0, null).n5c(this, httpClient$factory_13()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bpt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.videocontent.VideoContentViewModel.' call var nextValue = prevValue.npc(VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.cpu(); launch(tmp_2, VOID, VOID, VideoContentViewModel$slambda_0(this, null)); } protoOf(VideoContentViewModel).ix1 = function () { var tmp0_safe_receiver = this.mzy_1.t2().vzy_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.car_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).zzz = function (playState) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.getAndUpdate' call var this_0 = this.kzy_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.mzz_1 === playState.mzz_1)) { this.tp8(playState.mzz_1); } this.gp9(playState.nzz()); }; 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.pzy_1 = mediaContentInfo; this.qzy_1 = contentEntryVersionUid; this.rzy_1 = learningSpace; this.szy_1 = mediaSrc; this.tzy_1 = manifestUrl; this.uzy_1 = contentManifestMap; this.vzy_1 = contentEntry; this.wzy_1 = isFullScreen; } protoOf(VideoContentUiState).a100 = function (mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen) { return new VideoContentUiState(mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen); }; protoOf(VideoContentUiState).xzy = function (mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen, $super) { mediaContentInfo = mediaContentInfo === VOID ? this.pzy_1 : mediaContentInfo; contentEntryVersionUid = contentEntryVersionUid === VOID ? this.qzy_1 : contentEntryVersionUid; learningSpace = learningSpace === VOID ? this.rzy_1 : learningSpace; mediaSrc = mediaSrc === VOID ? this.szy_1 : mediaSrc; manifestUrl = manifestUrl === VOID ? this.tzy_1 : manifestUrl; contentManifestMap = contentManifestMap === VOID ? this.uzy_1 : contentManifestMap; contentEntry = contentEntry === VOID ? this.vzy_1 : contentEntry; isFullScreen = isFullScreen === VOID ? this.wzy_1 : isFullScreen; return $super === VOID ? this.a100(mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen) : $super.a100.call(this, mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen); }; protoOf(VideoContentUiState).toString = function () { return 'VideoContentUiState(mediaContentInfo=' + this.pzy_1 + ', contentEntryVersionUid=' + this.qzy_1.toString() + ', learningSpace=' + this.rzy_1 + ', mediaSrc=' + this.szy_1 + ', manifestUrl=' + this.tzy_1 + ', contentManifestMap=' + this.uzy_1 + ', contentEntry=' + this.vzy_1 + ', isFullScreen=' + this.wzy_1 + ')'; }; protoOf(VideoContentUiState).hashCode = function () { var result = this.pzy_1 == null ? 0 : hashCode(this.pzy_1); result = imul(result, 31) + this.qzy_1.hashCode() | 0; result = imul(result, 31) + (this.rzy_1 == null ? 0 : this.rzy_1.hashCode()) | 0; result = imul(result, 31) + (this.szy_1 == null ? 0 : getStringHashCode(this.szy_1)) | 0; result = imul(result, 31) + (this.tzy_1 == null ? 0 : getStringHashCode(this.tzy_1)) | 0; result = imul(result, 31) + (this.uzy_1 == null ? 0 : this.uzy_1.hashCode()) | 0; result = imul(result, 31) + (this.vzy_1 == null ? 0 : this.vzy_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.wzy_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.pzy_1, tmp0_other_with_cast.pzy_1)) return false; if (!this.qzy_1.equals(tmp0_other_with_cast.qzy_1)) return false; if (!equals(this.rzy_1, tmp0_other_with_cast.rzy_1)) return false; if (!(this.szy_1 == tmp0_other_with_cast.szy_1)) return false; if (!(this.tzy_1 == tmp0_other_with_cast.tzy_1)) return false; if (!equals(this.uzy_1, tmp0_other_with_cast.uzy_1)) return false; if (!equals(this.vzy_1, tmp0_other_with_cast.vzy_1)) return false; if (!(this.wzy_1 === tmp0_other_with_cast.wzy_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.w100_1; resolveXapiLaunchHrefUseCase$factory_0(); return this_0.t2(); } function Companion_194() { this.a101_1 = 'XapiContent'; } var Companion_instance_243; function Companion_getInstance_211() { return Companion_instance_243; } function XapiContentViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.j101_1 = this$0; this.k101_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.j101_1); Companion_getInstance_119(); var tmp0_safe_receiver = this.k101_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_119(); var tmp2_safe_receiver = this.k101_1.ba('courseBlockUid'); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toLong_0(tmp2_safe_receiver); suspendResult = tmp_0.ooj(this.j101_1.x100_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.j101_1.y100_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.o101(launchHrefResult.iog_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.j101_1.bpt_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.npc(VOID, VOID, launchHrefResult.kog_1.doj_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().d5e('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.j101_1, this.k101_1, completion); i.l101_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.w100_1 = Instance(this_0, tmp$ret$0, null).n5c(this, resolveXapiLaunchHrefUseCase$factory()); var tmp_1 = this; Companion_getInstance_108(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_1.x100_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.y100_1 = MutableStateFlow(new XapiContentUiState(VOID, this.x100_1)); this.z100_1 = asStateFlow(this.y100_1); var tmp_2 = this.cpu(); 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.m101_1 = url; this.n101_1 = contentEntryVersionUid; } protoOf(XapiContentUiState).p101 = function (url, contentEntryVersionUid) { return new XapiContentUiState(url, contentEntryVersionUid); }; protoOf(XapiContentUiState).o101 = function (url, contentEntryVersionUid, $super) { url = url === VOID ? this.m101_1 : url; contentEntryVersionUid = contentEntryVersionUid === VOID ? this.n101_1 : contentEntryVersionUid; return $super === VOID ? this.p101(url, contentEntryVersionUid) : $super.p101.call(this, url, contentEntryVersionUid); }; protoOf(XapiContentUiState).toString = function () { return 'XapiContentUiState(url=' + this.m101_1 + ', contentEntryVersionUid=' + this.n101_1.toString() + ')'; }; protoOf(XapiContentUiState).hashCode = function () { var result = this.m101_1 == null ? 0 : getStringHashCode(this.m101_1); result = imul(result, 31) + this.n101_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.m101_1 == tmp0_other_with_cast.m101_1)) return false; if (!this.n101_1.equals(tmp0_other_with_cast.n101_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$73(_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$75(_this__u8e3s4, password, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $encryptPbkdf2COROUTINE$73(_this__u8e3s4, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.y101_1 = _this__u8e3s4; this.z101_1 = password; } protoOf($encryptPbkdf2COROUTINE$73).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.y101_1.rn2_1).s57(); var tmp_2 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); tmp_0.a102_1 = tmp_1.q57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), null); var tmp_3 = this; tmp_3.b102_1 = this.a102_1; var tmp_4 = this; tmp_4.c102_1 = this.y101_1.qn2_1.in3_1 + 'api/pbkdf2/encryptPbkdf2'; var tmp_5 = this; tmp_5.d102_1 = this.b102_1; var tmp_6 = this; tmp_6.e102_1 = this.d102_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.c102_1); parameter(this_0, 'secret', this.z101_1); tmp_7.f102_1 = this_0; this.f102_1.j38_1 = Companion_getInstance().y2w_1; var tmp_8 = this; tmp_8.g102_1 = this.e102_1; var tmp_9 = this; tmp_9.h102_1 = this.f102_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.h102_1, this.g102_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.i102_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.i102_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$75(_this__u8e3s4, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.r102_1 = _this__u8e3s4; this.s102_1 = password; } protoOf($doublePbkdf2HashAsBase64COROUTINE$75).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.r102_1.rn2_1).s57(); var tmp_2 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); tmp_0.t102_1 = tmp_1.q57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), null); var tmp_3 = this; tmp_3.u102_1 = this.t102_1; var tmp_4 = this; tmp_4.v102_1 = this.r102_1.qn2_1.in3_1 + 'api/pbkdf2/doubleEncryptPbkdf2'; var tmp_5 = this; tmp_5.w102_1 = this.u102_1; var tmp_6 = this; tmp_6.x102_1 = this.w102_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.v102_1); parameter(this_0, 'secret', this.s102_1); tmp_7.y102_1 = this_0; this.y102_1.j38_1 = Companion_getInstance().y2w_1; var tmp_8 = this; tmp_8.z102_1 = this.x102_1; var tmp_9 = this; tmp_9.a103_1 = this.y102_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.a103_1, this.z102_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.b103_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.b103_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_108(); if (_this__u8e3s4 === '') { tmp = get_ustadViewName(this$0.d103_1); } else { tmp = _this__u8e3s4; } return tmp; } function NavHostFunction(navigateFn, location, onHideChildren) { this.c103_1 = navigateFn; this.d103_1 = location; this.e103_1 = onHideChildren; } protoOf(NavHostFunction).f103 = function (cmd) { if (cmd instanceof NavigateNavCommand) { var tmp1_safe_receiver = cmd.tpf_1.epa_1; var popUpToView = tmp1_safe_receiver == null ? null : invoke$effectivePopUpTo(tmp1_safe_receiver, this); if ((popUpToView == null ? true : popUpToView === get_ustadViewName(this.d103_1)) ? !cmd.tpf_1.gpa_1 ? true : this.d103_1.key === get_firstLocationKey() : false) { Napier_getInstance().v5d('NavHostFunction: go to /' + cmd.rpf_1 + '?' + toUrlQueryString(cmd.spf_1)); var replaceNav = (popUpToView === get_ustadViewName(this.d103_1) ? cmd.tpf_1.fpa_1 : false) ? true : cmd.tpf_1.gpa_1; var tmp = '/' + cmd.rpf_1 + '?' + toUrlQueryString(cmd.spf_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.d103_1); this.c103_1(tmp, this_0); } else { Napier_getInstance().v5d('NavHostFunction: pop, then go /' + cmd.rpf_1 + '?' + toUrlQueryString(cmd.spf_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.tpf_1.gpa_1.toString(); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpToInc'] = cmd.tpf_1.fpa_1.toString(); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerGoToAfterPop'] = '/' + cmd.rpf_1 + '?' + toUrlQueryString(cmd.spf_1); this.e103_1(); this.c103_1(-1); } } else { if (cmd instanceof PopNavCommand) { var popUpTo = invoke$effectivePopUpTo(cmd.vpf_1, this); if (popUpTo === get_ustadViewName(this.d103_1) ? cmd.wpf_1 : false) { Napier_getInstance().v5d('NavHostFunction: pop to current viewname ' + popUpTo + ' (inclusive) ' + 'e.g. go back one'); this.c103_1(-1); } else if (!(popUpTo === get_ustadViewName(this.d103_1))) { Napier_getInstance().v5d('NavHostFunction: pop to ' + popUpTo + ' inclusive = ' + cmd.wpf_1); sessionStorage.removeItem('navHostHitPopupto'); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpTo'] = cmd.vpf_1; // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpToInc'] = cmd.wpf_1.toString(); this.e103_1(); this.c103_1(-1); } else { Napier_getInstance().v5d('NavHostFunction: pop up to current viewname, inclusive = false?? Nothing to do.'); } } else { Napier_getInstance().v5d('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().p5d('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().p5d('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().p5d('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().p5d('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().p5d('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().p5d('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().p5d('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().p5d('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.o103_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().p5d('NavHost: action: clearStackTimeout: apparently at the end of history. go to clearstack'); sessionStorage['navControllerClearStack'] = 'true'; this.o103_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.o103_1, completion); i.p103_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$76(_this__u8e3s4, activeUserPersonUid, personUid, username, newPassword, currentPassword, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.y103_1 = _this__u8e3s4; this.z103_1 = activeUserPersonUid; this.a104_1 = personUid; this.b104_1 = username; this.c104_1 = newPassword; this.d104_1 = currentPassword; } protoOf($invokeCOROUTINE$76).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.y103_1.n104_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.e104_1 = tmp_2; this.id_1 = 2; var tmp_3 = this; tmp_3.f104_1 = this.y103_1.o104_1; var tmp_4 = this; tmp_4.g104_1 = this.y103_1.m104_1.in3_1 + 'api/account/setpassword'; var tmp_5 = this; tmp_5.h104_1 = this.f104_1; var tmp_6 = this; tmp_6.i104_1 = this.h104_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.g104_1); doorNodeIdHeader(this_0, this.e104_1); parameter(this_0, 'nodeActiveUserUid', this.z103_1); parameter(this_0, 'personUid', this.a104_1.toString()); parameter(this_0, 'username', this.b104_1); parameter(this_0, 'newPassword', this.c104_1); var tmp0_safe_receiver = this.d104_1; if (tmp0_safe_receiver == null) null; else { parameter(this_0, 'currentPassword', tmp0_safe_receiver); } set_expectSuccess(this_0, false); tmp_7.j104_1 = this_0; this.j104_1.j38_1 = Companion_getInstance().z2w_1; var tmp_8 = this; tmp_8.k104_1 = this.i104_1; var tmp_9 = this; tmp_9.l104_1 = this.j104_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.l104_1, this.k104_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var result = suspendResult; if (result.w3a().equals(Companion_getInstance_0().k2y_1)) { throw new UnauthorizedException(); } else if (!isSuccess(result.w3a())) { throw IllegalStateException_init_$Create$('Bad response to set password request: ' + result.w3a()); } 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.f5e(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.m104_1 = learningSpace; this.n104_1 = repo; this.o104_1 = httpClient; } protoOf(SetPasswordUseCaseJs).znr = function (activeUserPersonUid, personUid, username, newPassword, currentPassword, $completion) { var tmp = new $invokeCOROUTINE$76(this, activeUserPersonUid, personUid, username, newPassword, currentPassword, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function OpenBlobUseCaseJs() { } protoOf(OpenBlobUseCaseJs).fnz = function (item, onProgress, intent, $completion) { var element = document.createElement('a'); element.setAttribute('href', item.nny_1); element.setAttribute('download', item.pny_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.x104_1 = $transferJobItemStatusUpdater; this.y104_1 = this$0; this.z104_1 = $uriToSaveQueueItems; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda).on8 = function (it, $completion) { var tmp = this.pn8(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.on8(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.x104_1.lo6(VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_0 = this.y104_1.e105_1.x7e(); var tmp0_safe_receiver = firstOrNull(this.z104_1); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h105_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.sc6_1; suspendResult = tmp_0.qi5(tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs, TransferJobItemStatus_FAILED_getInstance().qjn_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).pn8 = function (it, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda(this.x104_1, this.y104_1, this.z104_1, completion); i.a105_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.on8(it, $completion); }; l.$arity = 1; return l; } function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$lambda($transferJobItemStatusUpdater, $uploadItem) { return function (it) { $transferJobItemStatusUpdater.io6(new BlobTransferProgressUpdate($uploadItem, it.sov_1)); return Unit_instance; }; } function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda(this$0, $transferJobItemStatusUpdater, $uriToSaveQueueItems, resultContinuation) { this.q105_1 = this$0; this.r105_1 = $transferJobItemStatusUpdater; this.s105_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.q105_1.e105_1, VOID, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda_0(this.r105_1, this.q105_1, this.s105_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.q105_1, this.r105_1, this.s105_1, completion); i.t105_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.g105_1 = uriToSaveItem; this.h105_1 = transferJobItem; } protoOf(UriToSaveQueueItem).toString = function () { return 'UriToSaveQueueItem(uriToSaveItem=' + this.g105_1 + ', transferJobItem=' + this.h105_1 + ')'; }; protoOf(UriToSaveQueueItem).hashCode = function () { var result = this.g105_1.hashCode(); result = imul(result, 31) + this.h105_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.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 SaveLocalUrisAsBlobUseCaseJs$invoke$slambda(this$0, $localUrisToSave, $onTransferJobItemCreated, resultContinuation) { this.c106_1 = this$0; this.d106_1 = $localUrisToSave; this.e106_1 = $onTransferJobItemCreated; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda).x106 = function (it, $completion) { var tmp = this.pn8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda).he = function (p1, $completion) { return this.x106(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.c106_1.e105_1.w7e().ci3(new TransferJob(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.g106_1 = suspendResult; this.h106_1 = this.g106_1.mb(); var tmp_0 = this; tmp_0.i106_1 = this.d106_1; var tmp_1 = this; tmp_1.j106_1 = this.i106_1; var tmp_2 = this; tmp_2.k106_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.i106_1, 10)); this.l106_1 = this.j106_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.l106_1.f()) { this.hd_1 = 7; continue $sm; } this.m106_1 = this.l106_1.e(); var tmp_3 = this; tmp_3.n106_1 = this.m106_1; var tmp_4 = this; tmp_4.o106_1 = fetch(this.n106_1.fo1_1); this.hd_1 = 3; var this_0 = this.o106_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.p106_1 = suspendResult; this.q106_1 = this.p106_1.blob(); this.hd_1 = 4; var this_1 = this.q106_1; suspendResult = await_0(this_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.r106_1 = suspendResult; this.s106_1 = this.r106_1.size; this.t106_1 = numberToLong(this.s106_1); var tmp_5 = this; var tmp0_tjiSrc = this.n106_1.fo1_1; var tmp1_tjiTableId = this.n106_1.ho1_1; var tmp2_tjiEntityUid = this.n106_1.go1_1; tmp_5.u106_1 = new TransferJobItem(VOID, this.h106_1, this.t106_1, VOID, VOID, tmp0_tjiSrc, VOID, VOID, VOID, tmp1_tjiTableId, tmp2_tjiEntityUid); this.hd_1 = 5; suspendResult = this.c106_1.e105_1.x7e().mi5(this.u106_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.v106_1 = suspendResult; this.w106_1 = this.v106_1.mb(); this.e106_1(this.n106_1, this.u106_1.rk9(this.w106_1)); this.hd_1 = 6; suspendResult = this.c106_1.f105_1.ao7(this.c106_1.e105_1, this.n106_1.ho1_1, this.n106_1.go1_1, this.w106_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: var ARGUMENT = new UriToSaveQueueItem(this.n106_1, this.u106_1.rk9(this.w106_1)); this.k106_1.i1(ARGUMENT); this.hd_1 = 2; continue $sm; case 7: return this.k106_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).pn8 = function (it, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda(this.c106_1, this.d106_1, this.e106_1, completion); i.f106_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.x106(it, $completion); }; l.$arity = 1; return l; } function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1(this$0, $uriToSaveQueueItems, resultContinuation) { this.g107_1 = this$0; this.h107_1 = $uriToSaveQueueItems; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1).d108 = 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.d108((!(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.j107_1 = new TransferJobItemStatusUpdater(this.g107_1.e105_1, null, this.i107_1); this.id_1 = 5; var tmp_0 = this; tmp_0.l107_1 = this.h107_1; var tmp_1 = this; tmp_1.m107_1 = this.l107_1; var tmp_2 = this; tmp_2.n107_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.l107_1, 10)); this.o107_1 = this.m107_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.o107_1.f()) { this.hd_1 = 3; continue $sm; } this.p107_1 = this.o107_1.e(); var tmp_3 = this; tmp_3.q107_1 = this.p107_1; this.r107_1 = new BlobTransferJobItem('', this.q107_1.h105_1.rc6_1); this.j107_1.jo6(new BlobTransferStatusUpdate(this.r107_1, TransferJobItemStatus_IN_PROGRESS_getInstance().qjn_1)); this.s107_1 = this.g107_1.b105_1; this.t107_1 = randomUuidAsString(); this.u107_1 = Companion_getInstance_3().b2r(this.q107_1.g105_1.fo1_1); this.v107_1 = this.g107_1.c105_1.in3_1 + 'api/blob/upload-item'; var tmp_4 = this; var this_0 = LinkedHashMap_init_$Create$(); var tmp0_safe_receiver = this.q107_1.g105_1.io1_1; if (tmp0_safe_receiver == null) null; else { this_0.s('X-Blob-Response-' + 'Content-Type', listOf_0(tmp0_safe_receiver)); } tmp_4.w107_1 = asIStringValues(this_0.f3()); this.hd_1 = 2; suspendResult = this.s107_1.yov(this.t107_1, this.u107_1, this.v107_1, VOID, VOID, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$lambda(this.j107_1, this.r107_1), VOID, this.w107_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.x107_1 = suspendResult; var tmp_5 = this; var tmp5_elvis_lhs = this.x107_1.uov_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.y107_1 = tmp_6; this.j107_1.jo6(new BlobTransferStatusUpdate(this.r107_1, TransferJobItemStatus_COMPLETE_getInstance().qjn_1)); this.z107_1 = this.g107_1.d105_1.f45(Companion_instance_82.a4r(), this.y107_1); Napier_getInstance().v5d('SaveLocalUrisAsBlobUseCaseJs: upload complete: ' + (this.q107_1.g105_1.fo1_1 + ' stored as ' + this.z107_1.fo0_1)); this.a108_1 = this.z107_1.no1(this.q107_1.g105_1.go1_1, this.q107_1.g105_1.ho1_1, this.q107_1.g105_1.fo1_1); this.n107_1.i1(this.a108_1); this.hd_1 = 1; continue $sm; case 3: this.b108_1 = this.n107_1; this.hd_1 = 4; suspendResult = this.j107_1.lo6(VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.k107_1 = this.b108_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.c108_1 = this.kd_1; Napier_getInstance().d5e('SaveLocalUriAsBlobUseCaseJs: exception uploading', this.c108_1); this.hd_1 = 6; var tmp_8 = NonCancellable_getInstance(); suspendResult = withContext(tmp_8, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda_0(this.g107_1, this.j107_1, this.h107_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.c108_1; case 7: this.id_1 = 8; return this.k107_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.g107_1, this.h107_1, completion); i.i107_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.d108($this$coroutineScope, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$77(_this__u8e3s4, localUrisToSave, onTransferJobItemCreated, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.m108_1 = _this__u8e3s4; this.n108_1 = localUrisToSave; this.o108_1 = onTransferJobItemCreated; } protoOf($invokeCOROUTINE$77).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.m108_1.e105_1, VOID, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_0(this.m108_1, this.n108_1, this.o108_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.p108_1 = suspendResult; this.hd_1 = 2; suspendResult = coroutineScope(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_2(this.m108_1, this.p108_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.b105_1 = chunkedUploadClientLocalUriUseCase; this.c105_1 = learningSpace; this.d105_1 = json; this.e105_1 = db; this.f105_1 = updateTransferJobItemEtagUseCase; } protoOf(SaveLocalUrisAsBlobUseCaseJs).oo1 = function (localUrisToSave, onTransferJobItemCreated, $completion) { var tmp = new $invokeCOROUTINE$77(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.y108_1 = this$0; this.z108_1 = $entityUid; this.a109_1 = $tableId; this.b109_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.y108_1.d109_1.po1(this.z108_1, this.a109_1, this.b109_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.y108_1, this.z108_1, this.a109_1, this.b109_1, completion); i.c109_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.d109_1 = savePictureUseCase; this.e109_1 = CoroutineScope_0(Dispatchers_getInstance().p12_1.lj(Job())); } protoOf(EnqueueSavePictureUseCaseJs).po1 = function (entityUid, tableId, pictureUri, $completion) { launch(this.e109_1, VOID, VOID, EnqueueSavePictureUseCaseJs$invoke$slambda_0(this, entityUid, tableId, pictureUri, null)); return Unit_instance; }; function SetClipboardStringUseCaseJs() { } protoOf(SetClipboardStringUseCaseJs).kob = 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().v5d('CompressImageUseCaseJs: compressing ' + $fromUri + ' : success'); $completeable.gy(it); return Unit_instance; }; } function CompressImageUseCaseJs$invoke$lambda_0($fromUri, $completeable) { return function (it) { Napier_getInstance().d5e('CompressImageUseCaseJs: compressing ' + $fromUri + ' : error', it); $completeable.iy(it); return Unit_instance; }; } function $invokeCOROUTINE$78(_this__u8e3s4, fromUri, toUri, params, onProgress, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.n109_1 = _this__u8e3s4; this.o109_1 = fromUri; this.p109_1 = toUri; this.q109_1 = params; this.r109_1 = onProgress; } protoOf($invokeCOROUTINE$78).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; this.s109_1 = CompletableDeferred(); Napier_getInstance().v5d('CompressImageUseCaseJs: compressing ' + this.o109_1); this.id_1 = 4; var tmp_0 = this; tmp_0.t109_1 = fetch(this.o109_1); this.hd_1 = 1; var this_0 = this.t109_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.u109_1 = suspendResult; this.v109_1 = this.u109_1.blob(); this.hd_1 = 2; var this_1 = this.v109_1; suspendResult = await_0(this_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.w109_1 = suspendResult; var this_2 = {}; this_2.maxWidth = this.q109_1.nob_1; this_2.maxHeight = this.q109_1.oob_1; this_2.convertSize = 50000; this_2.convertTypes = ['image/png']; this_2.success = CompressImageUseCaseJs$invoke$lambda(this.o109_1, this.s109_1); this_2.error = CompressImageUseCaseJs$invoke$lambda_0(this.o109_1, this.s109_1); new com_ustadmobile_core_wrappers_compressorjs_default_j4zdfk(this.w109_1, this_2); this.hd_1 = 3; suspendResult = this.s109_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.w109_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().d5e('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).x109 = function (fromUri, toUri, params, onProgress, $completion) { var tmp = new $invokeCOROUTINE$78(this, fromUri, toUri, params, onProgress, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CompressImageUseCaseJs).qob = function (fromUri, toUri, params, onProgress, $completion) { return this.x109(fromUri, toUri, params, onProgress, $completion); }; function Companion_195() { this.y109_1 = 3; } var Companion_instance_244; function Companion_getInstance_212() { return Companion_instance_244; } function ContentEntryGetMetaDataFromUriUseCaseJs$invoke$lambda($onProgress) { return function (it) { $onProgress(new ContentEntryGetMetadataStatus(false, VOID, it.sov_1, it.tov_1)); return Unit_instance; }; } function $invokeCOROUTINE$79(_this__u8e3s4, contentUri, fileName, learningSpace, onProgress, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.h10a_1 = _this__u8e3s4; this.i10a_1 = contentUri; this.j10a_1 = fileName; this.k10a_1 = learningSpace; this.l10a_1 = onProgress; } protoOf($invokeCOROUTINE$79).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 9; this.m10a_1 = randomUuid().toString(); this.hd_1 = 1; continue $sm; case 1: this.hd_1 = 2; continue $sm; case 2: this.id_1 = 8; this.o10a_1 = until(0, 3).w(); this.hd_1 = 3; continue $sm; case 3: if (!this.o10a_1.f()) { this.hd_1 = 6; continue $sm; } this.p10a_1 = this.o10a_1.e(); this.q10a_1 = this.h10a_1.u10a_1; this.r10a_1 = this.k10a_1.in3_1 + 'api/contentupload/upload'; var tmp_0 = this; var this_0 = LinkedHashMap_init_$Create$(); if (!(this.j10a_1 == null)) { this_0.s('upload-original-filename', listOf_0(encodeURIComponent(this.j10a_1))); } tmp_0.s10a_1 = asIStringValues(this_0.f3()); this.hd_1 = 4; var tmp_1 = new Long(0, 0); suspendResult = this.q10a_1.yov(this.m10a_1, this.i10a_1, this.r10a_1, tmp_1, VOID, ContentEntryGetMetaDataFromUriUseCaseJs$invoke$lambda(this.l10a_1), VOID, this.s10a_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var finalResponse = suspendResult; var tmp4_subject = finalResponse.vov_1; if (tmp4_subject === 400) { var tmp5_elvis_lhs = finalResponse.uov_1; throw new InvalidContentException(tmp5_elvis_lhs == null ? '' : tmp5_elvis_lhs); } else if (tmp4_subject === 406) { var tmp6_elvis_lhs = finalResponse.uov_1; throw new UnsupportedContentException(tmp6_elvis_lhs == null ? '' : tmp6_elvis_lhs); } var tmp_2 = this; var tmp7_safe_receiver = finalResponse.uov_1; var tmp_3; if (tmp7_safe_receiver == null) { tmp_3 = null; } else { tmp_3 = this.h10a_1.t10a_1.f45(Companion_instance_81.a4r(), 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.n10a_1 = tmp_4; this.id_1 = 9; this.hd_1 = 5; continue $sm; case 5: var tmp_5 = this.n10a_1; this.id_1 = 9; URL.revokeObjectURL(this.i10a_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.i10a_1.toString()); return Unit_instance; case 8: this.id_1 = 9; var t = this.kd_1; URL.revokeObjectURL(this.i10a_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.t10a_1 = json; this.u10a_1 = chunkedUploadClientLocalUriUseCase; } protoOf(ContentEntryGetMetaDataFromUriUseCaseJs).zoc = function (contentUri, fileName, learningSpace, onProgress, $completion) { var tmp = new $invokeCOROUTINE$79(this, contentUri, fileName, learningSpace, onProgress, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function $invokeCOROUTINE$80(_this__u8e3s4, subtitleTrackUri, filename, locale, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.d10b_1 = _this__u8e3s4; this.e10b_1 = subtitleTrackUri; this.f10b_1 = filename; this.g10b_1 = locale; } protoOf($invokeCOROUTINE$80).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.e10b_1.d72_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.i10b_1 = suspendResult; this.j10b_1 = this.i10b_1.blob(); this.hd_1 = 2; var this_0 = this.j10b_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.k10b_1 = suspendResult; this.l10b_1 = this.k10b_1.text(); this.hd_1 = 3; var this_1 = this.l10b_1; suspendResult = await_0(this_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.h10b_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.m10b_1 = this.kd_1; var tmp_1 = this; Napier_getInstance().d5e('GetSubtitleTrackFromUriUseCaseJs: exception fetching local uri ' + this.e10b_1, this.m10b_1); throw IllegalStateException_init_$Create$_1('Failed to fetch blob for local uri ' + this.e10b_1, this.m10b_1); } else { throw this.kd_1; } case 5: this.id_1 = 8; this.n10b_1 = this.h10b_1; var tmp_2 = this; tmp_2.o10b_1 = this.d10b_1.x10b_1; var tmp_3 = this; tmp_3.p10b_1 = this.d10b_1.w10b_1.in3_1 + 'api/contentupload/getsubtitletrack'; var tmp_4 = this; tmp_4.q10b_1 = this.o10b_1; var tmp_5 = this; tmp_5.r10b_1 = this.q10b_1; var tmp_6 = this; var this_2 = new HttpRequestBuilder(); url(this_2, this.p10b_1); parameter(this_2, 'filename', this.f10b_1); var tmp0_elvis_lhs = this.g10b_1; parameter(this_2, 'locale', tmp0_elvis_lhs == null ? this.d10b_1.z10b_1.you_1 : tmp0_elvis_lhs); var body = new TextContent(this.n10b_1, Companion_getInstance_15().b2r('text/vtt; charset=utf-8')); if (body == null) { this_2.l38_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.i3e(typeInfoImpl(tmp_7, tmp_8, tmp_9)); } else { if (body instanceof OutgoingContent) { this_2.l38_1 = body; this_2.i3e(null); } else { this_2.l38_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.i3e(typeInfoImpl(tmp_11, tmp_12, tmp_13)); } } tmp_6.s10b_1 = this_2; this.s10b_1.j38_1 = Companion_getInstance().z2w_1; var tmp_15 = this; tmp_15.t10b_1 = this.r10b_1; var tmp_16 = this; tmp_16.u10b_1 = this.s10b_1; this.hd_1 = 6; suspendResult = (new HttpStatement(this.u10b_1, this.t10b_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.v10b_1 = suspendResult; this.hd_1 = 7; suspendResult = bodyAsText(this.v10b_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: var subtitleJsonStr = suspendResult; return this.d10b_1.y10b_1.f45(Companion_instance_80.a4r(), 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.w10b_1 = endpoint; this.x10b_1 = httpClient; this.y10b_1 = json; this.z10b_1 = supportedLanguagesConfig; } protoOf(GetSubtitleTrackFromUriUseCaseJs).lod = function (subtitleTrackUri, filename, locale, $completion) { var tmp = new $invokeCOROUTINE$80(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.iog_1; }; } function LaunchXapiUseCaseJs$invoke$lambda_0($resolveResult) { return function () { return 'LaunchXapiUseCaseJs: navigating to: ' + $resolveResult.iog_1; }; } function $invokeCOROUTINE$81(_this__u8e3s4, contentEntryVersion, navController, clazzUid, cbUid, target, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.i10c_1 = _this__u8e3s4; this.j10c_1 = contentEntryVersion; this.k10c_1 = navController; this.l10c_1 = clazzUid; this.m10c_1 = cbUid; this.n10c_1 = target; } protoOf($invokeCOROUTINE$81).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.i10c_1.o10c_1.ooj(this.j10c_1.zas_1, this.l10c_1, this.m10c_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var resolveResult = suspendResult; if (!this.n10c_1.equals(LinkTarget_TOP_getInstance())) { var tmp_0 = Napier_getInstance(); tmp_0.x5d(VOID, VOID, LaunchXapiUseCaseJs$invoke$lambda(resolveResult)); window.open(resolveResult.iog_1, asWindowTarget(this.n10c_1), 'popup=true,noopener,noreferrer'); } else { var tmp_1 = Napier_getInstance(); tmp_1.x5d(VOID, VOID, LaunchXapiUseCaseJs$invoke$lambda_0(resolveResult)); location.href = resolveResult.iog_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.o10c_1 = resolveXapiLaunchHrefUseCase; } protoOf(LaunchXapiUseCaseJs).eog = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { var tmp = new $invokeCOROUTINE$81(this, contentEntryVersion, navController, clazzUid, cbUid, target, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LaunchXapiUseCaseJs).gog = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { return this.eog(contentEntryVersion, navController, clazzUid, cbUid, target, $completion); }; function SetLanguageUseCaseJs(languagesConfig) { this.p10c_1 = languagesConfig; } protoOf(SetLanguageUseCaseJs).aoq = function (uiLang, currentDestination, navController, navArgs) { var currentDisplayLang = this.p10c_1.you_1; this.p10c_1.spd(uiLang.ipa_1); var newDisplayLang = this.p10c_1.you_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.q10c_1 = di; } protoOf(GoToLearningSpaceUseCaseJs).coq = function (url, navController, args, viewName) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var this_0 = this.q10c_1; var context = new LearningSpace(url); var trigger = this_0.q56(); // 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.u56(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).n5c(null, getLocalDelegateReference('makeLinkUseCase', KProperty0, false, function () { return THROW_ISE(); })); var finalUrl = invoke$lambda_3(makeLinkUseCase$delegate).ioq(viewName, args); location.href = finalUrl; }; function OpenExternalLinkUseCaseJs() { } protoOf(OpenExternalLinkUseCaseJs).ooq = function (url, target) { window.open(url, asWindowTarget(target)); }; function BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda(this$0, $text, $accountPersonUid, $onProgress, resultContinuation) { this.z10c_1 = this$0; this.a10d_1 = $text; this.b10d_1 = $accountPersonUid; this.c10d_1 = $onProgress; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda).a10e = 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.a10e((!(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.e10d_1 = this.z10c_1.b10e_1; var tmp_1 = this; tmp_1.f10d_1 = this.z10c_1.c10e_1.in3_1 + 'api/person/bulkadd/enqueue'; var tmp_2 = this; tmp_2.g10d_1 = this.e10d_1; var tmp_3 = this; tmp_3.h10d_1 = this.g10d_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.f10d_1); var body = new TextContent(this.a10d_1, Text_getInstance().d2s_1); if (body == null) { this_0.l38_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.i3e(typeInfoImpl(tmp_5, tmp_6, tmp_7)); } else { if (body instanceof OutgoingContent) { this_0.l38_1 = body; this_0.i3e(null); } else { this_0.l38_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.i3e(typeInfoImpl(tmp_9, tmp_10, tmp_11)); } } parameter(this_0, 'accountPersonUid', this.b10d_1.toString()); var tmp_13 = this.z10c_1.e10e_1; doorNodeAndVersionHeaders(this_0, isInterface(tmp_13, DoorDatabaseRepository) ? tmp_13 : THROW_CCE()); tmp_4.i10d_1 = this_0; this.i10d_1.j38_1 = Companion_getInstance().z2w_1; var tmp_14 = this; tmp_14.j10d_1 = this.h10d_1; var tmp_15 = this; tmp_15.k10d_1 = this.i10d_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.k10d_1, this.j10d_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.l10d_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.l10d_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.m10d_1 = suspendResult; this.n10d_1 = toLong_0(this.m10d_1); this.hd_1 = 3; continue $sm; case 3: if (!get_isActive(this.d10d_1)) { this.hd_1 = 10; continue $sm; } this.id_1 = 7; var tmp_16 = this; tmp_16.o10d_1 = this.z10c_1.b10e_1; var tmp_17 = this; tmp_17.p10d_1 = this.z10c_1.c10e_1.in3_1 + 'api/person/bulkadd/status'; var tmp_18 = this; tmp_18.q10d_1 = this.o10d_1; var tmp_19 = this; tmp_19.r10d_1 = this.q10d_1; var tmp_20 = this; var this_1 = new HttpRequestBuilder(); url(this_1, this.p10d_1); parameter(this_1, 'timestamp', this.n10d_1.toString()); tmp_20.s10d_1 = this_1; this.s10d_1.j38_1 = Companion_getInstance().y2w_1; var tmp_21 = this; tmp_21.t10d_1 = this.r10d_1; var tmp_22 = this; tmp_22.u10d_1 = this.s10d_1; this.hd_1 = 4; suspendResult = (new HttpStatement(this.u10d_1, this.t10d_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.v10d_1 = suspendResult; if (this.v10d_1.w3a().s2z_1 === 200) { var tmp_23 = this; tmp_23.w10d_1 = this.z10c_1.d10e_1; this.hd_1 = 5; suspendResult = bodyAsText(this.v10d_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 6; continue $sm; } case 5: this.x10d_1 = suspendResult; var tmp_24 = this; var this_2 = this.w10d_1.g45(); var this_3 = serializer(this_2, createKType(getKClass(BulkAddPersonRunImportUiState), arrayOf([]), false)); tmp_24.y10d_1 = this.w10d_1.f45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), this.x10d_1); if (this.y10d_1.nxo_1) { this.c10d_1.wxo(this.y10d_1.pxo_1, this.y10d_1.oxo_1); } else { if (this.y10d_1.tt4()) { throw new BulkAddPersonException(this.y10d_1.rxo_1, this.y10d_1.qxo_1); } return new BulkAddUsersResult(this.y10d_1.pxo_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.z10d_1 = this.kd_1; Napier_getInstance().z5d('BulkAddPersonFromLocalUriUseCaseJs exception', this.z10d_1); var tmp_26 = this.z10d_1; if (tmp_26 instanceof BulkAddPersonException) throw this.z10d_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.z10c_1, this.a10d_1, this.b10d_1, this.c10d_1, completion); i.d10d_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.a10e($this$coroutineScope, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$82(_this__u8e3s4, uri, accountPersonUid, onProgress, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.n10e_1 = _this__u8e3s4; this.o10e_1 = uri; this.p10e_1 = accountPersonUid; this.q10e_1 = onProgress; } protoOf($invokeCOROUTINE$82).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; console.log('Getting csv text'); this.hd_1 = 1; suspendResult = fetch_0(this.o10e_1.toString(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.r10e_1 = suspendResult; this.s10e_1 = this.r10e_1.text(); this.hd_1 = 2; var this_0 = this.s10e_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.t10e_1 = suspendResult; console.log('csv text = ' + this.t10e_1); this.hd_1 = 3; suspendResult = coroutineScope(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda_0(this.n10e_1, this.t10e_1, this.p10e_1, this.q10e_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.b10e_1 = httpClient; this.c10e_1 = learningSpace; this.d10e_1 = json; this.e10e_1 = repo; } protoOf(BulkAddPersonsFromLocalUriUseCaseJs).aou = function (uri, accountPersonUid, onProgress, $completion) { var tmp = new $invokeCOROUTINE$82(this, uri, accountPersonUid, onProgress, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function OnClickPhoneNumUseCaseJs() { } protoOf(OnClickPhoneNumUseCaseJs).kob = 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).yop = 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.u10e_1 = phoneNumber; } function PhoneNumberUtilJs() { } protoOf(PhoneNumberUtilJs).eou = function (numberToParse, defaultRegion) { return new PhoneNumberJs(parsePhoneNumber(numberToParse, defaultRegion, null)); }; protoOf(PhoneNumberUtilJs).fou = function (number) { return (number instanceof PhoneNumberJs ? number : THROW_CCE()).u10e_1.formatInternational(); }; function OnClickSendEmailUseCaseJs() { } protoOf(OnClickSendEmailUseCaseJs).kob = 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.v10e_1 = isTempFileCheckerUseCase; } protoOf(DeleteUrisUseCaseJs).ro3 = 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.v10e_1.xnr(element)) { var tmp = Napier_getInstance(); tmp.x5d(VOID, VOID, DeleteUrisUseCaseJs$invoke$lambda(element)); URL.revokeObjectURL(element); } } return Unit_instance; }; function IsTempFileCheckerUseCaseJs() { } protoOf(IsTempFileCheckerUseCaseJs).xnr = function (uri) { return startsWith(uri, 'blob:'); }; function ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda($logPrefix, $index, $chunkInfo) { return function () { return $logPrefix + ' : upload chunk #' + ($index + 1 | 0) + '/' + $chunkInfo.nov_1; }; } function ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda_0($logPrefix, $index, $chunkInfo) { return function () { return $logPrefix + ' : upload chunk #' + ($index + 1 | 0) + '/' + $chunkInfo.nov_1 + ' complete '; }; } function $invokeCOROUTINE$83(_this__u8e3s4, uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.e10f_1 = _this__u8e3s4; this.f10f_1 = uploadUuid; this.g10f_1 = localUri; this.h10f_1 = remoteUrl; this.i10f_1 = fromByte; this.j10f_1 = chunkSize; this.k10f_1 = onProgress; this.l10f_1 = onStatusChange; this.m10f_1 = lastChunkHeaders; } protoOf($invokeCOROUTINE$83).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 14; this.n10f_1 = 'ChunkedUploadClientLocalUriUseCaseJs (' + this.f10f_1 + ') : ' + this.g10f_1 + ' -> ' + this.h10f_1 + ':'; this.id_1 = 13; Napier_getInstance().v5d(this.n10f_1 + ' : starting'); this.id_1 = 3; this.hd_1 = 1; suspendResult = fetch_0(toString(this.g10f_1.d72_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.p10f_1 = suspendResult; this.q10f_1 = this.p10f_1.blob(); this.hd_1 = 2; var this_0 = this.q10f_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.o10f_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.r10f_1 = this.kd_1; var tmp_1 = this; Napier_getInstance().d5e(this.n10f_1 + ' exception fetching local uri ' + this.g10f_1, this.r10f_1); throw IllegalStateException_init_$Create$_1(this.n10f_1 + ': failed to fetch blob for local uri ' + this.g10f_1.d72_1, this.r10f_1); } else { throw this.kd_1; } case 4: this.id_1 = 13; this.s10f_1 = this.o10f_1; this.t10f_1 = this.s10f_1.size; if (this.t10f_1 <= 0.0) throw IllegalArgumentException_init_$Create$('Upload size <= 0'); this.u10f_1 = new ChunkInfo(numberToLong(this.t10f_1), this.j10f_1, this.i10f_1); if (this.t10f_1 >= IntCompanionObject_instance.MAX_VALUE) throw IllegalArgumentException_init_$Create$('JS: upload size(' + numberToLong(this.t10f_1).toString() + ') > ' + IntCompanionObject_instance.MAX_VALUE + ' not supported'); this.l10f_1(TransferJobItemStatus_IN_PROGRESS_getInstance()); var tmp_2 = this; tmp_2.v10f_1 = this.u10f_1; this.w10f_1 = 0; this.x10f_1 = this.v10f_1.w(); this.hd_1 = 5; continue $sm; case 5: if (!this.x10f_1.f()) { this.hd_1 = 12; continue $sm; } this.y10f_1 = this.x10f_1.e(); var tmp_3 = this; var tmp1 = this.w10f_1; this.w10f_1 = tmp1 + 1 | 0; tmp_3.z10f_1 = checkIndexOverflow(tmp1); var tmp_4 = this; tmp_4.a10g_1 = this.y10f_1; var tmp_5 = Napier_getInstance(); tmp_5.r5d(VOID, VOID, ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda(this.n10f_1, this.z10f_1, this.u10f_1)); this.b10g_1 = this.s10f_1.slice(this.a10g_1.oov_1.a7(), this.a10g_1.pov_1.a7()); this.id_1 = 7; var tmp_6 = this; var this_1 = {}; this_1.body = this.b10g_1; this_1.method = 'POST'; var this_2 = new Headers(); this_2.set(get_HEADER_UPLOAD_UUID(), this.f10f_1); this_2.set(get_HEADER_IS_FINAL_CHUNK(), this.a10g_1.qov_1.toString()); this_2.set(get_HEADER_UPLOAD_START_BYTE(), this.a10g_1.oov_1.toString()); if (this.a10g_1.qov_1 ? !(this.m10f_1 == null) : false) { var tmp0_iterator = this.m10f_1.b2n().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp0_iterator_0 = this.m10f_1.a2n(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.d10g_1 = fetch(this.h10f_1, this_1); this.hd_1 = 6; var this_3 = this.d10g_1; suspendResult = await_0(this_3, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.c10g_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.e10g_1 = this.kd_1; var tmp_8 = this; Napier_getInstance().d5e(this.n10f_1 + ' exception fetching response for blob upload ' + ('fromByte=' + this.u10f_1.lov_1.toString()), this.e10g_1); throw IllegalStateException_init_$Create$_1(this.n10f_1 + ' exception fetching response for blob upload ', this.e10g_1); } else { throw this.kd_1; } case 8: this.id_1 = 13; this.f10g_1 = this.c10g_1; var tmp_9 = Napier_getInstance(); tmp_9.r5d(VOID, VOID, ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda_0(this.n10f_1, this.z10f_1, this.u10f_1)); this.k10f_1(new UploadProgress(this.a10g_1.pov_1, numberToLong(this.t10f_1))); if (this.a10g_1.qov_1) { this.l10f_1(TransferJobItemStatus_COMPLETE_getInstance()); Napier_getInstance().v5d(this.n10f_1 + ': Complete!'); if (!(this.f10g_1.status === 204)) { var tmp_10 = this; tmp_10.h10g_1 = this.f10g_1.text(); this.hd_1 = 10; var this_4 = this.h10g_1; suspendResult = await_0(this_4, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_11 = this; tmp_11.g10g_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.g10g_1 = suspendResult; this.hd_1 = 11; continue $sm; case 11: var ARGUMENT = this.g10g_1; return new LastChunkResponse(ARGUMENT, this.f10g_1.status, asIStringValues_0(this.f10g_1.headers)); case 12: throw IllegalStateException_init_$Create$(this.n10f_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().d5e(this.n10f_1 + ', ChunkedUploadClientLocalUriUseCaseJs: Exception', e); this.l10f_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).xov = function (uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion) { var tmp = new $invokeCOROUTINE$83(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.q10g_1 = this$0; this.r10g_1 = $statements; this.s10g_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.q10g_1.u10g_1.knu(this.r10g_1, this.s10g_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.q10g_1, this.r10g_1, this.s10g_1, completion); i.t10g_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.u10g_1 = xapiStatementResource; } protoOf(SaveStatementOnClearUseCaseJs).ip9 = function (statements, xapiSession) { var tmp = GlobalScope_instance; launch(tmp, VOID, VOID, SaveStatementOnClearUseCaseJs$invoke$slambda_0(this, statements, xapiSession, null)); }; function SaveStatementOnUnloadUseCaseJs(learningSpace, json) { this.v10g_1 = learningSpace; this.w10g_1 = json; } protoOf(SaveStatementOnUnloadUseCaseJs).ip9 = function (statements, xapiSession) { var tmp = navigator; var tmp_0 = this.v10g_1.in3_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.w10g_1.e45(Companion_getInstance_86().a4r(), new XapiStatementsAndSession(statements, xapiSession)); tmp.sendBeacon(tmp_0, tmp$ret$2); }; function $invokeCOROUTINE$84(_this__u8e3s4, accountPersonUid, actor, activityId, clazzUid, cbUid, contentEntryUid, contentEntryVersionUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.f10h_1 = _this__u8e3s4; this.g10h_1 = accountPersonUid; this.h10h_1 = actor; this.i10h_1 = activityId; this.j10h_1 = clazzUid; this.k10h_1 = cbUid; this.l10h_1 = contentEntryUid; this.m10h_1 = contentEntryVersionUid; } protoOf($invokeCOROUTINE$84).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; tmp_0.n10h_1 = this.f10h_1.w10h_1; var tmp_1 = this; tmp_1.o10h_1 = this.f10h_1.v10h_1.in3_1 + 'api/xapi-ext/resumeOrStartSession'; var tmp_2 = this; tmp_2.p10h_1 = this.n10h_1; var tmp_3 = this; tmp_3.q10h_1 = this.p10h_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.o10h_1); var tmp_5 = this.f10h_1.x10h_1; doorNodeIdHeader(this_0, isInterface(tmp_5, DoorDatabaseRepository) ? tmp_5 : THROW_CCE()); parameter(this_0, 'accountPersonUid', this.g10h_1.toString()); parameter(this_0, 'actor', this.f10h_1.y10h_1.e45(Companion_instance_104.a4r(), this.h10h_1)); parameter(this_0, 'activityId', this.i10h_1); parameter(this_0, 'clazzUid', this.j10h_1.toString()); parameter(this_0, 'cbUid', this.k10h_1.toString()); parameter(this_0, 'contentEntryUid', this.l10h_1.toString()); parameter(this_0, 'contentEntryVersionUid', this.m10h_1.toString()); tmp_4.r10h_1 = this_0; this.r10h_1.j38_1 = Companion_getInstance().z2w_1; var tmp_6 = this; tmp_6.s10h_1 = this.q10h_1; var tmp_7 = this; tmp_7.t10h_1 = this.r10h_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.t10h_1, this.s10h_1)).u3y(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.u10h_1 = suspendResult; this.hd_1 = 2; var tmp_8 = this.u10h_1.r3b(); 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.u3a(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.v10h_1 = learningSpace; this.w10h_1 = httpClient; this.x10h_1 = repo; this.y10h_1 = xapiJson.ooy_1; } protoOf(ResumeOrStartXapiSessionUseCaseJs).hoj = function (accountPersonUid, actor, activityId, clazzUid, cbUid, contentEntryUid, contentEntryVersionUid, $completion) { var tmp = new $invokeCOROUTINE$84(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_39(function_0) { this.z10h_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_39).t1d = function (value, $completion) { return this.z10h_1(value, $completion); }; function collectAsState$lambda$slambda$slambda($state, resultContinuation) { this.i10i_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.i10i_1[1](this.j10i_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.i10i_1, completion); i.j10i_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.s10i_1 = $this_collectAsState; this.t10i_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.t10i_1, null); suspendResult = this.s10i_1.z1b(new sam$kotlinx_coroutines_flow_FlowCollector$0_39(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.s10i_1, this.t10i_1, completion); i.u10i_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.d10j_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.d10j_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.d10j_1, completion); i.e10j_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_40(function_0) { this.f10j_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_40).t1d = function (value, $completion) { return this.f10j_1(value, $completion); }; function useNavControllerEffect$slambda$slambda($navHostFn, resultContinuation) { this.o10j_1 = $navHostFn; CoroutineImpl.call(this, resultContinuation); } protoOf(useNavControllerEffect$slambda$slambda).q10j = function (it, $completion) { var tmp = this.r10j(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(useNavControllerEffect$slambda$slambda).he = function (p1, $completion) { return this.q10j(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().v5d('useNavControllerEffect: collect command: ' + this.p10j_1); this.o10j_1.f103(this.p10j_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).r10j = function (it, completion) { var i = new useNavControllerEffect$slambda$slambda(this.o10j_1, completion); i.p10j_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.q10j(it, $completion); }; l.$arity = 1; return l; } function useNavControllerEffect$slambda($commandFlow, $navHostFn, resultContinuation) { this.a10k_1 = $commandFlow; this.b10k_1 = $navHostFn; CoroutineImpl.call(this, resultContinuation); } protoOf(useNavControllerEffect$slambda).w86 = function ($completion) { var tmp = this.y77($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(useNavControllerEffect$slambda).z77 = function ($completion) { return this.w86($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.c10k_1 = this.a10k_1; if (this.c10k_1 == null) { this.d10k_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = useNavControllerEffect$slambda$slambda_0(this.b10k_1, null); suspendResult = this.c10k_1.z1b(new sam$kotlinx_coroutines_flow_FlowCollector$0_40(tmp_0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_1 = this; tmp_1.d10k_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).y77 = function (completion) { return new useNavControllerEffect$slambda(this.a10k_1, this.b10k_1, completion); }; function useNavControllerEffect$slambda_0($commandFlow, $navHostFn, resultContinuation) { var i = new useNavControllerEffect$slambda($commandFlow, $navHostFn, resultContinuation); var l = function ($completion) { return i.w86($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).s57(); // 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.q57(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).e10k_1; } function ViewModelAndKey(viewModel, locationKey) { this.e10k_1 = viewModel; this.f10k_1 = locationKey; } protoOf(ViewModelAndKey).toString = function () { return 'ViewModelAndKey(viewModel=' + this.e10k_1 + ', locationKey=' + this.f10k_1 + ')'; }; protoOf(ViewModelAndKey).hashCode = function () { var result = hashCode(this.e10k_1); result = imul(result, 31) + getStringHashCode(this.f10k_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.e10k_1, tmp0_other_with_cast.e10k_1)) return false; if (!(this.f10k_1 === tmp0_other_with_cast.f10k_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().v5d('Creating ViewModel: ' + getKClassFromExpression(this_0.e10k_1).f7()); return this_0; }; } function useViewModel$lambda$lambda($viewModelAndKey$delegate) { return function () { Napier_getInstance().v5d('Close ViewModel: ' + getKClassFromExpression(useViewModel$lambda($viewModelAndKey$delegate).e10k_1).f7()); useViewModel$lambda($viewModelAndKey$delegate).e10k_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).f10k_1 === $locationKey)) { useViewModel$lambda_0($viewModelAndKey$delegate, new ViewModelAndKey($viewModelFactory(new SavedStateHandle2(window.history, $searchParams)), $locationKey)); Napier_getInstance().v5d('Recreating ViewModel ' + getKClassFromExpression(useViewModel$lambda($viewModelAndKey$delegate).e10k_1).f7()); tmp = Unit_instance; } $this$useEffect.push(useViewModel$lambda$lambda($viewModelAndKey$delegate)); return Unit_instance; }; } function Companion_196() { } var Companion_instance_245; function Companion_getInstance_213() { return Companion_instance_245; } function UstadMobileSystemImpl(settings, langConfig, jsStringProvider) { UstadMobileSystemCommon.call(this, settings, langConfig); this.zns_1 = jsStringProvider; } protoOf(UstadMobileSystemImpl).ant = function (stringResource) { return stringResource.mlj(this.zns_1, this.fpb_1.you_1); }; protoOf(UstadMobileSystemImpl).bnt = function (stringResource, args) { return stringResource.nlj(this.zns_1, this.fpb_1.you_1, args.slice()); }; protoOf(UstadMobileSystemImpl).xve = function (pluralsResource, number) { return format(pluralsResource, number, [number]).rlj(this.zns_1); }; protoOf(UstadMobileSystemImpl).g10k = 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.g10k(context, zip, $completion); }; protoOf(UstadMobileSystemImpl).h10k = 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.h10k(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.s57(); // 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.q57(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.s57(); // 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.q57(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.s57(); // 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.q57(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.s57(); // 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.q57(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.s57(); // 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.q57(tmp$ret$4, null); // Inline function 'org.kodein.di.instance' call var tmp_8 = $this$singleton.s57(); // 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.q57(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.s57(); // 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.q57(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.s57(); // 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.q57(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.s57(); // 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.q57(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.s57(); // 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.q57(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.s57(); // 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.q57(tmp$ret$2, 1); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.s57(); // 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.q57(tmp$ret$4, null).fjf_1; var tmp_8 = new CompressImageUseCaseJs(); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$singleton.s57(); // 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.q57(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.s57(); // 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.q57(tmp$ret$0, null); var tmp_2 = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.s57(); // 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.q57(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$singleton.s57(); // 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.q57(tmp$ret$4, 1); return new SaveLocalUrisAsBlobUseCaseJs(tmp_1, tmp_2, tmp_5, tmp$ret$5); } function DomainDiModuleJs$lambda$lambda_14($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.s57(); // 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.q57(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.s57(); // 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.q57(tmp$ret$2, null); return new ContentEntryGetMetaDataFromUriUseCaseJs(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_15($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.s57(); // 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.q57(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.s57(); // 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.q57(tmp$ret$2, null); return new PasskeyRequestJsonUseCase(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_16($this$provider) { var tmp = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$provider.s57(); // 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.q57(tmp$ret$0, null).hjf(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.s57(); // 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.q57(tmp$ret$2, null); return new SetPasswordUseCaseJs(tmp, tmp_2, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_17($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.s57(); // 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.q57(tmp$ret$0, null).ijf(); // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$provider.s57(); // 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.q57(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.s57(); // 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.q57(tmp$ret$4, null).ooy_1; // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$provider.s57(); // 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.q57(tmp$ret$6, 1); var tmp4_learningSpace = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_7 = $this$provider.s57(); // 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.q57(tmp$ret$8, null); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$provider.s57(); // 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.q57(tmp$ret$10, null); // Inline function 'org.kodein.di.instance' call var tmp_11 = $this$provider.s57(); // 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.q57(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_18($this$singleton) { return new XapiJson(); } function DomainDiModuleJs$lambda$lambda_19($this$singleton) { return new GetApiUrlUseCaseDirect($this$singleton.od()); } function DomainDiModuleJs$lambda$lambda_20($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.s57(); // 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.q57(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.s57(); // 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.q57(tmp$ret$2, null).hjf(); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$singleton.s57(); // 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.q57(tmp$ret$4, null); return new ResumeOrStartXapiSessionUseCaseJs(tmp, tmp_2, tmp_5, tmp$ret$5); } function DomainDiModuleJs$lambda$lambda_21($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.s57(); // 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.q57(tmp$ret$0, null); return new LaunchXapiUseCaseJs(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_22($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.s57(); // 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.q57(tmp$ret$0, null).ijf(); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.s57(); // 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.q57(tmp$ret$2, null); return new MoveContentEntriesUseCase(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_23($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.s57(); // 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.q57(tmp$ret$0, null); return new DeleteContentEntryParentChildJoinUseCase(tmp$ret$1.ijf()); } function DomainDiModuleJs$lambda$lambda_24($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.s57(); // 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.q57(tmp$ret$0, null); return new RestoreDeletedItemUseCase(tmp$ret$1.ijf()); } function DomainDiModuleJs$lambda$lambda_25($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.s57(); // 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.q57(tmp$ret$0, null); return new DeletePermanentlyUseCase(tmp$ret$1.ijf()); } function DomainDiModuleJs$lambda$lambda_26($this$singleton) { return new SetClipboardStringUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_27($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.s57(); // 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.q57(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.s57(); // 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.q57(tmp$ret$2, 1); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.s57(); // 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.q57(tmp$ret$4, null); return new SaveAndUploadLocalUrisUseCase(tmp_1, null, tmp_4, tmp$ret$5.fjf_1); } function DomainDiModuleJs$lambda$lambda_28($this$provider) { return new OpenBlobUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_29($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.s57(); // 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.q57(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.s57(); // 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.q57(tmp$ret$2, null); return new OpenBlobUiUseCase(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_30($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.s57(); // 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.q57(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.s57(); // 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.q57(tmp$ret$2, null); return new CancelRemoteContentEntryImportUseCase(tmp, tmp_2, tmp$ret$3.hjf()); } function DomainDiModuleJs$lambda$lambda_31($this$singleton) { var tmp0_learningSpace = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.s57(); // 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.q57(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$singleton.s57(); // 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.q57(tmp$ret$2, null).hjf(); return new DismissRemoteContentEntryImportErrorUseCase(tmp1_httpClient, tmp0_learningSpace, tmp2_repo); } function DomainDiModuleJs$lambda$lambda_32($this$singleton) { return new XXStringHasherJs(); } function DomainDiModuleJs$lambda$lambda_33($this$singleton) { return new XXHasher64FactoryJs(); } function DomainDiModuleJs$lambda$lambda_34($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.s57(); // 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.q57(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.s57(); // 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.q57(tmp$ret$2, null); return new StoreActivitiesUseCase(tmp_1, tmp$ret$3.fjf_1); } function DomainDiModuleJs$lambda$lambda_35($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.s57(); // 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.q57(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.s57(); // 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.q57(tmp$ret$2, null).fjf_1; // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.s57(); // 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.q57(tmp$ret$4, null); var tmp_8 = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$singleton.s57(); // 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.q57(tmp$ret$6, null); // Inline function 'org.kodein.di.instance' call var tmp_12 = $this$singleton.s57(); // 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.q57(tmp$ret$8, null); // Inline function 'org.kodein.di.instance' call var tmp_15 = $this$singleton.s57(); // 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.q57(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_36($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.s57(); // 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.q57(tmp$ret$0, null); return new SaveStatementOnClearUseCaseJs(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_37($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.s57(); // 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.q57(tmp$ret$0, null); return new SaveStatementOnUnloadUseCaseJs(tmp, tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_38($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.s57(); // 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.q57(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.s57(); // 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.q57(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.s57(); // 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.q57(tmp$ret$4, null); return new NonInteractiveContentXapiStatementRecorderFactory(tmp_1, tmp_4, tmp$ret$5, $this$singleton.od()); } function DomainDiModuleJs$lambda$lambda_39($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.s57(); // 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.q57(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.s57(); // 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.q57(tmp$ret$2, null); return new AddNewPersonUseCase(tmp_1, tmp$ret$3.fjf_1); } function DomainDiModuleJs$lambda$lambda_40($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.s57(); // 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.q57(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.s57(); // 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.q57(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$singleton.s57(); // 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.q57(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.b56(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.o55(); // 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.p5a(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.b56(tmp$ret$6, null, null); // Inline function 'org.kodein.di.provider' call var creator_0 = DomainDiModuleJs$lambda$lambda_0; var tmp_6 = $this$$receiver.o55(); // 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.p5a(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.b56(tmp$ret$10, null, null); // Inline function 'org.kodein.di.singleton' call var creator_1 = DomainDiModuleJs$lambda$lambda_1; var tmp_10 = $this$$receiver.p55(); var tmp_11 = $this$$receiver.o55(); var tmp_12 = $this$$receiver.q55(); // 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.p5a(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.b56(tmp$ret$14, null, null); // Inline function 'org.kodein.di.singleton' call var creator_2 = DomainDiModuleJs$lambda$lambda_2; var tmp_16 = $this$$receiver.p55(); var tmp_17 = $this$$receiver.o55(); var tmp_18 = $this$$receiver.q55(); // 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.p5a(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.b56(tmp$ret$18, null, null); // Inline function 'org.kodein.di.provider' call var creator_3 = DomainDiModuleJs$lambda$lambda_3; var tmp_22 = $this$$receiver.o55(); // 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.p5a(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.b56(tmp$ret$22, null, null); // Inline function 'org.kodein.di.provider' call var creator_4 = DomainDiModuleJs$lambda$lambda_4; var tmp_26 = $this$$receiver.o55(); // 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.p5a(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.b56(tmp$ret$26, null, null); // Inline function 'org.kodein.di.provider' call var creator_5 = DomainDiModuleJs$lambda$lambda_5; var tmp_30 = $this$$receiver.o55(); // 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.p5a(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.b56(tmp$ret$30, null, null); // Inline function 'org.kodein.di.provider' call var creator_6 = DomainDiModuleJs$lambda$lambda_6; var tmp_34 = $this$$receiver.o55(); // 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.p5a(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.b56(tmp$ret$34, null, null); // Inline function 'org.kodein.di.provider' call var creator_7 = DomainDiModuleJs$lambda$lambda_7; var tmp_38 = $this$$receiver.o55(); // 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.p5a(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.b56(tmp$ret$38, null, null); // Inline function 'org.kodein.di.singleton' call var creator_8 = DomainDiModuleJs$lambda$lambda_8; var tmp_42 = $this$$receiver.p55(); var tmp_43 = $this$$receiver.o55(); var tmp_44 = $this$$receiver.q55(); // 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.p5a(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.b56(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.p55(); var tmp_50 = this_1.o55(); var tmp_51 = this_1.q55(); // 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.p5a(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.b56(tmp$ret$48, null, null); // Inline function 'org.kodein.di.singleton' call var creator_10 = DomainDiModuleJs$lambda$lambda_10; var tmp_55 = $this$$receiver.p55(); var tmp_56 = $this$$receiver.o55(); var tmp_57 = $this$$receiver.q55(); // 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.p5a(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.b56(tmp$ret$52, null, null); // Inline function 'org.kodein.di.singleton' call var creator_11 = DomainDiModuleJs$lambda$lambda_11; var tmp_61 = $this$$receiver.p55(); var tmp_62 = $this$$receiver.o55(); var tmp_63 = $this$$receiver.q55(); // 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.p5a(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.b56(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.p55(); var tmp_69 = this_2.o55(); var tmp_70 = this_2.q55(); // 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.p5a(tmp$ret$61); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_72 = typeToken(createKType(getKClass(SaveLocalUrisAsBlobsUseCase), arrayOf([]), false)); var tmp$ret$62 = isInterface(tmp_72, TypeToken) ? tmp_72 : THROW_CCE(); var tmp_73 = $this$$receiver.b56(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.p55(); var tmp_76 = this_3.o55(); var tmp_77 = this_3.q55(); // Inline function 'org.kodein.type.generic' call var tmp_78 = typeToken(createKType(getKClass(SaveLocalUrisAsBlobUseCaseJs), arrayOf([]), false)); var tmp$ret$66 = isInterface(tmp_78, TypeToken) ? tmp_78 : THROW_CCE(); var tmp$ret$67 = new Singleton(tmp_75, tmp_76, tmp_77, tmp$ret$66, null, true, creator_13); tmp_73.p5a(tmp$ret$67); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_79 = typeToken(createKType(getKClass(ContentEntryGetMetaDataFromUriUseCase), arrayOf([]), false)); var tmp$ret$68 = isInterface(tmp_79, TypeToken) ? tmp_79 : THROW_CCE(); var tmp_80 = $this$$receiver.b56(tmp$ret$68, null, null); // Inline function 'org.kodein.di.provider' call var creator_14 = DomainDiModuleJs$lambda$lambda_14; var tmp_81 = $this$$receiver.o55(); // Inline function 'org.kodein.type.generic' call var tmp_82 = typeToken(createKType(getKClass(ContentEntryGetMetaDataFromUriUseCaseJs), arrayOf([]), false)); var tmp$ret$70 = isInterface(tmp_82, TypeToken) ? tmp_82 : THROW_CCE(); var tmp$ret$71 = new Provider(tmp_81, tmp$ret$70, creator_14); tmp_80.p5a(tmp$ret$71); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_83 = typeToken(createKType(getKClass(PasskeyRequestJsonUseCase), arrayOf([]), false)); var tmp$ret$72 = isInterface(tmp_83, TypeToken) ? tmp_83 : THROW_CCE(); var tmp_84 = $this$$receiver.b56(tmp$ret$72, null, null); // Inline function 'org.kodein.di.provider' call var creator_15 = DomainDiModuleJs$lambda$lambda_15; var tmp_85 = $this$$receiver.o55(); // Inline function 'org.kodein.type.generic' call var tmp_86 = typeToken(createKType(getKClass(PasskeyRequestJsonUseCase), arrayOf([]), false)); var tmp$ret$74 = isInterface(tmp_86, TypeToken) ? tmp_86 : THROW_CCE(); var tmp$ret$75 = new Provider(tmp_85, tmp$ret$74, creator_15); tmp_84.p5a(tmp$ret$75); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_87 = typeToken(createKType(getKClass(SetPasswordUseCase), arrayOf([]), false)); var tmp$ret$76 = isInterface(tmp_87, TypeToken) ? tmp_87 : THROW_CCE(); var tmp_88 = $this$$receiver.b56(tmp$ret$76, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_3 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_89 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$78 = isInterface(tmp_89, TypeToken) ? tmp_89 : THROW_CCE(); var this_4 = new ImplWithScope(tmp$ret$78, scope_3); var creator_16 = DomainDiModuleJs$lambda$lambda_16; var tmp_90 = this_4.o55(); // Inline function 'org.kodein.type.generic' call var tmp_91 = typeToken(createKType(getKClass(SetPasswordUseCaseJs), arrayOf([]), false)); var tmp$ret$80 = isInterface(tmp_91, TypeToken) ? tmp_91 : THROW_CCE(); var tmp$ret$81 = new Provider(tmp_90, tmp$ret$80, creator_16); tmp_88.p5a(tmp$ret$81); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_92 = typeToken(createKType(getKClass(ResolveXapiLaunchHrefUseCase), arrayOf([]), false)); var tmp$ret$82 = isInterface(tmp_92, TypeToken) ? tmp_92 : THROW_CCE(); var tmp_93 = $this$$receiver.b56(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_94 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$84 = isInterface(tmp_94, TypeToken) ? tmp_94 : THROW_CCE(); var this_5 = new ImplWithScope(tmp$ret$84, scope_4); var creator_17 = DomainDiModuleJs$lambda$lambda_17; var tmp_95 = this_5.o55(); // Inline function 'org.kodein.type.generic' call var tmp_96 = typeToken(createKType(getKClass(ResolveXapiLaunchHrefUseCase), arrayOf([]), false)); var tmp$ret$86 = isInterface(tmp_96, TypeToken) ? tmp_96 : THROW_CCE(); var tmp$ret$87 = new Provider(tmp_95, tmp$ret$86, creator_17); tmp_93.p5a(tmp$ret$87); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_97 = typeToken(createKType(getKClass(XapiJson), arrayOf([]), false)); var tmp$ret$88 = isInterface(tmp_97, TypeToken) ? tmp_97 : THROW_CCE(); var tmp_98 = $this$$receiver.b56(tmp$ret$88, null, null); // Inline function 'org.kodein.di.singleton' call var creator_18 = DomainDiModuleJs$lambda$lambda_18; var tmp_99 = $this$$receiver.p55(); var tmp_100 = $this$$receiver.o55(); var tmp_101 = $this$$receiver.q55(); // Inline function 'org.kodein.type.generic' call var tmp_102 = typeToken(createKType(getKClass(XapiJson), arrayOf([]), false)); var tmp$ret$90 = isInterface(tmp_102, TypeToken) ? tmp_102 : THROW_CCE(); var tmp$ret$91 = new Singleton(tmp_99, tmp_100, tmp_101, tmp$ret$90, null, true, creator_18); tmp_98.p5a(tmp$ret$91); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_103 = typeToken(createKType(getKClass(GetApiUrlUseCase), arrayOf([]), false)); var tmp$ret$92 = isInterface(tmp_103, TypeToken) ? tmp_103 : THROW_CCE(); var tmp_104 = $this$$receiver.b56(tmp$ret$92, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_5 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_105 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$94 = isInterface(tmp_105, TypeToken) ? tmp_105 : THROW_CCE(); var this_6 = new ImplWithScope(tmp$ret$94, scope_5); var creator_19 = DomainDiModuleJs$lambda$lambda_19; var tmp_106 = this_6.p55(); var tmp_107 = this_6.o55(); var tmp_108 = this_6.q55(); // Inline function 'org.kodein.type.generic' call var tmp_109 = typeToken(createKType(getKClass(GetApiUrlUseCaseDirect), 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_104.p5a(tmp$ret$97); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_110 = typeToken(createKType(getKClass(ResumeOrStartXapiSessionUseCase), arrayOf([]), false)); var tmp$ret$98 = isInterface(tmp_110, TypeToken) ? tmp_110 : THROW_CCE(); var tmp_111 = $this$$receiver.b56(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.p55(); var tmp_114 = this_7.o55(); var tmp_115 = this_7.q55(); // Inline function 'org.kodein.type.generic' call var tmp_116 = typeToken(createKType(getKClass(ResumeOrStartXapiSessionUseCaseJs), 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.p5a(tmp$ret$103); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_117 = typeToken(createKType(getKClass(LaunchXapiUseCase), arrayOf([]), false)); var tmp$ret$104 = isInterface(tmp_117, TypeToken) ? tmp_117 : THROW_CCE(); var tmp_118 = $this$$receiver.b56(tmp$ret$104, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_7 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_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.o55(); // Inline function 'org.kodein.type.generic' call var tmp_121 = typeToken(createKType(getKClass(LaunchXapiUseCaseJs), arrayOf([]), false)); var tmp$ret$108 = isInterface(tmp_121, TypeToken) ? tmp_121 : THROW_CCE(); var tmp$ret$109 = new Provider(tmp_120, tmp$ret$108, creator_21); tmp_118.p5a(tmp$ret$109); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_122 = typeToken(createKType(getKClass(MoveContentEntriesUseCase), arrayOf([]), false)); var tmp$ret$110 = isInterface(tmp_122, TypeToken) ? tmp_122 : THROW_CCE(); var tmp_123 = $this$$receiver.b56(tmp$ret$110, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_8 = Companion_getInstance_17().kn3_1; // Inline function 'org.kodein.type.generic' call var tmp_124 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$112 = isInterface(tmp_124, TypeToken) ? tmp_124 : THROW_CCE(); var this_9 = new ImplWithScope(tmp$ret$112, scope_8); var creator_22 = DomainDiModuleJs$lambda$lambda_22; var tmp_125 = this_9.o55(); // Inline function 'org.kodein.type.generic' call var tmp_126 = typeToken(createKType(getKClass(MoveContentEntriesUseCase), arrayOf([]), false)); var tmp$ret$114 = isInterface(tmp_126, TypeToken) ? tmp_126 : THROW_CCE(); var tmp$ret$115 = new Provider(tmp_125, tmp$ret$114, creator_22); tmp_123.p5a(tmp$ret$115); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_127 = typeToken(createKType(getKClass(DeleteContentEntryParentChildJoinUseCase), arrayOf([]), false)); var tmp$ret$116 = isInterface(tmp_127, TypeToken) ? tmp_127 : THROW_CCE(); var tmp_128 = $this$$receiver.b56(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().kn3_1; // Inline function 'org.kodein.type.generic' call var tmp_129 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$118 = isInterface(tmp_129, TypeToken) ? tmp_129 : THROW_CCE(); var this_10 = new ImplWithScope(tmp$ret$118, scope_9); var creator_23 = DomainDiModuleJs$lambda$lambda_23; var tmp_130 = this_10.o55(); // Inline function 'org.kodein.type.generic' call var tmp_131 = typeToken(createKType(getKClass(DeleteContentEntryParentChildJoinUseCase), arrayOf([]), false)); var tmp$ret$120 = isInterface(tmp_131, TypeToken) ? tmp_131 : THROW_CCE(); var tmp$ret$121 = new Provider(tmp_130, tmp$ret$120, creator_23); tmp_128.p5a(tmp$ret$121); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_132 = typeToken(createKType(getKClass(RestoreDeletedItemUseCase), arrayOf([]), false)); var tmp$ret$122 = isInterface(tmp_132, TypeToken) ? tmp_132 : THROW_CCE(); var tmp_133 = $this$$receiver.b56(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().kn3_1; // Inline function 'org.kodein.type.generic' call var tmp_134 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$124 = isInterface(tmp_134, TypeToken) ? tmp_134 : THROW_CCE(); var this_11 = new ImplWithScope(tmp$ret$124, scope_10); var creator_24 = DomainDiModuleJs$lambda$lambda_24; var tmp_135 = this_11.o55(); // Inline function 'org.kodein.type.generic' call var tmp_136 = typeToken(createKType(getKClass(RestoreDeletedItemUseCase), arrayOf([]), false)); var tmp$ret$126 = isInterface(tmp_136, TypeToken) ? tmp_136 : THROW_CCE(); var tmp$ret$127 = new Provider(tmp_135, tmp$ret$126, creator_24); tmp_133.p5a(tmp$ret$127); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_137 = typeToken(createKType(getKClass(DeletePermanentlyUseCase), arrayOf([]), false)); var tmp$ret$128 = isInterface(tmp_137, TypeToken) ? tmp_137 : THROW_CCE(); var tmp_138 = $this$$receiver.b56(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().kn3_1; // Inline function 'org.kodein.type.generic' call var tmp_139 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$130 = isInterface(tmp_139, TypeToken) ? tmp_139 : THROW_CCE(); var this_12 = new ImplWithScope(tmp$ret$130, scope_11); var creator_25 = DomainDiModuleJs$lambda$lambda_25; var tmp_140 = this_12.o55(); // Inline function 'org.kodein.type.generic' call var tmp_141 = typeToken(createKType(getKClass(DeletePermanentlyUseCase), arrayOf([]), false)); var tmp$ret$132 = isInterface(tmp_141, TypeToken) ? tmp_141 : THROW_CCE(); var tmp$ret$133 = new Provider(tmp_140, tmp$ret$132, creator_25); tmp_138.p5a(tmp$ret$133); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_142 = typeToken(createKType(getKClass(SetClipboardStringUseCase), arrayOf([]), false)); var tmp$ret$134 = isInterface(tmp_142, TypeToken) ? tmp_142 : THROW_CCE(); var tmp_143 = $this$$receiver.b56(tmp$ret$134, null, null); // Inline function 'org.kodein.di.singleton' call var creator_26 = DomainDiModuleJs$lambda$lambda_26; var tmp_144 = $this$$receiver.p55(); var tmp_145 = $this$$receiver.o55(); var tmp_146 = $this$$receiver.q55(); // Inline function 'org.kodein.type.generic' call var tmp_147 = typeToken(createKType(getKClass(SetClipboardStringUseCaseJs), arrayOf([]), false)); var tmp$ret$136 = isInterface(tmp_147, TypeToken) ? tmp_147 : THROW_CCE(); var tmp$ret$137 = new Singleton(tmp_144, tmp_145, tmp_146, tmp$ret$136, null, true, creator_26); tmp_143.p5a(tmp$ret$137); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_148 = typeToken(createKType(getKClass(SaveAndUploadLocalUrisUseCase), arrayOf([]), false)); var tmp$ret$138 = isInterface(tmp_148, TypeToken) ? tmp_148 : THROW_CCE(); var tmp_149 = $this$$receiver.b56(tmp$ret$138, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_12 = Companion_getInstance_17().kn3_1; // Inline function 'org.kodein.type.generic' call var tmp_150 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$140 = isInterface(tmp_150, TypeToken) ? tmp_150 : THROW_CCE(); var this_13 = new ImplWithScope(tmp$ret$140, scope_12); var creator_27 = DomainDiModuleJs$lambda$lambda_27; var tmp_151 = this_13.p55(); var tmp_152 = this_13.o55(); var tmp_153 = this_13.q55(); // Inline function 'org.kodein.type.generic' call var tmp_154 = typeToken(createKType(getKClass(SaveAndUploadLocalUrisUseCase), 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_149.p5a(tmp$ret$143); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_155 = typeToken(createKType(getKClass(OpenBlobUseCase), arrayOf([]), false)); var tmp$ret$144 = isInterface(tmp_155, TypeToken) ? tmp_155 : THROW_CCE(); var tmp_156 = $this$$receiver.b56(tmp$ret$144, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_13 = Companion_getInstance_17().kn3_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.o55(); // Inline function 'org.kodein.type.generic' call var tmp_159 = typeToken(createKType(getKClass(OpenBlobUseCaseJs), arrayOf([]), false)); var tmp$ret$148 = isInterface(tmp_159, TypeToken) ? tmp_159 : THROW_CCE(); var tmp$ret$149 = new Provider(tmp_158, tmp$ret$148, creator_28); tmp_156.p5a(tmp$ret$149); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_160 = typeToken(createKType(getKClass(OpenBlobUiUseCase), arrayOf([]), false)); var tmp$ret$150 = isInterface(tmp_160, TypeToken) ? tmp_160 : THROW_CCE(); var tmp_161 = $this$$receiver.b56(tmp$ret$150, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_14 = Companion_getInstance_17().kn3_1; // Inline function 'org.kodein.type.generic' call var tmp_162 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$152 = isInterface(tmp_162, TypeToken) ? tmp_162 : THROW_CCE(); var this_15 = new ImplWithScope(tmp$ret$152, scope_14); var creator_29 = DomainDiModuleJs$lambda$lambda_29; var tmp_163 = this_15.p55(); var tmp_164 = this_15.o55(); var tmp_165 = this_15.q55(); // Inline function 'org.kodein.type.generic' call var tmp_166 = typeToken(createKType(getKClass(OpenBlobUiUseCase), arrayOf([]), false)); var tmp$ret$154 = isInterface(tmp_166, TypeToken) ? tmp_166 : THROW_CCE(); var tmp$ret$155 = new Singleton(tmp_163, tmp_164, tmp_165, tmp$ret$154, null, true, creator_29); tmp_161.p5a(tmp$ret$155); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_167 = typeToken(createKType(getKClass(CancelRemoteContentEntryImportUseCase), arrayOf([]), false)); var tmp$ret$156 = isInterface(tmp_167, TypeToken) ? tmp_167 : THROW_CCE(); var tmp_168 = $this$$receiver.b56(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().kn3_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.p55(); var tmp_171 = this_16.o55(); var tmp_172 = this_16.q55(); // Inline function 'org.kodein.type.generic' call var tmp_173 = typeToken(createKType(getKClass(CancelRemoteContentEntryImportUseCase), 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.p5a(tmp$ret$161); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_174 = typeToken(createKType(getKClass(DismissRemoteContentEntryImportErrorUseCase), arrayOf([]), false)); var tmp$ret$162 = isInterface(tmp_174, TypeToken) ? tmp_174 : THROW_CCE(); var tmp_175 = $this$$receiver.b56(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().kn3_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.p55(); var tmp_178 = this_17.o55(); var tmp_179 = this_17.q55(); // Inline function 'org.kodein.type.generic' call var tmp_180 = typeToken(createKType(getKClass(DismissRemoteContentEntryImportErrorUseCase), 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.p5a(tmp$ret$167); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_181 = typeToken(createKType(getKClass(XXStringHasher), arrayOf([]), false)); var tmp$ret$168 = isInterface(tmp_181, TypeToken) ? tmp_181 : THROW_CCE(); var tmp_182 = $this$$receiver.b56(tmp$ret$168, null, null); // Inline function 'org.kodein.di.singleton' call var creator_32 = DomainDiModuleJs$lambda$lambda_32; var tmp_183 = $this$$receiver.p55(); var tmp_184 = $this$$receiver.o55(); var tmp_185 = $this$$receiver.q55(); // Inline function 'org.kodein.type.generic' call var tmp_186 = typeToken(createKType(getKClass(XXStringHasherJs), arrayOf([]), false)); var tmp$ret$170 = isInterface(tmp_186, TypeToken) ? tmp_186 : THROW_CCE(); var tmp$ret$171 = new Singleton(tmp_183, tmp_184, tmp_185, tmp$ret$170, null, true, creator_32); tmp_182.p5a(tmp$ret$171); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_187 = typeToken(createKType(getKClass(XXHasher64Factory), arrayOf([]), false)); var tmp$ret$172 = isInterface(tmp_187, TypeToken) ? tmp_187 : THROW_CCE(); var tmp_188 = $this$$receiver.b56(tmp$ret$172, null, null); // Inline function 'org.kodein.di.singleton' call var creator_33 = DomainDiModuleJs$lambda$lambda_33; var tmp_189 = $this$$receiver.p55(); var tmp_190 = $this$$receiver.o55(); var tmp_191 = $this$$receiver.q55(); // Inline function 'org.kodein.type.generic' call var tmp_192 = typeToken(createKType(getKClass(XXHasher64FactoryJs), arrayOf([]), false)); var tmp$ret$174 = isInterface(tmp_192, TypeToken) ? tmp_192 : THROW_CCE(); var tmp$ret$175 = new Singleton(tmp_189, tmp_190, tmp_191, tmp$ret$174, null, true, creator_33); tmp_188.p5a(tmp$ret$175); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_193 = typeToken(createKType(getKClass(StoreActivitiesUseCase), arrayOf([]), false)); var tmp$ret$176 = isInterface(tmp_193, TypeToken) ? tmp_193 : THROW_CCE(); var tmp_194 = $this$$receiver.b56(tmp$ret$176, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_17 = Companion_getInstance_17().kn3_1; // Inline function 'org.kodein.type.generic' call var tmp_195 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$178 = isInterface(tmp_195, TypeToken) ? tmp_195 : THROW_CCE(); var this_18 = new ImplWithScope(tmp$ret$178, scope_17); var creator_34 = DomainDiModuleJs$lambda$lambda_34; var tmp_196 = this_18.p55(); var tmp_197 = this_18.o55(); var tmp_198 = this_18.q55(); // Inline function 'org.kodein.type.generic' call var tmp_199 = typeToken(createKType(getKClass(StoreActivitiesUseCase), 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_194.p5a(tmp$ret$181); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_200 = typeToken(createKType(getKClass(XapiStatementResource), arrayOf([]), false)); var tmp$ret$182 = isInterface(tmp_200, TypeToken) ? tmp_200 : THROW_CCE(); var tmp_201 = $this$$receiver.b56(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().kn3_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.p55(); var tmp_204 = this_19.o55(); var tmp_205 = this_19.q55(); // Inline function 'org.kodein.type.generic' call var tmp_206 = typeToken(createKType(getKClass(XapiStatementResource), 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.p5a(tmp$ret$187); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_207 = typeToken(createKType(getKClass(SaveStatementOnClearUseCase), arrayOf([]), false)); var tmp$ret$188 = isInterface(tmp_207, TypeToken) ? tmp_207 : THROW_CCE(); var tmp_208 = $this$$receiver.b56(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().kn3_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.p55(); var tmp_211 = this_20.o55(); var tmp_212 = this_20.q55(); // Inline function 'org.kodein.type.generic' call var tmp_213 = typeToken(createKType(getKClass(SaveStatementOnClearUseCaseJs), 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.p5a(tmp$ret$193); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_214 = typeToken(createKType(getKClass(SaveStatementOnUnloadUseCase), arrayOf([]), false)); var tmp$ret$194 = isInterface(tmp_214, TypeToken) ? tmp_214 : THROW_CCE(); var tmp_215 = $this$$receiver.b56(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().kn3_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.p55(); var tmp_218 = this_21.o55(); var tmp_219 = this_21.q55(); // Inline function 'org.kodein.type.generic' call var tmp_220 = typeToken(createKType(getKClass(SaveStatementOnUnloadUseCaseJs), 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.p5a(tmp$ret$199); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_221 = typeToken(createKType(getKClass(NonInteractiveContentXapiStatementRecorderFactory), arrayOf([]), false)); var tmp$ret$200 = isInterface(tmp_221, TypeToken) ? tmp_221 : THROW_CCE(); var tmp_222 = $this$$receiver.b56(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().kn3_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.p55(); var tmp_225 = this_22.o55(); var tmp_226 = this_22.q55(); // Inline function 'org.kodein.type.generic' call var tmp_227 = typeToken(createKType(getKClass(NonInteractiveContentXapiStatementRecorderFactory), 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.p5a(tmp$ret$205); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_228 = typeToken(createKType(getKClass(AddNewPersonUseCase), arrayOf([]), false)); var tmp$ret$206 = isInterface(tmp_228, TypeToken) ? tmp_228 : THROW_CCE(); var tmp_229 = $this$$receiver.b56(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().kn3_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.p55(); var tmp_232 = this_23.o55(); var tmp_233 = this_23.q55(); // Inline function 'org.kodein.type.generic' call var tmp_234 = typeToken(createKType(getKClass(AddNewPersonUseCase), 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.p5a(tmp$ret$211); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_235 = typeToken(createKType(getKClass(GetSubtitleTrackFromUriUseCase), arrayOf([]), false)); var tmp$ret$212 = isInterface(tmp_235, TypeToken) ? tmp_235 : THROW_CCE(); var tmp_236 = $this$$receiver.b56(tmp$ret$212, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_23 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_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.p55(); var tmp_239 = this_24.o55(); var tmp_240 = this_24.q55(); // Inline function 'org.kodein.type.generic' call var tmp_241 = typeToken(createKType(getKClass(GetSubtitleTrackFromUriUseCaseJs), 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.p5a(tmp$ret$217); return Unit_instance; }; } function StringProviderJs(locale, jsStringProvider) { this.i10k_1 = locale; this.j10k_1 = jsStringProvider; } protoOf(StringProviderJs).qpe = function (stringResource) { return stringResource.mlj(this.j10k_1, this.i10k_1); }; protoOf(StringProviderJs).k10k = function (stringResource, args) { return stringResource.nlj(this.j10k_1, this.i10k_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.d72_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_197() { this.l10k_1 = '_handleId'; } var Companion_instance_246; function Companion_getInstance_214() { return Companion_instance_246; } function SavedStateHandle2(history, searchParams) { this.m10k_1 = history; this.n10k_1 = searchParams; var storedHandleId = this.ba('_handleId'); if (storedHandleId == null) { this.o10k_1 = Default_getInstance_0().fg().toString(); setStateKey(this.m10k_1, this, '_handleId', this.o10k_1); } else { this.o10k_1 = storedHandleId; } } protoOf(SavedStateHandle2).app = function (key, value) { var tmp0_safe_receiver = this.m10k_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.o10k_1) { throw IllegalStateException_init_$Create$('SavedState cannot save values after the user has changed page'); } if (!(value == null)) { setStateKey(this.m10k_1, this, key, value); } }; protoOf(SavedStateHandle2).ba = function (key) { var tmp0_safe_receiver = this.m10k_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.n10k_1.get(key) : tmp3_elvis_lhs; }; function UrlKmp(url) { return new UrlKmpJs(new URL(url)); } function UrlKmpJs(url) { this.p10k_1 = url; } protoOf(UrlKmpJs).toString = function () { return toString(this.p10k_1); }; protoOf(UrlKmpJs).boc = function (path) { return new UrlKmpJs(new URL(path, toString(this.p10k_1))); }; function Companion_198() { } protoOf(Companion_198).wpi = function (text) { return encodeURIComponent(text); }; protoOf(Companion_198).vpi = function (text) { return decodeURIComponent(text); }; var Companion_instance_247; function Companion_getInstance_215() { return Companion_instance_247; } function UstadAntilog(defaultTag) { defaultTag = defaultTag === VOID ? 'NoTag' : defaultTag; Antilog.call(this); this.q10k_1 = defaultTag; } protoOf(UstadAntilog).g5d = 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).i5d = function (priority, tag, throwable, message) { var logTag = tag == null ? this.q10k_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.r10k_1 = headers; } protoOf(JsHeaderStringValuesAdapter).a2n = function (key) { var tmp0_safe_receiver = this.r10k_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).b2n = function () { return toSet_0(this.r10k_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).p56 = get_diContext; protoOf(AuthManager).q56 = get_diTrigger; protoOf($serializer).y4f = typeParametersSerializers; protoOf($serializer_0).y4f = typeParametersSerializers; protoOf($serializer_1).y4f = typeParametersSerializers; protoOf($serializer_2).y4f = typeParametersSerializers; protoOf($serializer_3).y4f = typeParametersSerializers; protoOf($serializer_4).y4f = typeParametersSerializers; protoOf($serializer_5).y4f = typeParametersSerializers; protoOf($serializer_6).y4f = typeParametersSerializers; protoOf($serializer_7).y4f = typeParametersSerializers; protoOf($serializer_8).y4f = typeParametersSerializers; protoOf($serializer_9).y4f = typeParametersSerializers; protoOf($serializer_10).y4f = typeParametersSerializers; protoOf($serializer_11).y4f = typeParametersSerializers; protoOf($serializer_12).y4f = typeParametersSerializers; protoOf($serializer_13).y4f = typeParametersSerializers; protoOf($serializer_14).y4f = typeParametersSerializers; protoOf($serializer_15).y4f = typeParametersSerializers; protoOf($serializer_16).y4f = typeParametersSerializers; protoOf($serializer_17).y4f = typeParametersSerializers; protoOf($serializer_18).y4f = typeParametersSerializers; protoOf($serializer_19).y4f = typeParametersSerializers; protoOf($serializer_20).y4f = typeParametersSerializers; protoOf($serializer_21).y4f = typeParametersSerializers; protoOf($serializer_22).y4f = typeParametersSerializers; protoOf($serializer_23).y4f = typeParametersSerializers; protoOf($serializer_24).y4f = typeParametersSerializers; protoOf($serializer_25).y4f = typeParametersSerializers; protoOf($serializer_26).y4f = typeParametersSerializers; protoOf($serializer_27).y4f = typeParametersSerializers; protoOf($serializer_28).y4f = typeParametersSerializers; protoOf($serializer_29).y4f = typeParametersSerializers; protoOf($serializer_30).y4f = typeParametersSerializers; protoOf($serializer_31).y4f = typeParametersSerializers; protoOf($serializer_32).y4f = typeParametersSerializers; protoOf($serializer_33).y4f = typeParametersSerializers; protoOf($serializer_34).y4f = typeParametersSerializers; protoOf($serializer_35).y4f = typeParametersSerializers; protoOf($serializer_36).y4f = typeParametersSerializers; protoOf($serializer_37).y4f = typeParametersSerializers; protoOf($serializer_38).y4f = typeParametersSerializers; protoOf($serializer_39).y4f = typeParametersSerializers; protoOf($serializer_40).y4f = typeParametersSerializers; protoOf($serializer_41).y4f = typeParametersSerializers; protoOf($serializer_42).y4f = typeParametersSerializers; protoOf($serializer_43).y4f = typeParametersSerializers; protoOf($serializer_44).y4f = typeParametersSerializers; protoOf($serializer_45).y4f = typeParametersSerializers; protoOf($serializer_46).y4f = typeParametersSerializers; protoOf($serializer_47).y4f = typeParametersSerializers; protoOf($serializer_48).y4f = typeParametersSerializers; protoOf($serializer_49).y4f = typeParametersSerializers; protoOf($serializer_50).y4f = typeParametersSerializers; protoOf($serializer_51).y4f = typeParametersSerializers; protoOf($serializer_52).y4f = typeParametersSerializers; protoOf($serializer_53).y4f = typeParametersSerializers; protoOf(CommandFlowUstadNavController).fog = navigate$default; protoOf(UstadViewModel).p56 = get_diContext; protoOf(UstadViewModel).q56 = get_diTrigger; protoOf($serializer_54).y4f = typeParametersSerializers; protoOf($serializer_55).y4f = typeParametersSerializers; protoOf($serializer_56).y4f = typeParametersSerializers; protoOf($serializer_57).y4f = typeParametersSerializers; protoOf($serializer_58).y4f = typeParametersSerializers; protoOf($serializer_59).y4f = typeParametersSerializers; protoOf($serializer_60).y4f = typeParametersSerializers; protoOf(SaveLocalUrisAsBlobUseCaseJs).ao1 = invoke$default; protoOf(CompressImageUseCaseJs).mo3 = invoke$default_2; protoOf(GetSubtitleTrackFromUriUseCaseJs).mod = invoke$default_3; protoOf(SetLanguageUseCaseJs).boq = invoke$default_4; protoOf(ChunkedUploadClientLocalUriUseCaseJs).yov = invoke$default_5; //endregion //region block: init Companion_instance_48 = new Companion(); Companion_instance_50 = new Companion_1(); Companion_instance_51 = new Companion_2(); Companion_instance_53 = new Companion_4(); Companion_instance_54 = new Companion_5(); Companion_instance_55 = new Companion_6(); BodySerializer_instance = new BodySerializer(); Companion_instance_56 = new Companion_7(); Companion_instance_57 = new Companion_8(); Companion_instance_58 = new Companion_9(); Companion_instance_60 = new Companion_11(); Companion_instance_65 = new Companion_16(); Companion_instance_66 = new Companion_17(); Companion_instance_67 = new Companion_18(); Companion_instance_68 = new Companion_19(); Companion_instance_69 = new Companion_20(); Companion_instance_70 = new Companion_21(); Companion_instance_71 = new Companion_22(); Companion_instance_73 = new Companion_24(); Companion_instance_75 = new Companion_26(); Companion_instance_80 = new Companion_31(); Companion_instance_81 = new Companion_32(); Companion_instance_82 = new Companion_33(); Companion_instance_83 = new Companion_34(); Companion_instance_84 = new Companion_35(); Companion_instance_85 = new Companion_36(); Companion_instance_87 = new Companion_38(); Companion_instance_88 = new Companion_39(); Companion_instance_89 = new Companion_40(); Companion_instance_90 = new Companion_41(); Companion_instance_92 = new Companion_43(); Companion_instance_93 = new Companion_44(); Companion_instance_94 = new Companion_45(); Companion_instance_95 = new Companion_46(); Companion_instance_96 = new Companion_47(); Companion_instance_97 = new Companion_48(); Companion_instance_98 = new Companion_49(); Companion_instance_99 = new Companion_50(); 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_101 = new Companion_52(); Companion_instance_104 = new Companion_55(); Companion_instance_105 = new Companion_56(); Companion_instance_107 = new Companion_58(); XapiInteractionTypeSerializer_instance = new XapiInteractionTypeSerializer(); XapiObjectTypeSerializer_instance = new XapiObjectTypeSerializer(); Companion_instance_112 = new Companion_63(); XAPI_RESULT_EXTENSION_PROGRESS = 'https://w3id.org/xapi/cmi5/result/extensions/progress'; Companion_instance_115 = new Companion_66(); Companion_instance_116 = new Companion_67(); VERB_COMPLETED = 'http://adlnet.gov/expapi/verbs/completed'; VERB_PROGRESSED = 'http://adlnet.gov/expapi/verbs/progressed'; Companion_instance_122 = new Companion_73(); Companion_instance_123 = new Companion_74(); Companion_instance_124 = new Companion_75(); Companion_instance_125 = new Companion_76(); Companion_instance_127 = new Companion_78(); DiTag_instance = new DiTag(); MS_PER_HOUR = 3600000; MS_PER_MIN = 60000; Companion_instance_129 = new Companion_80(); UNSET_DISTANT_FUTURE = new Long(-289930240, 1689); Companion_instance_130 = new Companion_81(); Companion_instance_131 = new Companion_82(); Companion_instance_132 = new Companion_83(); Companion_instance_133 = new Companion_84(); Companion_instance_134 = new Companion_85(); Companion_instance_135 = new Companion_86(); Companion_instance_136 = new Companion_87(); Companion_instance_137 = new Companion_88(); Companion_instance_138 = new Companion_89(); Companion_instance_141 = new Companion_92(); Companion_instance_142 = new Companion_93(); Companion_instance_143 = new Companion_94(); Companion_instance_144 = new Companion_95(); Companion_instance_145 = new Companion_96(); Companion_instance_146 = new Companion_97(); Companion_instance_147 = new Companion_98(); Companion_instance_148 = new Companion_99(); Companion_instance_150 = new Companion_101(); Companion_instance_152 = new Companion_103(); Companion_instance_153 = new Companion_104(); Companion_instance_154 = new Companion_105(); Companion_instance_155 = new Companion_106(); Companion_instance_156 = new Companion_107(); Companion_instance_158 = new Companion_109(); Companion_instance_159 = new Companion_110(); Companion_instance_160 = new Companion_111(); Companion_instance_161 = new Companion_112(); Companion_instance_162 = new Companion_113(); Companion_instance_163 = new Companion_114(); Companion_instance_166 = new Companion_117(); Companion_instance_167 = new Companion_118(); Companion_instance_168 = new Companion_119(); Companion_instance_169 = new Companion_120(); Companion_instance_170 = new Companion_121(); Companion_instance_171 = new Companion_122(); Companion_instance_173 = new Companion_124(); Companion_instance_174 = new Companion_125(); Companion_instance_176 = new Companion_127(); Companion_instance_177 = new Companion_128(); Companion_instance_178 = new Companion_129(); Companion_instance_179 = new Companion_130(); Companion_instance_180 = new Companion_131(); Companion_instance_181 = new Companion_132(); Companion_instance_182 = new Companion_133(); Companion_instance_183 = new Companion_134(); 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_192 = new Companion_143(); Companion_instance_193 = new Companion_144(); Companion_instance_197 = new Companion_148(); Companion_instance_198 = new Companion_149(); Companion_instance_199 = new Companion_150(); Companion_instance_200 = new Companion_151(); Companion_instance_202 = new Companion_153(); Companion_instance_203 = new Companion_154(); Companion_instance_204 = new Companion_155(); Companion_instance_205 = new Companion_156(); 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_210 = new Companion_161(); Companion_instance_212 = new Companion_163(); Companion_instance_213 = new Companion_164(); Companion_instance_214 = new Companion_165(); PersonViewModelConstants_instance = new PersonViewModelConstants(); Companion_instance_215 = new Companion_166(); Companion_instance_216 = new Companion_167(); Companion_instance_217 = new Companion_168(); Companion_instance_219 = new Companion_170(); Companion_instance_220 = new Companion_171(); Companion_instance_221 = new Companion_172(); Companion_instance_222 = new Companion_173(); Companion_instance_224 = new Companion_175(); Companion_instance_226 = new Companion_177(); Companion_instance_227 = new Companion_178(); Companion_instance_228 = new Companion_179(); 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_235 = new Companion_186(); Companion_instance_236 = new Companion_187(); Companion_instance_237 = new Companion_188(); Companion_instance_239 = new Companion_190(); Companion_instance_240 = new Companion_191(); Companion_instance_241 = new Companion_192(); Companion_instance_242 = new Companion_193(); Companion_instance_243 = new Companion_194(); NAVHOST_CLEARSTACK_VIEWNAME = 'ClearStack'; Companion_instance_244 = new Companion_195(); Companion_instance_245 = new Companion_196(); Companion_instance_246 = new Companion_197(); Companion_instance_247 = new Companion_198(); //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 = GetContentManifestUseCase; _.$_$.l = EnrolIntoCourseUseCase; _.$_$.m = get_entries; _.$_$.n = ContentEntryGetMetadataStatus; _.$_$.o = VersionInfo; _.$_$.p = GetVersionUseCase; _.$_$.q = ClazzInviteRedeemUseCase; _.$_$.r = GoToLearningSpaceUseCaseJs; _.$_$.s = GoToLearningSpaceUseCase; _.$_$.t = GetLocalAccountsSupportedUseCase; _.$_$.u = OnClickLinkUseCase; _.$_$.v = OpenExternalLinkUseCase; _.$_$.w = BulkAddPersonsFromLocalUriUseCaseJs; _.$_$.x = BulkAddPersonsFromLocalUriUseCase; _.$_$.y = GetShowPoweredByUseCase; _.$_$.z = DismissSocialWarningUseCase; _.$_$.a1 = ShowSocialWarningUseCase; _.$_$.b1 = collectAsState; _.$_$.c1 = useCoroutineScope; _.$_$.d1 = useLaunchedEffect; _.$_$.e1 = useNavControllerEffect; _.$_$.f1 = useOnUnloadEffect; _.$_$.g1 = useStringProvider; _.$_$.h1 = useViewModel; _.$_$.i1 = get_ustadViewName; _.$_$.j1 = AppUiState; _.$_$.k1 = SnackBarDispatcher; _.$_$.l1 = TabItem; _.$_$.m1 = BuildConfigMap; _.$_$.n1 = GenderConfig; _.$_$.o1 = SupportedLanguagesConfig; _.$_$.p1 = SystemUrlConfig; _.$_$.q1 = UstadBuildConfig; _.$_$.r1 = DomainDiModuleJs; _.$_$.s1 = commonDomainDiModule; _.$_$.t1 = StringProviderJs; _.$_$.u1 = mapLookup; _.$_$.v1 = CommandFlowUstadNavController; _.$_$.w1 = NavResultReturnerImpl; _.$_$.x1 = NavResultReturner; _.$_$.y1 = UstadMobileSystemImpl; _.$_$.z1 = BitmaskFlag; _.$_$.a2 = ListPagingSource; _.$_$.b2 = RefreshCommand; _.$_$.c2 = get_totalAttendeeStatusRecorded; _.$_$.d2 = capitalizeFirstLetter; _.$_$.e2 = chopOffSeconds_0; _.$_$.f2 = chopOffSeconds; _.$_$.g2 = filterByFlags; _.$_$.h2 = forEach; _.$_$.i2 = formattedString; _.$_$.j2 = getOrPut; _.$_$.k2 = hasFlag_0; _.$_$.l2 = htmlToPlainText; _.$_$.m2 = initial; _.$_$.n2 = maxScoreSummedIfModule; _.$_$.o2 = penaltyPercentage; _.$_$.p2 = personFullName; _.$_$.q2 = get_progressAsFloat; _.$_$.r2 = requirePostfix; _.$_$.s2 = rgbColorProperty; _.$_$.t2 = textLength; _.$_$.u2 = toDisplayString; _.$_$.v2 = toNullIfBlank; _.$_$.w2 = toTerminologyEntries; _.$_$.x2 = get_MS_PER_HOUR; _.$_$.y2 = get_MS_PER_MIN; _.$_$.z2 = MessageIdOption2; _.$_$.a3 = SortOrderOption; _.$_$.b3 = UstadAntilog; _.$_$.c3 = avatarColorForName; _.$_$.d3 = OpenLicensesViewModel; _.$_$.e3 = AccountListUiState; _.$_$.f3 = AccountListViewModel; _.$_$.g3 = ClazzDetailUiState; _.$_$.h3 = ClazzDetailViewModel; _.$_$.i3 = ClazzDetailOverviewUiState; _.$_$.j3 = ClazzDetailOverviewViewModel; _.$_$.k3 = ClazzEditUiState; _.$_$.l3 = ClazzEditViewModel; _.$_$.m3 = ClazzGradebookUiState; _.$_$.n3 = ClazzGradebookViewModel; _.$_$.o3 = aggregateIfModule; _.$_$.p3 = displayMarkFor; _.$_$.q3 = maxScoreForBlock; _.$_$.r3 = get_thumbnailUri; _.$_$.s3 = ClazzInviteRedeemUiState; _.$_$.t3 = ClazzInviteRedeemViewModel; _.$_$.u3 = InviteViaContactUiState; _.$_$.v3 = InviteViaContactViewModel; _.$_$.w3 = InviteViaLinkUiState; _.$_$.x3 = InviteViaLinkViewModel; _.$_$.y3 = JoinWithCodeUiState; _.$_$.z3 = JoinWithCodeViewModel; _.$_$.a4 = ClazzListUiState; _.$_$.b4 = ClazzListViewModel; _.$_$.c4 = CoursePermissionDetailUiState; _.$_$.d4 = CoursePermissionDetailViewModel; _.$_$.e4 = CoursePermissionEditUiState; _.$_$.f4 = CoursePermissionEditViewModel; _.$_$.g4 = CoursePermissionListUiState; _.$_$.h4 = CoursePermissionListViewModel; _.$_$.i4 = get_blockTypeStringResource; _.$_$.j4 = defaultCourseBannerImageIndex; _.$_$.k4 = AssignmentSubmitterSummaryUiState; _.$_$.l4 = ClazzAssignmentDetailSubmissionsTabUiState; _.$_$.m4 = ClazzAssignmentDetailSubmissionsTabViewModel; _.$_$.n4 = get_listItemUiState; _.$_$.o4 = ClazzAssignmentDetailUiState; _.$_$.p4 = ClazzAssignmentDetailViewModel; _.$_$.q4 = ClazzAssignmentDetailOverviewUiState; _.$_$.r4 = ClazzAssignmentDetailOverviewViewModel; _.$_$.s4 = ClazzAssignmentDetailoverviewSubmissionUiState; _.$_$.t4 = ClazzAssignmentEditUiState; _.$_$.u4 = ClazzAssignmentEditViewModel; _.$_$.v4 = PeerReviewerAllocationEditUIState; _.$_$.w4 = PeerReviewerAllocationEditViewModel; _.$_$.x4 = ClazzAssignmentSubmitterDetailUiState; _.$_$.y4 = ClazzAssignmentSubmitterDetailViewModel; _.$_$.z4 = get_entries_1; _.$_$.a5 = values_2; _.$_$.b5 = UstadCourseAssignmentMarkListItemUiState; _.$_$.c5 = avatarColorName; _.$_$.d5 = avatarName; _.$_$.e5 = get_isFromSubmitterGroup; _.$_$.f5 = ClazzMemberListUiState; _.$_$.g5 = ClazzMemberListViewModel; _.$_$.h5 = ClazzEnrolmentEditUiState; _.$_$.i5 = ClazzEnrolmentEditViewModel; _.$_$.j5 = ClazzEnrolmentListUiState; _.$_$.k5 = ClazzEnrolmentListViewModel; _.$_$.l5 = ClazzLogListAttendanceUiState; _.$_$.m5 = ClazzLogListAttendanceViewModel; _.$_$.n5 = ClazzLogEditUiState; _.$_$.o5 = ClazzLogEditViewModel; _.$_$.p5 = ClazzLogEditAttendanceUiState; _.$_$.q5 = ClazzLogEditAttendanceViewModel; _.$_$.r5 = ContentEntryDetailUiState; _.$_$.s5 = ContentEntryDetailViewModel; _.$_$.t5 = ContentEntryDetailOverviewUiState; _.$_$.u5 = ContentEntryDetailOverviewViewModel; _.$_$.v5 = get_progress; _.$_$.w5 = ContentEntryEditUiState; _.$_$.x5 = ContentEntryEditViewModel; _.$_$.y5 = ContentEntryGetMetadataUiState; _.$_$.z5 = ContentEntryGetMetadataViewModel; _.$_$.a6 = GetSubtitleUiState; _.$_$.b6 = GetSubtitleViewModel; _.$_$.c6 = ContentEntryImportLinkUiState; _.$_$.d6 = ContentEntryImportLinkViewModel; _.$_$.e6 = ContentEntryListItemUiState; _.$_$.f6 = ContentEntryListUiState; _.$_$.g6 = ContentEntryListViewModel; _.$_$.h6 = get_listItemUiState_0; _.$_$.i6 = SubtitleEditUiState; _.$_$.j6 = SubtitleEditViewModel; _.$_$.k6 = get_contentTypeStringResource; _.$_$.l6 = get_stringResource; _.$_$.m6 = CourseBlockEditUiState; _.$_$.n6 = CourseBlockEditViewModel; _.$_$.o6 = TextBlockDetailUiState; _.$_$.p6 = TextBlockDetailViewModel; _.$_$.q6 = CourseGroupSetDetailUiState; _.$_$.r6 = CourseGroupSetDetailViewModel; _.$_$.s6 = CourseGroupSetEditUiState; _.$_$.t6 = CourseGroupSetEditViewModel; _.$_$.u6 = appendGroupNumIfNotInList; _.$_$.v6 = CourseGroupSetListUiState; _.$_$.w6 = CourseGroupSetListViewModel; _.$_$.x6 = CourseTerminologyEditUiState; _.$_$.y6 = CourseTerminologyEditViewModel; _.$_$.z6 = CourseTerminologyListUiState; _.$_$.a7 = CourseTerminologyListViewModel; _.$_$.b7 = DeletedItemListUiState; _.$_$.c7 = DeletedItemListViewModel; _.$_$.d7 = get_delItemContentTypeStringResource; _.$_$.e7 = CourseDiscussionDetailUiState; _.$_$.f7 = CourseDiscussionDetailViewModel; _.$_$.g7 = DiscussionPostDetailUiState2; _.$_$.h7 = DiscussionPostDetailViewModel; _.$_$.i7 = DiscussionPostEditUiState; _.$_$.j7 = DiscussionPostEditViewModel; _.$_$.k7 = EpubContentUiState; _.$_$.l7 = EpubContentViewModel; _.$_$.m7 = EpubScrollCommand; _.$_$.n7 = LoginUiState; _.$_$.o7 = LoginViewModel; _.$_$.p7 = ConversationListUiState; _.$_$.q7 = ConversationListViewModel; _.$_$.r7 = MessageListUiState; _.$_$.s7 = MessageListViewModel; _.$_$.t7 = daysUntil_0; _.$_$.u7 = ParentalConsentManagementUiState; _.$_$.v7 = ParentalConsentManagementViewModel; _.$_$.w7 = PdfContentUiState; _.$_$.x7 = PdfContentViewModel; _.$_$.y7 = PersonAccountEditUiState; _.$_$.z7 = PersonAccountEditViewModel; _.$_$.a8 = PersonUsernameAndPasswordModel; _.$_$.b8 = BulkAddPersonRunImportUiState; _.$_$.c8 = BulkAddPersonRunImportViewModel; _.$_$.d8 = BulkAddPersonSelectFileUiState; _.$_$.e8 = BulkAddPersonSelectFileViewModel; _.$_$.f8 = AddChildProfilesUiState; _.$_$.g8 = AddChildProfilesViewModel; _.$_$.h8 = EditChildProfileUiState; _.$_$.i8 = EditChildProfileViewModel; _.$_$.j8 = PersonDetailUiState; _.$_$.k8 = PersonDetailViewModel; _.$_$.l8 = PersonEditUiState; _.$_$.m8 = PersonEditViewModel; _.$_$.n8 = LearningSpaceListUiState; _.$_$.o8 = LearningSpaceListViewModel; _.$_$.p8 = PersonListUiState; _.$_$.q8 = PersonListViewModel; _.$_$.r8 = RegisterAgeRedirectUiState; _.$_$.s8 = RegisterAgeRedirectViewModel; _.$_$.t8 = RegisterMinorWaitForParentUiState; _.$_$.u8 = RegisterMinorWaitForParentViewModel; _.$_$.v8 = RedirectViewModel; _.$_$.w8 = ScheduleEditUiState; _.$_$.x8 = ScheduleEditViewModel; _.$_$.y8 = SettingsUiState; _.$_$.z8 = SettingsViewModel; _.$_$.a9 = SignUpUiState; _.$_$.b9 = SignUpViewModel; _.$_$.c9 = SignupEnterUsernamePasswordUiState; _.$_$.d9 = SignupEnterUsernamePasswordViewModel; _.$_$.e9 = SiteDetailUiState; _.$_$.f9 = SiteDetailViewModel; _.$_$.g9 = SiteEditUiState; _.$_$.h9 = SiteEditViewModel; _.$_$.i9 = SiteTermsDetailUiState; _.$_$.j9 = SiteTermsDetailViewModel; _.$_$.k9 = LearningSpaceEnterLinkUiState; _.$_$.l9 = LearningSpaceEnterLinkViewModel; _.$_$.m9 = SystemPermissionDetailUiState; _.$_$.n9 = SystemPermissionDetailViewModel; _.$_$.o9 = SystemPermissionEditUiState; _.$_$.p9 = SystemPermissionEditViewModel; _.$_$.q9 = TimeZoneListViewModel; _.$_$.r9 = TimezoneListUiState; _.$_$.s9 = VideoContentUiState; _.$_$.t9 = MediaPlayState; _.$_$.u9 = VideoContentViewModel; _.$_$.v9 = XapiContentUiState; _.$_$.w9 = XapiContentViewModel; _.$_$.x9 = AddAccountSelectNewOrExistingUiState; _.$_$.y9 = AddAccountSelectNewOrExistingUserTypeUiState; _.$_$.z9 = AddAccountSelectNewOrExistingUserTypeViewModel; _.$_$.aa = AddAccountSelectNewOrExistingViewModel; _.$_$.ba = ErrorReportUiState; _.$_$.ca = HolidayCalendarDetailUIState; _.$_$.da = HolidayCalendarEditUiState; _.$_$.ea = HolidayCalendarListUiState; _.$_$.fa = LanguageDetailUiState; _.$_$.ga = LanguageEditUiState; _.$_$.ha = LanguageListUiState; _.$_$.ia = LeavingReasonEditUiState; _.$_$.ja = LeavingReasonEditViewModel; _.$_$.ka = ReportFilterEditUiState; _.$_$.la = ScopedGrantDetailUiState; _.$_$.ma = ScopedGrantEditUiState; _.$_$.na = CompressionLevel_MEDIUM_getInstance; _.$_$.oa = LinkTarget_DEFAULT_getInstance; _.$_$.pa = AppBarColors_SELECTION_MODE_getInstance; _.$_$.qa = AppBarColors_STANDARD_getInstance; _.$_$.ra = FabIcon_ADD_getInstance; _.$_$.sa = FabIcon_EDIT_getInstance; _.$_$.ta = State_INDETERMINATE_getInstance; _.$_$.ua = MarkingType_PEERS_getInstance; _.$_$.va = TextLimitType_LIMIT_WORDS_getInstance; _.$_$.wa = SupportedLanguagesConfig_init_$Create$; _.$_$.xa = _AssignmentSubmitterSummaryUiState___get_fileSubmissionStatusIconVisible__impl__so25h0; _.$_$.ya = _AssignmentSubmitterSummaryUiState___get_latestPrivateCommentVisible__impl__bdq0p0; _.$_$.za = _ContentEntryListItemUiState___get_contentEntry__impl__3g9nl2; _.$_$.ab = _ContentEntryListItemUiState___get_descriptionVisible__impl__xyu083; _.$_$.bb = _ContentEntryListItemUiState___get_mimetypeVisible__impl__l8r8g7; _.$_$.cb = Companion_getInstance_17; _.$_$.db = PersonConstants_getInstance; _.$_$.eb = SubmissionConstants_getInstance; _.$_$.fb = Companion_getInstance_54; _.$_$.gb = Companion_instance_93; _.$_$.hb = Companion_instance_98; _.$_$.ib = Companion_instance_122; _.$_$.jb = Companion_instance_123; _.$_$.kb = Companion_instance_124; _.$_$.lb = Companion_instance_125; _.$_$.mb = ClazzEnrolmentListConstants_getInstance; _.$_$.nb = ConditionConstants_getInstance; _.$_$.ob = ContentCompletionStatusConstants_getInstance; _.$_$.pb = EnrolmentPolicyConstants_getInstance; _.$_$.qb = FieldConstants_getInstance; _.$_$.rb = LicenceConstants_getInstance; _.$_$.sb = OutcomeConstants_getInstance; _.$_$.tb = PersonParentJoinConstants_getInstance; _.$_$.ub = RoleConstants_getInstance; _.$_$.vb = ScheduleConstants_getInstance; _.$_$.wb = SubmissionPolicyConstants_getInstance; _.$_$.xb = UstadMobileConstants_getInstance; _.$_$.yb = Companion_getInstance_88; _.$_$.zb = DiTag_instance; _.$_$.ac = Companion_getInstance_96; _.$_$.bc = UMFileUtil_getInstance; _.$_$.cc = Companion_instance_129; _.$_$.dc = Companion_instance_131; _.$_$.ec = Companion_instance_132; _.$_$.fc = Companion_instance_133; _.$_$.gc = Companion_instance_135; _.$_$.hc = Companion_instance_136; _.$_$.ic = Companion_instance_137; _.$_$.jc = Companion_instance_138; _.$_$.kc = Companion_instance_152; _.$_$.lc = Companion_instance_153; _.$_$.mc = Companion_instance_154; _.$_$.nc = Companion_instance_155; _.$_$.oc = Companion_instance_156; _.$_$.pc = Companion_instance_158; _.$_$.qc = Companion_instance_159; _.$_$.rc = Companion_instance_161; _.$_$.sc = Companion_instance_162; _.$_$.tc = Companion_instance_163; _.$_$.uc = Companion_getInstance_133; _.$_$.vc = Companion_getInstance_132; _.$_$.wc = Companion_instance_166; _.$_$.xc = Companion_instance_167; _.$_$.yc = Companion_instance_168; _.$_$.zc = Companion_instance_171; _.$_$.ad = Companion_instance_170; _.$_$.bd = Companion_instance_173; _.$_$.cd = Companion_instance_174; _.$_$.dd = Companion_instance_176; _.$_$.ed = Companion_instance_177; _.$_$.fd = Companion_instance_169; _.$_$.gd = ClazzAssignmentViewModelConstants_getInstance; _.$_$.hd = Companion_instance_178; _.$_$.id = Companion_instance_179; _.$_$.jd = Companion_instance_180; _.$_$.kd = Companion_instance_181; _.$_$.ld = Companion_instance_182; _.$_$.md = Companion_instance_183; _.$_$.nd = Companion_getInstance_152; _.$_$.od = Companion_instance_185; _.$_$.pd = Companion_instance_186; _.$_$.qd = Companion_instance_187; _.$_$.rd = Companion_instance_188; _.$_$.sd = Companion_instance_189; _.$_$.td = Companion_getInstance_158; _.$_$.ud = Companion_instance_193; _.$_$.vd = Companion_getInstance_163; _.$_$.wd = Companion_instance_197; _.$_$.xd = Companion_getInstance_162; _.$_$.yd = Companion_instance_198; _.$_$.zd = Companion_instance_199; _.$_$.ae = Companion_instance_200; _.$_$.be = Companion_instance_202; _.$_$.ce = Companion_instance_203; _.$_$.de = Companion_instance_204; _.$_$.ee = Companion_instance_205; _.$_$.fe = Companion_instance_206; _.$_$.ge = Companion_instance_207; _.$_$.he = Companion_instance_208; _.$_$.ie = Companion_instance_210; _.$_$.je = Companion_getInstance_179; _.$_$.ke = Companion_instance_212; _.$_$.le = Companion_instance_213; _.$_$.me = Companion_instance_214; _.$_$.ne = Companion_instance_215; _.$_$.oe = Companion_instance_217; _.$_$.pe = Companion_instance_219; _.$_$.qe = Companion_instance_220; _.$_$.re = Companion_instance_221; _.$_$.se = Companion_instance_222; _.$_$.te = Companion_getInstance_191; _.$_$.ue = Companion_instance_224; _.$_$.ve = Companion_getInstance_193; _.$_$.we = Companion_instance_226; _.$_$.xe = Companion_instance_227; _.$_$.ye = Companion_instance_229; _.$_$.ze = Companion_instance_231; _.$_$.af = Companion_getInstance_201; _.$_$.bf = Companion_instance_234; _.$_$.cf = Companion_instance_235; _.$_$.df = Companion_instance_236; _.$_$.ef = Companion_instance_237; _.$_$.ff = Companion_getInstance_206; _.$_$.gf = Companion_instance_239; _.$_$.hf = Companion_instance_240; _.$_$.if = Companion_instance_241; _.$_$.jf = Companion_instance_242; _.$_$.kf = Companion_instance_243; _.$_$.lf = Companion_instance_141; _.$_$.mf = Companion_instance_142; _.$_$.nf = Companion_instance_143; _.$_$.of = Companion_instance_144; _.$_$.pf = Companion_instance_145; _.$_$.qf = Companion_instance_146; _.$_$.rf = Companion_instance_147; _.$_$.sf = Companion_instance_148; _.$_$.tf = Companion_getInstance_119; _.$_$.uf = strings_getInstance; _.$_$.vf = MR_getInstance; //endregion return _; }(module.exports, require('react'), require('react-router'), require('compressorjs'), require('libphonenumber-js'), require('react-router-dom'), require('uuid'), require('./kotlin-kotlin-stdlib.js'), require('./moko-resources-resources.js'), require('./UstadMobile-lib-database.js'), require('./Kosi-Kodein-kodein-di.js'), require('./Kosi-Kaverit-kaverit.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./ktor-ktor-http.js'), require('./kotlinx-coroutines-core.js'), require('./door-door-runtime.js'), require('./ktor-ktor-client-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./Napier-napier-js-ir.js'), require('./kotlinx-atomicfu.js'), require('./xmlutil-serialization.js'), require('./xmlutil-core.js'), require('./uuid.js'), require('./UstadMobile-lib-util.js'), require('./Kotlin-DateTime-library-kotlinx-datetime-js-ir.js'), require('./urlencoder-urlencoder-lib.js'), require('./xmlpullparserkmp.js'), require('./ktor-ktor-utils.js'), require('./UstadMobile-lib-xxhashkmp-core.js'), require('./multiplatform-paging-root-paging-common.js'), require('./precompose-precompose-viewmodel.js'), require('./UstadMobile-lib-centralappconfigdb-common.js'), require('./MultiplatformSettings-multiplatform-settings.js'), require('./kotlin-react-core.js'), require('./kotlin-react.js'), require('./kotlin-web.js'), require('./kotlin-js.js'))); //# sourceMappingURL=UstadMobile-core.js.map