(function (_, $module$react, $module$react_router_h6p15h, com_ustadmobile_core_wrappers_compressorjs_default_j4zdfk, $module$libphonenumber_js_s63wkw, XXH, $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_com_github_UstadMobile_door_door_runtime, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_ktor_ktor_client_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_github_pdvrieze_xmlutil_serialization, kotlin_io_github_pdvrieze_xmlutil_core, kotlin_io_github_aakira_napier, 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_app_cash_paging_paging_common, kotlin_moe_tlaster_precompose_viewmodel, 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_io_ktor_ktor_io, 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.$_$.gi; var SupportedLocale = kotlin_dev_icerock_moko_resources.$_$.b; var listOf = kotlin_kotlin.$_$.k8; 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.$_$.vc; var objectMeta = kotlin_kotlin.$_$.uc; var setMetadataFor = kotlin_kotlin.$_$.wc; var PluralsResource = kotlin_dev_icerock_moko_resources.$_$.e; var VOID = kotlin_kotlin.$_$.f; var getBooleanHashCode = kotlin_kotlin.$_$.qb; var equals = kotlin_kotlin.$_$.nb; var classMeta = kotlin_kotlin.$_$.kb; var IllegalStateException = kotlin_kotlin.$_$.xh; var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.b2; var captureStack = kotlin_kotlin.$_$.eb; var CoroutineImpl = kotlin_kotlin.$_$.ua; var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ga; var PersonAuth2 = kotlin_com_ustadmobile_app_lib_database.$_$.i4; 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.$_$.vi; 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.$_$.fc; var On = kotlin_org_kodein_di_kodein_di.$_$.n; var Companion_instance_1 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.a3; var UmAppDatabase = kotlin_com_ustadmobile_app_lib_database.$_$.j; var Instance = kotlin_org_kodein_di_kodein_di.$_$.m; var InstanceOrNull = kotlin_org_kodein_di_kodein_di.$_$.l; 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.$_$.ud; var getPropertyCallableRef = kotlin_kotlin.$_$.tb; 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 objectCreate = kotlin_kotlin.$_$.tc; var getStringHashCode = kotlin_kotlin.$_$.ub; 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.$_$.qf; var removeSuffix = kotlin_kotlin.$_$.rf; var hashCode = kotlin_kotlin.$_$.vb; var compareValues = kotlin_kotlin.$_$.ea; 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.$_$.y4; var Person = kotlin_com_ustadmobile_app_lib_database.$_$.n4; var sortedWith = kotlin_kotlin.$_$.n9; var plus = kotlin_kotlin.$_$.y8; var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z1; var get_direct = kotlin_org_kodein_di_kodein_di.$_$.o; 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.$_$.f1; var shallowCopy = kotlin_com_ustadmobile_app_lib_database.$_$.t1; var KProperty0 = kotlin_kotlin.$_$.td; var THROW_ISE = kotlin_kotlin.$_$.ii; var getLocalDelegateReference = kotlin_kotlin.$_$.rb; var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.p; var Pair = kotlin_kotlin.$_$.di; var bodyAsText = kotlin_io_ktor_ktor_client_core.$_$.a; var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u3; var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i3; var get_doorPrimaryKeyManager = kotlin_com_github_UstadMobile_door_door_runtime.$_$.k; var Companion_instance_2 = kotlin_com_ustadmobile_app_lib_database.$_$.h8; var get_doorWrapperNodeId = kotlin_com_github_UstadMobile_door_door_runtime.$_$.l; var systemTimeInMillis = kotlin_com_github_UstadMobile_door_door_runtime.$_$.c2; var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2; var listOf_0 = kotlin_kotlin.$_$.j8; 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.$_$.z9; var toList = kotlin_kotlin.$_$.s9; var Long = kotlin_kotlin.$_$.zh; var Comparator = kotlin_kotlin.$_$.qh; var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1; 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.$_$.b1; var setBodyJson = kotlin_com_github_UstadMobile_door_door_runtime.$_$.q; var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.g; var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.q; var Exception_init_$Create$ = kotlin_kotlin.$_$.n1; var withDoorTransactionAsync = kotlin_com_github_UstadMobile_door_door_runtime.$_$.v2; var NodeIdAndAuth = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b; var toHexString = kotlin_kotlin.$_$.rg; var to = kotlin_kotlin.$_$.mj; var DoorDatabaseRepository = kotlin_com_github_UstadMobile_door_door_runtime.$_$.f2; var parameter = kotlin_io_ktor_ktor_client_core.$_$.m; 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 UmAccount = kotlin_com_ustadmobile_app_lib_database.$_$.x4; var ensureNotNull = kotlin_kotlin.$_$.yi; 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 HttpClient = kotlin_io_ktor_ktor_client_core.$_$.t; var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.o; var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.c; var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.v; var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a2; var CoroutineScope_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y1; var MutableStateFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1; var asStateFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h1; var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l; var isCharSequence = kotlin_kotlin.$_$.bc; var trim = kotlin_kotlin.$_$.ih; var toString = kotlin_kotlin.$_$.ad; 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.$_$.pe; 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.$_$.wh; 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.$_$.n8; var Companion_instance_5 = kotlin_com_ustadmobile_app_lib_database.$_$.l6; var Companion_getInstance_1 = kotlin_com_ustadmobile_app_lib_database.$_$.a7; var interfaceMeta = kotlin_kotlin.$_$.wb; var Exception = kotlin_kotlin.$_$.vh; var Exception_init_$Init$ = kotlin_kotlin.$_$.m1; var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.u1; var shallowCopy_0 = kotlin_com_ustadmobile_app_lib_database.$_$.q1; var Napier_getInstance = kotlin_io_github_aakira_napier.$_$.g; 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.$_$.s8; var XapiSessionEntity = kotlin_com_ustadmobile_app_lib_database.$_$.r2; var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.f2; var compareTo = kotlin_kotlin.$_$.lb; var mapOf_0 = kotlin_kotlin.$_$.m8; var shallowCopy_1 = kotlin_com_ustadmobile_app_lib_database.$_$.w1; var PersonNames = kotlin_com_ustadmobile_app_lib_database.$_$.g1; var first = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f; var toLong = kotlin_kotlin.$_$.yc; var toString_0 = kotlin_kotlin.$_$.lj; var CancellationException = kotlin_kotlin.$_$.fa; var Enum = kotlin_kotlin.$_$.th; 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 charSequenceLength = kotlin_kotlin.$_$.ib; 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.$_$.k; var TransferJobItemStatus_COMPLETE_getInstance = kotlin_com_ustadmobile_app_lib_database.$_$.z4; var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e; var plus_1 = kotlin_kotlin.$_$.z8; var Companion_instance_11 = kotlin_com_ustadmobile_app_lib_database.$_$.y6; var Companion_getInstance_4 = kotlin_com_ustadmobile_app_lib_database.$_$.k6; var randomString = kotlin_com_ustadmobile_app_lib_util.$_$.c; var Companion_instance_12 = kotlin_com_ustadmobile_app_lib_database.$_$.m6; var Companion_getInstance_5 = kotlin_com_ustadmobile_app_lib_database.$_$.h7; var CoursePermission = kotlin_com_ustadmobile_app_lib_database.$_$.u3; 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.$_$.f5; 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.$_$.y3; var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.i; var lazy = kotlin_kotlin.$_$.dj; var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.h2; var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v2; var enumEntries = kotlin_kotlin.$_$.ya; 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.$_$.l8; var coerceAtLeast = kotlin_kotlin.$_$.id; var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.u; var UrlEncoderUtil_getInstance = kotlin_net_thauvin_erik_urlencoder_urlencoder_lib.$_$.a; var doorNodeIdHeader = kotlin_com_github_UstadMobile_door_door_runtime.$_$.j; var $serializer_getInstance_5 = kotlin_com_ustadmobile_app_lib_database.$_$.t6; var setInputString = kotlin_com_github_UstadMobile_xmlpullparserkmp.$_$.c; var substringBeforeLast = kotlin_kotlin.$_$.fg; var Collection = kotlin_kotlin.$_$.p5; var ContentEntryParentChildJoin = kotlin_com_ustadmobile_app_lib_database.$_$.g3; var toMutableList = kotlin_kotlin.$_$.w9; 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.$_$.w8; var startsWith = kotlin_kotlin.$_$.zf; var emptySet = kotlin_kotlin.$_$.k7; var first_0 = kotlin_kotlin.$_$.p7; var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.f; var charSequenceGet = kotlin_kotlin.$_$.hb; var Char = kotlin_kotlin.$_$.oh; var isDigit = kotlin_kotlin.$_$.ef; var toString_1 = kotlin_kotlin.$_$.c3; var isLetter = kotlin_kotlin.$_$.gf; var joinToString = kotlin_kotlin.$_$.z7; var emptyMap = kotlin_kotlin.$_$.j7; var until = kotlin_kotlin.$_$.qd; var PeerReviewerAllocation = kotlin_com_ustadmobile_app_lib_database.$_$.g4; var Companion_instance_17 = kotlin_com_ustadmobile_app_lib_database.$_$.p7; var toMap = kotlin_kotlin.$_$.v9; var checkCountOverflow = kotlin_kotlin.$_$.k6; var shuffled = kotlin_kotlin.$_$.k9; var shallowCopy_2 = kotlin_com_ustadmobile_app_lib_database.$_$.c2; var SystemPermission = kotlin_com_ustadmobile_app_lib_database.$_$.t4; var Companion_instance_18 = kotlin_com_ustadmobile_app_lib_database.$_$.v7; var PersonParentJoin = kotlin_com_ustadmobile_app_lib_database.$_$.l4; 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.$_$.sc; var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.u2; var indexOf = kotlin_kotlin.$_$.cf; var isWhitespace = kotlin_kotlin.$_$.kf; var setOf = kotlin_kotlin.$_$.j9; var firstOrNull_0 = kotlin_kotlin.$_$.ye; var Companion_instance_19 = kotlin_com_ustadmobile_app_lib_database.$_$.a6; var distinct = kotlin_kotlin.$_$.f7; 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.$_$.g6; var plus_3 = kotlin_kotlin.$_$.v8; var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.c; var Uuid_init_$Create$ = kotlin_com_benasher44_uuid.$_$.c; var encodeBase64 = kotlin_io_ktor_ktor_utils.$_$.v; var get_jsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.v; var get_intOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.t; var replace = kotlin_kotlin.$_$.tf; var toBooleanStrictOrNull = kotlin_kotlin.$_$.lg; var listOfNotNull = kotlin_kotlin.$_$.i8; var split = kotlin_kotlin.$_$.yf; var flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n1; var JsonElementSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c; var Companion_instance_20 = kotlin_com_ustadmobile_app_lib_database.$_$.b6; var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.c5; var createInvariantKTypeProjection = kotlin_kotlin.$_$.a; var ActivityEntity = kotlin_com_ustadmobile_app_lib_database.$_$.g2; var Companion_instance_21 = kotlin_com_ustadmobile_app_lib_database.$_$.c6; var Companion_instance_22 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b; var ActivityExtensionEntity = kotlin_com_ustadmobile_app_lib_database.$_$.h2; var ActivityLangMapEntry = kotlin_com_ustadmobile_app_lib_database.$_$.j2; var ActivityInteractionEntity = kotlin_com_ustadmobile_app_lib_database.$_$.i2; 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.$_$.fj; var ActorEntity = kotlin_com_ustadmobile_app_lib_database.$_$.k2; 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_23 = kotlin_com_ustadmobile_app_lib_database.$_$.e6; var StatementContextActivityJoin = kotlin_com_ustadmobile_app_lib_database.$_$.m2; var Companion_instance_24 = kotlin_com_ustadmobile_app_lib_database.$_$.d6; var GroupMemberActorJoin = kotlin_com_ustadmobile_app_lib_database.$_$.l2; var serializer_2 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s3; var THROW_IAE = kotlin_kotlin.$_$.hi; var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t; var getNumberHashCode = kotlin_kotlin.$_$.sb; var StatementEntity = kotlin_com_ustadmobile_app_lib_database.$_$.o2; var StatementEntityJson = kotlin_com_ustadmobile_app_lib_database.$_$.n2; var JsonNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i; var VerbEntity = kotlin_com_ustadmobile_app_lib_database.$_$.p2; var VerbLangMapEntry = kotlin_com_ustadmobile_app_lib_database.$_$.q2; var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g; var toDuration = kotlin_kotlin.$_$.lh; 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.$_$.h6; var values = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.j; var isBlank = kotlin_kotlin.$_$.df; var toInt = kotlin_kotlin.$_$.tg; var sorted = kotlin_kotlin.$_$.o9; var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a; var ImplWithScope = kotlin_org_kodein_di_kodein_di.$_$.h; var Provider = kotlin_org_kodein_di_kodein_di.$_$.d; var Singleton = kotlin_org_kodein_di_kodein_di.$_$.f; var Companion_instance_25 = kotlin_com_ustadmobile_app_lib_database.$_$.z7; var Companion_instance_26 = kotlin_com_ustadmobile_app_lib_database.$_$.f6; var Companion_instance_27 = kotlin_com_ustadmobile_app_lib_database.$_$.s6; var Companion_instance_28 = kotlin_com_ustadmobile_app_lib_database.$_$.b8; var BufferOverflow_DROP_OLDEST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a; var MutableSharedFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1; var asSharedFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1; var PagingSource = kotlin_app_cash_paging_paging_common.$_$.i; var Page_init_$Create$ = kotlin_app_cash_paging_paging_common.$_$.j; var LoadResult = kotlin_app_cash_paging_paging_common.$_$.h; var JsonPrimitive_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.k; var XmlPullParserConstants_instance = kotlin_com_github_UstadMobile_xmlpullparserkmp.$_$.d; var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.b3; var mutableLinkedListOf = kotlin_com_github_UstadMobile_door_door_runtime.$_$.m; var ChannelResult__getOrThrow_impl_od1axs = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p; var _ChannelResult___get_isSuccess__impl__odq1z9 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q; var Channel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z; var fillArrayVal = kotlin_kotlin.$_$.pb; var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1; var endsWith = kotlin_kotlin.$_$.we; var indexOf_0 = kotlin_kotlin.$_$.bf; var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.w2; var lastIndexOf = kotlin_kotlin.$_$.mf; var HashMap_init_$Create$ = kotlin_kotlin.$_$.p; var round = kotlin_kotlin.$_$.ed; var LazyThreadSafetyMode_NONE_getInstance = kotlin_kotlin.$_$.h; var lazy_0 = kotlin_kotlin.$_$.ej; var roundToInt = kotlin_kotlin.$_$.dd; var substringBefore = kotlin_kotlin.$_$.ig; var Companion_instance_29 = kotlin_com_ustadmobile_app_lib_database.$_$.u6; var timeout = kotlin_io_ktor_ktor_client_core.$_$.i; var Companion_instance_30 = 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 distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k1; var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w; var Companion_getInstance_10 = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.d; var minus = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.l; var mutableMapOf = kotlin_kotlin.$_$.q8; var toMap_0 = kotlin_kotlin.$_$.u9; var substringBefore_0 = kotlin_kotlin.$_$.hg; var toMutableSet = kotlin_kotlin.$_$.y9; var titlecase = kotlin_kotlin.$_$.kg; var isLowerCase = kotlin_kotlin.$_$.if; var offsetAt = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.m; var PersonGroup = kotlin_com_ustadmobile_app_lib_database.$_$.j4; var PersonGroupMember_init_$Create$ = kotlin_com_ustadmobile_app_lib_database.$_$.g5; var ScopedGrant = kotlin_com_ustadmobile_app_lib_database.$_$.p4; var abs = kotlin_kotlin.$_$.bd; var padStart = kotlin_kotlin.$_$.pf; var substringAfterLast = kotlin_kotlin.$_$.cg; var equals_0 = kotlin_kotlin.$_$.xe; var SerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p1; var toLong_0 = kotlin_kotlin.$_$.wg; var LanguageDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.n5; var LeavingReason = kotlin_com_ustadmobile_app_lib_database.$_$.e4; var Companion_getInstance_11 = kotlin_com_ustadmobile_app_lib_database.$_$.o7; var lastOrNull = kotlin_kotlin.$_$.f8; 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.$_$.x9; var Companion_instance_31 = kotlin_com_ustadmobile_app_lib_database.$_$.i6; var toBoolean = kotlin_kotlin.$_$.mg; var PermissionFlags_getInstance = kotlin_com_ustadmobile_app_lib_database.$_$.p5; var ClazzAndDetailPermissions = kotlin_com_ustadmobile_app_lib_database.$_$.m; var mutableListOf = kotlin_kotlin.$_$.p8; var PermissionTriple = kotlin_com_ustadmobile_app_lib_database.$_$.c1; var ClazzAndDisplayDetails = kotlin_com_ustadmobile_app_lib_database.$_$.n; var combine = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1; var ClazzWithHolidayCalendarAndAndTerminology = kotlin_com_ustadmobile_app_lib_database.$_$.b3; var CourseBlockAndEditEntities = kotlin_com_ustadmobile_app_lib_database.$_$.v; var Schedule = kotlin_com_ustadmobile_app_lib_database.$_$.o4; var Companion_getInstance_12 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s; var shareIn = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p1; var $serializer_getInstance_7 = kotlin_com_ustadmobile_app_lib_database.$_$.w5; var $serializer_getInstance_8 = kotlin_com_ustadmobile_app_lib_database.$_$.a8; var $serializer_getInstance_9 = kotlin_com_ustadmobile_app_lib_database.$_$.q6; var CourseBlockPicture = kotlin_com_ustadmobile_app_lib_database.$_$.p3; var CoursePicture = kotlin_com_ustadmobile_app_lib_database.$_$.v3; var shallowCopy_3 = kotlin_com_ustadmobile_app_lib_database.$_$.z1; var shallowCopy_4 = kotlin_com_ustadmobile_app_lib_database.$_$.e2; var getDefaultTimeZoneId = kotlin_com_ustadmobile_app_lib_util.$_$.a; var CourseTerminology = kotlin_com_ustadmobile_app_lib_database.$_$.w3; var Companion_instance_32 = kotlin_com_ustadmobile_app_lib_database.$_$.r6; var Companion_getInstance_13 = kotlin_com_ustadmobile_app_lib_database.$_$.x5; var deactivateByUids = kotlin_com_ustadmobile_app_lib_database.$_$.c5; var deactivateByUids_0 = kotlin_com_ustadmobile_app_lib_database.$_$.d5; var deactivateByUids_1 = kotlin_com_ustadmobile_app_lib_database.$_$.e5; var async = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f2; var awaitAll = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g; var Companion_instance_33 = kotlin_com_ustadmobile_app_lib_database.$_$.k7; 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.$_$.i1; 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.$_$.j5; var ClazzDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.i5; var PermissionPair = kotlin_com_ustadmobile_app_lib_database.$_$.b1; var first_1 = kotlin_kotlin.$_$.q7; var eachCount = kotlin_kotlin.$_$.h7; var AverageCourseAssignmentMark = kotlin_com_ustadmobile_app_lib_database.$_$.v2; var CourseAssignmentMarkAndMarkerName = kotlin_com_ustadmobile_app_lib_database.$_$.t; var SubmissionAndFiles = kotlin_com_ustadmobile_app_lib_database.$_$.j1; var ClazzAssignment = kotlin_com_ustadmobile_app_lib_database.$_$.x2; var AssignmentProgressSummary = kotlin_com_ustadmobile_app_lib_database.$_$.s2; var ClazzAssignmentDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.h5; var ClazzAssignmentCourseBlockAndSubmitterUid = kotlin_com_ustadmobile_app_lib_database.$_$.w2; var throwKotlinNothingValueException = kotlin_kotlin.$_$.ij; var CourseAssignmentSubmission = kotlin_com_ustadmobile_app_lib_database.$_$.o3; var Comments = kotlin_com_ustadmobile_app_lib_database.$_$.d3; var CourseAssignmentSubmissionFile = kotlin_com_ustadmobile_app_lib_database.$_$.n3; var CourseAssignmentMarkDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.l5; var CourseGroupSet = kotlin_com_ustadmobile_app_lib_database.$_$.t3; var shallowCopy_5 = kotlin_com_ustadmobile_app_lib_database.$_$.a2; var CourseBlock = kotlin_com_ustadmobile_app_lib_database.$_$.q3; var $serializer_getInstance_10 = kotlin_com_ustadmobile_app_lib_database.$_$.j7; var AssignmentSubmitterSummary = kotlin_com_ustadmobile_app_lib_database.$_$.u2; var AssignmentSubmitterAndAllocations = kotlin_com_ustadmobile_app_lib_database.$_$.t2; var Companion_getInstance_14 = kotlin_com_ustadmobile_app_lib_database.$_$.j6; var CourseBlockAndAssignment = kotlin_com_ustadmobile_app_lib_database.$_$.u; var AssignmentPermissionAndActiveUserSubmitterUid = kotlin_com_ustadmobile_app_lib_database.$_$.k; var CourseAssignmentMark = kotlin_com_ustadmobile_app_lib_database.$_$.m3; var ClazzNameAndTerminology = kotlin_com_ustadmobile_app_lib_database.$_$.o; var ClazzEnrolmentWithLeavingReason = kotlin_com_ustadmobile_app_lib_database.$_$.y2; var Companion_instance_34 = kotlin_com_ustadmobile_app_lib_database.$_$.n6; var flowOf = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m1; var Clazz = kotlin_com_ustadmobile_app_lib_database.$_$.c3; var Companion_instance_35 = kotlin_com_ustadmobile_app_lib_database.$_$.o6; var ClazzLog = kotlin_com_ustadmobile_app_lib_database.$_$.a3; var shallowCopy_6 = kotlin_com_ustadmobile_app_lib_database.$_$.y1; var Companion_instance_36 = kotlin_com_ustadmobile_app_lib_database.$_$.p6; var Companion_instance_37 = kotlin_com_ustadmobile_app_lib_database.$_$.y5; var ClazzLogAttendanceRecord = kotlin_com_ustadmobile_app_lib_database.$_$.z2; var PersonAndClazzLogAttendanceRecord = kotlin_com_ustadmobile_app_lib_database.$_$.d1; var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1; var shallowCopy_7 = kotlin_com_ustadmobile_app_lib_database.$_$.o1; var ContentEntry = kotlin_com_ustadmobile_app_lib_database.$_$.l3; var AttemptsPersonListConst_instance = kotlin_com_ustadmobile_app_lib_database.$_$.t5; var firstOrNull_1 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e; var NotImplementedError = kotlin_kotlin.$_$.bi; var SessionTimeAndProgressInfoConst_instance = kotlin_com_ustadmobile_app_lib_database.$_$.r5; var StatementConst_instance = kotlin_com_ustadmobile_app_lib_database.$_$.s5; var ContentEntryAndDetail = kotlin_com_ustadmobile_app_lib_database.$_$.r; var ContentEntryVersion = kotlin_com_ustadmobile_app_lib_database.$_$.k3; var OfflineItemAndState = kotlin_com_ustadmobile_app_lib_database.$_$.a1; var Companion_instance_38 = kotlin_com_ustadmobile_app_lib_database.$_$.f8; var Companion_instance_39 = kotlin_com_ustadmobile_app_lib_database.$_$.v5; var shallowCopy_8 = kotlin_com_ustadmobile_app_lib_database.$_$.x1; var ContentEntryPicture2 = kotlin_com_ustadmobile_app_lib_database.$_$.h3; var ContentEntryAndContentJob = kotlin_com_ustadmobile_app_lib_database.$_$.q; var ContentEntryImportJob = kotlin_com_ustadmobile_app_lib_database.$_$.f3; var Companion_instance_40 = kotlin_com_ustadmobile_app_lib_database.$_$.u5; var setOf_0 = kotlin_kotlin.$_$.i9; var ContentEntryDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.k5; var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w2; var CourseBlockAndPicture = kotlin_com_ustadmobile_app_lib_database.$_$.w; var CourseGroupMemberAndName = kotlin_com_ustadmobile_app_lib_database.$_$.r3; var CourseGroupMember = kotlin_com_ustadmobile_app_lib_database.$_$.s3; var Companion_instance_41 = kotlin_com_ustadmobile_app_lib_database.$_$.e7; var Companion_instance_42 = kotlin_com_ustadmobile_app_lib_database.$_$.f7; var Companion_instance_43 = kotlin_com_ustadmobile_app_lib_database.$_$.g7; var shallowCopy_9 = kotlin_com_ustadmobile_app_lib_database.$_$.s1; var CourseGroupSetDaoConstants_instance = kotlin_com_ustadmobile_app_lib_database.$_$.m5; var shallowCopy_10 = kotlin_com_ustadmobile_app_lib_database.$_$.p1; var DiscussionPost = kotlin_com_ustadmobile_app_lib_database.$_$.x3; var Companion_instance_44 = kotlin_com_ustadmobile_app_lib_database.$_$.m7; var printStackTrace = kotlin_kotlin.$_$.hj; var XML = kotlin_io_github_pdvrieze_xmlutil_serialization.$_$.d; var Site = kotlin_com_ustadmobile_app_lib_database.$_$.s4; var daysUntil = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.k; var Message = kotlin_com_ustadmobile_app_lib_database.$_$.f4; var shallowCopy_11 = kotlin_com_ustadmobile_app_lib_database.$_$.v1; var Companion_instance_45 = kotlin_com_ustadmobile_app_lib_database.$_$.w7; var PersonAndDisplayDetail = kotlin_com_ustadmobile_app_lib_database.$_$.h4; var EditAndViewPermission = kotlin_com_ustadmobile_app_lib_database.$_$.y; var PersonPicture = kotlin_com_ustadmobile_app_lib_database.$_$.m4; var getSystemTimeInMillis = kotlin_com_ustadmobile_app_lib_util.$_$.b; var PersonDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.o5; var Settings = kotlin_com_russhwolf_multiplatform_settings.$_$.a; var println = kotlin_kotlin.$_$.ab; var SiteTermsAndLangName = kotlin_com_ustadmobile_app_lib_database.$_$.h1; var contains_0 = kotlin_kotlin.$_$.o6; var SiteTerms = kotlin_com_ustadmobile_app_lib_database.$_$.r4; var Companion_instance_46 = kotlin_com_ustadmobile_app_lib_database.$_$.d8; var shallowCopy_12 = kotlin_com_ustadmobile_app_lib_database.$_$.b2; var decodeBase64Bytes = kotlin_io_ktor_ktor_utils.$_$.u; var addChild = kotlin_org_jetbrains_kotlin_wrappers_kotlin_react_core.$_$.d; var addChildNode = kotlin_org_jetbrains_kotlin_wrappers_kotlin_react_core.$_$.a; var FC = kotlin_org_jetbrains_kotlin_wrappers_kotlin_react.$_$.a; var toUrlQueryString = kotlin_com_github_UstadMobile_door_door_runtime.$_$.s; var json = kotlin_kotlin.$_$.kc; var KMutableProperty0 = kotlin_kotlin.$_$.sd; var useEffect = kotlin_org_jetbrains_kotlin_wrappers_kotlin_react_core.$_$.i; var isSuccess = kotlin_io_ktor_ktor_http.$_$.g1; var TransferJobItemStatus_FAILED_getInstance = kotlin_com_ustadmobile_app_lib_database.$_$.a5; var TransferJob = kotlin_com_ustadmobile_app_lib_database.$_$.v4; var await_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i; var TransferJobItem = kotlin_com_ustadmobile_app_lib_database.$_$.u4; var TransferJobItemStatus_IN_PROGRESS_getInstance = kotlin_com_ustadmobile_app_lib_database.$_$.b5; var NonCancellable_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y; var coroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j; var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u1; var randomUuid = kotlin_com_github_UstadMobile_door_door_runtime.$_$.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.$_$.i; var IntCompanionObject_instance = kotlin_kotlin.$_$.y4; var toULong = kotlin_kotlin.$_$.dh; var _ULong___get_data__impl__fggpzb = kotlin_kotlin.$_$.b4; var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.f; var encodeToByteArray = kotlin_kotlin.$_$.ue; var encodeToByteArray_0 = kotlin_io_ktor_ktor_io.$_$.j; 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 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(Endpoint, 'Endpoint', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_11}); setMetadataFor(Companion_0, 'Companion', objectMeta); setMetadataFor(EndpointScope, 'EndpointScope', classMeta, VOID, VOID, EndpointScope); 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(UserSessionWithPersonAndEndpoint, 'UserSessionWithPersonAndEndpoint', 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$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$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$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$8, '$startGuestSessionCOROUTINE$8', classMeta, CoroutineImpl); setMetadataFor(UstadAccountManager, 'UstadAccountManager', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 4, 3, 5]); 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(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$9, '$invokeCOROUTINE$9', 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$10, '$invokeCOROUTINE$10', 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$12, '$collectCOROUTINE$12', 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$11, '$invokeCOROUTINE$11', classMeta, CoroutineImpl); setMetadataFor(GetAssignmentSubmitterNameUseCase, 'GetAssignmentSubmitterNameUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(BlobTransferJobItem, 'BlobTransferJobItem', classMeta); setMetadataFor(BlobTransferProgressUpdate, 'BlobTransferProgressUpdate', classMeta); setMetadataFor(BlobTransferStatusUpdate, 'BlobTransferStatusUpdate', classMeta); setMetadataFor(CancelDownloadUseCase, 'CancelDownloadUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(MakeContentEntryAvailableOfflineUseCase, 'MakeContentEntryAvailableOfflineUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(OpenBlobItem, 'OpenBlobItem', classMeta); setMetadataFor($invokeCOROUTINE$14, '$invokeCOROUTINE$14', 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$15, '$invokeCOROUTINE$15', 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.dnx(localUrisToSave, onTransferJobItemCreated, $completion) : $super.dnx.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$16, '$invokeCOROUTINE$16', 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$17, '$commitCOROUTINE$17', classMeta, CoroutineImpl); setMetadataFor($onFinishedCOROUTINE$18, '$onFinishedCOROUTINE$18', classMeta, CoroutineImpl); setMetadataFor(TransferJobItemStatusUpdater, 'TransferJobItemStatusUpdater', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$19, '$invokeCOROUTINE$19', 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.wo2(items, batchUuid, chunkSize, tableId, entityUid, $completion) : $super.wo2.call(this, items, batchUuid, chunkSize, tableId, entityUid, $completion); } setMetadataFor(EnqueueBlobUploadClientUseCase, 'EnqueueBlobUploadClientUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [5]); setMetadataFor($getLocalUriIfRemoteCOROUTINE$20, '$getLocalUriIfRemoteCOROUTINE$20', 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.mo3(url, progressInterval, onStateChange, inflateToTmpFileIfCompressed, $completion) : $super.mo3.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$21, '$invokeCOROUTINE$21', 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(EnrolIntoCourseUseCase, 'EnrolIntoCourseUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor($invokeCOROUTINE$22, '$invokeCOROUTINE$22', 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.so6(fromUri, toUri, params, onProgress, $completion) : $super.so6.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.no8(subtitleTrackUri, filename, locale, $completion) : $super.no8.call(this, subtitleTrackUri, filename, locale, $completion); } setMetadataFor(GetSubtitleTrackFromUriUseCase, 'GetSubtitleTrackFromUriUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(CancelImportContentEntryUseCase, 'CancelImportContentEntryUseCase', interfaceMeta); setMetadataFor($invokeCOROUTINE$23, '$invokeCOROUTINE$23', classMeta, CoroutineImpl); setMetadataFor(CancelRemoteContentEntryImportUseCase, 'CancelRemoteContentEntryImportUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor($invokeCOROUTINE$24, '$invokeCOROUTINE$24', classMeta, CoroutineImpl); setMetadataFor(DismissRemoteContentEntryImportErrorUseCase, 'DismissRemoteContentEntryImportErrorUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(EnqueueContentEntryImportUseCase, 'EnqueueContentEntryImportUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$25, '$invokeCOROUTINE$25', 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$26, '$invokeCOROUTINE$26', 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$27, '$invokeCOROUTINE$27', 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$28, '$invokeCOROUTINE$28', classMeta, CoroutineImpl); setMetadataFor(GetEpubTableOfContentsUseCase, 'GetEpubTableOfContentsUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(Companion_41, 'Companion', objectMeta); setMetadataFor(FilterUsernameUseCase, 'FilterUsernameUseCase', classMeta, VOID, VOID, FilterUsernameUseCase); setMetadataFor(GetApiUrlUseCase, 'GetApiUrlUseCase', interfaceMeta); setMetadataFor(GetApiUrlUseCaseDirect, 'GetApiUrlUseCaseDirect', classMeta, VOID, [GetApiUrlUseCase]); setMetadataFor(VersionInfo, 'VersionInfo', classMeta); setMetadataFor(GetVersionUseCase, 'GetVersionUseCase', interfaceMeta); setMetadataFor(GetHtmlContentDisplayEngineOptionsUseCase, 'GetHtmlContentDisplayEngineOptionsUseCase', classMeta); setMetadataFor(GetHtmlContentDisplayEngineUseCase, 'GetHtmlContentDisplayEngineUseCase', classMeta); setMetadataFor(Companion_42, 'Companion', objectMeta); setMetadataFor(SetHtmlContentDisplayEngineUseCase, 'SetHtmlContentDisplayEngineUseCase', classMeta); setMetadataFor(SetLangResult, 'SetLangResult', classMeta); function invoke$default_4(uiLang, currentDestination, navController, navArgs, $super) { navArgs = navArgs === VOID ? emptyMap() : navArgs; return $super === VOID ? this.poi(uiLang, currentDestination, navController, navArgs) : $super.poi.call(this, uiLang, currentDestination, navController, navArgs); } setMetadataFor(SetLanguageUseCase, 'SetLanguageUseCase', interfaceMeta); setMetadataFor(LaunchOpenLicensesUseCase, 'LaunchOpenLicensesUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [0]); setMetadataFor(MakeLinkUseCase, 'MakeLinkUseCase', classMeta); setMetadataFor(OnClickLinkUseCase, 'OnClickLinkUseCase', classMeta); setMetadataFor(Companion_43, 'Companion', objectMeta); setMetadataFor(LinkTarget, 'LinkTarget', classMeta, Enum); setMetadataFor(OpenExternalLinkUseCase, 'OpenExternalLinkUseCase', interfaceMeta); setMetadataFor($invokeCOROUTINE$29, '$invokeCOROUTINE$29', 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, [4]); setMetadataFor(BulkAddPersonException, 'BulkAddPersonException', classMeta, IllegalArgumentException); setMetadataFor($serializer_35, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(BulkAddPersonsDataError, 'BulkAddPersonsDataError', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_47}); setMetadataFor(BulkAddPersonsFromLocalUriUseCase, 'BulkAddPersonsFromLocalUriUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(Companion_44, 'Companion', objectMeta); setMetadataFor($serializer_36, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(BulkAddUsersResult, 'BulkAddUsersResult', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_48}); 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_45, 'Companion', objectMeta); setMetadataFor($invokeCOROUTINE$30, '$invokeCOROUTINE$30', classMeta, CoroutineImpl); setMetadataFor(GetLocaleForSiteTermsUseCase, 'GetLocaleForSiteTermsUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [0]); setMetadataFor(OnClickSendSmsUseCase, 'OnClickSendSmsUseCase', interfaceMeta); setMetadataFor(Companion_46, 'Companion', objectMeta); setMetadataFor(DismissSocialWarningUseCase, 'DismissSocialWarningUseCase', classMeta); setMetadataFor(Companion_47, 'Companion', objectMeta); setMetadataFor(ShowSocialWarningUseCase, 'ShowSocialWarningUseCase', classMeta); setMetadataFor(GetOfflineStorageAvailableSpace, 'GetOfflineStorageAvailableSpace', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_48, 'Companion', objectMeta); setMetadataFor(GetOfflineStorageOptionsUseCase, 'GetOfflineStorageOptionsUseCase', interfaceMeta); setMetadataFor(GetOfflineStorageSettingUseCase, 'GetOfflineStorageSettingUseCase', classMeta); setMetadataFor(OfflineStorageOption, 'OfflineStorageOption', classMeta); setMetadataFor(SetOfflineStorageSettingUseCase, 'SetOfflineStorageSettingUseCase', classMeta); setMetadataFor(DeleteUrisUseCase, 'DeleteUrisUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(IsTempFileCheckerUseCase, 'IsTempFileCheckerUseCase', interfaceMeta); setMetadataFor(ChunkIterator, 'ChunkIterator', classMeta, VOID, [Iterator]); setMetadataFor(Chunk, 'Chunk', classMeta); setMetadataFor(ChunkInfo, 'ChunkInfo', classMeta); setMetadataFor(UploadProgress, 'UploadProgress', classMeta); setMetadataFor(LastChunkResponse, 'LastChunkResponse', classMeta); function invoke$default_5(uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion, $super) { fromByte = fromByte === VOID ? new Long(0, 0) : fromByte; chunkSize = chunkSize === VOID ? get_DEFAULT_CHUNK_SIZE() : chunkSize; var tmp; if (onProgress === VOID) { tmp = ChunkedUploadClientLocalUriUseCase$invoke$lambda; } else { tmp = onProgress; } onProgress = tmp; var tmp_0; if (onStatusChange === VOID) { tmp_0 = ChunkedUploadClientLocalUriUseCase$invoke$lambda_0; } else { tmp_0 = onStatusChange; } onStatusChange = tmp_0; lastChunkHeaders = lastChunkHeaders === VOID ? null : lastChunkHeaders; return $super === VOID ? this.son(uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion) : $super.son.call(this, uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion); } setMetadataFor(ChunkedUploadClientLocalUriUseCase, 'ChunkedUploadClientLocalUriUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [8]); setMetadataFor(Companion_49, 'Companion', objectMeta); setMetadataFor(StartUserSessionUseCase, 'StartUserSessionUseCase', classMeta); setMetadataFor(ValidateEmailUseCase, 'ValidateEmailUseCase', classMeta, VOID, VOID, ValidateEmailUseCase); setMetadataFor(Companion_50, 'Companion', objectMeta); setMetadataFor(ValidateUsernameUseCase, 'ValidateUsernameUseCase', classMeta, VOID, VOID, ValidateUsernameUseCase); setMetadataFor(Companion_51, 'Companion', objectMeta); setMetadataFor(ValidationResult, 'ValidationResult', classMeta, VOID, VOID, ValidationResult); setMetadataFor(StoreActivitiesUseCase$invoke$slambda, 'StoreActivitiesUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$34, '$invokeCOROUTINE$34', 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$35, '$storeStatementsCOROUTINE$35', classMeta, CoroutineImpl); setMetadataFor($postCOROUTINE$37, '$postCOROUTINE$37', classMeta, CoroutineImpl); setMetadataFor(XapiStatementResource, 'XapiStatementResource', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 3]); setMetadataFor(XapiGroupAndPersonUidMap, 'XapiGroupAndPersonUidMap', classMeta); setMetadataFor($invokeCOROUTINE$39, '$invokeCOROUTINE$39', classMeta, CoroutineImpl); setMetadataFor(CreateXapiGroupForCourseGroupUseCase, 'CreateXapiGroupForCourseGroupUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [5]); setMetadataFor($insertOrUpdateActorsIfNameChangedCOROUTINE$40, '$insertOrUpdateActorsIfNameChangedCOROUTINE$40', classMeta, CoroutineImpl); setMetadataFor($insertOrUpdateIfLastModChangedCOROUTINE$41, '$insertOrUpdateIfLastModChangedCOROUTINE$41', classMeta, CoroutineImpl); setMetadataFor(FormattedStatementResponse, 'FormattedStatementResponse', classMeta); setMetadataFor(Companion_52, 'Companion', objectMeta); setMetadataFor(FormatStatementResponseUseCase$invoke$slambda, 'FormatStatementResponseUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(FormatStatementResponseUseCase, 'FormatStatementResponseUseCase', classMeta); setMetadataFor(Companion_53, 'Companion', objectMeta); setMetadataFor($serializer_37, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Attachment, 'Attachment', classMeta, VOID, VOID, Attachment, VOID, {0: $serializer_getInstance_49}); setMetadataFor(Companion_54, 'Companion', objectMeta); setMetadataFor($serializer_38, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiAccount, 'XapiAccount', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_50}); setMetadataFor(Companion_55, 'Companion', objectMeta); setMetadataFor($serializer_39, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Interaction, 'Interaction', classMeta, VOID, VOID, Interaction, VOID, {0: $serializer_getInstance_51}); setMetadataFor(Companion_56, 'Companion', objectMeta); setMetadataFor($serializer_40, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiActivity, 'XapiActivity', classMeta, VOID, VOID, XapiActivity, VOID, {0: $serializer_getInstance_52}); setMetadataFor(ActivityEntities, 'ActivityEntities', classMeta); setMetadataFor(Companion_57, '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_58, 'Companion', objectMeta); setMetadataFor($serializer_41, '$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_53}); setMetadataFor(Companion_59, 'Companion', objectMeta); setMetadataFor($serializer_42, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiContext, 'XapiContext', classMeta, VOID, VOID, XapiContext, VOID, {0: $serializer_getInstance_54}); setMetadataFor(Companion_60, 'Companion', objectMeta); setMetadataFor(XapiContextActivities, 'XapiContextActivities', classMeta, VOID, VOID, XapiContextActivities, VOID, {0: XapiContextActivitiesSerializer_getInstance}); setMetadataFor(XapiContextActivitiesSerializer, 'XapiContextActivitiesSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_61, 'Companion', objectMeta); setMetadataFor($serializer_43, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiContextActivitiesSurrogate, 'XapiContextActivitiesSurrogate', classMeta, VOID, VOID, XapiContextActivitiesSurrogate, VOID, {0: $serializer_getInstance_55}); setMetadataFor(Companion_62, 'Companion', objectMeta); setMetadataFor($serializer_44, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiGroup, 'XapiGroup', classMeta, VOID, [XapiActor, XapiStatementObject], XapiGroup, VOID, {0: $serializer_getInstance_56}); setMetadataFor(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', classMeta, VOID, [Comparator]); setMetadataFor(Companion_63, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(XapiInteractionType, 'XapiInteractionType', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_80}); setMetadataFor(XapiInteractionTypeSerializer, 'XapiInteractionTypeSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_64, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(XapiObjectType, 'XapiObjectType', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_81}); setMetadataFor(XapiObjectTypeSerializer, 'XapiObjectTypeSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_65, 'Companion', objectMeta); setMetadataFor($serializer_45, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Score, 'Score', classMeta, VOID, VOID, Score, VOID, {0: $serializer_getInstance_57}); setMetadataFor(Companion_66, 'Companion', objectMeta); setMetadataFor($serializer_46, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiResult, 'XapiResult', classMeta, VOID, VOID, XapiResult, VOID, {0: $serializer_getInstance_58}); setMetadataFor(Companion_67, 'Companion', objectMeta); setMetadataFor($serializer_47, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiStatement, 'XapiStatement', classMeta, VOID, [XapiStatementObject], VOID, VOID, {0: $serializer_getInstance_59}); setMetadataFor(StatementEntities, 'StatementEntities', classMeta, VOID, VOID, StatementEntities); setMetadataFor(XapiStatementObjectSerializer, 'XapiStatementObjectSerializer', objectMeta, JsonContentPolymorphicSerializer); setMetadataFor(Companion_68, 'Companion', objectMeta); setMetadataFor($serializer_48, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiActivityStatementObject, 'XapiActivityStatementObject', classMeta, VOID, [XapiStatementObject], VOID, VOID, {0: $serializer_getInstance_60}); setMetadataFor(Companion_69, 'Companion', objectMeta); setMetadataFor($serializer_49, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiStatementRef, 'XapiStatementRef', classMeta, VOID, [XapiStatementObject], VOID, VOID, {0: $serializer_getInstance_61}); setMetadataFor(Companion_70, 'Companion', objectMeta); setMetadataFor($serializer_50, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiVerb, 'XapiVerb', classMeta, VOID, VOID, XapiVerb, VOID, {0: $serializer_getInstance_62}); 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_71, 'Companion', objectMeta); setMetadataFor($serializer_51, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiStatementsAndSession, 'XapiStatementsAndSession', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_63}); setMetadataFor(ResumeOrStartXapiSessionUseCase, 'ResumeOrStartXapiSessionUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [7]); setMetadataFor(XXHasher64Factory, 'XXHasher64Factory', interfaceMeta); setMetadataFor(XXStringHasher, 'XXStringHasher', interfaceMeta); setMetadataFor(UstadMobileConstants, 'UstadMobileConstants', objectMeta); setMetadataFor(Companion_72, 'Companion', objectMeta); setMetadataFor(UstadGoOptions, 'UstadGoOptions', classMeta, VOID, VOID, UstadGoOptions); setMetadataFor(UiLanguage, 'UiLanguage', classMeta); setMetadataFor(Companion_73, '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_74, '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(ApiUrlConfig, 'ApiUrlConfig', classMeta); setMetadataFor(AppConfig, 'AppConfig', interfaceMeta); setMetadataFor(AppConfigMap, 'AppConfigMap', classMeta, VOID, [AppConfig]); setMetadataFor(Companion_75, 'Companion', objectMeta); setMetadataFor(GenderConfig, 'GenderConfig', classMeta, VOID, VOID, GenderConfig); setMetadataFor(SettingsLocaleSettingDelegate, 'SettingsLocaleSettingDelegate', classMeta); setMetadataFor(Companion_76, 'Companion', objectMeta); setMetadataFor(SupportedLanguagesConfig, 'SupportedLanguagesConfig', classMeta); 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_89().qp3_1 : goOptions; var tmp; if ($super === VOID) { this.rp8(viewName, args, goOptions); tmp = Unit_instance; } else { tmp = $super.rp8.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$42, '$collectCOROUTINE$42', 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(ClazzLogCreatorManager, 'ClazzLogCreatorManager', interfaceMeta); 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$43, '$verifySiteCOROUTINE$43', 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$44, '$collectCOROUTINE$44', 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$45, '$insertPersonAndGroupCOROUTINE$45', classMeta, CoroutineImpl); setMetadataFor($localFirstThenRepoIfFalseCOROUTINE$46, '$localFirstThenRepoIfFalseCOROUTINE$46', classMeta, CoroutineImpl); setMetadataFor($grantScopedPermissionCOROUTINE$47, '$grantScopedPermissionCOROUTINE$47', classMeta, CoroutineImpl); setMetadataFor($localFirstThenRepoIfNullCOROUTINE$48, '$localFirstThenRepoIfNullCOROUTINE$48', 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(UstadViewModel, 'UstadViewModel', classMeta, ViewModel, [ViewModel, DIAware], VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(DetailViewModel, 'DetailViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ErrorReportUiState, 'ErrorReportUiState', classMeta, VOID, VOID, ErrorReportUiState); setMetadataFor(HolidayCalendarDetailUIState, 'HolidayCalendarDetailUIState', classMeta, VOID, VOID, HolidayCalendarDetailUIState); setMetadataFor(Companion_92, 'Companion', objectMeta); setMetadataFor(HolidayCalendarEditUiState, 'HolidayCalendarEditUiState', classMeta, VOID, VOID, HolidayCalendarEditUiState); setMetadataFor(Companion_93, '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_94, '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_95, '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_96, 'Companion', objectMeta); setMetadataFor(Companion_97, 'Companion', objectMeta); setMetadataFor(ReportFilterEditUiState, 'ReportFilterEditUiState', classMeta, VOID, VOID, ReportFilterEditUiState); setMetadataFor(ScopedGrantDetailUiState, 'ScopedGrantDetailUiState', classMeta, VOID, VOID, ScopedGrantDetailUiState); setMetadataFor(Companion_98, 'Companion', objectMeta); setMetadataFor(ScopedGrantEditUiState, 'ScopedGrantEditUiState', classMeta, VOID, VOID, ScopedGrantEditUiState); setMetadataFor(Companion_99, 'Companion', objectMeta); setMetadataFor(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda, 'UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_100, '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$52, '$collectCOROUTINE$52', classMeta, CoroutineImpl); setMetadataFor(Companion_101, '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$49, '$getJsonCOROUTINE$49', classMeta, CoroutineImpl); setMetadataFor($setJsonCOROUTINE$50, '$setJsonCOROUTINE$50', classMeta, CoroutineImpl); setMetadataFor($loadEntityCOROUTINE$51, '$loadEntityCOROUTINE$51', classMeta, CoroutineImpl); setMetadataFor(Companion_102, '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_103, '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$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$53, '$getTitleForCoursePermissionCOROUTINE$53', 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_104, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_8, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailViewModel$slambda, 'ClazzDetailViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailViewModel, 'ClazzDetailViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ClazzDetailUiState, 'ClazzDetailUiState', classMeta, VOID, VOID, ClazzDetailUiState); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda, 'ClazzDetailOverviewViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$54, '$collectCOROUTINE$54', classMeta, CoroutineImpl); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_3, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(_no_name_provided__qut3iv_3, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$55, '$collectCOROUTINE$55', 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$56, '$collectCOROUTINE$56', classMeta, CoroutineImpl); setMetadataFor(_no_name_provided__qut3iv_5, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda_1, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda_3, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda_5, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda_7, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda_1, 'ClazzDetailOverviewViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_105, 'Companion', objectMeta); setMetadataFor(ClazzAction, 'ClazzAction', classMeta, Enum); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_9, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda, 'ClazzDetailOverviewViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda_1, 'ClazzDetailOverviewViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$onClickCopyCourse$slambda, 'ClazzDetailOverviewViewModel$onClickCopyCourse$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel, 'ClazzDetailOverviewViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ClazzDetailOverviewUiState, 'ClazzDetailOverviewUiState', classMeta, VOID, VOID, ClazzDetailOverviewUiState); setMetadataFor(Companion_106, 'Companion', objectMeta); setMetadataFor($serializer_52, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CopyCourseResult, 'CopyCourseResult', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_64}); setMetadataFor($invokeCOROUTINE$57, '$invokeCOROUTINE$57', classMeta, CoroutineImpl); setMetadataFor(CopyCourseUseCase, 'CopyCourseUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_1, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_3, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_5, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_7, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_9, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda$slambda, 'ClazzEditViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_11, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_13, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_15, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_17, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_19, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_1, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_3, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_5, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_7, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_9, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_11, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_13, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_15, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$onClickSave$slambda$slambda, 'ClazzEditViewModel$onClickSave$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_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$58, '$updateCourseBlockListCOROUTINE$58', 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_53, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzEditUiState, 'ClazzEditUiState', classMeta, VOID, VOID, ClazzEditUiState, VOID, {0: $serializer_getInstance_65}); setMetadataFor($loadCOROUTINE$59, '$loadCOROUTINE$59', classMeta, CoroutineImpl); setMetadataFor($loadHttpCOROUTINE$60, '$loadHttpCOROUTINE$60', 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(Companion_110, 'Companion', objectMeta); setMetadataFor(InviteViaLinkViewModel, 'InviteViaLinkViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(InviteViaLinkUiState, 'InviteViaLinkUiState', classMeta, VOID, VOID, InviteViaLinkUiState); setMetadataFor(Companion_111, '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_112, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_12, '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_113, '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_114, '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_115, '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_116, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_13, '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_117, '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_118, '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_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(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_120, '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$61, '$collectCOROUTINE$61', 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_121, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_15, '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_122, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_16, '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_123, 'Companion', objectMeta); setMetadataFor($serializer_54, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzAssignmentEditUiState, 'ClazzAssignmentEditUiState', classMeta, VOID, VOID, ClazzAssignmentEditUiState, VOID, {0: $serializer_getInstance_66}); 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_124, '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_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(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_126, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_18, '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_127, '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$62, '$collectCOROUTINE$62', 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$63, '$collectCOROUTINE$63', 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_128, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_19, '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_129, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_20, '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_130, '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_131, '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$64, '$savePersonAndAttendanceRecordsCOROUTINE$64', classMeta, CoroutineImpl); setMetadataFor($commitAttendanceRecordsToStateCOROUTINE$65, '$commitAttendanceRecordsToStateCOROUTINE$65', classMeta, CoroutineImpl); setMetadataFor(ClazzLogEditAttendanceViewModel, 'ClazzLogEditAttendanceViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 0, 3, 6]); setMetadataFor(ClazzLogEditAttendanceUiState, 'ClazzLogEditAttendanceUiState', classMeta, VOID, VOID, ClazzLogEditAttendanceUiState); setMetadataFor(Companion_132, 'Companion', objectMeta); setMetadataFor(ContentEntryDetailViewModel, 'ContentEntryDetailViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ContentEntryDetailUiState, 'ContentEntryDetailUiState', classMeta, VOID, VOID, ContentEntryDetailUiState); setMetadataFor(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda, 'ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda, 'ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_133, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_21, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsPersonListViewModel$slambda, 'ContentEntryDetailAttemptsPersonListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsPersonListViewModel$slambda_1, 'ContentEntryDetailAttemptsPersonListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($buildSortOptionsCOROUTINE$66, '$buildSortOptionsCOROUTINE$66', classMeta, CoroutineImpl); setMetadataFor(ContentEntryDetailAttemptsPersonListViewModel, 'ContentEntryDetailAttemptsPersonListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [1, 3, 2, 6]); setMetadataFor(ContentEntryDetailAttemptsPersonListUiState, 'ContentEntryDetailAttemptsPersonListUiState', classMeta, VOID, VOID, ContentEntryDetailAttemptsPersonListUiState); setMetadataFor(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda, 'ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1, 'ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_134, 'Companion', objectMeta); setMetadataFor(ContentEntryDetailAttemptsSessionListViewModel$slambda, 'ContentEntryDetailAttemptsSessionListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsSessionListViewModel, 'ContentEntryDetailAttemptsSessionListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(ContentEntryDetailAttemptsSessionListUiState, 'ContentEntryDetailAttemptsSessionListUiState', classMeta, VOID, VOID, ContentEntryDetailAttemptsSessionListUiState); setMetadataFor(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda, 'ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1, 'ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda, 'ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1, 'ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda, 'ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_135, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_22, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsStatementListViewModel$slambda, 'ContentEntryDetailAttemptsStatementListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsStatementListViewModel, 'ContentEntryDetailAttemptsStatementListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(ContentEntryDetailAttemptsStatementListUiState, 'ContentEntryDetailAttemptsStatementListUiState', classMeta, VOID, VOID, ContentEntryDetailAttemptsStatementListUiState); setMetadataFor(StatementSummaryEntity, 'StatementSummaryEntity', classMeta); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda, 'ContentEntryDetailOverviewViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda, 'ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_136, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_23, '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_24, '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_25, '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_55, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryListSelectedItem, 'ContentEntryListSelectedItem', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_67}); 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_26, '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_56, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockEditUiState, 'CourseBlockEditUiState', classMeta, VOID, VOID, CourseBlockEditUiState, VOID, {0: $serializer_getInstance_68}); 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_27, '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_28, '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_29, '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_30, '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$67, '$submitReplyCOROUTINE$67', 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, '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_31, '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_57, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonUsernameAndPasswordModel, 'PersonUsernameAndPasswordModel', classMeta, VOID, VOID, PersonUsernameAndPasswordModel, VOID, {0: $serializer_getInstance_69}); 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_58, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(BulkAddPersonRunImportUiState, 'BulkAddPersonRunImportUiState', classMeta, VOID, VOID, BulkAddPersonRunImportUiState, VOID, {0: $serializer_getInstance_70}); 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(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_171, '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_172, '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(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_173, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_33, '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_174, 'Companion', objectMeta); setMetadataFor(RegisterAgeRedirectViewModel, 'RegisterAgeRedirectViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(RegisterAgeRedirectUiState, 'RegisterAgeRedirectUiState', classMeta, VOID, VOID, RegisterAgeRedirectUiState); setMetadataFor(Companion_175, 'Companion', objectMeta); setMetadataFor(RegisterMinorWaitForParentViewModel, 'RegisterMinorWaitForParentViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(RegisterMinorWaitForParentUiState, 'RegisterMinorWaitForParentUiState', classMeta, VOID, VOID, RegisterMinorWaitForParentUiState); setMetadataFor(Companion_176, '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_177, '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_178, 'Companion', objectMeta); setMetadataFor(SettingsViewModel$slambda$slambda, 'SettingsViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_179, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_34, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(SettingsViewModel$slambda, 'SettingsViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SettingsViewModel$slambda_1, 'SettingsViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SettingsViewModel, 'SettingsViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(SettingsUiState, 'SettingsUiState', classMeta, VOID, VOID, SettingsUiState); setMetadataFor(SettingsOfflineStorageOption, 'SettingsOfflineStorageOption', classMeta); setMetadataFor(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_180, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_35, '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_181, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_36, '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_182, '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_183, 'Companion', objectMeta); setMetadataFor(SiteEnterLinkViewModel$onClickNext$slambda, 'SiteEnterLinkViewModel$onClickNext$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteEnterLinkViewModel, 'SiteEnterLinkViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(SiteEnterLinkUiState, 'SiteEnterLinkUiState', classMeta, VOID, VOID, SiteEnterLinkUiState); 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_184, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_37, '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_185, '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_186, '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_187, '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_188, '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$68, '$encryptPbkdf2COROUTINE$68', classMeta, CoroutineImpl); setMetadataFor($doublePbkdf2HashAsBase64COROUTINE$70, '$doublePbkdf2HashAsBase64COROUTINE$70', 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$71, '$invokeCOROUTINE$71', 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$72, '$invokeCOROUTINE$72', 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$73, '$invokeCOROUTINE$73', classMeta, CoroutineImpl); setMetadataFor(CompressImageUseCaseJs, 'CompressImageUseCaseJs', classMeta, VOID, [CompressUseCase], CompressImageUseCaseJs, VOID, VOID, [4]); setMetadataFor(Companion_189, 'Companion', objectMeta); setMetadataFor($invokeCOROUTINE$74, '$invokeCOROUTINE$74', classMeta, CoroutineImpl); setMetadataFor(ContentEntryGetMetaDataFromUriUseCaseJs, 'ContentEntryGetMetaDataFromUriUseCaseJs', classMeta, VOID, [ContentEntryGetMetaDataFromUriUseCase], VOID, VOID, VOID, [4]); setMetadataFor($invokeCOROUTINE$75, '$invokeCOROUTINE$75', classMeta, CoroutineImpl); setMetadataFor(GetSubtitleTrackFromUriUseCaseJs, 'GetSubtitleTrackFromUriUseCaseJs', classMeta, VOID, [GetSubtitleTrackFromUriUseCase], VOID, VOID, VOID, [3]); setMetadataFor($invokeCOROUTINE$76, '$invokeCOROUTINE$76', classMeta, CoroutineImpl); setMetadataFor(LaunchXapiUseCaseJs, 'LaunchXapiUseCaseJs', classMeta, VOID, [LaunchXapiUseCase], VOID, VOID, VOID, [5]); setMetadataFor(SetLanguageUseCaseJs, 'SetLanguageUseCaseJs', classMeta, VOID, [SetLanguageUseCase]); setMetadataFor(OpenExternalLinkUseCaseJs, 'OpenExternalLinkUseCaseJs', classMeta, VOID, [OpenExternalLinkUseCase], OpenExternalLinkUseCaseJs); setMetadataFor(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda, 'BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$77, '$invokeCOROUTINE$77', 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$78, '$invokeCOROUTINE$78', 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$79, '$invokeCOROUTINE$79', classMeta, CoroutineImpl); setMetadataFor(ResumeOrStartXapiSessionUseCaseJs, 'ResumeOrStartXapiSessionUseCaseJs', classMeta, VOID, [ResumeOrStartXapiSessionUseCase], VOID, VOID, VOID, [7]); setMetadataFor(XXHasher64FactoryJs, 'XXHasher64FactoryJs', classMeta, VOID, [XXHasher64Factory], XXHasher64FactoryJs); setMetadataFor(XXHasher64Js, 'XXHasher64Js', classMeta); setMetadataFor(XXStringHasherJs, 'XXStringHasherJs', classMeta, VOID, [XXStringHasher], XXStringHasherJs); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_38, '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_39, '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_190, 'Companion', objectMeta); setMetadataFor(UstadMobileSystemImpl, 'UstadMobileSystemImpl', classMeta, UstadMobileSystemCommon, VOID, VOID, VOID, VOID, [2]); setMetadataFor(StringProviderJs, 'StringProviderJs', classMeta); setMetadataFor(Companion_191, 'Companion', objectMeta); setMetadataFor(SavedStateHandle2, 'SavedStateHandle2', classMeta); setMetadataFor(ClazzLogCreatorManagerJs, 'ClazzLogCreatorManagerJs', classMeta, VOID, [ClazzLogCreatorManager], ClazzLogCreatorManagerJs); setMetadataFor(UrlKmpJs, 'UrlKmpJs', classMeta); setMetadataFor(Companion_192, '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.nlt_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.olt_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.plt_1 = new Impl(this.olt_1, this.nlt_1); this.qlt_1 = new StringResource('app_name', this.plt_1); this.rlt_1 = new StringResource('blank', this.plt_1); this.slt_1 = new StringResource('login', this.plt_1); this.tlt_1 = new StringResource('got_it', this.plt_1); this.ult_1 = new StringResource('learn_more', this.plt_1); this.vlt_1 = new StringResource('be_careful_interacting_online', this.plt_1); this.wlt_1 = new StringResource('be_careful_not_to_share', this.plt_1); this.xlt_1 = new StringResource('share_app', this.plt_1); this.ylt_1 = new StringResource('send_apk_file', this.plt_1); this.zlt_1 = new StringResource('send_app_link', this.plt_1); this.alu_1 = new StringResource('error', this.plt_1); this.blu_1 = new StringResource('err_registering_new_user', this.plt_1); this.clu_1 = new StringResource('register_empty_fields', this.plt_1); this.dlu_1 = new StringResource('register_incorrect_email', this.plt_1); this.elu_1 = new StringResource('group_activity', this.plt_1); this.flu_1 = new StringResource('select_group_members', this.plt_1); this.glu_1 = new StringResource('confirm_delete_message', this.plt_1); this.hlu_1 = new StringResource('wrong_user_pass_combo', this.plt_1); this.ilu_1 = new StringResource('login_network_error', this.plt_1); this.jlu_1 = new StringResource('download', this.plt_1); this.klu_1 = new StringResource('downloaded', this.plt_1); this.llu_1 = new StringResource('recycled', this.plt_1); this.mlu_1 = new StringResource('libraries', this.plt_1); this.nlu_1 = new StringResource('pause_download', this.plt_1); this.olu_1 = new StringResource('ok', this.plt_1); this.plu_1 = new StringResource('confirm', this.plt_1); this.qlu_1 = new StringResource('cancel', this.plt_1); this.rlu_1 = new StringResource('canceled', this.plt_1); this.slu_1 = new StringResource('delete', this.plt_1); this.tlu_1 = new StringResource('deleted', this.plt_1); this.ulu_1 = new StringResource('new_tab', this.plt_1); this.vlu_1 = new StringResource('loading', this.plt_1); this.wlu_1 = new StringResource('deleting', this.plt_1); this.xlu_1 = new StringResource('processing', this.plt_1); this.ylu_1 = new StringResource('uploading', this.plt_1); this.zlu_1 = new StringResource('error_opening_file', this.plt_1); this.alv_1 = new StringResource('logout', this.plt_1); this.blv_1 = new StringResource('about', this.plt_1); this.clv_1 = new StringResource('download_all', this.plt_1); this.dlv_1 = new StringResource('next', this.plt_1); this.elv_1 = new StringResource('previous', this.plt_1); this.flv_1 = new StringResource('back', this.plt_1); this.glv_1 = new StringResource('username', this.plt_1); this.hlv_1 = new StringResource('password', this.plt_1); this.ilv_1 = new StringResource('confirm_password', this.plt_1); this.jlv_1 = new StringResource('last_name', this.plt_1); this.klv_1 = new StringResource('first_name', this.plt_1); this.llv_1 = new StringResource('least_recent', this.plt_1); this.mlv_1 = new StringResource('by_score', this.plt_1); this.nlv_1 = new StringResource('by_completion', this.plt_1); this.olv_1 = new StringResource('by_recent_attempt', this.plt_1); this.plv_1 = new StringResource('by_timestamp', this.plt_1); this.qlv_1 = new StringResource('register_now', this.plt_1); this.rlv_1 = new StringResource('new_password', this.plt_1); this.slv_1 = new StringResource('phone_memory', this.plt_1); this.tlv_1 = new StringResource('memory_card', this.plt_1); this.ulv_1 = new StringResource('device', this.plt_1); this.vlv_1 = new StringResource('register', this.plt_1); this.wlv_1 = new StringResource('phone_number', this.plt_1); this.xlv_1 = new StringResource('name_key', this.plt_1); this.ylv_1 = new StringResource('description', this.plt_1); this.zlv_1 = new StringResource('male', this.plt_1); this.alw_1 = new StringResource('female', this.plt_1); this.blw_1 = new StringResource('other', this.plt_1); this.clw_1 = new StringResource('unset', this.plt_1); this.dlw_1 = new StringResource('settings', this.plt_1); this.elw_1 = new StringResource('language', this.plt_1); this.flw_1 = new StringResource('add_a_new_language', this.plt_1); this.glw_1 = new StringResource('add_new_language', this.plt_1); this.hlw_1 = new StringResource('select_language', this.plt_1); this.ilw_1 = new StringResource('languages', this.plt_1); this.jlw_1 = new StringResource('edit_language', this.plt_1); this.klw_1 = new StringResource('two_letter_code', this.plt_1); this.llw_1 = new StringResource('three_letter_code', this.plt_1); this.mlw_1 = new StringResource('languages_description', this.plt_1); this.nlw_1 = new StringResource('advanced', this.plt_1); this.olw_1 = new StringResource('optional', this.plt_1); this.plw_1 = new StringResource('email', this.plt_1); this.qlw_1 = new StringResource('regcode', this.plt_1); this.rlw_1 = new StringResource('home', this.plt_1); this.slw_1 = new StringResource('phone', this.plt_1); this.tlw_1 = new StringResource('attendance', this.plt_1); this.ulw_1 = new StringResource('classes', this.plt_1); this.vlw_1 = new StringResource('exams', this.plt_1); this.wlw_1 = new StringResource('reports', this.plt_1); this.xlw_1 = new StringResource('choose_template', this.plt_1); this.ylw_1 = new StringResource('save_as_template', this.plt_1); this.zlw_1 = new StringResource('contents', this.plt_1); this.alx_1 = new StringResource('students', this.plt_1); this.blx_1 = new StringResource('add_a_student', this.plt_1); this.clx_1 = new StringResource('forgot_password', this.plt_1); this.dlx_1 = new StringResource('notifications', this.plt_1); this.elx_1 = new StringResource('account', this.plt_1); this.flx_1 = new StringResource('accounts', this.plt_1); this.glx_1 = new StringResource('share', this.plt_1); this.hlx_1 = new StringResource('send', this.plt_1); this.ilx_1 = new StringResource('open', this.plt_1); this.jlx_1 = new StringResource('downloading', this.plt_1); this.klx_1 = new StringResource('waiting', this.plt_1); this.llx_1 = new StringResource('waiting_for_connection', this.plt_1); this.mlx_1 = new StringResource('queued', this.plt_1); this.nlx_1 = new StringResource('failed', this.plt_1); this.olx_1 = new StringResource('passed', this.plt_1); this.plx_1 = new StringResource('success', this.plt_1); this.qlx_1 = new StringResource('failure', this.plt_1); this.rlx_1 = new StringResource('incomplete', this.plt_1); this.slx_1 = new StringResource('completed', this.plt_1); this.tlx_1 = new StringResource('experience', this.plt_1); this.ulx_1 = new StringResource('answered', this.plt_1); this.vlx_1 = new StringResource('select_subtitle_video', this.plt_1); this.wlx_1 = new StringResource('no_subtitle', this.plt_1); this.xlx_1 = new StringResource('no_video_file_found', this.plt_1); this.ylx_1 = new StringResource('content_from_file', this.plt_1); this.zlx_1 = new StringResource('content_from_link', this.plt_1); this.aly_1 = new StringResource('import_from_file', this.plt_1); this.bly_1 = new StringResource('import_from_link', this.plt_1); this.cly_1 = new StringResource('import_content', this.plt_1); this.dly_1 = new StringResource('update_content', this.plt_1); this.ely_1 = new StringResource('publicly_accessible', this.plt_1); this.fly_1 = new StringResource('title', this.plt_1); this.gly_1 = new StringResource('licence', this.plt_1); this.hly_1 = new StringResource('ebook', this.plt_1); this.ily_1 = new StringResource('interactive', this.plt_1); this.jly_1 = new StringResource('collection', this.plt_1); this.kly_1 = new StringResource('document', this.plt_1); this.lly_1 = new StringResource('article', this.plt_1); this.mly_1 = new StringResource('audio', this.plt_1); this.nly_1 = new StringResource('move', this.plt_1); this.oly_1 = new StringResource('hide', this.plt_1); this.ply_1 = new StringResource('unhide', this.plt_1); this.qly_1 = new StringResource('compress', this.plt_1); this.rly_1 = new StringResource('and_key', this.plt_1); this.sly_1 = new StringResource('added', this.plt_1); this.tly_1 = new StringResource('attempts', this.plt_1); this.uly_1 = new StringResource('add_link_description', this.plt_1); this.vly_1 = new StringResource('add_gallery_description', this.plt_1); this.wly_1 = new StringResource('add_file_description', this.plt_1); this.xly_1 = new StringResource('error_this_device_doesnt_support_bluetooth_sharing', this.plt_1); this.yly_1 = new StringResource('share_offline_zip_checkbox_label', this.plt_1); this.zly_1 = new StringResource('share_offline_dialog_message', this.plt_1); this.alz_1 = new StringResource('preparing', this.plt_1); this.blz_1 = new StringResource('fixed_date', this.plt_1); this.clz_1 = new StringResource('relative_date', this.plt_1); this.dlz_1 = new StringResource('field_required_prompt', this.plt_1); this.elz_1 = new StringResource('field_password_error_min', this.plt_1); this.flz_1 = new StringResource('filed_password_no_match', this.plt_1); this.glz_1 = new StringResource('update', this.plt_1); this.hlz_1 = new StringResource('profile', this.plt_1); this.ilz_1 = new StringResource('dialog_download_from_playstore_message', this.plt_1); this.jlz_1 = new StringResource('dialog_download_from_playstore_ok', this.plt_1); this.klz_1 = new StringResource('dialog_download_from_playstore_cancel', this.plt_1); this.llz_1 = new StringResource('accept', this.plt_1); this.mlz_1 = new StringResource('also_available_in', this.plt_1); this.nlz_1 = new StringResource('created_partnership', this.plt_1); this.olz_1 = new StringResource('onboarding_get_started_label', this.plt_1); this.plz_1 = new StringResource('lets_get_started_label', this.plt_1); this.qlz_1 = new StringResource('onboarding_headline1', this.plt_1); this.rlz_1 = new StringResource('onboarding_subheadline1', this.plt_1); this.slz_1 = new StringResource('onboarding_headline2', this.plt_1); this.tlz_1 = new StringResource('onboarding_subheadline2', this.plt_1); this.ulz_1 = new StringResource('onboarding_headline3', this.plt_1); this.vlz_1 = new StringResource('onboarding_subheadline3', this.plt_1); this.wlz_1 = new StringResource('download_continue_stacked_label', this.plt_1); this.xlz_1 = new StringResource('download_continue_btn_label', this.plt_1); this.ylz_1 = new StringResource('download_wifi_only', this.plt_1); this.zlz_1 = new StringResource('download_calculating', this.plt_1); this.am0_1 = new StringResource('download_state_download', this.plt_1); this.bm0_1 = new StringResource('download_state_downloading', this.plt_1); this.cm0_1 = new StringResource('download_state_downloaded', this.plt_1); this.dm0_1 = new StringResource('download_downloading_placeholder', this.plt_1); this.em0_1 = new StringResource('download_summary_title', this.plt_1); this.fm0_1 = new StringResource('download_cancel_label', this.plt_1); this.gm0_1 = new StringResource('download_pause_download', this.plt_1); this.hm0_1 = new StringResource('download_storage_option_device', this.plt_1); this.im0_1 = new StringResource('download_locally_availability', this.plt_1); this.jm0_1 = new StringResource('download_cloud_availability', this.plt_1); this.km0_1 = new StringResource('insufficient_space', this.plt_1); this.lm0_1 = new StringResource('download_entry_state_paused', this.plt_1); this.mm0_1 = new StringResource('get_app', this.plt_1); this.nm0_1 = new StringResource('no_app_found', this.plt_1); this.om0_1 = new StringResource('entry_details_author', this.plt_1); this.pm0_1 = new StringResource('entry_details_publisher', this.plt_1); this.qm0_1 = new StringResource('entry_details_license', this.plt_1); this.rm0_1 = new StringResource('file_not_found', this.plt_1); this.sm0_1 = new StringResource('multiple_choice', this.plt_1); this.tm0_1 = new StringResource('preview', this.plt_1); this.um0_1 = new StringResource('content_creation_storage_option_title', this.plt_1); this.vm0_1 = new StringResource('file_required_prompt', this.plt_1); this.wm0_1 = new StringResource('content_creation_folder_new_message', this.plt_1); this.xm0_1 = new StringResource('content_creation_folder_update_message', this.plt_1); this.ym0_1 = new StringResource('error_message_load_page', this.plt_1); this.zm0_1 = new StringResource('error_message_update_document', this.plt_1); this.am1_1 = new StringResource('supported_files', this.plt_1); this.bm1_1 = new StringResource('content_editor_save_error', this.plt_1); this.cm1_1 = new StringResource('content_entry_export_inprogress', this.plt_1); this.dm1_1 = new StringResource('content_entry_export_message', this.plt_1); this.em1_1 = new StringResource('show_hidden_items', this.plt_1); this.fm1_1 = new StringResource('open_folder', this.plt_1); this.gm1_1 = new StringResource('action_hidden', this.plt_1); this.hm1_1 = new StringResource('invalid', this.plt_1); this.im1_1 = new StringResource('enter_register_code', this.plt_1); this.jm1_1 = new StringResource('bar_chart', this.plt_1); this.km1_1 = new StringResource('line_chart', this.plt_1); this.lm1_1 = new StringResource('score', this.plt_1); this.mm1_1 = new StringResource('content_total_duration', this.plt_1); this.nm1_1 = new StringResource('content_average_duration', this.plt_1); this.om1_1 = new StringResource('count_session', this.plt_1); this.pm1_1 = new StringResource('interaction_recorded', this.plt_1); this.qm1_1 = new StringResource('number_active_users', this.plt_1); this.rm1_1 = new StringResource('average_usage_time_per_user', this.plt_1); this.sm1_1 = new StringResource('number_students_completed', this.plt_1); this.tm1_1 = new StringResource('percent_students_completed', this.plt_1); this.um1_1 = new StringResource('total_attendances', this.plt_1); this.vm1_1 = new StringResource('total_absences', this.plt_1); this.wm1_1 = new StringResource('total_lates', this.plt_1); this.xm1_1 = new StringResource('percent_students_attended', this.plt_1); this.ym1_1 = new StringResource('percent_students_attended_or_late', this.plt_1); this.zm1_1 = new StringResource('total_number_of_classes', this.plt_1); this.am2_1 = new StringResource('number_unique_students_attending', this.plt_1); this.bm2_1 = new StringResource('xapi_day', this.plt_1); this.cm2_1 = new StringResource('xapi_week', this.plt_1); this.dm2_1 = new StringResource('xapi_month', this.plt_1); this.em2_1 = new StringResource('xapi_custom_date', this.plt_1); this.fm2_1 = new StringResource('xapi_content_entry', this.plt_1); this.gm2_1 = new StringResource('xapi_clear', this.plt_1); this.hm2_1 = new StringResource('last_week_date_range', this.plt_1); this.im2_1 = new StringResource('last_two_week_date_range', this.plt_1); this.jm2_1 = new StringResource('last_month_date_range', this.plt_1); this.km2_1 = new StringResource('last_three_months_date_range', this.plt_1); this.lm2_1 = new StringResource('new_custom_date_range', this.plt_1); this.mm2_1 = new StringResource('selected_custom_range', this.plt_1); this.nm2_1 = new StringResource('time_range', this.plt_1); this.om2_1 = new StringResource('year', this.plt_1); this.pm2_1 = new StringResource('from', this.plt_1); this.qm2_1 = new StringResource('done', this.plt_1); this.rm2_1 = new StringResource('xapi_options_general', this.plt_1); this.sm2_1 = new StringResource('xapi_options_report_title', this.plt_1); this.tm2_1 = new StringResource('xapi_options_visual_type', this.plt_1); this.um2_1 = new StringResource('xapi_options_data_set', this.plt_1); this.vm2_1 = new StringResource('xapi_options_series', this.plt_1); this.wm2_1 = new StringResource('xapi_options_axes', this.plt_1); this.xm2_1 = new StringResource('xapi_options_y_axes', this.plt_1); this.ym2_1 = new StringResource('xapi_options_x_axes', this.plt_1); this.zm2_1 = new StringResource('xapi_options_subgroup', this.plt_1); this.am3_1 = new StringResource('xapi_options_filters', this.plt_1); this.bm3_1 = new StringResource('xapi_options_who', this.plt_1); this.cm3_1 = new StringResource('xapi_options_did', this.plt_1); this.dm3_1 = new StringResource('xapi_options_what', this.plt_1); this.em3_1 = new StringResource('xapi_options_when', this.plt_1); this.fm3_1 = new StringResource('xapi_options_where', this.plt_1); this.gm3_1 = new StringResource('time_range_all', this.plt_1); this.hm3_1 = new StringResource('report_filter_edit_field', this.plt_1); this.im3_1 = new StringResource('report_filter_edit_condition', this.plt_1); this.jm3_1 = new StringResource('report_filter_edit_values', this.plt_1); this.km3_1 = new StringResource('report', this.plt_1); this.lm3_1 = new StringResource('create_a_new_report', this.plt_1); this.mm3_1 = new StringResource('edit_report', this.plt_1); this.nm3_1 = new StringResource('verb', this.plt_1); this.om3_1 = new StringResource('add_a_new_verb', this.plt_1); this.pm3_1 = new StringResource('id_verbentity_urlid', this.plt_1); this.qm3_1 = new StringResource('edit_filters', this.plt_1); this.rm3_1 = new StringResource('field_person_gender', this.plt_1); this.sm3_1 = new StringResource('field_person_age', this.plt_1); this.tm3_1 = new StringResource('field_content_completion', this.plt_1); this.um3_1 = new StringResource('field_content_entry', this.plt_1); this.vm3_1 = new StringResource('field_content_progress', this.plt_1); this.wm3_1 = new StringResource('field_attendance_percentage', this.plt_1); this.xm3_1 = new StringResource('condition_is', this.plt_1); this.ym3_1 = new StringResource('condition_is_not', this.plt_1); this.zm3_1 = new StringResource('condition_greater_than', this.plt_1); this.am4_1 = new StringResource('condition_less_than', this.plt_1); this.bm4_1 = new StringResource('condition_in_list', this.plt_1); this.cm4_1 = new StringResource('condition_not_in_list', this.plt_1); this.dm4_1 = new StringResource('condition_between', this.plt_1); this.em4_1 = new StringResource('add_person_filter', this.plt_1); this.fm4_1 = new StringResource('add_verb_filter', this.plt_1); this.gm4_1 = new StringResource('add_content_filter', this.plt_1); this.hm4_1 = new StringResource('dashboard', this.plt_1); this.im4_1 = new StringResource('activity_import_link', this.plt_1); this.jm4_1 = new StringResource('xapi_hours', this.plt_1); this.km4_1 = new StringResource('xapi_minutes', this.plt_1); this.lm4_1 = new StringResource('xapi_seconds', this.plt_1); this.mm4_1 = new StringResource('xapi_verb_header', this.plt_1); this.nm4_1 = new StringResource('xapi_result_header', this.plt_1); this.om4_1 = new StringResource('xapi_score', this.plt_1); this.pm4_1 = new StringResource('content_score', this.plt_1); this.qm4_1 = new StringResource('completion_key', this.plt_1); this.rm4_1 = new StringResource('import_title_not_entered', this.plt_1); this.sm4_1 = new StringResource('no_account', this.plt_1); this.tm4_1 = new StringResource('enter_url', this.plt_1); this.um4_1 = new StringResource('invalid_link', this.plt_1); this.vm4_1 = new StringResource('invalid_file', this.plt_1); this.wm4_1 = new StringResource('import_link_content_not_supported', this.plt_1); this.xm4_1 = new StringResource('unsupported_file_type', this.plt_1); this.ym4_1 = new StringResource('import_link_big_size', this.plt_1); this.zm4_1 = new StringResource('import_link_error', this.plt_1); this.am5_1 = new StringResource('supported_link', this.plt_1); this.bm5_1 = new StringResource('offline_sharing_enable_bluetooth_prompt', this.plt_1); this.cm5_1 = new StringResource('offline_sharing_enable_wifi_promot', this.plt_1); this.dm5_1 = new StringResource('enable', this.plt_1); this.em5_1 = new StringResource('repo_loading_status_loading_cloud', this.plt_1); this.fm5_1 = new StringResource('repo_loading_status_loading_mirror', this.plt_1); this.gm5_1 = new StringResource('repo_loading_status_failed_noconnection', this.plt_1); this.hm5_1 = new StringResource('repo_loading_status_failed_connection_error', this.plt_1); this.im5_1 = new StringResource('licence_type_cc_by', this.plt_1); this.jm5_1 = new StringResource('licence_type_cc_by_sa', this.plt_1); this.km5_1 = new StringResource('licence_type_cc_by_sa_nc', this.plt_1); this.lm5_1 = new StringResource('licence_type_cc_by_nc', this.plt_1); this.mm5_1 = new StringResource('licence_type_cc_by_nc_sa', this.plt_1); this.nm5_1 = new StringResource('licence_type_public_domain', this.plt_1); this.om5_1 = new StringResource('licence_type_all_rights', this.plt_1); this.pm5_1 = new StringResource('license_type_cc_0', this.plt_1); this.qm5_1 = new StringResource('syncing', this.plt_1); this.rm5_1 = new StringResource('feed', this.plt_1); this.sm5_1 = new StringResource('people', this.plt_1); this.tm5_1 = new StringResource('record_attendance', this.plt_1); this.um5_1 = new StringResource('today', this.plt_1); this.vm5_1 = new StringResource('sort_by', this.plt_1); this.wm5_1 = new StringResource('log', this.plt_1); this.xm5_1 = new StringResource('schedule', this.plt_1); this.ym5_1 = new StringResource('add_a_schedule', this.plt_1); this.zm5_1 = new StringResource('edit_schedule', this.plt_1); this.am6_1 = new StringResource('first_key', this.plt_1); this.bm6_1 = new StringResource('last_key', this.plt_1); this.cm6_1 = new StringResource('last_week', this.plt_1); this.dm6_1 = new StringResource('mark_all', this.plt_1); this.em6_1 = new StringResource('mark_all_present', this.plt_1); this.fm6_1 = new StringResource('mark_all_absent', this.plt_1); this.gm6_1 = new StringResource('present', this.plt_1); this.hm6_1 = new StringResource('absent', this.plt_1); this.im6_1 = new StringResource('attendance_report', this.plt_1); this.jm6_1 = new StringResource('father', this.plt_1); this.km6_1 = new StringResource('mother', this.plt_1); this.lm6_1 = new StringResource('birthday', this.plt_1); this.mm6_1 = new StringResource('first_names', this.plt_1); this.nm6_1 = new StringResource('basic_details', this.plt_1); this.om6_1 = new StringResource('address', this.plt_1); this.pm6_1 = new StringResource('add_person_to_class', this.plt_1); this.qm6_1 = new StringResource('edit', this.plt_1); this.rm6_1 = new StringResource('clazz', this.plt_1); this.sm6_1 = new StringResource('add_a_new_class', this.plt_1); this.tm6_1 = new StringResource('edit_clazz', this.plt_1); this.um6_1 = new StringResource('add_a_class', this.plt_1); this.vm6_1 = new StringResource('join_existing_class', this.plt_1); this.wm6_1 = new StringResource('student_image', this.plt_1); this.xm6_1 = new StringResource('question_key', this.plt_1); this.ym6_1 = new StringResource('add_question', this.plt_1); this.zm6_1 = new StringResource('edit_question', this.plt_1); this.am7_1 = new StringResource('questions', this.plt_1); this.bm7_1 = new StringResource('add_person', this.plt_1); this.cm7_1 = new StringResource('add_class', this.plt_1); this.dm7_1 = new StringResource('class_name', this.plt_1); this.em7_1 = new StringResource('class_description', this.plt_1); this.fm7_1 = new StringResource('to_key', this.plt_1); this.gm7_1 = new StringResource('holiday', this.plt_1); this.hm7_1 = new StringResource('add_a_holiday', this.plt_1); this.im7_1 = new StringResource('edit_holiday', this.plt_1); this.jm7_1 = new StringResource('holidays', this.plt_1); this.km7_1 = new StringResource('holiday_calendar', this.plt_1); this.lm7_1 = new StringResource('add_a_new_holiday_calendar', this.plt_1); this.mm7_1 = new StringResource('edit_holiday_calendar', this.plt_1); this.nm7_1 = new StringResource('features_enabled', this.plt_1); this.om7_1 = new StringResource('weekly', this.plt_1); this.pm7_1 = new StringResource('once', this.plt_1); this.qm7_1 = new StringResource('daily', this.plt_1); this.rm7_1 = new StringResource('monthly', this.plt_1); this.sm7_1 = new StringResource('yearly', this.plt_1); this.tm7_1 = new StringResource('sunday', this.plt_1); this.um7_1 = new StringResource('monday', this.plt_1); this.vm7_1 = new StringResource('tuesday', this.plt_1); this.wm7_1 = new StringResource('wednesday', this.plt_1); this.xm7_1 = new StringResource('thursday', this.plt_1); this.ym7_1 = new StringResource('friday', this.plt_1); this.zm7_1 = new StringResource('saturday', this.plt_1); this.am8_1 = new StringResource('day', this.plt_1); this.bm8_1 = new StringResource('toC', this.plt_1); this.cm8_1 = new StringResource('last_month', this.plt_1); this.dm8_1 = new StringResource('activity_change', this.plt_1); this.em8_1 = new StringResource('change_implemented_if_any', this.plt_1); this.fm8_1 = new StringResource('duration', this.plt_1); this.gm8_1 = new StringResource('how_did_it_go', this.plt_1); this.hm8_1 = new StringResource('notes', this.plt_1); this.im8_1 = new StringResource('activity', this.plt_1); this.jm8_1 = new StringResource('sort_by_name', this.plt_1); this.km8_1 = new StringResource('sort_by_name_asc', this.plt_1); this.lm8_1 = new StringResource('sort_by_name_desc', this.plt_1); this.mm8_1 = new StringResource('date_enroll', this.plt_1); this.nm8_1 = new StringResource('date_left', this.plt_1); this.om8_1 = new StringResource('enroled', this.plt_1); this.pm8_1 = new StringResource('class_enrolment', this.plt_1); this.qm8_1 = new StringResource('graduated', this.plt_1); this.rm8_1 = new StringResource('dropped_out', this.plt_1); this.sm8_1 = new StringResource('moved', this.plt_1); this.tm8_1 = new StringResource('new_leaving_reason', this.plt_1); this.um8_1 = new StringResource('edit_leaving_reason', this.plt_1); this.vm8_1 = new StringResource('edit_enrolment', this.plt_1); this.wm8_1 = new StringResource('new_enrolment', this.plt_1); this.xm8_1 = new StringResource('select_leaving_reason', this.plt_1); this.ym8_1 = new StringResource('add_leaving_reason', this.plt_1); this.zm8_1 = new StringResource('leaving_reason', this.plt_1); this.am9_1 = new StringResource('leaving_reasons', this.plt_1); this.bm9_1 = new StringResource('leaving_reason_manage', this.plt_1); this.cm9_1 = new StringResource('view_profile', this.plt_1); this.dm9_1 = new StringResource('class_enrolment_outcome', this.plt_1); this.em9_1 = new StringResource('class_enrolment_leaving', this.plt_1); this.fm9_1 = new StringResource('in_progress', this.plt_1); this.gm9_1 = new StringResource('outcome', this.plt_1); this.hm9_1 = new StringResource('person_enrolment_in_class', this.plt_1); this.im9_1 = new StringResource('enrolment', this.plt_1); this.jm9_1 = new StringResource('error_start_date_before_clazz_date', this.plt_1); this.km9_1 = new StringResource('error_start_date_before_previous_enrolment_date', this.plt_1); this.lm9_1 = new StringResource('time_present', this.plt_1); this.mm9_1 = new StringResource('ascending', this.plt_1); this.nm9_1 = new StringResource('descending', this.plt_1); this.om9_1 = new StringResource('sort_by_text', this.plt_1); this.pm9_1 = new StringResource('attendance_high_to_low', this.plt_1); this.qm9_1 = new StringResource('attendance_low_to_high', this.plt_1); this.rm9_1 = new StringResource('teacher', this.plt_1); this.sm9_1 = new StringResource('add_a_teacher', this.plt_1); this.tm9_1 = new StringResource('partial', this.plt_1); this.um9_1 = new StringResource('teachers_literal', this.plt_1); this.vm9_1 = new StringResource('participant', this.plt_1); this.wm9_1 = new StringResource('primary_user', this.plt_1); this.xm9_1 = new StringResource('up_key', this.plt_1); this.ym9_1 = new StringResource('down_key', this.plt_1); this.zm9_1 = new StringResource('activity_went_good', this.plt_1); this.ama_1 = new StringResource('activity_went_bad', this.plt_1); this.bma_1 = new StringResource('activity_enter_any_notes', this.plt_1); this.cma_1 = new StringResource('uom_frequency_title', this.plt_1); this.dma_1 = new StringResource('uom_duration_title', this.plt_1); this.ema_1 = new StringResource('uom_boolean_title', this.plt_1); this.fma_1 = new StringResource('uom_default_title', this.plt_1); this.gma_1 = new StringResource('add_activity', this.plt_1); this.hma_1 = new StringResource('add_activity_literal', this.plt_1); this.ima_1 = new StringResource('select_one', this.plt_1); this.jma_1 = new StringResource('measurement_type', this.plt_1); this.kma_1 = new StringResource('frequency', this.plt_1); this.lma_1 = new StringResource('yes_no', this.plt_1); this.mma_1 = new StringResource('time_period', this.plt_1); this.nma_1 = new StringResource('location', this.plt_1); this.oma_1 = new StringResource('last_three_months', this.plt_1); this.pma_1 = new StringResource('export', this.plt_1); this.qma_1 = new StringResource('date', this.plt_1); this.rma_1 = new StringResource('average', this.plt_1); this.sma_1 = new StringResource('age', this.plt_1); this.tma_1 = new StringResource('days', this.plt_1); this.uma_1 = new StringResource('apply', this.plt_1); this.vma_1 = new StringResource('file_selected', this.plt_1); this.wma_1 = new StringResource('all', this.plt_1); this.xma_1 = new StringResource('holiday_calendars', this.plt_1); this.yma_1 = new StringResource('holiday_calendars_desc', this.plt_1); this.zma_1 = new StringResource('sel_question_set', this.plt_1); this.amb_1 = new StringResource('sel_question_set_desc', this.plt_1); this.bmb_1 = new StringResource('users', this.plt_1); this.cmb_1 = new StringResource('nomination', this.plt_1); this.dmb_1 = new StringResource('active', this.plt_1); this.emb_1 = new StringResource('class_id', this.plt_1); this.fmb_1 = new StringResource('gender_literal', this.plt_1); this.gmb_1 = new StringResource('country', this.plt_1); this.hmb_1 = new StringResource('connectivity', this.plt_1); this.imb_1 = new StringResource('home_internet_access', this.plt_1); this.jmb_1 = new StringResource('mobile_internet_access', this.plt_1); this.kmb_1 = new StringResource('connectivity_limited', this.plt_1); this.lmb_1 = new StringResource('connectivity_full', this.plt_1); this.mmb_1 = new StringResource('prefer_not_to_say', this.plt_1); this.nmb_1 = new StringResource('sel_question_set_to_use', this.plt_1); this.omb_1 = new StringResource('search', this.plt_1); this.pmb_1 = new StringResource('attendance_percentage', this.plt_1); this.qmb_1 = new StringResource('filter', this.plt_1); this.rmb_1 = new StringResource('over_key', this.plt_1); this.smb_1 = new StringResource('sync', this.plt_1); this.tmb_1 = new StringResource('not_recorded', this.plt_1); this.umb_1 = new StringResource('groups', this.plt_1); this.vmb_1 = new StringResource('group_setting_desc', this.plt_1); this.wmb_1 = new StringResource('roles', this.plt_1); this.xmb_1 = new StringResource('role', this.plt_1); this.ymb_1 = new StringResource('add_a_new_role', this.plt_1); this.zmb_1 = new StringResource('edit_role', this.plt_1); this.amc_1 = new StringResource('rols_assignment', this.plt_1); this.bmc_1 = new StringResource('role_assignment_setting_desc', this.plt_1); this.cmc_1 = new StringResource('locations', this.plt_1); this.dmc_1 = new StringResource('locations_setting_desc', this.plt_1); this.emc_1 = new StringResource('audit_log', this.plt_1); this.fmc_1 = new StringResource('audit_log_setting_desc', this.plt_1); this.gmc_1 = new StringResource('entry_key', this.plt_1); this.hmc_1 = new StringResource('permission_key', this.plt_1); this.imc_1 = new StringResource('permissions', this.plt_1); this.jmc_1 = new StringResource('role_name', this.plt_1); this.kmc_1 = new StringResource('members_key', this.plt_1); this.lmc_1 = new StringResource('member_key', this.plt_1); this.mmc_1 = new StringResource('role_assignment', this.plt_1); this.nmc_1 = new StringResource('scope_by', this.plt_1); this.omc_1 = new StringResource('assign_to', this.plt_1); this.pmc_1 = new StringResource('person', this.plt_1); this.qmc_1 = new StringResource('add_a_new_person', this.plt_1); this.rmc_1 = new StringResource('edit_person', this.plt_1); this.smc_1 = new StringResource('permission_person_select', this.plt_1); this.tmc_1 = new StringResource('permission_person_insert', this.plt_1); this.umc_1 = new StringResource('permission_person_update', this.plt_1); this.vmc_1 = new StringResource('permission_person_picture_select', this.plt_1); this.wmc_1 = new StringResource('permission_person_picture_insert', this.plt_1); this.xmc_1 = new StringResource('permission_person_picture_update', this.plt_1); this.ymc_1 = new StringResource('permission_clazz_select', this.plt_1); this.zmc_1 = new StringResource('permission_clazz_insert', this.plt_1); this.amd_1 = new StringResource('permission_clazz_update', this.plt_1); this.bmd_1 = new StringResource('permission_clazz_add_teacher', this.plt_1); this.cmd_1 = new StringResource('permission_clazz_add_student', this.plt_1); this.dmd_1 = new StringResource('permission_attendance_select', this.plt_1); this.emd_1 = new StringResource('permission_attendance_insert', this.plt_1); this.fmd_1 = new StringResource('permission_attendance_update', this.plt_1); this.gmd_1 = new StringResource('permission_activity_select', this.plt_1); this.hmd_1 = new StringResource('permission_activity_insert', this.plt_1); this.imd_1 = new StringResource('permission_activity_update', this.plt_1); this.jmd_1 = new StringResource('permission_sel_question_select', this.plt_1); this.kmd_1 = new StringResource('permission_sel_question_insert', this.plt_1); this.lmd_1 = new StringResource('permission_sel_question_update', this.plt_1); this.mmd_1 = new StringResource('permission_sel_select', this.plt_1); this.nmd_1 = new StringResource('permission_sel_update', this.plt_1); this.omd_1 = new StringResource('custom_fields', this.plt_1); this.pmd_1 = new StringResource('custom_field', this.plt_1); this.qmd_1 = new StringResource('custom_fields_desc', this.plt_1); this.rmd_1 = new StringResource('field_type', this.plt_1); this.smd_1 = new StringResource('text', this.plt_1); this.tmd_1 = new StringResource('dropdown', this.plt_1); this.umd_1 = new StringResource('options', this.plt_1); this.vmd_1 = new StringResource('option_value', this.plt_1); this.wmd_1 = new StringResource('errors', this.plt_1); this.xmd_1 = new StringResource('shake_feedback', this.plt_1); this.ymd_1 = new StringResource('feedback_hint', this.plt_1); this.zmd_1 = new StringResource('send_feedback', this.plt_1); this.ame_1 = new StringResource('feedback_thanks', this.plt_1); this.bme_1 = new StringResource('start_date', this.plt_1); this.cme_1 = new StringResource('end_date', this.plt_1); this.dme_1 = new StringResource('last_active', this.plt_1); this.eme_1 = new StringResource('save', this.plt_1); this.fme_1 = new StringResource('change_password', this.plt_1); this.gme_1 = new StringResource('current_password', this.plt_1); this.hme_1 = new StringResource('password_unchanged', this.plt_1); this.ime_1 = new StringResource('timezone', this.plt_1); this.jme_1 = new StringResource('users_settings_desc', this.plt_1); this.kme_1 = new StringResource('add', this.plt_1); this.lme_1 = new StringResource('refresh', this.plt_1); this.mme_1 = new StringResource('school', this.plt_1); this.nme_1 = new StringResource('add_a_new_school', this.plt_1); this.ome_1 = new StringResource('edit_school', this.plt_1); this.pme_1 = new StringResource('join_existing_school', this.plt_1); this.qme_1 = new StringResource('schools', this.plt_1); this.rme_1 = new StringResource('assignments', this.plt_1); this.sme_1 = new StringResource('assignment', this.plt_1); this.tme_1 = new StringResource('none_key', this.plt_1); this.ume_1 = new StringResource('instructions_for_students', this.plt_1); this.vme_1 = new StringResource('not_started', this.plt_1); this.wme_1 = new StringResource('percentage_complete', this.plt_1); this.xme_1 = new StringResource('percentage_score', this.plt_1); this.yme_1 = new StringResource('started_date', this.plt_1); this.zme_1 = new StringResource('started', this.plt_1); this.amf_1 = new StringResource('mixed', this.plt_1); this.bmf_1 = new StringResource('store_title', this.plt_1); this.cmf_1 = new StringResource('store_description_short', this.plt_1); this.dmf_1 = new StringResource('store_description_full', this.plt_1); this.emf_1 = new StringResource('due_date', this.plt_1); this.fmf_1 = new StringResource('content', this.plt_1); this.gmf_1 = new StringResource('add_new_content', this.plt_1); this.hmf_1 = new StringResource('add_content', this.plt_1); this.imf_1 = new StringResource('student_progress', this.plt_1); this.jmf_1 = new StringResource('status', this.plt_1); this.kmf_1 = new StringResource('use_device_language', this.plt_1); this.lmf_1 = new StringResource('select_item', this.plt_1); this.mmf_1 = new StringResource('from_to_date', this.plt_1); this.nmf_1 = new StringResource('num_items_with_name', this.plt_1); this.omf_1 = new StringResource('num_items_with_name_with_comma', this.plt_1); this.pmf_1 = new StringResource('add_to', this.plt_1); this.qmf_1 = new StringResource('remove_from', this.plt_1); this.rmf_1 = new StringResource('change_photo', this.plt_1); this.smf_1 = new StringResource('remove_picture', this.plt_1); this.tmf_1 = new StringResource('take_new_photo_from_camera', this.plt_1); this.umf_1 = new StringResource('select_picture_from_gallery', this.plt_1); this.vmf_1 = new StringResource('select_file', this.plt_1); this.wmf_1 = new StringResource('permission_clazz_assignment_view', this.plt_1); this.xmf_1 = new StringResource('permission_clazz_asignment_edit', this.plt_1); this.ymf_1 = new StringResource('overview', this.plt_1); this.zmf_1 = new StringResource('add_new', this.plt_1); this.amg_1 = new StringResource('staff', this.plt_1); this.bmg_1 = new StringResource('x_teachers_y_students', this.plt_1); this.cmg_1 = new StringResource('call', this.plt_1); this.dmg_1 = new StringResource('organization_id', this.plt_1); this.emg_1 = new StringResource('student', this.plt_1); this.fmg_1 = new StringResource('contact_details', this.plt_1); this.gmg_1 = new StringResource('untitled', this.plt_1); this.hmg_1 = new StringResource('present_late_absent', this.plt_1); this.img_1 = new StringResource('marked_cap', this.plt_1); this.jmg_1 = new StringResource('submitted_cap', this.plt_1); this.kmg_1 = new StringResource('not_submitted_cap', this.plt_1); this.lmg_1 = new StringResource('submitliteral', this.plt_1); this.mmg_1 = new StringResource('x_percent_attended', this.plt_1); this.nmg_1 = new StringResource('answer', this.plt_1); this.omg_1 = new StringResource('of_content', this.plt_1); this.pmg_1 = new StringResource('nothing_here', this.plt_1); this.qmg_1 = new StringResource('not_answered', this.plt_1); this.rmg_1 = new StringResource('clazz_work', this.plt_1); this.smg_1 = new StringResource('add_a_new_clazzwork', this.plt_1); this.tmg_1 = new StringResource('edit_clazzwork', this.plt_1); this.umg_1 = new StringResource('clazz_assignment', this.plt_1); this.vmg_1 = new StringResource('new_assignment', this.plt_1); this.wmg_1 = new StringResource('edit_assignment', this.plt_1); this.xmg_1 = new StringResource('total_score', this.plt_1); this.ymg_1 = new StringResource('late_submission', this.plt_1); this.zmg_1 = new StringResource('mark_penalty', this.plt_1); this.amh_1 = new StringResource('late_submission_penalty', this.plt_1); this.bmh_1 = new StringResource('end_of_grace_period', this.plt_1); this.cmh_1 = new StringResource('allow_class_comments', this.plt_1); this.dmh_1 = new StringResource('after_deadline_date_error', this.plt_1); this.emh_1 = new StringResource('points', this.plt_1); this.fmh_1 = new StringResource('minimum_score', this.plt_1); this.gmh_1 = new StringResource('automatic', this.plt_1); this.hmh_1 = new StringResource('student_marks_content', this.plt_1); this.imh_1 = new StringResource('completion_criteria', this.plt_1); this.jmh_1 = new StringResource('mark_complete', this.plt_1); this.kmh_1 = new StringResource('late_penalty', this.plt_1); this.lmh_1 = new StringResource('marked_key', this.plt_1); this.mmh_1 = new StringResource('submitted_key', this.plt_1); this.nmh_1 = new StringResource('not_submitted', this.plt_1); this.omh_1 = new StringResource('visible_from_date', this.plt_1); this.pmh_1 = new StringResource('submission_type', this.plt_1); this.qmh_1 = new StringResource('no_submission_required', this.plt_1); this.rmh_1 = new StringResource('short_text', this.plt_1); this.smh_1 = new StringResource('attachment', this.plt_1); this.tmh_1 = new StringResource('quiz', this.plt_1); this.umh_1 = new StringResource('allow_private_comments_from_students', this.plt_1); this.vmh_1 = new StringResource('deadline', this.plt_1); this.wmh_1 = new StringResource('class_timezone', this.plt_1); this.xmh_1 = new StringResource('maximum_score', this.plt_1); this.ymh_1 = new StringResource('quiz_questions', this.plt_1); this.zmh_1 = new StringResource('time', this.plt_1); this.ami_1 = new StringResource('submission', this.plt_1); this.bmi_1 = new StringResource('public_comments', this.plt_1); this.cmi_1 = new StringResource('private_comments', this.plt_1); this.dmi_1 = new StringResource('submit_your_answer', this.plt_1); this.emi_1 = new StringResource('add_class_comment', this.plt_1); this.fmi_1 = new StringResource('add_private_comment', this.plt_1); this.gmi_1 = new StringResource('class_comments', this.plt_1); this.hmi_1 = new StringResource('submit', this.plt_1); this.imi_1 = new StringResource('three_num_items_with_name_with_comma', this.plt_1); this.jmi_1 = new StringResource('marking', this.plt_1); this.kmi_1 = new StringResource('return_and_mark_next', this.plt_1); this.lmi_1 = new StringResource('return_only', this.plt_1); this.mmi_1 = new StringResource('workspace', this.plt_1); this.nmi_1 = new StringResource('organisation', this.plt_1); this.omi_1 = new StringResource('use_public_library_site', this.plt_1); this.pmi_1 = new StringResource('create_site', this.plt_1); this.qmi_1 = new StringResource('connect_as_guest', this.plt_1); this.rmi_1 = new StringResource('create_account', this.plt_1); this.smi_1 = new StringResource('my', this.plt_1); this.tmi_1 = new StringResource('add_another', this.plt_1); this.umi_1 = new StringResource('logged_in_as', this.plt_1); this.vmi_1 = new StringResource('person_exists', this.plt_1); this.wmi_1 = new StringResource('username_too_short', this.plt_1); this.xmi_1 = new StringResource('username_too_long', this.plt_1); this.ymi_1 = new StringResource('username_starts_with_number', this.plt_1); this.zmi_1 = new StringResource('invalid_username', this.plt_1); this.amj_1 = new StringResource('incorrect_current_password', this.plt_1); this.bmj_1 = new StringResource('sel_question_type_free_text', this.plt_1); this.cmj_1 = new StringResource('sel_question_type_multiple_choice', this.plt_1); this.dmj_1 = new StringResource('question_text', this.plt_1); this.emj_1 = new StringResource('question_type', this.plt_1); this.fmj_1 = new StringResource('add_option', this.plt_1); this.gmj_1 = new StringResource('roles_and_permissions', this.plt_1); this.hmj_1 = new StringResource('add_role_permission', this.plt_1); this.imj_1 = new StringResource('scope', this.plt_1); this.jmj_1 = new StringResource('scope_description', this.plt_1); this.kmj_1 = new StringResource('role_description', this.plt_1); this.lmj_1 = new StringResource('assign_role', this.plt_1); this.mmj_1 = new StringResource('more_information', this.plt_1); this.nmj_1 = new StringResource('pending_requests', this.plt_1); this.omj_1 = new StringResource('pending', this.plt_1); this.pmj_1 = new StringResource('please_wait_for_approval', this.plt_1); this.qmj_1 = new StringResource('reject', this.plt_1); this.rmj_1 = new StringResource('ask_your_teacher_for_code', this.plt_1); this.smj_1 = new StringResource('copied_to_clipboard', this.plt_1); this.tmj_1 = new StringResource('invite_link_desc', this.plt_1); this.umj_1 = new StringResource('copy_link', this.plt_1); this.vmj_1 = new StringResource('copy_code', this.plt_1); this.wmj_1 = new StringResource('share_link', this.plt_1); this.xmj_1 = new StringResource('invite_with_link', this.plt_1); this.ymj_1 = new StringResource('role_not_selected_error', this.plt_1); this.zmj_1 = new StringResource('permission_person_delegate', this.plt_1); this.amk_1 = new StringResource('this_field_is_mandatory', this.plt_1); this.bmk_1 = new StringResource('permission_role_select', this.plt_1); this.cmk_1 = new StringResource('permission_role_insert', this.plt_1); this.dmk_1 = new StringResource('permission_school_select', this.plt_1); this.emk_1 = new StringResource('permission_school_insert', this.plt_1); this.fmk_1 = new StringResource('permission_school_update', this.plt_1); this.gmk_1 = new StringResource('add_student_to_school', this.plt_1); this.hmk_1 = new StringResource('add_staff_to_school', this.plt_1); this.imk_1 = new StringResource('permission_password_reset', this.plt_1); this.jmk_1 = new StringResource('school_code', this.plt_1); this.kmk_1 = new StringResource('invite_code', this.plt_1); this.lmk_1 = new StringResource('entity_code', this.plt_1); this.mmk_1 = new StringResource('join_code_instructions', this.plt_1); this.nmk_1 = new StringResource('record_for_student', this.plt_1); this.omk_1 = new StringResource('moved_x_entries', this.plt_1); this.pmk_1 = new StringResource('end_is_before_start_error', this.plt_1); this.qmk_1 = new StringResource('record_attendance_for_most_recent_occurrence', this.plt_1); this.rmk_1 = new StringResource('add_a_new_occurrence', this.plt_1); this.smk_1 = new StringResource('active_classes', this.plt_1); this.tmk_1 = new StringResource('terms_and_policies', this.plt_1); this.umk_1 = new StringResource('manage_site_settings', this.plt_1); this.vmk_1 = new StringResource('guest_login_enabled', this.plt_1); this.wmk_1 = new StringResource('registration_allowed', this.plt_1); this.xmk_1 = new StringResource('yes', this.plt_1); this.ymk_1 = new StringResource('no', this.plt_1); this.zmk_1 = new StringResource('edit_site', this.plt_1); this.aml_1 = new StringResource('site', this.plt_1); this.bml_1 = new StringResource('site_link', this.plt_1); this.cml_1 = new StringResource('please_enter_the_linK', this.plt_1); this.dml_1 = new StringResource('or', this.plt_1); this.eml_1 = new StringResource('connect', this.plt_1); this.fml_1 = new StringResource('terms_and_policies_text', this.plt_1); this.gml_1 = new StringResource('edit_terms_and_policies', this.plt_1); this.hml_1 = new StringResource('strings_not_allowed', this.plt_1); this.iml_1 = new StringResource('undo', this.plt_1); this.jml_1 = new StringResource('video', this.plt_1); this.kml_1 = new StringResource('content_editor_create_new_category', this.plt_1); this.lml_1 = new StringResource('content_pieces_completed', this.plt_1); this.mml_1 = new StringResource('content_usage_duration', this.plt_1); this.nml_1 = new StringResource('manage_download', this.plt_1); this.oml_1 = new StringResource('powered_by', this.plt_1); this.pml_1 = new StringResource('invalid_email', this.plt_1); this.qml_1 = new StringResource('select_account', this.plt_1); this.rml_1 = new StringResource('opening_link', this.plt_1); this.sml_1 = new StringResource('select_account_to_continue', this.plt_1); this.tml_1 = new StringResource('you_are_already_in_class', this.plt_1); this.uml_1 = new StringResource('you_are_already_in_school', this.plt_1); this.vml_1 = new StringResource('join_class', this.plt_1); this.wml_1 = new StringResource('join_school', this.plt_1); this.xml_1 = new StringResource('what_is_your_date_of_birth', this.plt_1); this.yml_1 = new StringResource('parents_email_address', this.plt_1); this.zml_1 = new StringResource('we_sent_a_message_to_your_parent', this.plt_1); this.amm_1 = new StringResource('toggle_visibility', this.plt_1); this.bmm_1 = new StringResource('parental_consent', this.plt_1); this.cmm_1 = new StringResource('parent_child_register_message_subject', this.plt_1); this.dmm_1 = new StringResource('parent_child_register_message', this.plt_1); this.emm_1 = new StringResource('parent_consent_explanation', this.plt_1); this.fmm_1 = new StringResource('relationship', this.plt_1); this.gmm_1 = new StringResource('i_consent', this.plt_1); this.hmm_1 = new StringResource('i_do_not_consent', this.plt_1); this.imm_1 = new StringResource('revoke_consent', this.plt_1); this.jmm_1 = new StringResource('restore_consent', this.plt_1); this.kmm_1 = new StringResource('status_consent_granted', this.plt_1); this.lmm_1 = new StringResource('status_consent_denied', this.plt_1); this.mmm_1 = new StringResource('other_legal_guardian', this.plt_1); this.nmm_1 = new StringResource('manage_parental_consent', this.plt_1); this.omm_1 = new StringResource('view_class_content', this.plt_1); this.pmm_1 = new StringResource('edit_class_content', this.plt_1); this.qmm_1 = new StringResource('view_class_learning_records', this.plt_1); this.rmm_1 = new StringResource('view_contact_details_of_members', this.plt_1); this.smm_1 = new StringResource('edit_contact_details_of_members', this.plt_1); this.tmm_1 = new StringResource('view_socioeconomic_details_of_members', this.plt_1); this.umm_1 = new StringResource('edit_socioeconomic_details_of_members', this.plt_1); this.vmm_1 = new StringResource('add_person_or_group', this.plt_1); this.wmm_1 = new StringResource('lets_get_started', this.plt_1); this.xmm_1 = new StringResource('looks_like_installed_app_from_link', this.plt_1); this.ymm_1 = new StringResource('continue_using_link_recommended', this.plt_1); this.zmm_1 = new StringResource('continue_using_the_link', this.plt_1); this.amn_1 = new StringResource('start_from_scratch', this.plt_1); this.bmn_1 = new StringResource('ignore_the_link', this.plt_1); this.cmn_1 = new StringResource('add_permission_for_a_person', this.plt_1); this.dmn_1 = new StringResource('add_permission_for_a_group', this.plt_1); this.emn_1 = new StringResource('add_using_link', this.plt_1); this.fmn_1 = new StringResource('add_using_a_web_link_then', this.plt_1); this.gmn_1 = new StringResource('add_from_gallery', this.plt_1); this.hmn_1 = new StringResource('add_video_or_audio_from_the_device_gallery', this.plt_1); this.imn_1 = new StringResource('add_file', this.plt_1); this.jmn_1 = new StringResource('add_folder', this.plt_1); this.kmn_1 = new StringResource('importing', this.plt_1); this.lmn_1 = new StringResource('downloading_content', this.plt_1); this.mmn_1 = new StringResource('deleting_content', this.plt_1); this.nmn_1 = new StringResource('add_folder_description', this.plt_1); this.omn_1 = new StringResource('add_educational_content_using_supported_formats_eg_pdf_xapi_h5p', this.plt_1); this.pmn_1 = new StringResource('current_status_consent_granted', this.plt_1); this.qmn_1 = new StringResource('select_country', this.plt_1); this.rmn_1 = new StringResource('enter_link', this.plt_1); this.smn_1 = new StringResource('add_subject', this.plt_1); this.tmn_1 = new StringResource('share_via', this.plt_1); this.umn_1 = new StringResource('share_apk_file', this.plt_1); this.vmn_1 = new StringResource('recommended_for_advanced_users', this.plt_1); this.wmn_1 = new StringResource('nearby_share', this.plt_1); this.xmn_1 = new StringResource('recommended_for_offline_installation', this.plt_1); this.ymn_1 = new StringResource('app_store_link', this.plt_1); this.zmn_1 = new StringResource('everything_works_offline', this.plt_1); this.amo_1 = new StringResource('swipe_to_next', this.plt_1); this.bmo_1 = new StringResource('content_entries_completed', this.plt_1); this.cmo_1 = new StringResource('content_usage_time', this.plt_1); this.dmo_1 = new StringResource('all_permissions', this.plt_1); this.emo_1 = new StringResource('folder', this.plt_1); this.fmo_1 = new StringResource('create_a_new_learning_env', this.plt_1); this.gmo_1 = new StringResource('add_educational_content_to_new_learning_env', this.plt_1); this.hmo_1 = new StringResource('connect_to_an_existing_learning_environment', this.plt_1); this.imo_1 = new StringResource('does_your_class_already_have_learning_env', this.plt_1); this.jmo_1 = new StringResource('use_the_public_lib_env', this.plt_1); this.kmo_1 = new StringResource('just_want_to_browse', this.plt_1); this.lmo_1 = new StringResource('revoking_consent_will', this.plt_1); this.mmo_1 = new StringResource('you_must_comply_with_license', this.plt_1); this.nmo_1 = new StringResource('you_can_copypaste_a_link', this.plt_1); this.omo_1 = new StringResource('see_supported_sites', this.plt_1); this.pmo_1 = new StringResource('class_setup', this.plt_1); this.qmo_1 = new StringResource('anyone_with_this_can_join_school', this.plt_1); this.rmo_1 = new StringResource('this_class', this.plt_1); this.smo_1 = new StringResource('from_my_classes', this.plt_1); this.tmo_1 = new StringResource('my_content', this.plt_1); this.umo_1 = new StringResource('learning_environment', this.plt_1); this.vmo_1 = new StringResource('grades_class_age', this.plt_1); this.wmo_1 = new StringResource('add_remove_and_modify_grades', this.plt_1); this.xmo_1 = new StringResource('subjects', this.plt_1); this.ymo_1 = new StringResource('add_remove_and_modify_subjects', this.plt_1); this.zmo_1 = new StringResource('create_my_account', this.plt_1); this.amp_1 = new StringResource('recommend_it', this.plt_1); this.bmp_1 = new StringResource('edit_permissions', this.plt_1); this.cmp_1 = new StringResource('add_from_contacts', this.plt_1); this.dmp_1 = new StringResource('almost_done', this.plt_1); this.emp_1 = new StringResource('your_username', this.plt_1); this.fmp_1 = new StringResource('select_content', this.plt_1); this.gmp_1 = new StringResource('search_in', this.plt_1); this.hmp_1 = new StringResource('type', this.plt_1); this.imp_1 = new StringResource('please_download_the_app', this.plt_1); this.jmp_1 = new StringResource('alternatively_you_can_download_the_apk', this.plt_1); this.kmp_1 = new StringResource('full_i_can_download_as_much_as_i_like', this.plt_1); this.lmp_1 = new StringResource('limited_i_avoid_downloading_too_much', this.plt_1); this.mmp_1 = new StringResource('oops', this.plt_1); this.nmp_1 = new StringResource('sorry_something_went_wrong', this.plt_1); this.omp_1 = new StringResource('incident_id', this.plt_1); this.pmp_1 = new StringResource('error_code', this.plt_1); this.qmp_1 = new StringResource('take_me_home', this.plt_1); this.rmp_1 = new StringResource('view_clazz', this.plt_1); this.smp_1 = new StringResource('view_clazzes', this.plt_1); this.tmp_1 = new StringResource('enrol_and_unenrol_students', this.plt_1); this.ump_1 = new StringResource('enrol_and_unenrol_teachers', this.plt_1); this.vmp_1 = new StringResource('view_assignments', this.plt_1); this.wmp_1 = new StringResource('add_or_edit_assignment', this.plt_1); this.xmp_1 = new StringResource('view_basic_profile_of_members', this.plt_1); this.ymp_1 = new StringResource('edit_basic_profile_of_members', this.plt_1); this.zmp_1 = new StringResource('view_school', this.plt_1); this.amq_1 = new StringResource('edit_clazzes', this.plt_1); this.bmq_1 = new StringResource('add_new_clazz_to_school', this.plt_1); this.cmq_1 = new StringResource('added_to_class_content', this.plt_1); this.dmq_1 = new StringResource('content_already_added_to_class', this.plt_1); this.emq_1 = new StringResource('your_account_needs_approved', this.plt_1); this.fmq_1 = new StringResource('adult_account_required', this.plt_1); this.gmq_1 = new StringResource('blank_report', this.plt_1); this.hmq_1 = new StringResource('attendance_over_time_by_class', this.plt_1); this.imq_1 = new StringResource('percentage_of_students_attending_over_time', this.plt_1); this.jmq_1 = new StringResource('content_completion', this.plt_1); this.kmq_1 = new StringResource('number_of_students_completed_time', this.plt_1); this.lmq_1 = new StringResource('content_usage_by_class', this.plt_1); this.mmq_1 = new StringResource('total_content_usage_duration_class', this.plt_1); this.nmq_1 = new StringResource('content_usage_over_time', this.plt_1); this.omq_1 = new StringResource('total_content_duration_gender', this.plt_1); this.pmq_1 = new StringResource('unique_content_users_over_time', this.plt_1); this.qmq_1 = new StringResource('number_of_active_users_over_time', this.plt_1); this.rmq_1 = new StringResource('parent', this.plt_1); this.smq_1 = new StringResource('upload', this.plt_1); this.tmq_1 = new StringResource('selected_file_summary', this.plt_1); this.umq_1 = new StringResource('drag_and_drop_or_click_to_add_file', this.plt_1); this.vmq_1 = new StringResource('extra_active_tab_warning', this.plt_1); this.wmq_1 = new StringResource('saved', this.plt_1); this.xmq_1 = new StringResource('individual', this.plt_1); this.ymq_1 = new StringResource('group', this.plt_1); this.zmq_1 = new StringResource('dont_show_before', this.plt_1); this.amr_1 = new StringResource('group_submission', this.plt_1); this.bmr_1 = new StringResource('require_file_submission', this.plt_1); this.cmr_1 = new StringResource('require_text_submission', this.plt_1); this.dmr_1 = new StringResource('maximum', this.plt_1); this.emr_1 = new StringResource('size_limit', this.plt_1); this.fmr_1 = new StringResource('size_limit_error', this.plt_1); this.gmr_1 = new StringResource('limit', this.plt_1); this.hmr_1 = new StringResource('number_of_files', this.plt_1); this.imr_1 = new StringResource('edit_after_submission', this.plt_1); this.jmr_1 = new StringResource('allowed_till_deadline', this.plt_1); this.kmr_1 = new StringResource('allowed_till_grace', this.plt_1); this.lmr_1 = new StringResource('not_allowed', this.plt_1); this.mmr_1 = new StringResource('marked_by', this.plt_1); this.nmr_1 = new StringResource('peers', this.plt_1); this.omr_1 = new StringResource('peers_to_review', this.plt_1); this.pmr_1 = new StringResource('file_type', this.plt_1); this.qmr_1 = new StringResource('file_type_chosen', this.plt_1); this.rmr_1 = new StringResource('file_type_any', this.plt_1); this.smr_1 = new StringResource('file_document', this.plt_1); this.tmr_1 = new StringResource('file_image', this.plt_1); this.umr_1 = new StringResource('submit_grade', this.plt_1); this.vmr_1 = new StringResource('submit_grade_and_mark_next', this.plt_1); this.wmr_1 = new StringResource('graded', this.plt_1); this.xmr_1 = new StringResource('score_greater_than_zero', this.plt_1); this.ymr_1 = new StringResource('words', this.plt_1); this.zmr_1 = new StringResource('characters', this.plt_1); this.ams_1 = new StringResource('class_timezone_set', this.plt_1); this.bms_1 = new StringResource('maximum_points', this.plt_1); this.cms_1 = new StringResource('penalty_label', this.plt_1); this.dms_1 = new StringResource('submissions', this.plt_1); this.ems_1 = new StringResource('add_text', this.plt_1); this.fms_1 = new StringResource('course_blocks', this.plt_1); this.gms_1 = new StringResource('add_block', this.plt_1); this.hms_1 = new StringResource('edit_block', this.plt_1); this.ims_1 = new StringResource('module', this.plt_1); this.jms_1 = new StringResource('course_module', this.plt_1); this.kms_1 = new StringResource('formatted_text_to_show_to_course_participants', this.plt_1); this.lms_1 = new StringResource('add_course_block_content_desc', this.plt_1); this.mms_1 = new StringResource('add_assignment_block_content_desc', this.plt_1); this.nms_1 = new StringResource('discussion_board', this.plt_1); this.oms_1 = new StringResource('add_discussion_board_desc', this.plt_1); this.pms_1 = new StringResource('new_module', this.plt_1); this.qms_1 = new StringResource('edit_module', this.plt_1); this.rms_1 = new StringResource('indent', this.plt_1); this.sms_1 = new StringResource('unindent', this.plt_1); this.tms_1 = new StringResource('institution', this.plt_1); this.ums_1 = new StringResource('student_enrolment_policy', this.plt_1); this.vms_1 = new StringResource('teacher_enrolment_policy', this.plt_1); this.wms_1 = new StringResource('open_enrolment', this.plt_1); this.xms_1 = new StringResource('enrolment_requests_must_be_approved', this.plt_1); this.yms_1 = new StringResource('accept_enrolment_requests_automatically', this.plt_1); this.zms_1 = new StringResource('visibility', this.plt_1); this.amt_1 = new StringResource('hidden_enrolment_via_links_code_or_invitation', this.plt_1); this.bmt_1 = new StringResource('visible_for_all', this.plt_1); this.cmt_1 = new StringResource('terminology', this.plt_1); this.dmt_1 = new StringResource('select_terminology', this.plt_1); this.emt_1 = new StringResource('add_new_terminology', this.plt_1); this.fmt_1 = new StringResource('edit_terminology', this.plt_1); this.gmt_1 = new StringResource('your_words_for', this.plt_1); this.hmt_1 = new StringResource('course_setup', this.plt_1); this.imt_1 = new StringResource('number_of_groups', this.plt_1); this.jmt_1 = new StringResource('assign_to_random_groups', this.plt_1); this.kmt_1 = new StringResource('add_new_groups', this.plt_1); this.lmt_1 = new StringResource('edit_groups', this.plt_1); this.mmt_1 = new StringResource('num_replies', this.plt_1); this.nmt_1 = new StringResource('topics', this.plt_1); this.omt_1 = new StringResource('add_topic', this.plt_1); this.pmt_1 = new StringResource('add_a_reply', this.plt_1); this.qmt_1 = new StringResource('messages', this.plt_1); this.rmt_1 = new StringResource('message', this.plt_1); this.smt_1 = new StringResource('library', this.plt_1); this.tmt_1 = new StringResource('courses', this.plt_1); this.umt_1 = new StringResource('course', this.plt_1); this.vmt_1 = new StringResource('reports_and_analytics', this.plt_1); this.wmt_1 = new StringResource('course_comments', this.plt_1); this.xmt_1 = new StringResource('currently_enroled', this.plt_1); this.ymt_1 = new StringResource('past_enrolments', this.plt_1); this.zmt_1 = new StringResource('standard', this.plt_1); this.amu_1 = new StringResource('group_number', this.plt_1); this.bmu_1 = new StringResource('add_group', this.plt_1); this.cmu_1 = new StringResource('edit_group', this.plt_1); this.dmu_1 = new StringResource('new_group_set', this.plt_1); this.emu_1 = new StringResource('edit_text', this.plt_1); this.fmu_1 = new StringResource('add_module', this.plt_1); this.gmu_1 = new StringResource('add_a_new_course', this.plt_1); this.hmu_1 = new StringResource('join_existing_course', this.plt_1); this.imu_1 = new StringResource('edit_course', this.plt_1); this.jmu_1 = new StringResource('currently_enrolled', this.plt_1); this.kmu_1 = new StringResource('past_enrollments', this.plt_1); this.lmu_1 = new StringResource('unread', this.plt_1); this.mmu_1 = new StringResource('new_chat', this.plt_1); this.nmu_1 = new StringResource('new_group', this.plt_1); this.omu_1 = new StringResource('chat', this.plt_1); this.pmu_1 = new StringResource('you', this.plt_1); this.qmu_1 = new StringResource('edit_topic', this.plt_1); this.rmu_1 = new StringResource('posts', this.plt_1); this.smu_1 = new StringResource('post', this.plt_1); this.tmu_1 = new StringResource('individual_submission', this.plt_1); this.umu_1 = new StringResource('unassigned', this.plt_1); this.vmu_1 = new StringResource('error_too_long_text', this.plt_1); this.wmu_1 = new StringResource('managed_enrolment', this.plt_1); this.xmu_1 = new StringResource('text_file_submission_error', this.plt_1); this.ymu_1 = new StringResource('submit_all_at_once_submission_policy', this.plt_1); this.zmu_1 = new StringResource('multiple_submission_allowed_submission_policy', this.plt_1); this.amv_1 = new StringResource('enrolment_policy', this.plt_1); this.bmv_1 = new StringResource('submission_policy', this.plt_1); this.cmv_1 = new StringResource('submission_already_made', this.plt_1); this.dmv_1 = new StringResource('grade_out_of_range', this.plt_1); this.emv_1 = new StringResource('update_grade', this.plt_1); this.fmv_1 = new StringResource('update_grade_and_mark_next', this.plt_1); this.gmv_1 = new StringResource('add_discussion', this.plt_1); this.hmv_1 = new StringResource('edit_discussion', this.plt_1); this.imv_1 = new StringResource('type_here', this.plt_1); this.jmv_1 = new StringResource('deadline_has_passed', this.plt_1); this.kmv_1 = new StringResource('already_submitted', this.plt_1); this.lmv_1 = new StringResource('exceeds_word_limit', this.plt_1); this.mmv_1 = new StringResource('exceeds_char_limit', this.plt_1); this.nmv_1 = new StringResource('unassigned_error', this.plt_1); this.omv_1 = new StringResource('enabled', this.plt_1); this.pmv_1 = new StringResource('disabled', this.plt_1); this.qmv_1 = new StringResource('from_my_courses', this.plt_1); this.rmv_1 = new StringResource('assign_reviewers', this.plt_1); this.smv_1 = new StringResource('reviews_per_user_group', this.plt_1); this.tmv_1 = new StringResource('assign_random_reviewers', this.plt_1); this.umv_1 = new StringResource('reviewer', this.plt_1); this.vmv_1 = new StringResource('app_language', this.plt_1); this.wmv_1 = new StringResource('pdf', this.plt_1); this.xmv_1 = new StringResource('panic_button_app', this.plt_1); this.ymv_1 = new StringResource('actions_to_be_taken_in_case_of_emergency', this.plt_1); this.zmv_1 = new StringResource('exit_app', this.plt_1); this.amw_1 = new StringResource('delete_app_data_from_device', this.plt_1); this.bmw_1 = new StringResource('more_options', this.plt_1); this.cmw_1 = new StringResource('num_holidays', this.plt_1); this.dmw_1 = new StringResource('hide_app', this.plt_1); this.emw_1 = new StringResource('panic_button_explanation', this.plt_1); this.fmw_1 = new StringResource('hide_app_explanation', this.plt_1); this.gmw_1 = new StringResource('most_recent', this.plt_1); this.hmw_1 = new StringResource('comment', this.plt_1); this.imw_1 = new StringResource('grant_app_permission', this.plt_1); this.jmw_1 = new StringResource('this_app_will_receive', this.plt_1); this.kmw_1 = new StringResource('my_profile', this.plt_1); this.lmw_1 = new StringResource('add_another_account', this.plt_1); this.mmw_1 = new StringResource('end_is_before_start', this.plt_1); this.nmw_1 = new StringResource('select_person', this.plt_1); this.omw_1 = new StringResource('your_submission', this.plt_1); this.pmw_1 = new StringResource('edit_content', this.plt_1); this.qmw_1 = new StringResource('edit_folder', this.plt_1); this.rmw_1 = new StringResource('add_new_post', this.plt_1); this.smw_1 = new StringResource('grades_scoring', this.plt_1); this.tmw_1 = new StringResource('mark_comment', this.plt_1); this.umw_1 = new StringResource('mark', this.plt_1); this.vmw_1 = new StringResource('too_high', this.plt_1); this.wmw_1 = new StringResource('required', this.plt_1); this.xmw_1 = new StringResource('expand', this.plt_1); this.ymw_1 = new StringResource('collapse', this.plt_1); this.zmw_1 = new StringResource('remove', this.plt_1); this.amx_1 = new StringResource('table_of_contents', this.plt_1); this.bmx_1 = new StringResource('select_date', this.plt_1); this.cmx_1 = new StringResource('link', this.plt_1); this.dmx_1 = new StringResource('time_submitted', this.plt_1); this.emx_1 = new StringResource('group_assignment', this.plt_1); this.fmx_1 = new StringResource('menu', this.plt_1); this.gmx_1 = new StringResource('restarting', this.plt_1); this.hmx_1 = new StringResource('terms_required_if_registration_enabled', this.plt_1); this.imx_1 = new StringResource('drop_files_to_import', this.plt_1); this.jmx_1 = new StringResource('compose_post', this.plt_1); this.kmx_1 = new StringResource('password_updated', this.plt_1); this.lmx_1 = new StringResource('html5_content_display_engine', this.plt_1); this.mmx_1 = new StringResource('chrome_recommended', this.plt_1); this.nmx_1 = new StringResource('chrome_recommended_info', this.plt_1); this.omx_1 = new StringResource('internal_webview', this.plt_1); this.pmx_1 = new StringResource('internal_webview_info', this.plt_1); this.qmx_1 = new StringResource('content_not_ready_try_later', this.plt_1); this.rmx_1 = new StringResource('version', this.plt_1); this.smx_1 = new StringResource('licenses', this.plt_1); this.tmx_1 = new StringResource('cannot_record_attendance_for_future_date_time', this.plt_1); this.umx_1 = new StringResource('could_not_load_vlc', this.plt_1); this.vmx_1 = new StringResource('selected', this.plt_1); this.wmx_1 = new StringResource('clear_selection', this.plt_1); this.xmx_1 = new StringResource('move_entries_to_this_folder', this.plt_1); this.ymx_1 = new StringResource('cannot_move_to_subfolder_of_self', this.plt_1); this.zmx_1 = new StringResource('cannot_move_already_in_same_folder', this.plt_1); this.amy_1 = new StringResource('move_to', this.plt_1); this.bmy_1 = new StringResource('restore', this.plt_1); this.cmy_1 = new StringResource('delete_permanently', this.plt_1); this.dmy_1 = new StringResource('deleted_items', this.plt_1); this.emy_1 = new StringResource('delete_or_restore_items', this.plt_1); this.fmy_1 = new StringResource('yesterday', this.plt_1); this.gmy_1 = new StringResource('request_to_enrol_already_pending', this.plt_1); this.hmy_1 = new StringResource('request_submitted', this.plt_1); this.imy_1 = new StringResource('canceled_enrolment_request', this.plt_1); this.jmy_1 = new StringResource('enroled_into_name', this.plt_1); this.kmy_1 = new StringResource('declined_request_from_name', this.plt_1); this.lmy_1 = new StringResource('view_course', this.plt_1); this.mmy_1 = new StringResource('moderate', this.plt_1); this.nmy_1 = new StringResource('manage_student_enrolments', this.plt_1); this.omy_1 = new StringResource('manage_teacher_enrolments', this.plt_1); this.pmy_1 = new StringResource('view_learning_records', this.plt_1); this.qmy_1 = new StringResource('edit_learning_records', this.plt_1); this.rmy_1 = new StringResource('view_members', this.plt_1); this.smy_1 = new StringResource('copy_invite_code', this.plt_1); this.tmy_1 = new StringResource('direct_enrol_users_onto_courses', this.plt_1); this.umy_1 = new StringResource('could_not_restart', this.plt_1); this.vmy_1 = new StringResource('close_now', this.plt_1); this.wmy_1 = new StringResource('view_all_courses', this.plt_1); this.xmy_1 = new StringResource('edit_all_courses', this.plt_1); this.ymy_1 = new StringResource('moderate_all_courses', this.plt_1); this.zmy_1 = new StringResource('manage_student_enrolments_for_all_courses', this.plt_1); this.amz_1 = new StringResource('manage_teacher_enrolments_for_all_courses', this.plt_1); this.bmz_1 = new StringResource('view_attendance_records_for_all_courses', this.plt_1); this.cmz_1 = new StringResource('edit_attendance_records_for_all_courses', this.plt_1); this.dmz_1 = new StringResource('add_new_users', this.plt_1); this.emz_1 = new StringResource('view_all_users', this.plt_1); this.fmz_1 = new StringResource('edit_all_users', this.plt_1); this.gmz_1 = new StringResource('view_learning_records_for_all_courses', this.plt_1); this.hmz_1 = new StringResource('edit_learning_records_for_all_courses', this.plt_1); this.imz_1 = new StringResource('add_new_courses', this.plt_1); this.jmz_1 = new StringResource('manage_user_permissions', this.plt_1); this.kmz_1 = new StringResource('reset_passwords', this.plt_1); this.lmz_1 = new StringResource('upload_failed', this.plt_1); this.mmz_1 = new StringResource('opening_name', this.plt_1); this.nmz_1 = new StringResource('invalid_invite_code', this.plt_1); this.omz_1 = new StringResource('bulk_import', this.plt_1); this.pmz_1 = new StringResource('import_key', this.plt_1); this.qmz_1 = new StringResource('imported', this.plt_1); this.rmz_1 = new StringResource('you_can_import_users_using_a_csv_file', this.plt_1); this.smz_1 = new StringResource('get_template', this.plt_1); this.tmz_1 = new StringResource('line_number', this.plt_1); this.umz_1 = new StringResource('selected_content', this.plt_1); this.vmz_1 = new StringResource('edit_content_block', this.plt_1); this.wmz_1 = new StringResource('compression', this.plt_1); this.xmz_1 = new StringResource('compression_highest', this.plt_1); this.ymz_1 = new StringResource('compression_high', this.plt_1); this.zmz_1 = new StringResource('compression_medium', this.plt_1); this.an0_1 = new StringResource('compression_low', this.plt_1); this.bn0_1 = new StringResource('compression_lowest', this.plt_1); this.cn0_1 = new StringResource('compression_none', this.plt_1); this.dn0_1 = new StringResource('size_compressed_was', this.plt_1); this.en0_1 = new StringResource('size', this.plt_1); this.fn0_1 = new StringResource('import_error', this.plt_1); this.gn0_1 = new StringResource('upload_error', this.plt_1); this.hn0_1 = new StringResource('offline_items_storage', this.plt_1); this.in0_1 = new StringResource('space_available', this.plt_1); this.jn0_1 = new StringResource('grant_permission', this.plt_1); this.kn0_1 = new StringResource('gradebook', this.plt_1); this.ln0_1 = new StringResource('full_screen', this.plt_1); this.mn0_1 = new StringResource('exit_full_screen', this.plt_1); this.nn0_1 = new StringResource('increase_text_size', this.plt_1); this.on0_1 = new StringResource('decrease_text_size', this.plt_1); this.pn0_1 = new StringResource('nothing_here_yet', this.plt_1); this.qn0_1 = new StringResource('select_picture_from_files', this.plt_1); this.rn0_1 = new StringResource('add_subtitles', this.plt_1); this.sn0_1 = new StringResource('edit_subtitles', this.plt_1); this.tn0_1 = new StringResource('subtitles', this.plt_1); this.un0_1 = new StringResource('progress_key', this.plt_1); this.vn0_1 = new StringResource('response', this.plt_1); this.wn0_1 = new StringResource('true_key', this.plt_1); this.xn0_1 = new StringResource('false_key', this.plt_1); this.yn0_1 = new StringResource('copy', this.plt_1); this.zn0_1 = new StringResource('copy_course', this.plt_1); this.an1_1 = new StringResource('copy_of', this.plt_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.bn1_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.cn1_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.dn1_1 = new Impl(this.cn1_1, this.bn1_1); this.en1_1 = new PluralsResource('number_of_attempts', this.dn1_1); this.fn1_1 = new PluralsResource('duration_hours', this.dn1_1); this.gn1_1 = new PluralsResource('duration_minutes', this.dn1_1); this.hn1_1 = new PluralsResource('duration_seconds', this.dn1_1); this.in1_1 = new PluralsResource('items_selected', this.dn1_1); this.jn1_1 = new PluralsResource('items_deleted', this.dn1_1); this.kn1_1 = new PluralsResource('items_restored', this.dn1_1); this.ln1_1 = new PluralsResource('are_you_sure_you_want_to_permanently_delete', this.dn1_1); } var plurals_instance; function plurals_getInstance() { if (plurals_instance == null) new plurals(); return plurals_instance; } function MR() { MR_instance = this; this.mn1_1 = '2fd3e2b2a8df5fb3c09440301986af5b'; this.nn1_1 = strings_getInstance().plt_1.xlo(plurals_getInstance().dn1_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.on1_1 = makeAccountActive; this.pn1_1 = parentJoin; } protoOf(AccountRegisterOptions).toString = function () { return 'AccountRegisterOptions(makeAccountActive=' + this.on1_1 + ', parentJoin=' + this.pn1_1 + ')'; }; protoOf(AccountRegisterOptions).hashCode = function () { var result = getBooleanHashCode(this.on1_1); result = imul(result, 31) + (this.pn1_1 == null ? 0 : this.pn1_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.on1_1 === tmp0_other_with_cast.on1_1)) return false; if (!equals(this.pn1_1, tmp0_other_with_cast.pn1_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_db__ndbzd9($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.sn1_1; db$factory_0(); return this_0.t2(); } function _get_repo__dd1xjt($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.tn1_1; repo$factory_0(); return this_0.t2(); } function $setAuthCOROUTINE$1(_this__u8e3s4, personUid, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cn2_1 = _this__u8e3s4; this.dn2_1 = personUid; this.en2_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.cn2_1, this.en2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.fn2_1 = suspendResult; this.hd_1 = 2; var tmp0_elvis_lhs = _get_repo__dd1xjt(this.cn2_1); var tmp_0 = (tmp0_elvis_lhs == null ? _get_db__ndbzd9(this.cn2_1) : tmp0_elvis_lhs).a7f(); var this_0 = new PersonAuth2(); this_0.hfm_1 = this.dn2_1; var tmp_1 = this_0; tmp_1.ifm_1 = 'PBKDF2x2'; this_0.jfm_1 = this.fn2_1; suspendResult = tmp_0.efm(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(endpoint, di) { this.qn1_1 = endpoint; this.rn1_1 = di; var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.qn1_1; var trigger = this.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_0 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.h57(tmp$ret$0, context); var this_0 = On(this, tmp$ret$1, trigger); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp.sn1_1 = Instance(this_0, tmp$ret$3, 1).a5d(this, db$factory()); var tmp_3 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.di.on' call var context_0 = this.qn1_1; var trigger_0 = this.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_4 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$5 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); var tmp$ret$6 = tmp_4.h57(tmp$ret$5, context_0); var this_1 = On(this, tmp$ret$6, trigger_0); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_3.tn1_1 = InstanceOrNull(this_1, tmp$ret$8, 2).a5d(this, repo$factory()); } protoOf(AuthManager).a57 = function () { return this.rn1_1; }; protoOf(AuthManager).gn2 = 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 db$factory() { return getPropertyCallableRef('db', 1, KProperty1, function (receiver) { return _get_db__ndbzd9(receiver); }, null); } function repo$factory() { return getPropertyCallableRef('repo', 1, KProperty1, function (receiver) { return _get_repo__dd1xjt(receiver); }, null); } function db$factory_0() { return getPropertyCallableRef('db', 1, KProperty1, function (receiver) { return _get_db__ndbzd9(receiver); }, null); } function repo$factory_0() { return getPropertyCallableRef('repo', 1, KProperty1, function (receiver) { return _get_repo__dd1xjt(receiver); }, null); } function ConsentNotGrantedException(message, cause) { message = message === VOID ? null : message; cause = cause === VOID ? null : cause; IllegalStateException_init_$Init$(message, cause, this); captureStack(this, ConsentNotGrantedException); } function Companion() { } var Companion_instance_47; function Companion_getInstance_16() { return Companion_instance_47; } function $serializer() { $serializer_instance = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.account.Endpoint', this, 1); tmp0_serialDesc.t4f('url', false); this.hn2_1 = tmp0_serialDesc; } protoOf($serializer).q44 = function () { return this.hn2_1; }; protoOf($serializer).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer).s44 = function (decoder) { var tmp0_desc = this.hn2_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return Endpoint_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer).in2 = function (encoder, value) { var tmp0_desc = this.hn2_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.w49(tmp0_desc, 0, value.jn2_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer).r44 = function (encoder, value) { return this.in2(encoder, value instanceof Endpoint ? value : THROW_CCE()); }; var $serializer_instance; function $serializer_getInstance_11() { if ($serializer_instance == null) new $serializer(); return $serializer_instance; } function Endpoint_init_$Init$(seen1, url, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_11().hn2_1); } $this.jn2_1 = url; return $this; } function Endpoint_init_$Create$(seen1, url, serializationConstructorMarker) { return Endpoint_init_$Init$(seen1, url, serializationConstructorMarker, objectCreate(protoOf(Endpoint))); } function Endpoint(url) { this.jn2_1 = url; } protoOf(Endpoint).toString = function () { return 'Endpoint(url=' + this.jn2_1 + ')'; }; protoOf(Endpoint).hashCode = function () { return getStringHashCode(this.jn2_1); }; protoOf(Endpoint).equals = function (other) { if (this === other) return true; if (!(other instanceof Endpoint)) return false; var tmp0_other_with_cast = other instanceof Endpoint ? other : THROW_CCE(); if (!(this.jn2_1 === tmp0_other_with_cast.jn2_1)) return false; return true; }; function Companion_0() { Companion_instance_48 = this; this.kn2_1 = new EndpointScope(); } var Companion_instance_48; function Companion_getInstance_17() { if (Companion_instance_48 == null) new Companion_0(); return Companion_instance_48; } function EndpointScope() { Companion_getInstance_17(); var tmp = this; // Inline function 'kotlin.collections.mutableMapOf' call tmp.ln2_1 = LinkedHashMap_init_$Create$(); } protoOf(EndpointScope).mn2 = function (context) { // Inline function 'kotlin.collections.getOrPut' call var this_0 = this.ln2_1; var key = context.jn2_1; var value = this_0.q(key); var tmp; if (value == null) { // Inline function 'com.ustadmobile.core.account.EndpointScope.getRegistry.' call var answer = new StandardScopeRegistry(); this_0.s(key, answer); tmp = answer; } else { tmp = value; } return tmp; }; protoOf(EndpointScope).h59 = function (context) { return this.mn2(context instanceof Endpoint ? context : THROW_CCE()); }; function Pbkdf2Params(iterations, keyLength) { iterations = iterations === VOID ? 10000 : iterations; keyLength = keyLength === VOID ? 512 : keyLength; this.nn2_1 = iterations; this.on2_1 = keyLength; } protoOf(Pbkdf2Params).toString = function () { return 'Pbkdf2Params(iterations=' + this.nn2_1 + ', keyLength=' + this.on2_1 + ')'; }; protoOf(Pbkdf2Params).hashCode = function () { var result = this.nn2_1; result = imul(result, 31) + this.on2_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.nn2_1 === tmp0_other_with_cast.nn2_1)) return false; if (!(this.on2_1 === tmp0_other_with_cast.on2_1)) return false; return true; }; function Companion_1() { } protoOf(Companion_1).n4r = function () { return $serializer_getInstance_12(); }; var Companion_instance_49; function Companion_getInstance_18() { return Companion_instance_49; } function $serializer_0() { $serializer_instance_0 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.account.RegisterRequest', this, 5); tmp0_serialDesc.t4f('person', false); tmp0_serialDesc.t4f('newPassword', false); tmp0_serialDesc.t4f('parent', false); tmp0_serialDesc.t4f('endpointUrl', false); tmp0_serialDesc.t4f('langCode', true); this.pn2_1 = tmp0_serialDesc; } protoOf($serializer_0).q44 = function () { return this.pn2_1; }; protoOf($serializer_0).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_0()), StringSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_0).s44 = function (decoder) { var tmp0_desc = this.pn2_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_input = decoder.i48(tmp0_desc); if (tmp9_input.x48()) { tmp4_local0 = tmp9_input.u48(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.w48(tmp0_desc, 2, $serializer_getInstance_0(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.s48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.u48(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.w48(tmp0_desc, 2, $serializer_getInstance_0(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.s48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.j48(tmp0_desc); return RegisterRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_0).qn2 = function (encoder, value) { var tmp0_desc = this.pn2_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance(), value.rn2_1); tmp1_output.w49(tmp0_desc, 1, value.sn2_1); tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_0(), value.tn2_1); tmp1_output.w49(tmp0_desc, 3, value.un2_1); if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.vn2_1 === 'en')) { tmp1_output.w49(tmp0_desc, 4, value.vn2_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_0).r44 = function (encoder, value) { return this.qn2(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, endpointUrl, langCode, serializationConstructorMarker, $this) { if (!(15 === (15 & seen1))) { throwMissingFieldException(seen1, 15, $serializer_getInstance_12().pn2_1); } $this.rn2_1 = person; $this.sn2_1 = newPassword; $this.tn2_1 = parent; $this.un2_1 = endpointUrl; if (0 === (seen1 & 16)) $this.vn2_1 = 'en'; else $this.vn2_1 = langCode; return $this; } function RegisterRequest_init_$Create$(seen1, person, newPassword, parent, endpointUrl, langCode, serializationConstructorMarker) { return RegisterRequest_init_$Init$(seen1, person, newPassword, parent, endpointUrl, langCode, serializationConstructorMarker, objectCreate(protoOf(RegisterRequest))); } function RegisterRequest(person, newPassword, parent, endpointUrl, langCode) { langCode = langCode === VOID ? 'en' : langCode; this.rn2_1 = person; this.sn2_1 = newPassword; this.tn2_1 = parent; this.un2_1 = endpointUrl; this.vn2_1 = langCode; } protoOf(RegisterRequest).toString = function () { return 'RegisterRequest(person=' + this.rn2_1 + ', newPassword=' + this.sn2_1 + ', parent=' + this.tn2_1 + ', endpointUrl=' + this.un2_1 + ', langCode=' + this.vn2_1 + ')'; }; protoOf(RegisterRequest).hashCode = function () { var result = this.rn2_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.sn2_1) | 0; result = imul(result, 31) + (this.tn2_1 == null ? 0 : this.tn2_1.hashCode()) | 0; result = imul(result, 31) + getStringHashCode(this.un2_1) | 0; result = imul(result, 31) + getStringHashCode(this.vn2_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.rn2_1.equals(tmp0_other_with_cast.rn2_1)) return false; if (!(this.sn2_1 === tmp0_other_with_cast.sn2_1)) return false; if (!equals(this.tn2_1, tmp0_other_with_cast.tn2_1)) return false; if (!(this.un2_1 === tmp0_other_with_cast.un2_1)) return false; if (!(this.vn2_1 === tmp0_other_with_cast.vn2_1)) return false; return true; }; function UnauthorizedException(message, cause) { message = message === VOID ? null : message; cause = cause === VOID ? null : cause; IllegalStateException_init_$Init$(message, cause, this); captureStack(this, UnauthorizedException); } function Companion_2() { } var Companion_instance_50; function Companion_getInstance_19() { return Companion_instance_50; } function $serializer_1() { $serializer_instance_1 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.account.UserSessionWithPersonAndEndpoint', this, 4); tmp0_serialDesc.t4f('userSession', false); tmp0_serialDesc.t4f('person', false); tmp0_serialDesc.t4f('endpoint', false); tmp0_serialDesc.t4f('personPicture', true); this.wn2_1 = tmp0_serialDesc; } protoOf($serializer_1).q44 = function () { return this.wn2_1; }; protoOf($serializer_1).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_1(), $serializer_getInstance(), $serializer_getInstance_11(), get_nullable($serializer_getInstance_2())]; }; protoOf($serializer_1).s44 = function (decoder) { var tmp0_desc = this.wn2_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.i48(tmp0_desc); if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, $serializer_getInstance_1(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.u48(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.u48(tmp0_desc, 2, $serializer_getInstance_11(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_2(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, $serializer_getInstance_1(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.u48(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.u48(tmp0_desc, 2, $serializer_getInstance_11(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_2(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return UserSessionWithPersonAndEndpoint_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_1).xn2 = function (encoder, value) { var tmp0_desc = this.wn2_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_1(), value.yn2_1); tmp1_output.y49(tmp0_desc, 1, $serializer_getInstance(), value.zn2_1); tmp1_output.y49(tmp0_desc, 2, $serializer_getInstance_11(), value.an3_1); if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.bn3_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, $serializer_getInstance_2(), value.bn3_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_1).r44 = function (encoder, value) { return this.xn2(encoder, value instanceof UserSessionWithPersonAndEndpoint ? value : THROW_CCE()); }; var $serializer_instance_1; function $serializer_getInstance_13() { if ($serializer_instance_1 == null) new $serializer_1(); return $serializer_instance_1; } function UserSessionWithPersonAndEndpoint_init_$Init$(seen1, userSession, person, endpoint, personPicture, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_13().wn2_1); } $this.yn2_1 = userSession; $this.zn2_1 = person; $this.an3_1 = endpoint; if (0 === (seen1 & 8)) $this.bn3_1 = null; else $this.bn3_1 = personPicture; return $this; } function UserSessionWithPersonAndEndpoint_init_$Create$(seen1, userSession, person, endpoint, personPicture, serializationConstructorMarker) { return UserSessionWithPersonAndEndpoint_init_$Init$(seen1, userSession, person, endpoint, personPicture, serializationConstructorMarker, objectCreate(protoOf(UserSessionWithPersonAndEndpoint))); } function UserSessionWithPersonAndEndpoint(userSession, person, endpoint, personPicture) { personPicture = personPicture === VOID ? null : personPicture; this.yn2_1 = userSession; this.zn2_1 = person; this.an3_1 = endpoint; this.bn3_1 = personPicture; } protoOf(UserSessionWithPersonAndEndpoint).cn3 = function () { var displayUrl = removeSuffix(removePrefix(removePrefix(this.an3_1.jn2_1, 'http://'), 'https://'), '/'); return '' + this.zn2_1.t95_1 + '@' + displayUrl; }; protoOf(UserSessionWithPersonAndEndpoint).dn3 = function () { return toUmAccount(this.zn2_1, this.an3_1.jn2_1); }; protoOf(UserSessionWithPersonAndEndpoint).en3 = function () { var tmp0_elvis_lhs = this.zn2_1.t95_1; return new XapiAgent(VOID, VOID, VOID, VOID, VOID, new XapiAccount(this.an3_1.jn2_1, tmp0_elvis_lhs == null ? 'anonymous' : tmp0_elvis_lhs)); }; protoOf(UserSessionWithPersonAndEndpoint).fn3 = function (userSession, person, endpoint, personPicture) { return new UserSessionWithPersonAndEndpoint(userSession, person, endpoint, personPicture); }; protoOf(UserSessionWithPersonAndEndpoint).gn3 = function (userSession, person, endpoint, personPicture, $super) { userSession = userSession === VOID ? this.yn2_1 : userSession; person = person === VOID ? this.zn2_1 : person; endpoint = endpoint === VOID ? this.an3_1 : endpoint; personPicture = personPicture === VOID ? this.bn3_1 : personPicture; return $super === VOID ? this.fn3(userSession, person, endpoint, personPicture) : $super.fn3.call(this, userSession, person, endpoint, personPicture); }; protoOf(UserSessionWithPersonAndEndpoint).toString = function () { return 'UserSessionWithPersonAndEndpoint(userSession=' + this.yn2_1 + ', person=' + this.zn2_1 + ', endpoint=' + this.an3_1 + ', personPicture=' + this.bn3_1 + ')'; }; protoOf(UserSessionWithPersonAndEndpoint).hashCode = function () { var result = hashCode(this.yn2_1); result = imul(result, 31) + this.zn2_1.hashCode() | 0; result = imul(result, 31) + this.an3_1.hashCode() | 0; result = imul(result, 31) + (this.bn3_1 == null ? 0 : this.bn3_1.hashCode()) | 0; return result; }; protoOf(UserSessionWithPersonAndEndpoint).equals = function (other) { if (this === other) return true; if (!(other instanceof UserSessionWithPersonAndEndpoint)) return false; var tmp0_other_with_cast = other instanceof UserSessionWithPersonAndEndpoint ? other : THROW_CCE(); if (!equals(this.yn2_1, tmp0_other_with_cast.yn2_1)) return false; if (!this.zn2_1.equals(tmp0_other_with_cast.zn2_1)) return false; if (!this.an3_1.equals(tmp0_other_with_cast.an3_1)) return false; if (!equals(this.bn3_1, tmp0_other_with_cast.bn3_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.cn3(); // Inline function 'com.ustadmobile.core.account.UstadAccountManager........' call var tmp$ret$1 = b.cn3(); return compareValues(tmp, tmp$ret$1); } function UstadAccountManager$slambda$slambda$slambda$slambda$slambda(this$0, $endpoint, resultContinuation) { this.pn3_1 = this$0; this.qn3_1 = $endpoint; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda$slambda$slambda).sn3 = function (endpointSessions, $completion) { var tmp = this.tn3(endpointSessions, $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.sn3((!(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.pn3_1.yn3_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.an3_1.equals(this.qn3_1)) { destination.i1(element); } } var this_1 = this.rn3_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.lhy_1; var tmp_0 = tmp0_elvis_lhs == null ? new UserSession() : tmp0_elvis_lhs; var tmp1_elvis_lhs = item.jhy_1; destination_0.i1(new UserSessionWithPersonAndEndpoint(tmp_0, tmp1_elvis_lhs == null ? new Person() : tmp1_elvis_lhs, this.qn3_1, item.khy_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).tn3 = function (endpointSessions, completion) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda$slambda(this.pn3_1, this.qn3_1, completion); i.rn3_1 = endpointSessions; return i; }; function UstadAccountManager$slambda$slambda$slambda$slambda$slambda_0(this$0, $endpoint, resultContinuation) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda$slambda(this$0, $endpoint, resultContinuation); var l = function (endpointSessions, $completion) { return i.sn3(endpointSessions, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda$slambda$slambda(this$0, $endpoint, resultContinuation) { this.mn4_1 = this$0; this.nn4_1 = $endpoint; 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.mn4_1.vn3_1; var context = this.nn4_1; var trigger = this_0.d57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp_3 = get_direct(On(this_0, tmp_1.h57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).f58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_0.pn4_1 = tmp_3.d58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), 1); this.hd_1 = 1; var tmp_5 = this.pn4_1.b7f().ehx(); var tmp_6 = UstadAccountManager$slambda$slambda$slambda$slambda$slambda_0(this.mn4_1, this.nn4_1, null); suspendResult = tmp_5.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_6), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda(this.mn4_1, this.nn4_1, completion); i.on4_1 = $this$launch; return i; }; function UstadAccountManager$slambda$slambda$slambda$slambda_0(this$0, $endpoint, resultContinuation) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda(this$0, $endpoint, 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.yn4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda).an5 = function (endpointsWithSessions, $completion) { var tmp = this.bn5(endpointsWithSessions, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda$slambda$slambda).he = function (p1, $completion) { return this.an5((!(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.zn4_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); launch(this.yn4_1.dn4_1, VOID, VOID, UstadAccountManager$slambda$slambda$slambda$slambda_0(this.yn4_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).bn5 = function (endpointsWithSessions, completion) { var i = new UstadAccountManager$slambda$slambda$slambda(this.yn4_1, completion); i.zn4_1 = endpointsWithSessions; return i; }; function UstadAccountManager$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new UstadAccountManager$slambda$slambda$slambda(this$0, resultContinuation); var l = function (endpointsWithSessions, $completion) { return i.an5(endpointsWithSessions, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda(this$0, resultContinuation) { this.kn5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda$slambda).m78 = function ($completion) { return this.z86($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.kn5_1.xn3_1, UstadAccountManager$slambda$slambda$slambda_0(this.kn5_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda$slambda).l78 = function (completion) { return new UstadAccountManager$slambda$slambda(this.kn5_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.z86($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.xfp_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.xfp_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.tn5_1 = $session; this.un5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda$slambda_1).wn5 = function (personAndPictureFromDb, $completion) { var tmp = this.xn5(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.wn5((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.vn5_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xfp_1; var nameChanged = !((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ok4()) === this.tn5_1.zn2_1.ok4()); var tmp2_safe_receiver = this.vn5_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.yfp_1; var tmp_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.t96_1; var tmp4_safe_receiver = this.tn5_1.bn3_1; var pictureUriChanged = !(tmp_0 == (tmp4_safe_receiver == null ? null : tmp4_safe_receiver.t96_1)); if (nameChanged ? true : pictureUriChanged) { var tmp_1; if (nameChanged) { tmp_1 = shallowCopy(this.tn5_1.zn2_1, UstadAccountManager$slambda$slambda$slambda$slambda$lambda(this.vn5_1)); } else { tmp_1 = this.tn5_1.zn2_1; } var tmp_2 = tmp_1; var tmp_3; if (pictureUriChanged) { var tmp5_safe_receiver = this.vn5_1; tmp_3 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.yfp_1; } else { tmp_3 = this.tn5_1.bn3_1; } this.un5_1.yn5(this.tn5_1.gn3(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).xn5 = function (personAndPictureFromDb, completion) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda_1(this.tn5_1, this.un5_1, completion); i.vn5_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.wn5(personAndPictureFromDb, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda$slambda_1(this$0, resultContinuation) { this.hn6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda_1).kn6 = function (session, $completion) { var tmp = this.ln6(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.kn6(p1 instanceof UserSessionWithPersonAndEndpoint ? 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.hn6_1.vn3_1; var context = this.in6_1.an3_1; var trigger = this_0.d57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp_3 = get_direct(On(this_0, tmp_1.h57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).f58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_0.jn6_1 = tmp_3.d58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), 1); this.hd_1 = 1; var tmp_5 = this.jn6_1.n7d().mc7(this.in6_1.yn2_1.bhy_1); var tmp_6 = UstadAccountManager$slambda$slambda$slambda$slambda_2(this.in6_1, this.hn6_1, null); suspendResult = tmp_5.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_6), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda$slambda$slambda_1).ln6 = function (session, completion) { var i = new UstadAccountManager$slambda$slambda$slambda_1(this.hn6_1, completion); i.in6_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.kn6(session, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda_1(this$0, resultContinuation) { this.un6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda_1).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda$slambda_1).m78 = function ($completion) { return this.z86($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.un6_1.wn3_1, UstadAccountManager$slambda$slambda$slambda_2(this.un6_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda$slambda_1).l78 = function (completion) { return new UstadAccountManager$slambda$slambda_1(this.un6_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.z86($completion); }; l.$arity = 0; return l; } function invoke$lambda($repo$delegate) { // Inline function 'kotlin.getValue' call getLocalDelegateReference('repo', KProperty0, false, function () { return THROW_ISE(); }); return $repo$delegate.t2(); } function UstadAccountManager$register$slambda$slambda(this$0, resultContinuation) { this.dn7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$register$slambda$slambda).hn7 = function (response, $completion) { var tmp = this.c3i(response, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$register$slambda$slambda).he = function (p1, $completion) { return this.hn7(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.en7_1.j3b().f30_1 === 200) { var tmp_0 = this; tmp_0.gn7_1 = _get_json__d8whur(this.dn7_1); this.hd_1 = 1; suspendResult = bodyAsText(this.en7_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this; tmp_1.fn7_1 = new Pair(null, this.en7_1.j3b().f30_1); this.hd_1 = 2; continue $sm; } case 1: var string = suspendResult; var this_0 = this.gn7_1.t45(); var this_1 = serializer(this_0, createKType(getKClass(Person), arrayOf([]), false)); var ARGUMENT = this.gn7_1.s45(isInterface(this_1, KSerializer) ? this_1 : THROW_CCE(), string); this.fn7_1 = new Pair(ARGUMENT, 200); this.hd_1 = 2; continue $sm; case 2: return this.fn7_1; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$register$slambda$slambda).c3i = function (response, completion) { var i = new UstadAccountManager$register$slambda$slambda(this.dn7_1, completion); i.en7_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.hn7(response, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$register$slambda$slambda_1($db, $registeredPerson, resultContinuation) { this.qn7_1 = $db; this.rn7_1 = $registeredPerson; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$register$slambda$slambda_1).un7 = function (it, $completion) { var tmp = this.vn7(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.un7(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.qn7_1.n7d().bfp(this.rn7_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.tn7_1 = suspendResult; if (this.tn7_1 == null) { this.hd_1 = 2; suspendResult = this.qn7_1.n7d().insertAsync(this.rn7_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).vn7 = function (it, completion) { var i = new UstadAccountManager$register$slambda$slambda_1(this.qn7_1, this.rn7_1, completion); i.sn7_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.un7(it, $completion); }; l.$arity = 1; return l; } function invoke$lambda_0($repo$delegate) { // Inline function 'kotlin.getValue' call getLocalDelegateReference('repo', KProperty0, false, function () { return THROW_ISE(); }); return $repo$delegate.t2(); } function _get_httpClient__2ty1zc($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zn3_1; httpClient$factory_0(); return this_0.t2(); } function _get_json__d8whur($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.an4_1; json$factory_0(); return this_0.t2(); } function _get_apiUrlConfig__mldllg($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.bn4_1; apiUrlConfig$factory_0(); return this_0.t2(); } function makeNewTempGuestSession($this, endpointUrl, 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.whx_1 = tmp_0.n62(679); this_0.chy_1 = get_doorWrapperNodeId(currentDb); this_0.dhy_1 = systemTimeInMillis(); var tmp_1 = this_0; tmp_1.ihy_1 = 8 | 4; var tmp_2 = this_0; tmp_2.fhy_1 = 1; var this_1 = new UserSessionWithPersonAndEndpoint(this_0, Companion_getInstance_20().wn7_1, new Endpoint(endpointUrl)); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.account.UstadAccountManager.makeNewTempGuestSession.' call launch($this.dn4_1, VOID, VOID, UstadAccountManager$makeNewTempGuestSession$slambda_0(currentDb, this_1, null)); return this_1; } function assertNotClosed($this) { if ($this.cn4_1.kotlinx$atomicfu$value) throw IllegalStateException_init_$Create$('UstadAccountManager is closed'); } function addActiveEndpoint($this, endpoint, commit, $completion) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.xn3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.account.UstadAccountManager.addActiveEndpoint.' call var nextValue = plus(prevValue, listOf_0(endpoint)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (commit) { commitActiveEndpointsToPref($this); } return Unit_instance; } function removeActiveEndpoint($this, endpoint, commit) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.xn3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.account.UstadAccountManager.removeActiveEndpoint.' 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.removeActiveEndpoint..' call if (!element.equals(endpoint)) { destination.i1(element); } } var nextValue = destination; if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (commit) { commitActiveEndpointsToPref($this); } } function removeActiveEndpoint$default($this, endpoint, commit, $super) { commit = commit === VOID ? true : commit; return removeActiveEndpoint($this, endpoint, 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.xn3_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.jn2_1; destination.i1(tmp$ret$0); } var json = tmp.r45(tmp_0, toList(destination)); // Inline function 'com.russhwolf.settings.set' call var this_1 = $this.un3_1; var key = 'accountmgr.endpointswithsessions'; this_1.hlj(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_51 = this; var tmp = this; // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.account.Companion.GUEST_PERSON.' call this_0.s95_1 = new Long(0, 0); this_0.u95_1 = 'Guest'; this_0.v95_1 = 'User'; tmp.wn7_1 = this_0; this.xn7_1 = 'accountmgr.activesession'; this.yn7_1 = 'accountmgr.activeendpoint'; this.zn7_1 = 'accountmgr.endpointswithsessions'; this.an8_1 = 'http://localhost/'; this.bn8_1 = 'com.ustadmobile'; this.cn8_1 = 'com.ustadmobile.AUTH_GET_TOKEN'; } var Companion_instance_51; function Companion_getInstance_20() { if (Companion_instance_51 == null) new Companion_3(); return Companion_instance_51; } function sam$kotlin_Comparator$0(function_0) { this.pn8_1 = function_0; } protoOf(sam$kotlin_Comparator$0).pa = function (a, b) { return this.pn8_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.qn8_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).t1d = function (value, $completion) { return this.qn8_1(value, $completion); }; function sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0(function_0) { this.rn8_1 = function_0; } protoOf(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0).sn8 = function (endpointUrl) { return this.rn8_1(endpointUrl); }; function sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_0(function_0) { this.tn8_1 = function_0; } protoOf(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_0).sn8 = function (endpointUrl) { return this.tn8_1(endpointUrl); }; function startGuestSession$lambda($repo$delegate) { // Inline function 'kotlin.getValue' call getLocalDelegateReference('repo', KProperty0, false, function () { return THROW_ISE(); }); return $repo$delegate.t2(); } function UstadAccountManager$slambda(this$0, resultContinuation) { this.cn9_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.cn9_1.yn3_1, UstadAccountManager$slambda$slambda_0(this.cn9_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.cn9_1, completion); i.dn9_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.mn9_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.mn9_1.wn3_1, UstadAccountManager$slambda$slambda_2(this.mn9_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.mn9_1, completion); i.nn9_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.wn9_1 = $currentDb; this.xn9_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.wn9_1.b7f().dhx(this.xn9_1.yn2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.wn9_1, this.xn9_1, completion); i.yn9_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$register$slambda(this$0, $endpointUrl, $accountRegisterOptions, $person, $password, resultContinuation) { this.hna_1 = this$0; this.ina_1 = $endpointUrl; this.jna_1 = $accountRegisterOptions; this.kna_1 = $person; this.lna_1 = $password; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$register$slambda).xna = 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.xna((!(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.hna_1); this.nna_1 = new Endpoint(this.ina_1); this.ona_1 = this.jna_1.pn1_1; var tmp_0 = this; var this_0 = _get_httpClient__2ty1zc(this.hna_1); var this_1 = new HttpRequestBuilder(); url(this_1, removeSuffix(this.ina_1, '/') + '/auth/register'); contentType(this_1, Application_getInstance().v2r_1); setBodyJson(this_1, _get_json__d8whur(this.hna_1), Companion_instance_49.n4r(), new RegisterRequest(this.kna_1, this.lna_1, this.ona_1, this.ina_1)); this_1.w38_1 = Companion_getInstance().m2x_1; tmp_0.pna_1 = new HttpStatement(this_1, this_0); this.hd_1 = 1; suspendResult = this.pna_1.g3z(UstadAccountManager$register$slambda$slambda_0(this.hna_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.qna_1 = suspendResult; this.rna_1 = this.qna_1.y6(); this.sna_1 = this.qna_1.z6(); if (this.sna_1 === 200 ? !(this.rna_1 == null) : false) { var tmp_1 = this; var this_2 = this.hna_1.vn3_1; var context = this.nna_1; var trigger = this_2.d57(); var tmp_2 = Companion_instance_0; var tmp_3 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var this_3 = On(this_2, tmp_2.h57(isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(), context), trigger); var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_1.una_1 = Instance(this_3, isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), 2).a5d(null, getLocalDelegateReference('repo', KProperty0, false, function () { return THROW_ISE(); })); this.hd_1 = 2; suspendResult = getSiteFromDbOrLoadFromHttp(this.hna_1, invoke$lambda(this.una_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { if (this.sna_1 === 409) { var tmp_5 = this; throw IllegalStateException_init_$Create$('Conflict: username already taken'); } else { var tmp_6 = this; throw Exception_init_$Create$('register request: non-OK status code: ' + this.sna_1); } } case 2: this.hd_1 = 3; suspendResult = this.hna_1.yna(this.rna_1, this.ina_1, this.lna_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.vna_1 = suspendResult; var tmp_7 = this; var this_4 = this.hna_1.vn3_1; var context_0 = this.nna_1; var trigger_0 = this_4.d57(); var tmp_8 = Companion_instance_0; var tmp_9 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp_10 = get_direct(On(this_4, tmp_8.h57(isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(), context_0), trigger_0)).f58(); var tmp_11 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_7.wna_1 = tmp_10.d58(isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(), 1); this.hd_1 = 4; suspendResult = withDoorTransactionAsync(this.wna_1, VOID, UstadAccountManager$register$slambda$slambda_2(this.wna_1, this.rna_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: if (this.jna_1.on1_1) { this.hna_1.yn5(this.vna_1); } this.tna_1 = this.rna_1; this.hd_1 = 5; continue $sm; case 5: return this.tna_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.hna_1, this.ina_1, this.jna_1, this.kna_1, this.lna_1, completion); i.mna_1 = $this$withContext; return i; }; function UstadAccountManager$register$slambda_0(this$0, $endpointUrl, $accountRegisterOptions, $person, $password, resultContinuation) { var i = new UstadAccountManager$register$slambda(this$0, $endpointUrl, $accountRegisterOptions, $person, $password, resultContinuation); var l = function ($this$withContext, $completion) { return i.xna($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$addSession$slambda(this$0, $endpoint, $person, $password, $authManager, $endpointRepo, $endpointDb, resultContinuation) { this.hnb_1 = this$0; this.inb_1 = $endpoint; this.jnb_1 = $person; this.knb_1 = $password; this.lnb_1 = $authManager; this.mnb_1 = $endpointRepo; this.nnb_1 = $endpointDb; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$addSession$slambda).anc = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$addSession$slambda).he = function (p1, $completion) { return this.anc(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.hnb_1.vn3_1; var context = this.inb_1; var trigger = this_0.d57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp_3 = get_direct(On(this_0, tmp_1.h57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).f58(); var tmp_4 = typeToken(createKType(getKClass(NodeIdAndAuth), arrayOf([]), false)); tmp_0.pnb_1 = tmp_3.d58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null).q64_1; var tmp_5 = this; tmp_5.qnb_1 = new UserSession(); var tmp_6 = this; tmp_6.rnb_1 = this.qnb_1; this.rnb_1.chy_1 = this.pnb_1; this.rnb_1.bhy_1 = this.jnb_1.s95_1; this.rnb_1.dhy_1 = systemTimeInMillis(); var tmp_7 = this.rnb_1; tmp_7.ihy_1 = 1; var tmp_8 = this.rnb_1; tmp_8.fhy_1 = 1; this.snb_1 = this.knb_1; if (this.snb_1 == null) { this.tnb_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_9 = this; tmp_9.unb_1 = this.snb_1; var tmp_10 = this; tmp_10.vnb_1 = this.unb_1; this.hd_1 = 1; suspendResult = encryptPbkdf2(this.lnb_1, this.vnb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.wnb_1 = suspendResult; this.tnb_1 = toHexString(this.wnb_1); this.hd_1 = 2; continue $sm; case 2: this.xnb_1 = this.tnb_1; this.rnb_1.hhy_1 = this.xnb_1; this.hd_1 = 3; suspendResult = this.mnb_1.b7f().dhx(this.rnb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.ynb_1 = suspendResult; this.rnb_1.whx_1 = this.ynb_1; this.znb_1 = this.qnb_1; this.hd_1 = 4; suspendResult = this.nnb_1.f7e().dgi(this.jnb_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var personPicture = suspendResult; return to(this.znb_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).vn7 = function (it, completion) { var i = new UstadAccountManager$addSession$slambda(this.hnb_1, this.inb_1, this.jnb_1, this.knb_1, this.lnb_1, this.mnb_1, this.nnb_1, completion); i.onb_1 = it; return i; }; function UstadAccountManager$addSession$slambda_0(this$0, $endpoint, $person, $password, $authManager, $endpointRepo, $endpointDb, resultContinuation) { var i = new UstadAccountManager$addSession$slambda(this$0, $endpoint, $person, $password, $authManager, $endpointRepo, $endpointDb, resultContinuation); var l = function (it, $completion) { return i.anc(it, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$endSession$lambda($session) { return function (it) { return it === $session.an3_1.jn2_1; }; } function UstadAccountManager$login$slambda(this$0, $endpointUrl, $username, $password, $maxDateOfBirth, $dontSetCurrentSession, resultContinuation) { this.jnc_1 = this$0; this.knc_1 = $endpointUrl; this.lnc_1 = $username; this.mnc_1 = $password; this.nnc_1 = $maxDateOfBirth; this.onc_1 = $dontSetCurrentSession; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$login$slambda).fnd = 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.fnd((!(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.jnc_1); var tmp_0 = this; var this_0 = this.jnc_1.vn3_1; var context = new Endpoint(this.knc_1); var trigger = this_0.d57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var this_1 = On(this_0, tmp_1.h57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger); var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_0.qnc_1 = Instance(this_1, isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(), 2).a5d(null, getLocalDelegateReference('repo', KProperty0, false, function () { return THROW_ISE(); })); var tmp_4 = this; var this_2 = this.jnc_1.vn3_1; var context_0 = new Endpoint(this.knc_1); var trigger_0 = this_2.d57(); var tmp_5 = Companion_instance_0; var tmp_6 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var this_3 = On(this_2, tmp_5.h57(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context_0), trigger_0); var tmp_7 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_4.rnc_1 = Instance(this_3, isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(), 1).a5d(null, getLocalDelegateReference('db', KProperty0, false, function () { return THROW_ISE(); })); var tmp_8 = this; var tmp_9 = invoke$lambda_0(this.qnc_1); var tmp0_safe_receiver = isInterface(tmp_9, DoorDatabaseRepository) ? tmp_9 : null; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j39(); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v65_1; var tmp_10; if (tmp2_elvis_lhs == null) { throw IllegalStateException_init_$Create$('Could not open repo for endpoint ' + this.knc_1); } else { tmp_10 = tmp2_elvis_lhs; } tmp_8.snc_1 = tmp_10; var tmp_11 = this; tmp_11.tnc_1 = _get_httpClient__2ty1zc(this.jnc_1); var tmp_12 = this; tmp_12.unc_1 = this.tnc_1; var tmp_13 = this; var this_4 = new HttpRequestBuilder(); url(this_4, removeSuffix(this.knc_1, '/') + '/auth/login'); parameter(this_4, 'username', this.lnc_1); parameter(this_4, 'password', this.mnc_1); parameter(this_4, 'maxDateOfBirth', this.nnc_1); header(this_4, 'X-nid', this.snc_1); set_expectSuccess(this_4, false); tmp_13.vnc_1 = this_4; this.vnc_1.w38_1 = Companion_getInstance().m2x_1; var tmp_14 = this; tmp_14.wnc_1 = this.unc_1; var tmp_15 = this; tmp_15.xnc_1 = this.vnc_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.xnc_1, this.wnc_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ync_1 = suspendResult; if (this.ync_1.j3b().f30_1 === 403) { throw new UnauthorizedException('Access denied'); } else if (this.ync_1.j3b().equals(Companion_getInstance_0().q2z_1)) { throw new ConsentNotGrantedException('Parental consent required but not granted'); } else if (this.ync_1.j3b().equals(Companion_getInstance_0().f2z_1)) { throw new AdultAccountRequiredException('Adult account required, credentials for child account'); } else if (!(this.ync_1.j3b().f30_1 === 200)) { throw IllegalStateException_init_$Create$('Server error - response ' + this.ync_1.j3b().f30_1); } var tmp_16 = this; tmp_16.znc_1 = _get_json__d8whur(this.jnc_1); this.hd_1 = 2; suspendResult = bodyAsText(this.ync_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.and_1 = suspendResult; var tmp_17 = this; var this_5 = this.znc_1.t45(); var this_6 = serializer(this_5, createKType(getKClass(UmAccount), arrayOf([]), false)); tmp_17.bnd_1 = this.znc_1.s45(isInterface(this_6, KSerializer) ? this_6 : THROW_CCE(), this.and_1); this.bnd_1.akc_1 = this.knc_1; this.hd_1 = 3; suspendResult = invoke$lambda_0(this.qnc_1).n7d().afp(this.bnd_1.xkb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.cnd_1 = suspendResult; var tmp_18 = this; var tmp_19; if (this.cnd_1 == null) { throw IllegalStateException_init_$Create$('Cannot find person in repo/db'); } else { tmp_19 = this.cnd_1; } tmp_18.dnd_1 = tmp_19; this.end_1 = ensureNotNull(this.dnd_1.xfp_1); this.hd_1 = 4; suspendResult = getSiteFromDbOrLoadFromHttp(this.jnc_1, invoke$lambda_0(this.qnc_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.hd_1 = 5; suspendResult = this.jnc_1.yna(this.end_1, this.knc_1, this.mnc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var newSession = suspendResult; if (!this.onc_1) { this.jnc_1.yn5(newSession); } return this.bnd_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.jnc_1, this.knc_1, this.lnc_1, this.mnc_1, this.nnc_1, this.onc_1, completion); i.pnc_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.fnd($this$withContext, $completion); }; l.$arity = 1; return l; } function $activeSessionsListCOROUTINE$2(_this__u8e3s4, endpointFilter, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ond_1 = _this__u8e3s4; this.pnd_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.ond_1.xn3_1.t2(); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (this.pnd_1.sn8(element.jn2_1)) { destination.i1(element); } } tmp_0.qnd_1 = destination; var tmp_1 = this; tmp_1.rnd_1 = this.qnd_1; var tmp_2 = this; tmp_2.snd_1 = ArrayList_init_$Create$(); this.tnd_1 = this.rnd_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.tnd_1.f()) { this.hd_1 = 3; continue $sm; } this.und_1 = this.tnd_1.e(); var tmp_3 = this; tmp_3.vnd_1 = this.und_1; var tmp_4 = this; var this_1 = this.ond_1.vn3_1; var context = this.vnd_1; var trigger = this_1.d57(); var tmp_5 = Companion_instance_0; var tmp_6 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp_7 = get_direct(On(this_1, tmp_5.h57(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context), trigger)).f58(); var tmp_8 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_4.wnd_1 = tmp_7.d58(isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(), 1); this.hd_1 = 2; suspendResult = this.wnd_1.b7f().fhx(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(withEndpoint(item, this.vnd_1)); } var list = destination_0; addAll(this.snd_1, list); this.hd_1 = 1; continue $sm; case 3: return this.snd_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.fne_1 = _this__u8e3s4; this.gne_1 = maxDateOfBirth; this.hne_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.fne_1.xn3_1.t2(); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (this.hne_1.sn8(element.jn2_1)) { destination.i1(element); } } tmp_0.ine_1 = destination; var tmp_1 = this; tmp_1.jne_1 = 0; this.kne_1 = this.jne_1; this.lne_1 = this.ine_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.lne_1.f()) { this.hd_1 = 3; continue $sm; } this.mne_1 = this.lne_1.e(); var tmp_2 = this; tmp_2.nne_1 = this.kne_1; var tmp_3 = this; tmp_3.one_1 = this.mne_1; var tmp_4 = this; var this_1 = this.fne_1.vn3_1; var context = this.one_1; var trigger = this_1.d57(); var tmp_5 = Companion_instance_0; var tmp_6 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp_7 = get_direct(On(this_1, tmp_5.h57(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context), trigger)).f58(); var tmp_8 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_4.pne_1 = tmp_7.d58(isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(), 1); this.hd_1 = 2; suspendResult = this.pne_1.b7f().ghx(this.gne_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var ARGUMENT = suspendResult; this.kne_1 = this.nne_1 + ARGUMENT | 0; this.hd_1 = 1; continue $sm; case 3: return this.kne_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, endpointUrl, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.yne_1 = _this__u8e3s4; this.zne_1 = person; this.anf_1 = endpointUrl; this.bnf_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.yne_1); this.cnf_1 = new Endpoint(this.anf_1); var tmp_0 = this; var this_0 = this.yne_1.vn3_1; var context = this.cnf_1; var trigger = this_0.d57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp_3 = get_direct(On(this_0, tmp_1.h57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).f58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_0.dnf_1 = tmp_3.d58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), 2); var tmp_5 = this; var this_1 = this.yne_1.vn3_1; var context_0 = this.cnf_1; var trigger_0 = this_1.d57(); var tmp_6 = Companion_instance_0; var tmp_7 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp_8 = get_direct(On(this_1, tmp_6.h57(isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(), context_0), trigger_0)).f58(); var tmp_9 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_5.enf_1 = tmp_8.d58(isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(), 1); if (!this.yne_1.xn3_1.t2().a1(this.cnf_1)) { this.hd_1 = 1; suspendResult = addActiveEndpoint(this.yne_1, this.cnf_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; continue $sm; } case 1: commitActiveEndpointsToPref(this.yne_1); this.hd_1 = 2; continue $sm; case 2: var tmp_10 = this; var this_2 = this.yne_1.vn3_1; var context_1 = this.cnf_1; var trigger_1 = this_2.d57(); var tmp_11 = Companion_instance_0; var tmp_12 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp_13 = get_direct(On(this_2, tmp_11.h57(isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(), context_1), trigger_1)).f58(); var tmp_14 = typeToken(createKType(getKClass(AuthManager), arrayOf([]), false)); tmp_10.fnf_1 = tmp_13.d58(isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(), null); this.hd_1 = 3; suspendResult = withDoorTransactionAsync(this.dnf_1, VOID, UstadAccountManager$addSession$slambda_0(this.yne_1, this.cnf_1, this.zne_1, this.bnf_1, this.fnf_1, this.dnf_1, this.enf_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 UserSessionWithPersonAndEndpoint(userSession, this.zne_1, this.cnf_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.onf_1 = _this__u8e3s4; this.pnf_1 = session; this.qnf_1 = endStatus; this.rnf_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.onf_1.vn3_1; var context = this.pnf_1.an3_1; var trigger = this_0.d57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp_3 = get_direct(On(this_0, tmp_1.h57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).f58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_0.snf_1 = tmp_3.d58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), 2); this.hd_1 = 1; suspendResult = this.snf_1.b7f().hhx(this.pnf_1.yn2_1.whx_1, this.qnf_1, this.rnf_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (this.onf_1.tnf().yn2_1.whx_1.equals(this.pnf_1.yn2_1.whx_1) ? this.onf_1.tnf().an3_1.equals(this.pnf_1.an3_1) : false) { this.onf_1.yn5(makeNewTempGuestSession(this.onf_1, this.pnf_1.an3_1.jn2_1, this.snf_1)); } this.hd_1 = 2; var tmp_5 = UstadAccountManager$endSession$lambda(this.pnf_1); suspendResult = this.onf_1.unf(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()) { removeActiveEndpoint$default(this.onf_1, this.pnf_1.an3_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.ln8_1 = _this__u8e3s4; this.mn8_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.mn8_1; var tmp_2 = (isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : THROW_CCE()).x5i(); tmp_0.nn8_1 = tmp_2 instanceof UmAppDatabase ? tmp_2 : THROW_CCE(); this.hd_1 = 1; suspendResult = this.nn8_1.v7e().qh1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.on8_1 = suspendResult; if (this.on8_1 == null) { this.hd_1 = 2; suspendResult = this.mn8_1.v7e().qh1(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$8(_this__u8e3s4, endpointUrl, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dng_1 = _this__u8e3s4; this.eng_1 = endpointUrl; } protoOf($startGuestSessionCOROUTINE$8).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var this_0 = this.dng_1.vn3_1; var context = new Endpoint(this.eng_1); var trigger = this_0.d57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var this_1 = On(this_0, tmp_1.h57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger); var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_0.fng_1 = Instance(this_1, isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(), 2).a5d(null, getLocalDelegateReference('repo', KProperty0, false, function () { return THROW_ISE(); })); this.hd_1 = 1; var tmp_4 = startGuestSession$lambda(this.fng_1); var this_2 = new Person(); this_2.t95_1 = null; this_2.u95_1 = 'Guest'; this_2.v95_1 = 'User'; var tmp_5 = this_2; tmp_5.g96_1 = 2; suspendResult = insertPersonAndGroup(tmp_4, this_2, 1 | 16, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.gng_1 = suspendResult; this.hd_1 = 2; suspendResult = getSiteFromDbOrLoadFromHttp(this.dng_1, startGuestSession$lambda(this.fng_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.hd_1 = 3; suspendResult = this.dng_1.yna(this.gng_1, this.eng_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var guestSession = suspendResult; this.dng_1.yn5(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.un3_1 = settings; this.vn3_1 = di; var tmp = this; // Inline function 'org.kodein.di.instance' call var this_0 = this.vn3_1; // 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.zn3_1 = Instance(this_0, tmp$ret$0, null).a5d(this, httpClient$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call var this_1 = this.vn3_1; // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.an4_1 = Instance(this_1, tmp$ret$2, null).a5d(this, json$factory()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call var this_2 = this.vn3_1; // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(ApiUrlConfig), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.bn4_1 = Instance(this_2, tmp$ret$4, null).a5d(this, apiUrlConfig$factory()); this.cn4_1 = atomic$boolean$1(false); this.dn4_1 = CoroutineScope_0(Dispatchers_getInstance().t12().lj(Job())); var tmp0_elvis_lhs = this.un3_1.ilj('accountmgr.activeendpoint'); var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? _get_apiUrlConfig__mldllg(this).hng_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_3 = get_direct(this.vn3_1); var context = new Endpoint(currentEndpointStr); var tmp_5 = this_3.f58(); // 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(Endpoint), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp$ret$7 = tmp_6.h57(tmp$ret$6, context); var tmp_8 = tmp_5.c58(tmp$ret$7).f58(); // Inline function 'org.kodein.type.generic' call var tmp_9 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$9 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); var currentDb = tmp_8.d58(tmp$ret$9, 1); var tmp2_safe_receiver = this.un3_1.ilj('accountmgr.activesession'); var tmp_10; if (tmp2_safe_receiver == null) { tmp_10 = 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_4 = _get_json__d8whur(this); // Inline function 'kotlinx.serialization.serializer' call var this_5 = this_4.t45(); // Inline function 'kotlinx.serialization.internal.cast' call var this_6 = serializer(this_5, createKType(getKClass(UserSessionWithPersonAndEndpoint), arrayOf([]), true)); var tmp$ret$12 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE(); tmp_10 = this_4.s45(tmp$ret$12, tmp2_safe_receiver); } var tmp3_elvis_lhs = tmp_10; var initUserSession = tmp3_elvis_lhs == null ? makeNewTempGuestSession(this, currentEndpointStr, currentDb) : tmp3_elvis_lhs; this.wn3_1 = MutableStateFlow(initUserSession); var tmp4_safe_receiver = this.un3_1.ilj('accountmgr.endpointswithsessions'); var tmp_11; if (tmp4_safe_receiver == null) { tmp_11 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.account.UstadAccountManager.' call tmp_11 = _get_json__d8whur(this).s45(ListSerializer(serializer_0(StringCompanionObject_instance)), tmp4_safe_receiver); } var tmp5_elvis_lhs = tmp_11; var initEndpoints = tmp5_elvis_lhs == null ? listOf_0(currentEndpointStr) : tmp5_elvis_lhs; var tmp_12 = 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$18 = new Endpoint(item); destination.i1(tmp$ret$18); } tmp_12.xn3_1 = MutableStateFlow(destination); this.yn3_1 = MutableStateFlow(listOf_0(initUserSession)); launch(this.dn4_1, VOID, VOID, UstadAccountManager$slambda_0(this, null)); launch(this.dn4_1, VOID, VOID, UstadAccountManager$slambda_2(this, null)); } protoOf(UstadAccountManager).yn5 = function (value) { this.wn3_1.x1k(value); // Inline function 'kotlinx.serialization.encodeToString' call var this_0 = _get_json__d8whur(this); // Inline function 'kotlinx.serialization.serializer' call var this_1 = this_0.t45(); // Inline function 'kotlinx.serialization.internal.cast' call var this_2 = serializer(this_1, createKType(getKClass(UserSessionWithPersonAndEndpoint), arrayOf([]), false)); var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(); var activeAccountJson = this_0.r45(tmp$ret$1, value); // Inline function 'com.russhwolf.settings.set' call var this_3 = this.un3_1; var key = 'accountmgr.activesession'; this_3.hlj(key, activeAccountJson); // Inline function 'com.russhwolf.settings.set' call var this_4 = this.un3_1; var key_0 = 'accountmgr.activeendpoint'; var value_0 = value.an3_1.jn2_1; this_4.hlj(key_0, value_0); }; protoOf(UstadAccountManager).tnf = function () { return this.wn3_1.t2(); }; protoOf(UstadAccountManager).jng = function () { return asStateFlow(this.wn3_1); }; protoOf(UstadAccountManager).kng = function () { return this.wn3_1.t2().dn3(); }; protoOf(UstadAccountManager).lng = function () { return asStateFlow(this.yn3_1); }; protoOf(UstadAccountManager).mng = function () { return this.wn3_1.t2().an3_1; }; protoOf(UstadAccountManager).unf = 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).nng = 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).ong = 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.nng(maxDateOfBirth, endpointFilter, $completion) : $super.nng.call(this, maxDateOfBirth, endpointFilter, $completion); }; protoOf(UstadAccountManager).png = function (person, password, endpointUrl, accountRegisterOptions, $completion) { var tmp = Dispatchers_getInstance().p12_1; return withContext(tmp, UstadAccountManager$register$slambda_0(this, endpointUrl, accountRegisterOptions, person, password, null), $completion); }; protoOf(UstadAccountManager).yna = function (person, endpointUrl, password, $completion) { var tmp = new $addSessionCOROUTINE$4(this, person, endpointUrl, password, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager).qng = 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).rng = 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.qng(session, endStatus, endReason, $completion) : $super.qng.call(this, session, endStatus, endReason, $completion); }; protoOf(UstadAccountManager).sng = 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).tng = function (endpointUrl, $completion) { var tmp = new $startGuestSessionCOROUTINE$8(this, endpointUrl, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; 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 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.ung_1 = 101; } var Companion_instance_52; function Companion_getInstance_21() { return Companion_instance_52; } function Companion_5() { } protoOf(Companion_5).n4r = function () { return AnchorSerializer_getInstance(); }; var Companion_instance_53; function Companion_getInstance_22() { return Companion_instance_53; } function Anchor(content, href) { content = content === VOID ? '' : content; href = href === VOID ? '' : href; this.vng_1 = content; this.wng_1 = href; } function deserializeDynamic($this, reader) { var href = reader.m7d(null, 'href'); // Inline function 'kotlin.text.trim' call var this_0 = xhtmlContentToText(reader); var text = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); return new Anchor(text, href == null ? '' : href); } function AnchorSerializer() { AnchorSerializer_instance = this; this.xng_1 = buildClassSerialDescriptor('a', []); } protoOf(AnchorSerializer).q44 = function () { return this.xng_1; }; protoOf(AnchorSerializer).s44 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = deserializeDynamic(this, decoder.ckr()); } else { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.xng_1; var composite = decoder.i48(descriptor); // Inline function 'com.ustadmobile.core.contentformats.epub.nav.AnchorSerializer.deserialize.' call var result = composite.v48(AnchorSerializer_getInstance().xng_1, 0, Companion_instance_53.n4r()); composite.j48(descriptor); tmp = result; } return tmp; }; protoOf(AnchorSerializer).yng = function (encoder, value) { encoder.z49(Companion_instance_53.n4r(), value); }; protoOf(AnchorSerializer).r44 = function (encoder, value) { return this.yng(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).n4r = function () { return BodySerializer_instance; }; var Companion_instance_54; function Companion_getInstance_23() { return Companion_instance_54; } function Body(navigationElements) { this.zng_1 = navigationElements; } function BodySerializer() { } protoOf(BodySerializer).q44 = function () { return buildClassSerialDescriptor('body', []); }; protoOf(BodySerializer).s44 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = this.anh(decoder, decoder.ckr()); } else { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.q44(); var composite = decoder.i48(descriptor); // Inline function 'com.ustadmobile.core.contentformats.epub.nav.BodySerializer.deserialize.' call var result = composite.v48(BodySerializer_instance.q44(), 0, Companion_instance_54.n4r()); composite.j48(descriptor); tmp = result; } return tmp; }; protoOf(BodySerializer).anh = function (decoder, reader) { var xml = this.bnh(decoder); // Inline function 'kotlin.collections.mutableListOf' call var navElementList = ArrayList_init_$Create$(); // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.q44(); var composite = decoder.i48(descriptor); while (!(reader.e().equals(EventType_END_ELEMENT_getInstance()) ? reader.dc().akl() === 'body' : false)) { if (reader.jkh().equals(EventType_START_ELEMENT_getInstance()) ? reader.bkh() === 'nav' : false) { // Inline function 'kotlin.collections.plusAssign' call var element = xml.pkv(Companion_instance_56.n4r(), reader); navElementList.i1(element); } } var result = Unit_instance; composite.j48(descriptor); return new Body(toList(navElementList)); }; protoOf(BodySerializer).cnh = function (encoder, value) { encoder.z49(Companion_instance_54.n4r(), value); }; protoOf(BodySerializer).r44 = function (encoder, value) { return this.cnh(encoder, value instanceof Body ? value : THROW_CCE()); }; protoOf(BodySerializer).bnh = function (decoder) { return (isInterface(decoder, XmlInput) ? decoder : THROW_CCE()).lkt(); }; var BodySerializer_instance; function BodySerializer_getInstance() { return BodySerializer_instance; } function Companion_7() { } var Companion_instance_55; function Companion_getInstance_24() { return Companion_instance_55; } function $serializer_2() { $serializer_instance_2 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.ListItem', this, 3); tmp0_serialDesc.t4f('anchor', true); tmp0_serialDesc.t4f('span', true); tmp0_serialDesc.t4f('orderedList', true); tmp0_serialDesc.v4f(new XmlSerialName('li', 'http://www.w3.org/1999/xhtml')); this.dnh_1 = tmp0_serialDesc; } protoOf($serializer_2).q44 = function () { return this.dnh_1; }; protoOf($serializer_2).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(AnchorSerializer_getInstance()), get_nullable(SpanSerializer_getInstance()), get_nullable($serializer_getInstance_17())]; }; protoOf($serializer_2).s44 = function (decoder) { var tmp0_desc = this.dnh_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.i48(tmp0_desc); if (tmp7_input.x48()) { tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, AnchorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, SpanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, $serializer_getInstance_17(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, AnchorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, SpanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, $serializer_getInstance_17(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.j48(tmp0_desc); return ListItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_2).enh = function (encoder, value) { var tmp0_desc = this.dnh_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.fnh_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, AnchorSerializer_getInstance(), value.fnh_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.gnh_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, SpanSerializer_getInstance(), value.gnh_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.hnh_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_17(), value.hnh_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_2).r44 = function (encoder, value) { return this.enh(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().dnh_1); } if (0 === (seen1 & 1)) $this.fnh_1 = null; else $this.fnh_1 = anchor; if (0 === (seen1 & 2)) $this.gnh_1 = null; else $this.gnh_1 = span; if (0 === (seen1 & 4)) $this.hnh_1 = null; else $this.hnh_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.fnh_1 = anchor; this.gnh_1 = span; this.hnh_1 = orderedList; } function Companion_8() { } protoOf(Companion_8).n4r = function () { return $serializer_getInstance_15(); }; var Companion_instance_56; function Companion_getInstance_25() { return Companion_instance_56; } function $serializer_3() { $serializer_instance_3 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.NavElement', this, 2); tmp0_serialDesc.t4f('epubType', true); tmp0_serialDesc.u4f(new XmlSerialName('type', 'http://www.idpf.org/2007/ops')); tmp0_serialDesc.t4f('orderedList', false); tmp0_serialDesc.v4f(new XmlSerialName('nav', 'http://www.w3.org/1999/xhtml')); this.inh_1 = tmp0_serialDesc; } protoOf($serializer_3).q44 = function () { return this.inh_1; }; protoOf($serializer_3).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), $serializer_getInstance_17()]; }; protoOf($serializer_3).s44 = function (decoder) { var tmp0_desc = this.inh_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, $serializer_getInstance_17(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, $serializer_getInstance_17(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return NavElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_3).jnh = function (encoder, value) { var tmp0_desc = this.inh_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.knh_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.knh_1); } tmp1_output.y49(tmp0_desc, 1, $serializer_getInstance_17(), value.lnh_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_3).r44 = function (encoder, value) { return this.jnh(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().inh_1); } if (0 === (seen1 & 1)) $this.knh_1 = null; else $this.knh_1 = epubType; $this.lnh_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.mnh_1 = 'http://www.w3.org/1999/xhtml'; this.nnh_1 = 'http://www.idpf.org/2007/ops'; } var Companion_instance_57; function Companion_getInstance_26() { return Companion_instance_57; } function $serializer_4() { $serializer_instance_4 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.NavigationDocument', this, 1); tmp0_serialDesc.t4f('bodyElement', false); tmp0_serialDesc.v4f(new XmlSerialName('html', 'http://www.w3.org/1999/xhtml')); this.onh_1 = tmp0_serialDesc; } protoOf($serializer_4).q44 = function () { return this.onh_1; }; protoOf($serializer_4).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BodySerializer_instance]; }; protoOf($serializer_4).s44 = function (decoder) { var tmp0_desc = this.onh_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, BodySerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, BodySerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return NavigationDocument_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_4).pnh = function (encoder, value) { var tmp0_desc = this.onh_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, BodySerializer_instance, value.qnh_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_4).r44 = function (encoder, value) { return this.pnh(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().onh_1); } $this.qnh_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.qnh_1 = bodyElement; } function Companion_10() { Companion_instance_58 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.rnh_1 = [new ArrayListSerializer($serializer_getInstance_14())]; } var Companion_instance_58; function Companion_getInstance_27() { if (Companion_instance_58 == null) new Companion_10(); return Companion_instance_58; } function $serializer_5() { $serializer_instance_5 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.OrderedList', this, 1); tmp0_serialDesc.t4f('listItems', false); tmp0_serialDesc.v4f(new XmlSerialName('ol', 'http://www.w3.org/1999/xhtml')); this.snh_1 = tmp0_serialDesc; } protoOf($serializer_5).q44 = function () { return this.snh_1; }; protoOf($serializer_5).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_27().rnh_1[0]]; }; protoOf($serializer_5).s44 = function (decoder) { var tmp0_desc = this.snh_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); var tmp6_cached = Companion_getInstance_27().rnh_1; if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return OrderedList_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_5).tnh = function (encoder, value) { var tmp0_desc = this.snh_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_27().rnh_1; tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.unh_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_5).r44 = function (encoder, value) { return this.tnh(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().snh_1); } $this.unh_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).n4r = function () { return SpanSerializer_getInstance(); }; var Companion_instance_59; function Companion_getInstance_28() { return Companion_instance_59; } function Span(content) { content = content === VOID ? '' : content; this.vnh_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.wnh_1 = buildClassSerialDescriptor('span', []); } protoOf(SpanSerializer).q44 = function () { return this.wnh_1; }; protoOf(SpanSerializer).s44 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = deserializeDynamic_0(this, decoder.ckr()); } else { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = AnchorSerializer_getInstance().xng_1; var composite = decoder.i48(descriptor); // Inline function 'com.ustadmobile.core.contentformats.epub.nav.SpanSerializer.deserialize.' call var result = composite.v48(AnchorSerializer_getInstance().xng_1, 0, Companion_instance_59.n4r()); composite.j48(descriptor); tmp = result; } return tmp; }; protoOf(SpanSerializer).xnh = function (encoder, value) { encoder.z49(Companion_instance_59.n4r(), value); }; protoOf(SpanSerializer).r44 = function (encoder, value) { return this.xnh(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.t4f('id', true); tmp0_serialDesc.t4f('src', false); tmp0_serialDesc.v4f(new XmlSerialName('content', 'http://www.daisy.org/z3986/2005/ncx/')); this.ynh_1 = tmp0_serialDesc; } protoOf($serializer_6).q44 = function () { return this.ynh_1; }; protoOf($serializer_6).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_6).s44 = function (decoder) { var tmp0_desc = this.ynh_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return Content_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_6).znh = function (encoder, value) { var tmp0_desc = this.ynh_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.ani_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.ani_1); } tmp1_output.w49(tmp0_desc, 1, value.bni_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_6).r44 = function (encoder, value) { return this.znh(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().ynh_1); } if (0 === (seen1 & 1)) $this.ani_1 = null; else $this.ani_1 = id; $this.bni_1 = src; return $this; } function Content_init_$Create$(seen1, id, src, serializationConstructorMarker) { return Content_init_$Init$(seen1, id, src, serializationConstructorMarker, objectCreate(protoOf(Content))); } function Content() { } function Companion_12() { Companion_instance_60 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.cni_1 = [new ArrayListSerializer($serializer_getInstance_25())]; } var Companion_instance_60; function Companion_getInstance_29() { if (Companion_instance_60 == null) new Companion_12(); return Companion_instance_60; } function $serializer_7() { $serializer_instance_7 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.DocTitle', this, 1); tmp0_serialDesc.t4f('texts', false); tmp0_serialDesc.v4f(new XmlSerialName('docTitle', 'http://www.daisy.org/z3986/2005/ncx/')); this.dni_1 = tmp0_serialDesc; } protoOf($serializer_7).q44 = function () { return this.dni_1; }; protoOf($serializer_7).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_29().cni_1[0]]; }; protoOf($serializer_7).s44 = function (decoder) { var tmp0_desc = this.dni_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); var tmp6_cached = Companion_getInstance_29().cni_1; if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return DocTitle_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_7).eni = function (encoder, value) { var tmp0_desc = this.dni_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_29().cni_1; tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.fni_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_7).r44 = function (encoder, value) { return this.eni(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().dni_1); } $this.fni_1 = texts; return $this; } function DocTitle_init_$Create$(seen1, texts, serializationConstructorMarker) { return DocTitle_init_$Init$(seen1, texts, serializationConstructorMarker, objectCreate(protoOf(DocTitle))); } function DocTitle() { } function Companion_13() { Companion_instance_61 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.gni_1 = [new ArrayListSerializer($serializer_getInstance_35())]; } var Companion_instance_61; function Companion_getInstance_30() { if (Companion_instance_61 == null) new Companion_13(); return Companion_instance_61; } function $serializer_8() { $serializer_instance_8 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.Head', this, 1); tmp0_serialDesc.t4f('metadata', true); tmp0_serialDesc.v4f(new XmlSerialName('head', 'http://www.daisy.org/z3986/2005/ncx/')); this.hni_1 = tmp0_serialDesc; } protoOf($serializer_8).q44 = function () { return this.hni_1; }; protoOf($serializer_8).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_30().gni_1[0]]; }; protoOf($serializer_8).s44 = function (decoder) { var tmp0_desc = this.hni_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); var tmp6_cached = Companion_getInstance_30().gni_1; if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return Head_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_8).ini = function (encoder, value) { var tmp0_desc = this.hni_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_30().gni_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !equals(value.jni_1, emptyList())) { tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.jni_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_8).r44 = function (encoder, value) { return this.ini(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().hni_1); } if (0 === (seen1 & 1)) $this.jni_1 = emptyList(); else $this.jni_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.jni_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.t4f('text', false); tmp0_serialDesc.v4f(new XmlSerialName('navLabel', 'http://www.daisy.org/z3986/2005/ncx/')); this.kni_1 = tmp0_serialDesc; } protoOf($serializer_9).q44 = function () { return this.kni_1; }; protoOf($serializer_9).k4g = 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).s44 = function (decoder) { var tmp0_desc = this.kni_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, $serializer_getInstance_25(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, $serializer_getInstance_25(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return NavLabel_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_9).lni = function (encoder, value) { var tmp0_desc = this.kni_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_25(), value.mni_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_9).r44 = function (encoder, value) { return this.lni(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().kni_1); } $this.mni_1 = text; return $this; } function NavLabel_init_$Create$(seen1, text, serializationConstructorMarker) { return NavLabel_init_$Init$(seen1, text, serializationConstructorMarker, objectCreate(protoOf(NavLabel))); } function NavLabel() { } function Companion_14() { Companion_instance_62 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.nni_1 = [new ArrayListSerializer($serializer_getInstance_23())]; } var Companion_instance_62; function Companion_getInstance_31() { if (Companion_instance_62 == null) new Companion_14(); return Companion_instance_62; } function $serializer_10() { $serializer_instance_10 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NavMap', this, 1); tmp0_serialDesc.t4f('navPoints', false); tmp0_serialDesc.v4f(new XmlSerialName('navMap', 'http://www.daisy.org/z3986/2005/ncx/')); this.oni_1 = tmp0_serialDesc; } protoOf($serializer_10).q44 = function () { return this.oni_1; }; protoOf($serializer_10).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_31().nni_1[0]]; }; protoOf($serializer_10).s44 = function (decoder) { var tmp0_desc = this.oni_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); var tmp6_cached = Companion_getInstance_31().nni_1; if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return NavMap_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_10).pni = function (encoder, value) { var tmp0_desc = this.oni_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_31().nni_1; tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.qni_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_10).r44 = function (encoder, value) { return this.pni(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().oni_1); } $this.qni_1 = navPoints; return $this; } function NavMap_init_$Create$(seen1, navPoints, serializationConstructorMarker) { return NavMap_init_$Init$(seen1, navPoints, serializationConstructorMarker, objectCreate(protoOf(NavMap))); } function NavMap() { } function Companion_15() { Companion_instance_63 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.rni_1 = [new ArrayListSerializer($serializer_getInstance_21()), null, null, null]; } var Companion_instance_63; function Companion_getInstance_32() { if (Companion_instance_63 == null) new Companion_15(); return Companion_instance_63; } function $serializer_11() { $serializer_instance_11 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NavPoint', this, 4); tmp0_serialDesc.t4f('navLabels', false); tmp0_serialDesc.t4f('content', false); tmp0_serialDesc.t4f('id', false); tmp0_serialDesc.t4f('childPoints', false); tmp0_serialDesc.v4f(new XmlSerialName('navPoint', 'http://www.daisy.org/z3986/2005/ncx/')); this.sni_1 = tmp0_serialDesc; } protoOf($serializer_11).q44 = function () { return this.sni_1; }; protoOf($serializer_11).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_32().rni_1[0], $serializer_getInstance_18(), StringSerializer_getInstance(), new ArrayListSerializer($serializer_getInstance_23())]; }; protoOf($serializer_11).s44 = function (decoder) { var tmp0_desc = this.sni_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.i48(tmp0_desc); var tmp9_cached = Companion_getInstance_32().rni_1; if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.u48(tmp0_desc, 1, $serializer_getInstance_18(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.s48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.u48(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_23()), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.u48(tmp0_desc, 1, $serializer_getInstance_18(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.s48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.u48(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_23()), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return NavPoint_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_11).tni = function (encoder, value) { var tmp0_desc = this.sni_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_32().rni_1; tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.uni_1); tmp1_output.y49(tmp0_desc, 1, $serializer_getInstance_18(), value.vni_1); tmp1_output.w49(tmp0_desc, 2, value.wni_1); tmp1_output.y49(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_23()), value.xni_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_11).r44 = function (encoder, value) { return this.tni(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().sni_1); } $this.uni_1 = navLabels; $this.vni_1 = content; $this.wni_1 = id; $this.xni_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.yni_1 = 'http://www.daisy.org/z3986/2005/ncx/'; this.zni_1 = 'application/x-dtbncx+xml'; } var Companion_instance_64; function Companion_getInstance_33() { return Companion_instance_64; } function $serializer_12() { $serializer_instance_12 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NcxDocument', this, 3); tmp0_serialDesc.t4f('head', false); tmp0_serialDesc.t4f('docTitle', false); tmp0_serialDesc.t4f('navMap', false); tmp0_serialDesc.v4f(new XmlSerialName('ncx', 'http://www.daisy.org/z3986/2005/ncx/')); this.anj_1 = tmp0_serialDesc; } protoOf($serializer_12).q44 = function () { return this.anj_1; }; protoOf($serializer_12).k4g = 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).s44 = function (decoder) { var tmp0_desc = this.anj_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.i48(tmp0_desc); if (tmp7_input.x48()) { tmp4_local0 = tmp7_input.u48(tmp0_desc, 0, $serializer_getInstance_20(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.u48(tmp0_desc, 1, $serializer_getInstance_19(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.u48(tmp0_desc, 2, $serializer_getInstance_22(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.u48(tmp0_desc, 0, $serializer_getInstance_20(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.u48(tmp0_desc, 1, $serializer_getInstance_19(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.u48(tmp0_desc, 2, $serializer_getInstance_22(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.j48(tmp0_desc); return NcxDocument_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_12).bnj = function (encoder, value) { var tmp0_desc = this.anj_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_20(), value.cnj_1); tmp1_output.y49(tmp0_desc, 1, $serializer_getInstance_19(), value.dnj_1); tmp1_output.y49(tmp0_desc, 2, $serializer_getInstance_22(), value.enj_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_12).r44 = function (encoder, value) { return this.bnj(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().anj_1); } $this.cnj_1 = head; $this.dnj_1 = docTitle; $this.enj_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.cnj_1 = head; this.dnj_1 = docTitle; this.enj_1 = navMap; } function Companion_17() { } var Companion_instance_65; function Companion_getInstance_34() { return Companion_instance_65; } function $serializer_13() { $serializer_instance_13 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.Text', this, 1); tmp0_serialDesc.t4f('content', true); tmp0_serialDesc.u4f(new XmlValue()); tmp0_serialDesc.v4f(new XmlSerialName('text', 'http://www.daisy.org/z3986/2005/ncx/')); this.fnj_1 = tmp0_serialDesc; } protoOf($serializer_13).q44 = function () { return this.fnj_1; }; protoOf($serializer_13).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_13).s44 = function (decoder) { var tmp0_desc = this.fnj_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return Text_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_13).gnj = function (encoder, value) { var tmp0_desc = this.fnj_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.hnj_1 === '')) { tmp1_output.w49(tmp0_desc, 0, value.hnj_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_13).r44 = function (encoder, value) { return this.gnj(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().fnj_1); } if (0 === (seen1 & 1)) $this.hnj_1 = ''; else $this.hnj_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.hnj_1 = content; } function Companion_18() { } var Companion_instance_66; function Companion_getInstance_35() { return Companion_instance_66; } function $serializer_14() { $serializer_instance_14 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcCreator', this, 2); tmp0_serialDesc.t4f('id', true); tmp0_serialDesc.t4f('content', true); tmp0_serialDesc.u4f(new XmlValue()); tmp0_serialDesc.v4f(new XmlSerialName('creator', 'http://purl.org/dc/elements/1.1/')); this.inj_1 = tmp0_serialDesc; } protoOf($serializer_14).q44 = function () { return this.inj_1; }; protoOf($serializer_14).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_14).s44 = function (decoder) { var tmp0_desc = this.inj_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return DcCreator_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_14).jnj = function (encoder, value) { var tmp0_desc = this.inj_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.knj_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.knj_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.lnj_1 === '')) { tmp1_output.w49(tmp0_desc, 1, value.lnj_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_14).r44 = function (encoder, value) { return this.jnj(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().inj_1); } if (0 === (seen1 & 1)) $this.knj_1 = null; else $this.knj_1 = id; if (0 === (seen1 & 2)) $this.lnj_1 = ''; else $this.lnj_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.knj_1 = id; this.lnj_1 = content; } function Companion_19() { } var Companion_instance_67; function Companion_getInstance_36() { return Companion_instance_67; } function $serializer_15() { $serializer_instance_15 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcDescription', this, 2); tmp0_serialDesc.t4f('lang', true); tmp0_serialDesc.t4f('content', true); tmp0_serialDesc.u4f(new XmlValue()); tmp0_serialDesc.v4f(new XmlSerialName('description', 'http://purl.org/dc/elements/1.1/')); this.mnj_1 = tmp0_serialDesc; } protoOf($serializer_15).q44 = function () { return this.mnj_1; }; protoOf($serializer_15).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_15).s44 = function (decoder) { var tmp0_desc = this.mnj_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return DcDescription_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_15).nnj = function (encoder, value) { var tmp0_desc = this.mnj_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.onj_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.onj_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.pnj_1 === '')) { tmp1_output.w49(tmp0_desc, 1, value.pnj_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_15).r44 = function (encoder, value) { return this.nnj(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().mnj_1); } if (0 === (seen1 & 1)) $this.onj_1 = null; else $this.onj_1 = lang; if (0 === (seen1 & 2)) $this.pnj_1 = ''; else $this.pnj_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.onj_1 = lang; this.pnj_1 = content; } function Companion_20() { } var Companion_instance_68; function Companion_getInstance_37() { return Companion_instance_68; } function $serializer_16() { $serializer_instance_16 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcIdentifier', this, 2); tmp0_serialDesc.t4f('id', true); tmp0_serialDesc.t4f('content', true); tmp0_serialDesc.u4f(new XmlValue()); tmp0_serialDesc.v4f(new XmlSerialName('identifier', 'http://purl.org/dc/elements/1.1/')); this.qnj_1 = tmp0_serialDesc; } protoOf($serializer_16).q44 = function () { return this.qnj_1; }; protoOf($serializer_16).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_16).s44 = function (decoder) { var tmp0_desc = this.qnj_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return DcIdentifier_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_16).rnj = function (encoder, value) { var tmp0_desc = this.qnj_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.snj_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.snj_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.tnj_1 === '')) { tmp1_output.w49(tmp0_desc, 1, value.tnj_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_16).r44 = function (encoder, value) { return this.rnj(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().qnj_1); } if (0 === (seen1 & 1)) $this.snj_1 = null; else $this.snj_1 = id; if (0 === (seen1 & 2)) $this.tnj_1 = ''; else $this.tnj_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.snj_1 = id; this.tnj_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.t4f('content', false); tmp0_serialDesc.u4f(new XmlValue()); tmp0_serialDesc.v4f(new XmlSerialName('language', 'http://purl.org/dc/elements/1.1/')); this.unj_1 = tmp0_serialDesc; } protoOf($serializer_17).q44 = function () { return this.unj_1; }; protoOf($serializer_17).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_17).s44 = function (decoder) { var tmp0_desc = this.unj_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return DcLanguage_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_17).vnj = function (encoder, value) { var tmp0_desc = this.unj_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.w49(tmp0_desc, 0, value.wnj_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_17).r44 = function (encoder, value) { return this.vnj(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().unj_1); } $this.wnj_1 = content; return $this; } function DcLanguage_init_$Create$(seen1, content, serializationConstructorMarker) { return DcLanguage_init_$Init$(seen1, content, serializationConstructorMarker, objectCreate(protoOf(DcLanguage))); } function DcLanguage() { } function Companion_21() { } var Companion_instance_69; function Companion_getInstance_38() { return Companion_instance_69; } function $serializer_18() { $serializer_instance_18 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcTitle', this, 2); tmp0_serialDesc.t4f('lang', true); tmp0_serialDesc.u4f(new XmlSerialName(VOID, VOID, 'xml')); tmp0_serialDesc.t4f('content', true); tmp0_serialDesc.u4f(new XmlValue()); tmp0_serialDesc.v4f(new XmlSerialName('title', 'http://purl.org/dc/elements/1.1/')); this.xnj_1 = tmp0_serialDesc; } protoOf($serializer_18).q44 = function () { return this.xnj_1; }; protoOf($serializer_18).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_18).s44 = function (decoder) { var tmp0_desc = this.xnj_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return DcTitle_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_18).ynj = function (encoder, value) { var tmp0_desc = this.xnj_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.znj_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.znj_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.ank_1 === '')) { tmp1_output.w49(tmp0_desc, 1, value.ank_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_18).r44 = function (encoder, value) { return this.ynj(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().xnj_1); } if (0 === (seen1 & 1)) $this.znj_1 = null; else $this.znj_1 = lang; if (0 === (seen1 & 2)) $this.ank_1 = ''; else $this.ank_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.znj_1 = lang; this.ank_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.t4f('id', false); tmp0_serialDesc.t4f('href', false); tmp0_serialDesc.t4f('properties', true); tmp0_serialDesc.t4f('mediaType', false); tmp0_serialDesc.u4f(new XmlSerialName('media-type')); tmp0_serialDesc.v4f(new XmlSerialName('item', 'http://www.idpf.org/2007/opf')); this.bnk_1 = tmp0_serialDesc; } protoOf($serializer_19).q44 = function () { return this.bnk_1; }; protoOf($serializer_19).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_19).s44 = function (decoder) { var tmp0_desc = this.bnk_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.i48(tmp0_desc); if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return Item_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_19).cnk = function (encoder, value) { var tmp0_desc = this.bnk_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.w49(tmp0_desc, 0, value.dnk_1); tmp1_output.w49(tmp0_desc, 1, value.enk_1); if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.fnk_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.fnk_1); } tmp1_output.w49(tmp0_desc, 3, value.gnk_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_19).r44 = function (encoder, value) { return this.cnk(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().bnk_1); } $this.dnk_1 = id; $this.enk_1 = href; if (0 === (seen1 & 4)) $this.fnk_1 = null; else $this.fnk_1 = properties; $this.gnk_1 = mediaType; return $this; } function Item_init_$Create$(seen1, id, href, properties, mediaType, serializationConstructorMarker) { return Item_init_$Init$(seen1, id, href, properties, mediaType, serializationConstructorMarker, objectCreate(protoOf(Item))); } function Item() { } function Companion_22() { } var Companion_instance_70; function Companion_getInstance_39() { return Companion_instance_70; } function $serializer_20() { $serializer_instance_20 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.ItemRef', this, 1); tmp0_serialDesc.t4f('idRef', true); tmp0_serialDesc.u4f(new XmlSerialName('idref')); tmp0_serialDesc.v4f(new XmlSerialName('itemref', 'http://www.idpf.org/2007/opf')); this.hnk_1 = tmp0_serialDesc; } protoOf($serializer_20).q44 = function () { return this.hnk_1; }; protoOf($serializer_20).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_20).s44 = function (decoder) { var tmp0_desc = this.hnk_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return ItemRef_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_20).ink = function (encoder, value) { var tmp0_desc = this.hnk_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.jnk_1 === '')) { tmp1_output.w49(tmp0_desc, 0, value.jnk_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_20).r44 = function (encoder, value) { return this.ink(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().hnk_1); } if (0 === (seen1 & 1)) $this.jnk_1 = ''; else $this.jnk_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.jnk_1 = idRef; } function Companion_23() { Companion_instance_71 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.knk_1 = [new ArrayListSerializer($serializer_getInstance_31())]; } var Companion_instance_71; function Companion_getInstance_40() { if (Companion_instance_71 == null) new Companion_23(); return Companion_instance_71; } function $serializer_21() { $serializer_instance_21 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Manifest', this, 1); tmp0_serialDesc.t4f('items', true); tmp0_serialDesc.v4f(new XmlSerialName('manifest', 'http://www.idpf.org/2007/opf')); this.lnk_1 = tmp0_serialDesc; } protoOf($serializer_21).q44 = function () { return this.lnk_1; }; protoOf($serializer_21).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_40().knk_1[0]]; }; protoOf($serializer_21).s44 = function (decoder) { var tmp0_desc = this.lnk_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); var tmp6_cached = Companion_getInstance_40().knk_1; if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return Manifest_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_21).mnk = function (encoder, value) { var tmp0_desc = this.lnk_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_40().knk_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !equals(value.nnk_1, emptyList())) { tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.nnk_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_21).r44 = function (encoder, value) { return this.mnk(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().lnk_1); } if (0 === (seen1 & 1)) $this.nnk_1 = emptyList(); else $this.nnk_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.nnk_1 = items; } function Companion_24() { } var Companion_instance_72; function Companion_getInstance_41() { return Companion_instance_72; } function $serializer_22() { $serializer_instance_22 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Meta', this, 2); tmp0_serialDesc.t4f('name', true); tmp0_serialDesc.t4f('content', true); tmp0_serialDesc.v4f(new XmlSerialName('meta', 'http://www.idpf.org/2007/opf')); this.onk_1 = tmp0_serialDesc; } protoOf($serializer_22).q44 = function () { return this.onk_1; }; protoOf($serializer_22).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_22).s44 = function (decoder) { var tmp0_desc = this.onk_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return Meta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_22).pnk = function (encoder, value) { var tmp0_desc = this.onk_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.qnk_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.qnk_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.rnk_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.rnk_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_22).r44 = function (encoder, value) { return this.pnk(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().onk_1); } if (0 === (seen1 & 1)) $this.qnk_1 = null; else $this.qnk_1 = name; if (0 === (seen1 & 2)) $this.rnk_1 = null; else $this.rnk_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.qnk_1 = name; this.rnk_1 = content; } function Companion_25() { Companion_instance_73 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.snk_1 = [new ArrayListSerializer($serializer_getInstance_30()), new ArrayListSerializer($serializer_getInstance_26()), new ArrayListSerializer($serializer_getInstance_29()), new ArrayListSerializer($serializer_getInstance_27()), new ArrayListSerializer($serializer_getInstance_28()), new ArrayListSerializer($serializer_getInstance_34())]; } var Companion_instance_73; function Companion_getInstance_42() { if (Companion_instance_73 == null) new Companion_25(); return Companion_instance_73; } function $serializer_23() { $serializer_instance_23 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Metadata', this, 6); tmp0_serialDesc.t4f('titles', true); tmp0_serialDesc.t4f('creators', true); tmp0_serialDesc.t4f('languages', true); tmp0_serialDesc.t4f('descriptions', true); tmp0_serialDesc.t4f('identifiers', true); tmp0_serialDesc.t4f('metas', true); tmp0_serialDesc.v4f(new XmlSerialName('metadata', 'http://www.idpf.org/2007/opf')); this.tnk_1 = tmp0_serialDesc; } protoOf($serializer_23).q44 = function () { return this.tnk_1; }; protoOf($serializer_23).k4g = function () { var tmp0_cached = Companion_getInstance_42().snk_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).s44 = function (decoder) { var tmp0_desc = this.tnk_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_input = decoder.i48(tmp0_desc); var tmp11_cached = Companion_getInstance_42().snk_1; if (tmp10_input.x48()) { tmp4_local0 = tmp10_input.u48(tmp0_desc, 0, tmp11_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.u48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.u48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.u48(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.u48(tmp0_desc, 4, tmp11_cached[4], tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.u48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.u48(tmp0_desc, 0, tmp11_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.u48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.u48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.u48(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.u48(tmp0_desc, 4, tmp11_cached[4], tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.u48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.j48(tmp0_desc); return Metadata_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_23).unk = function (encoder, value) { var tmp0_desc = this.tnk_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_42().snk_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !equals(value.vnk_1, emptyList())) { tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.vnk_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !equals(value.wnk_1, emptyList())) { tmp1_output.y49(tmp0_desc, 1, tmp2_cached[1], value.wnk_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !equals(value.xnk_1, emptyList())) { tmp1_output.y49(tmp0_desc, 2, tmp2_cached[2], value.xnk_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !equals(value.ynk_1, emptyList())) { tmp1_output.y49(tmp0_desc, 3, tmp2_cached[3], value.ynk_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !equals(value.znk_1, emptyList())) { tmp1_output.y49(tmp0_desc, 4, tmp2_cached[4], value.znk_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !equals(value.anl_1, emptyList())) { tmp1_output.y49(tmp0_desc, 5, tmp2_cached[5], value.anl_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_23).r44 = function (encoder, value) { return this.unk(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().tnk_1); } if (0 === (seen1 & 1)) $this.vnk_1 = emptyList(); else $this.vnk_1 = titles; if (0 === (seen1 & 2)) $this.wnk_1 = emptyList(); else $this.wnk_1 = creators; if (0 === (seen1 & 4)) $this.xnk_1 = emptyList(); else $this.xnk_1 = languages; if (0 === (seen1 & 8)) $this.ynk_1 = emptyList(); else $this.ynk_1 = descriptions; if (0 === (seen1 & 16)) $this.znk_1 = emptyList(); else $this.znk_1 = identifiers; if (0 === (seen1 & 32)) $this.anl_1 = emptyList(); else $this.anl_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.vnk_1 = titles; this.wnk_1 = creators; this.xnk_1 = languages; this.ynk_1 = descriptions; this.znk_1 = identifiers; this.anl_1 = metas; } function Companion_26() { this.bnl_1 = 'http://www.idpf.org/2007/opf'; this.cnl_1 = 'http://purl.org/dc/elements/1.1/'; } protoOf(Companion_26).n4r = function () { return $serializer_getInstance_36(); }; var Companion_instance_74; function Companion_getInstance_43() { return Companion_instance_74; } function $serializer_24() { $serializer_instance_24 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.PackageDocument', this, 5); tmp0_serialDesc.t4f('version', true); tmp0_serialDesc.t4f('uniqueIdentifier', true); tmp0_serialDesc.u4f(new XmlSerialName('unique-identifier')); tmp0_serialDesc.t4f('metadata', true); tmp0_serialDesc.t4f('manifest', true); tmp0_serialDesc.t4f('spine', true); tmp0_serialDesc.v4f(new XmlSerialName('package', 'http://www.idpf.org/2007/opf')); this.dnl_1 = tmp0_serialDesc; } protoOf($serializer_24).q44 = function () { return this.dnl_1; }; protoOf($serializer_24).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance(), $serializer_getInstance_35(), $serializer_getInstance_33(), $serializer_getInstance_37()]; }; protoOf($serializer_24).s44 = function (decoder) { var tmp0_desc = this.dnl_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_input = decoder.i48(tmp0_desc); if (tmp9_input.x48()) { tmp4_local0 = tmp9_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.u48(tmp0_desc, 2, $serializer_getInstance_35(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.u48(tmp0_desc, 3, $serializer_getInstance_33(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.u48(tmp0_desc, 4, $serializer_getInstance_37(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.u48(tmp0_desc, 2, $serializer_getInstance_35(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.u48(tmp0_desc, 3, $serializer_getInstance_33(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.u48(tmp0_desc, 4, $serializer_getInstance_37(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.j48(tmp0_desc); return PackageDocument_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_24).enl = function (encoder, value) { var tmp0_desc = this.dnl_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.fnl_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.fnl_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.gnl_1 === '')) { tmp1_output.w49(tmp0_desc, 1, value.gnl_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !equals(value.hnl_1, new Metadata())) { tmp1_output.y49(tmp0_desc, 2, $serializer_getInstance_35(), value.hnl_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !equals(value.inl_1, new Manifest())) { tmp1_output.y49(tmp0_desc, 3, $serializer_getInstance_33(), value.inl_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !equals(value.jnl_1, new Spine())) { tmp1_output.y49(tmp0_desc, 4, $serializer_getInstance_37(), value.jnl_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_24).r44 = function (encoder, value) { return this.enl(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().dnl_1); } if (0 === (seen1 & 1)) $this.fnl_1 = null; else $this.fnl_1 = version; if (0 === (seen1 & 2)) $this.gnl_1 = ''; else $this.gnl_1 = uniqueIdentifier; if (0 === (seen1 & 4)) $this.hnl_1 = new Metadata(); else $this.hnl_1 = metadata; if (0 === (seen1 & 8)) $this.inl_1 = new Manifest(); else $this.inl_1 = manifest; if (0 === (seen1 & 16)) $this.jnl_1 = new Spine(); else $this.jnl_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.fnl_1 = version; this.gnl_1 = uniqueIdentifier; this.hnl_1 = metadata; this.inl_1 = manifest; this.jnl_1 = spine; } protoOf(PackageDocument).knl = function () { var whitespaceRegex = Regex_init_$Create$('\\s+'); var tmp$ret$2; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.inl_1.nnk_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.fnk_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.hnl_1.anl_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.qnk_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.rnk_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.inl_1.nnk_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.dnk_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).lnl = function () { var whiteSpaceRegex = Regex_init_$Create$('\\s+'); // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.inl_1.nnk_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.fnk_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.jnl_1.nnl_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.inl_1.nnk_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.dnk_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.fnk_1; var tmp1_elvis_lhs_1 = tmp0_safe_receiver_2 == null ? null : contains(tmp0_safe_receiver_2, 'nav'); if (tmp1_elvis_lhs_1 == null ? false : tmp1_elvis_lhs_1) { tmp$ret$13 = element_1; break $l$block_0; } } tmp$ret$13 = null; } var tmp2_elvis_lhs_0 = tmp$ret$13; return tmp2_elvis_lhs_0 == null ? firstOrNull(allTocCandidates) : tmp2_elvis_lhs_0; }; function Companion_27() { Companion_instance_75 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.onl_1 = [new ArrayListSerializer($serializer_getInstance_32()), null]; } var Companion_instance_75; function Companion_getInstance_44() { if (Companion_instance_75 == null) new Companion_27(); return Companion_instance_75; } function $serializer_25() { $serializer_instance_25 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Spine', this, 2); tmp0_serialDesc.t4f('itemRefs', true); tmp0_serialDesc.t4f('toc', true); tmp0_serialDesc.v4f(new XmlSerialName('spine', 'http://www.idpf.org/2007/opf')); this.pnl_1 = tmp0_serialDesc; } protoOf($serializer_25).q44 = function () { return this.pnl_1; }; protoOf($serializer_25).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_44().onl_1[0], get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_25).s44 = function (decoder) { var tmp0_desc = this.pnl_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.i48(tmp0_desc); var tmp7_cached = Companion_getInstance_44().onl_1; if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return Spine_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_25).qnl = function (encoder, value) { var tmp0_desc = this.pnl_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_44().onl_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !equals(value.mnl_1, emptyList())) { tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.mnl_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.nnl_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.nnl_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_25).r44 = function (encoder, value) { return this.qnl(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().pnl_1); } if (0 === (seen1 & 1)) $this.mnl_1 = emptyList(); else $this.mnl_1 = itemRefs; if (0 === (seen1 & 2)) $this.nnl_1 = null; else $this.nnl_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.mnl_1 = itemRefs; this.nnl_1 = toc; } function Companion_28() { Companion_instance_76 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.rnl_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), new ArrayListSerializer($serializer_getInstance_39())]; } var Companion_instance_76; function Companion_getInstance_45() { if (Companion_instance_76 == null) new Companion_28(); return Companion_instance_76; } function $serializer_26() { $serializer_instance_26 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.manifest.ContentManifest', this, 3); tmp0_serialDesc.t4f('version', false); tmp0_serialDesc.t4f('metadata', false); tmp0_serialDesc.t4f('entries', false); this.snl_1 = tmp0_serialDesc; } protoOf($serializer_26).q44 = function () { return this.snl_1; }; protoOf($serializer_26).k4g = function () { var tmp0_cached = Companion_getInstance_45().rnl_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).s44 = function (decoder) { var tmp0_desc = this.snl_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.i48(tmp0_desc); var tmp8_cached = Companion_getInstance_45().rnl_1; if (tmp7_input.x48()) { tmp4_local0 = tmp7_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.u48(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.u48(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.u48(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.u48(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.j48(tmp0_desc); return ContentManifest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_26).tnl = function (encoder, value) { var tmp0_desc = this.snl_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_45().rnl_1; tmp1_output.r49(tmp0_desc, 0, value.unl_1); tmp1_output.y49(tmp0_desc, 1, tmp2_cached[1], value.vnl_1); tmp1_output.y49(tmp0_desc, 2, tmp2_cached[2], value.wnl_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_26).r44 = function (encoder, value) { return this.tnl(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().snl_1); } $this.unl_1 = version; $this.vnl_1 = metadata; $this.wnl_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.unl_1 = version; this.vnl_1 = metadata; this.wnl_1 = entries; } protoOf(ContentManifest).toString = function () { return 'ContentManifest(version=' + this.unl_1 + ', metadata=' + this.vnl_1 + ', entries=' + this.wnl_1 + ')'; }; protoOf(ContentManifest).hashCode = function () { var result = this.unl_1; result = imul(result, 31) + hashCode(this.vnl_1) | 0; result = imul(result, 31) + hashCode(this.wnl_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.unl_1 === tmp0_other_with_cast.unl_1)) return false; if (!equals(this.vnl_1, tmp0_other_with_cast.vnl_1)) return false; if (!equals(this.wnl_1, tmp0_other_with_cast.wnl_1)) return false; return true; }; function Companion_29() { Companion_instance_77 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.xnl_1 = [null, null, null, null, null, null, new StringValuesSerializer(), new StringValuesSerializer(), null]; } var Companion_instance_77; function Companion_getInstance_46() { if (Companion_instance_77 == null) new Companion_29(); return Companion_instance_77; } function $serializer_27() { $serializer_instance_27 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.manifest.ContentManifestEntry', this, 9); tmp0_serialDesc.t4f('uri', false); tmp0_serialDesc.t4f('storageSize', false); tmp0_serialDesc.t4f('ignoreQueryParams', true); tmp0_serialDesc.t4f('status', true); tmp0_serialDesc.t4f('method', true); tmp0_serialDesc.t4f('integrity', false); tmp0_serialDesc.t4f('requestHeaders', true); tmp0_serialDesc.t4f('responseHeaders', false); tmp0_serialDesc.t4f('bodyDataUrl', false); this.ynl_1 = tmp0_serialDesc; } protoOf($serializer_27).q44 = function () { return this.ynl_1; }; protoOf($serializer_27).k4g = function () { var tmp0_cached = Companion_getInstance_46().xnl_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).s44 = function (decoder) { var tmp0_desc = this.ynl_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = new Long(0, 0); var tmp6_local2 = false; var tmp7_local3 = 0; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_input = decoder.i48(tmp0_desc); var tmp14_cached = Companion_getInstance_46().xnl_1; if (tmp13_input.x48()) { tmp4_local0 = tmp13_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.k48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.n48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.s48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.s48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.u48(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.u48(tmp0_desc, 7, tmp14_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.s48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.k48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.n48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.s48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.s48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.u48(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.u48(tmp0_desc, 7, tmp14_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.s48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.j48(tmp0_desc); return ContentManifestEntry_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); }; protoOf($serializer_27).znl = function (encoder, value) { var tmp0_desc = this.ynl_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_46().xnl_1; tmp1_output.w49(tmp0_desc, 0, value.anm_1); tmp1_output.s49(tmp0_desc, 1, value.bnm_1); if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.cnm_1 === true)) { tmp1_output.o49(tmp0_desc, 2, value.cnm_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.dnm_1 === 200)) { tmp1_output.r49(tmp0_desc, 3, value.dnm_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.enm_1 === 'GET')) { tmp1_output.w49(tmp0_desc, 4, value.enm_1); } tmp1_output.w49(tmp0_desc, 5, value.fnm_1); if (tmp1_output.e4a(tmp0_desc, 6) ? true : !equals(value.gnm_1, emptyStringValues())) { tmp1_output.y49(tmp0_desc, 6, tmp2_cached[6], value.gnm_1); } tmp1_output.y49(tmp0_desc, 7, tmp2_cached[7], value.hnm_1); tmp1_output.w49(tmp0_desc, 8, value.inm_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_27).r44 = function (encoder, value) { return this.znl(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().ynl_1); } $this.anm_1 = uri; $this.bnm_1 = storageSize; if (0 === (seen1 & 4)) $this.cnm_1 = true; else $this.cnm_1 = ignoreQueryParams; if (0 === (seen1 & 8)) $this.dnm_1 = 200; else $this.dnm_1 = status; if (0 === (seen1 & 16)) $this.enm_1 = 'GET'; else $this.enm_1 = method; $this.fnm_1 = integrity; if (0 === (seen1 & 64)) $this.gnm_1 = emptyStringValues(); else $this.gnm_1 = requestHeaders; $this.hnm_1 = responseHeaders; $this.inm_1 = bodyDataUrl; return $this; } function ContentManifestEntry_init_$Create$(seen1, uri, storageSize, ignoreQueryParams, status, method, integrity, requestHeaders, responseHeaders, bodyDataUrl, serializationConstructorMarker) { return ContentManifestEntry_init_$Init$(seen1, uri, storageSize, ignoreQueryParams, status, method, integrity, requestHeaders, responseHeaders, bodyDataUrl, serializationConstructorMarker, objectCreate(protoOf(ContentManifestEntry))); } function ContentManifestEntry() { } function Companion_30() { Companion_instance_78 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.jnm_1 = [new ArrayListSerializer($serializer_getInstance_41()), new ArrayListSerializer($serializer_getInstance_42())]; } var Companion_instance_78; function Companion_getInstance_47() { if (Companion_instance_78 == null) new Companion_30(); return Companion_instance_78; } function $serializer_28() { $serializer_instance_28 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.media.MediaContentInfo', this, 2); tmp0_serialDesc.t4f('sources', false); tmp0_serialDesc.t4f('subtitles', true); this.knm_1 = tmp0_serialDesc; } protoOf($serializer_28).q44 = function () { return this.knm_1; }; protoOf($serializer_28).k4g = function () { var tmp0_cached = Companion_getInstance_47().jnm_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).s44 = function (decoder) { var tmp0_desc = this.knm_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.i48(tmp0_desc); var tmp7_cached = Companion_getInstance_47().jnm_1; if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return MediaContentInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_28).lnm = function (encoder, value) { var tmp0_desc = this.knm_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_47().jnm_1; tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.mnm_1); if (tmp1_output.e4a(tmp0_desc, 1) ? true : !equals(value.nnm_1, emptyList())) { tmp1_output.y49(tmp0_desc, 1, tmp2_cached[1], value.nnm_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_28).r44 = function (encoder, value) { return this.lnm(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().knm_1); } $this.mnm_1 = sources; if (0 === (seen1 & 2)) $this.nnm_1 = emptyList(); else $this.nnm_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.mnm_1 = sources; this.nnm_1 = subtitles; } function $serializer_29() { $serializer_instance_29 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.media.MediaSource', this, 2); tmp0_serialDesc.t4f('uri', false); tmp0_serialDesc.t4f('mimeType', false); this.onm_1 = tmp0_serialDesc; } protoOf($serializer_29).q44 = function () { return this.onm_1; }; protoOf($serializer_29).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_29).s44 = function (decoder) { var tmp0_desc = this.onm_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return MediaSource_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_29).pnm = function (encoder, value) { var tmp0_desc = this.onm_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.w49(tmp0_desc, 0, value.qnm_1); tmp1_output.w49(tmp0_desc, 1, value.rnm_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_29).r44 = function (encoder, value) { return this.pnm(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().onm_1); } $this.qnm_1 = uri; $this.rnm_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).n4r = function () { return $serializer_getInstance_42(); }; var Companion_instance_79; function Companion_getInstance_48() { return Companion_instance_79; } function $serializer_30() { $serializer_instance_30 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.media.SubtitleTrack', this, 4); tmp0_serialDesc.t4f('uri', false); tmp0_serialDesc.t4f('mimeType', false); tmp0_serialDesc.t4f('langCode', false); tmp0_serialDesc.t4f('title', false); this.snm_1 = tmp0_serialDesc; } protoOf($serializer_30).q44 = function () { return this.snm_1; }; protoOf($serializer_30).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_30).s44 = function (decoder) { var tmp0_desc = this.snm_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.i48(tmp0_desc); if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return SubtitleTrack_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_30).tnm = function (encoder, value) { var tmp0_desc = this.snm_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.w49(tmp0_desc, 0, value.unm_1); tmp1_output.w49(tmp0_desc, 1, value.vnm_1); tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.wnm_1); tmp1_output.w49(tmp0_desc, 3, value.xnm_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_30).r44 = function (encoder, value) { return this.tnm(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().snm_1); } $this.unm_1 = uri; $this.vnm_1 = mimeType; $this.wnm_1 = langCode; $this.xnm_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.unm_1 = uri; this.vnm_1 = mimeType; this.wnm_1 = langCode; this.xnm_1 = title; } protoOf(SubtitleTrack).ynm = function (uri, mimeType, langCode, title) { return new SubtitleTrack(uri, mimeType, langCode, title); }; protoOf(SubtitleTrack).znm = function (uri, mimeType, langCode, title, $super) { uri = uri === VOID ? this.unm_1 : uri; mimeType = mimeType === VOID ? this.vnm_1 : mimeType; langCode = langCode === VOID ? this.wnm_1 : langCode; title = title === VOID ? this.xnm_1 : title; return $super === VOID ? this.ynm(uri, mimeType, langCode, title) : $super.ynm.call(this, uri, mimeType, langCode, title); }; protoOf(SubtitleTrack).toString = function () { return 'SubtitleTrack(uri=' + this.unm_1 + ', mimeType=' + this.vnm_1 + ', langCode=' + this.wnm_1 + ', title=' + this.xnm_1 + ')'; }; protoOf(SubtitleTrack).hashCode = function () { var result = getStringHashCode(this.unm_1); result = imul(result, 31) + getStringHashCode(this.vnm_1) | 0; result = imul(result, 31) + (this.wnm_1 == null ? 0 : getStringHashCode(this.wnm_1)) | 0; result = imul(result, 31) + getStringHashCode(this.xnm_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.unm_1 === tmp0_other_with_cast.unm_1)) return false; if (!(this.vnm_1 === tmp0_other_with_cast.vnm_1)) return false; if (!(this.wnm_1 == tmp0_other_with_cast.wnm_1)) return false; if (!(this.xnm_1 === tmp0_other_with_cast.xnm_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.ann_1 = 'upload-tmp'; this.bnn_1 = 'upload-tmp:///'; } protoOf(Companion_32).n4r = function () { return $serializer_getInstance_43(); }; var Companion_instance_80; function Companion_getInstance_49() { return Companion_instance_80; } function $serializer_31() { $serializer_instance_31 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentjob.MetadataResult', this, 4); tmp0_serialDesc.t4f('entry', false); tmp0_serialDesc.t4f('importerId', false); tmp0_serialDesc.t4f('originalFilename', true); tmp0_serialDesc.t4f('picture', true); this.cnn_1 = tmp0_serialDesc; } protoOf($serializer_31).q44 = function () { return this.cnn_1; }; protoOf($serializer_31).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_3(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_4())]; }; protoOf($serializer_31).s44 = function (decoder) { var tmp0_desc = this.cnn_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = 0; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.i48(tmp0_desc); if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_4(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_4(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return MetadataResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_31).dnn = function (encoder, value) { var tmp0_desc = this.cnn_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_3(), value.enn_1); tmp1_output.r49(tmp0_desc, 1, value.fnn_1); if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.gnn_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.gnn_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.hnn_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, $serializer_getInstance_4(), value.hnn_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_31).r44 = function (encoder, value) { return this.dnn(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().cnn_1); } $this.enn_1 = entry; $this.fnn_1 = importerId; if (0 === (seen1 & 4)) $this.gnn_1 = null; else $this.gnn_1 = originalFilename; if (0 === (seen1 & 8)) $this.hnn_1 = null; else $this.hnn_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.enn_1 = entry; this.fnn_1 = importerId; this.gnn_1 = originalFilename; this.hnn_1 = picture; } protoOf(MetadataResult).toString = function () { return 'MetadataResult(entry=' + this.enn_1 + ', importerId=' + this.fnn_1 + ', originalFilename=' + this.gnn_1 + ', picture=' + this.hnn_1 + ')'; }; protoOf(MetadataResult).hashCode = function () { var result = this.enn_1.hashCode(); result = imul(result, 31) + this.fnn_1 | 0; result = imul(result, 31) + (this.gnn_1 == null ? 0 : getStringHashCode(this.gnn_1)) | 0; result = imul(result, 31) + (this.hnn_1 == null ? 0 : this.hnn_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.enn_1.equals(tmp0_other_with_cast.enn_1)) return false; if (!(this.fnn_1 === tmp0_other_with_cast.fnn_1)) return false; if (!(this.gnn_1 == tmp0_other_with_cast.gnn_1)) return false; if (!equals(this.hnn_1, tmp0_other_with_cast.hnn_1)) return false; return true; }; function PersonConstants() { PersonConstants_instance = this; var tmp = this; var tmp_0 = to(1, strings_getInstance().alw_1); var tmp_1 = to(2, strings_getInstance().zlv_1); var tmp_2 = to(4, strings_getInstance().blw_1); tmp.inn_1 = mapOf([tmp_0, tmp_1, tmp_2, to(0, strings_getInstance().clw_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().rmr_1); var tmp_1 = to(4, strings_getInstance().mly_1); var tmp_2 = to(1, strings_getInstance().smr_1); var tmp_3 = to(2, strings_getInstance().tmr_1); tmp.jnn_1 = mapOf([tmp_0, tmp_1, tmp_2, tmp_3, to(3, strings_getInstance().jml_1)]); var tmp_4 = this; Companion_getInstance_1(); var tmp_5 = to(0, strings_getInstance().kmg_1); Companion_getInstance_1(); var tmp_6 = to(1, strings_getInstance().jmg_1); Companion_getInstance_1(); tmp_4.knn_1 = mapOf([tmp_5, tmp_6, to(2, strings_getInstance().img_1)]); } var SubmissionConstants_instance; function SubmissionConstants_getInstance() { if (SubmissionConstants_instance == null) new SubmissionConstants(); return SubmissionConstants_instance; } function TerminologyKeys() { TerminologyKeys_instance = this; this.lnn_1 = 'Teacher'; this.mnn_1 = 'Student'; this.nnn_1 = 'Teachers'; this.onn_1 = 'Students'; this.pnn_1 = 'AddTeacher'; this.qnn_1 = 'AddStudent'; this.rnn_1 = mapOf([to('Teacher', strings_getInstance().rm9_1), to('Student', strings_getInstance().emg_1), to('Teachers', strings_getInstance().um9_1), to('Students', strings_getInstance().alx_1), to('AddTeacher', strings_getInstance().sm9_1), to('AddStudent', strings_getInstance().blx_1)]); } var TerminologyKeys_instance; function TerminologyKeys_getInstance() { if (TerminologyKeys_instance == null) new TerminologyKeys(); return TerminologyKeys_instance; } 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.tnn_1 = submission; } protoOf(SubmitAssignmentResult).toString = function () { return 'SubmitAssignmentResult(submission=' + this.tnn_1 + ')'; }; protoOf(SubmitAssignmentResult).hashCode = function () { return this.tnn_1 == null ? 0 : this.tnn_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.tnn_1, tmp0_other_with_cast.tnn_1)) return false; return true; }; function SubmitAssignmentUseCase$invoke$lambda($assignmentUid, $submitterUid, $accountPersonUid, $assignment) { return function ($this$shallowCopy) { $this$shallowCopy.rbo_1 = $assignmentUid; $this$shallowCopy.sbo_1 = $submitterUid; $this$shallowCopy.tbo_1 = $accountPersonUid; $this$shallowCopy.wbo_1 = systemTimeInMillis(); $this$shallowCopy.xbo_1 = $assignment.v7t_1; return Unit_instance; }; } function $invokeCOROUTINE$9(_this__u8e3s4, repo, submitterUid, assignmentUid, accountPersonUid, submission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cno_1 = _this__u8e3s4; this.dno_1 = repo; this.eno_1 = submitterUid; this.fno_1 = assignmentUid; this.gno_1 = accountPersonUid; this.hno_1 = submission; } protoOf($invokeCOROUTINE$9).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.eno_1.equals(new Long(0, 0))) throw new AccountIsNotSubmitterException('Not a valid submitter'); this.hd_1 = 1; suspendResult = this.dno_1.q7e().g7s(this.fno_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ino_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.ino_1 == null) { throw IllegalArgumentException_init_$Create$('Could not find assignment uid ' + this.fno_1.toString()); } else { tmp_1 = this.ino_1; } tmp_0.jno_1 = tmp_1; var tmp_2 = this; var tmp1_elvis_lhs = this.jno_1.i7x_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.kno_1 = tmp_3; var tmp_4 = this; var tmp2_elvis_lhs = this.jno_1.h7x_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.lno_1 = tmp_5; var tmp_6 = this.lno_1.p7t_1; if (tmp_6 === 1) { this.hd_1 = 2; suspendResult = this.dno_1.r7e().ybn(this.gno_1, this.fno_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.mno_1 = false; this.hd_1 = 3; continue $sm; } case 2: this.mno_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: if (this.mno_1) { throw new AssignmentAlreadySubmittedException(this.cno_1.ono_1.tno(strings_getInstance().kmv_1)); } else { this.hd_1 = 4; continue $sm; } case 4: if (lastPossibleSubmissionTime(this.kno_1).c7(systemTimeInMillis()) < 0) { throw new AssignmentDeadlinePassedException(this.cno_1.ono_1.tno(strings_getInstance().jmv_1)); } if (this.lno_1.r7t_1) { var tmp_7 = this.lno_1.s7t_1; if (tmp_7 === 1) { var tmp3_safe_receiver = this.hno_1.ubo_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.lno_1.t7t_1) { throw new AssignmentTextTooLongException(this.cno_1.ono_1.uno(strings_getInstance().lmv_1, [wordCount.toString(), this.lno_1.t7t_1.toString()])); } } else { var tmp_8 = this.lno_1.s7t_1; if (tmp_8 === 2) { var tmp6_safe_receiver = this.hno_1.ubo_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.lno_1.t7t_1) { throw new AssignmentTextTooLongException(this.cno_1.ono_1.uno(strings_getInstance().mmv_1, [charCount.toString(), this.lno_1.t7t_1.toString()])); } } } } var tmp_9 = this; tmp_9.nno_1 = shallowCopy_0(this.hno_1, SubmitAssignmentUseCase$invoke$lambda(this.fno_1, this.eno_1, this.gno_1, this.lno_1)); Napier_getInstance().i5e('SubmitAssignmentUseCase: save to repo for submitterUid=' + this.eno_1.toString() + ' assignmentUid=' + this.fno_1.toString()); this.hd_1 = 5; suspendResult = this.dno_1.r7e().insertAsync(this.nno_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return new SubmitAssignmentResult(this.nno_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.ono_1 = systemImpl; } protoOf(SubmitAssignmentUseCase).vno = function (repo, submitterUid, assignmentUid, accountPersonUid, submission, $completion) { var tmp = new $invokeCOROUTINE$9(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.mbi_1 = $assignment.d7t_1; $this$shallowCopy.nbi_1 = $submitterUid; $this$shallowCopy.obi_1 = $activeUserSubmitterUid; $this$shallowCopy.pbi_1 = $activeUserPerson.s95_1; var tmp = $this$shallowCopy; var tmp0_elvis_lhs = $courseBlock.u7x_1; tmp.sbi_1 = tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs; $this$shallowCopy.vbi_1 = $clazzUid; var tmp_0; if ($applyPenalty) { $this$shallowCopy.tbi_1 = roundTo($this$shallowCopy.rbi_1 * ($courseBlock.s7x_1 / 100.0), 2); $this$shallowCopy.rbi_1 = $this$shallowCopy.rbi_1 - $this$shallowCopy.tbi_1; tmp_0 = Unit_instance; } return Unit_instance; }; } function SubmitMarkUseCase$invoke$slambda(this$0, $stmt, $activeUserPerson, $courseBlock, $instructorActorToPersonUidMap, $actorToPersonUidMap, $clazzUid, $activityId, $markToRecord, resultContinuation) { this.enp_1 = this$0; this.fnp_1 = $stmt; this.gnp_1 = $activeUserPerson; this.hnp_1 = $courseBlock; this.inp_1 = $instructorActorToPersonUidMap; this.jnp_1 = $actorToPersonUidMap; this.knp_1 = $clazzUid; this.lnp_1 = $activityId; this.mnp_1 = $markToRecord; CoroutineImpl.call(this, resultContinuation); } protoOf(SubmitMarkUseCase$invoke$slambda).pnp = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SubmitMarkUseCase$invoke$slambda).he = function (p1, $completion) { return this.pnp(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.onp_1 = uuid4(); this.hd_1 = 1; var tmp_0 = listOf_0(this.fnp_1); var tmp0_xseAccountPersonUid = this.gnp_1.s95_1; var tmp1_xseAccountUsername = ensureNotNull(this.gnp_1.t95_1); var tmp2_xseCbUid = this.hnp_1.j7x_1; var tmp3_xseRegistrationHi = this.onp_1.flp(); var tmp4_xseRegistrationLo = this.onp_1.glp(); var tmp5_knownActorUidToPersonUids = this.enp_1.vnp_1.r45(MapSerializer(serializer_1(Companion_getInstance_2()), serializer_1(Companion_getInstance_2())), plus_0(this.inp_1, this.jnp_1)); suspendResult = this.enp_1.tnp_1.dnq(tmp_0, new XapiSessionEntity(VOID, VOID, tmp3_xseRegistrationHi, tmp4_xseRegistrationLo, VOID, tmp0_xseAccountPersonUid, VOID, tmp1_xseAccountUsername, this.knp_1, tmp2_xseCbUid, VOID, VOID, this.lnp_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.enp_1.qnp_1.t7e().insertAsync(this.mnp_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).vn7 = function (it, completion) { var i = new SubmitMarkUseCase$invoke$slambda(this.enp_1, this.fnp_1, this.gnp_1, this.hnp_1, this.inp_1, this.jnp_1, this.knp_1, this.lnp_1, this.mnp_1, completion); i.nnp_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.pnp(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$10(_this__u8e3s4, activeUserPerson, assignment, clazzUid, submitterUid, draftMark, submissions, courseBlock, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mnq_1 = _this__u8e3s4; this.nnq_1 = activeUserPerson; this.onq_1 = assignment; this.pnq_1 = clazzUid; this.qnq_1 = submitterUid; this.rnq_1 = draftMark; this.snq_1 = submissions; this.tnq_1 = courseBlock; } 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 = 8; var tmp_0 = this; var tmp_1; if (!this.snq_1.c1()) { var iterator = this.snq_1.w(); if (!iterator.f()) throw NoSuchElementException_init_$Create$(); var maxValue = iterator.e().wbo_1; while (iterator.f()) { var v = iterator.e().wbo_1; if (compareTo(maxValue, v) < 0) { maxValue = v; } } tmp_1 = maxValue.c7(this.tnq_1.r7x_1) > 0; } else { tmp_1 = false; } tmp_0.unq_1 = tmp_1; this.hd_1 = 1; suspendResult = this.mnq_1.qnp_1.q7e().e7s(this.onq_1.d7t_1, this.pnq_1, this.nnq_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.vnq_1 = suspendResult; var tmp_2; if (this.onq_1.g7t_1.equals(new Long(0, 0))) { tmp_2 = true; } else { var tmp_3 = this.onq_1.q7t_1; tmp_2 = tmp_3 === 1; } if (tmp_2) { var tmp_4 = this; var activeUserPersonXapiAgent = toXapiAgent(this.nnq_1, this.mnq_1.rnp_1); tmp_4.wnq_1 = to(activeUserPersonXapiAgent, mapOf_0(to(identifierHash(activeUserPersonXapiAgent, this.mnq_1.unp_1), this.nnq_1.s95_1))); this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = this.mnq_1.snp_1.pnr(this.onq_1.g7t_1, this.vnq_1.mb(), this.onq_1.v7t_1, this.onq_1.d7t_1, this.nnq_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.xnq_1 = suspendResult; var tmp_5 = this; var it = this.xnq_1; tmp_5.wnq_1 = to(it.qnr_1, it.rnr_1); this.hd_1 = 3; continue $sm; case 3: this.ynq_1 = this.wnq_1; this.znq_1 = this.ynq_1.y6(); this.anr_1 = this.ynq_1.z6(); if (this.onq_1.g7t_1.equals(new Long(0, 0))) { this.hd_1 = 5; suspendResult = this.mnq_1.qnp_1.n7d().bfp(this.qnq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 4; suspendResult = this.mnq_1.snp_1.pnr(this.onq_1.g7t_1, this.qnq_1.mb(), this.onq_1.v7t_1, this.onq_1.d7t_1, this.nnq_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.cnr_1 = suspendResult; var tmp_6 = this; var it_0 = this.cnr_1; tmp_6.bnr_1 = to(it_0.qnr_1, it_0.rnr_1); this.hd_1 = 6; continue $sm; case 5: this.dnr_1 = suspendResult; this.enr_1 = this.dnr_1 == null ? null : toXapiAgent(this.dnr_1, this.mnq_1.rnp_1); var tmp_7 = this; var tmp_8; if (this.enr_1 == null) { throw IllegalStateException_init_$Create$('Could not find person for ' + this.qnq_1.toString()); } else { tmp_8 = this.enr_1; } tmp_7.fnr_1 = tmp_8; this.bnr_1 = to(this.fnr_1, mapOf_0(to(identifierHash(this.fnr_1, this.mnq_1.unp_1), this.qnq_1))); this.hd_1 = 6; continue $sm; case 6: this.gnr_1 = this.bnr_1; this.hnr_1 = this.gnr_1.y6(); this.inr_1 = this.gnr_1.z6(); var tmp_9 = this; tmp_9.jnr_1 = shallowCopy_1(this.rnq_1, SubmitMarkUseCase$invoke$lambda(this.onq_1, this.qnq_1, this.vnq_1, this.nnq_1, this.tnq_1, this.pnq_1, this.unq_1)); var tmp_10 = this; var tmp4_viewName = 'CourseAssignment'; var tmp5_endpoint = this.mnq_1.rnp_1.jn2_1; Companion_getInstance_118(); var tmp_11 = to('clazzUid', this.pnq_1.toString()); Companion_getInstance_118(); var tmp6_queryString = toQueryString(mapOf([tmp_11, to('entityUid', this.onq_1.d7t_1.toString())])); tmp_10.knr_1 = (new UstadUrlComponents(tmp5_endpoint, tmp4_viewName, tmp6_queryString)).xnr(); var tmp_12 = this; var tmp7_verb = new XapiVerb(get_VERB_COMPLETED()); var tmp8_object = new XapiActivityStatementObject(XapiObjectType_Activity_getInstance(), this.knr_1); var tmp9_context = new XapiContext(this.znq_1); var tmp10_result = new XapiResult(true, true, new Score(this.jnr_1.rbi_1 / this.jnr_1.sbi_1, this.jnr_1.rbi_1, 0.0, this.jnr_1.sbi_1)); tmp_12.lnr_1 = new XapiStatement(VOID, this.hnr_1, tmp7_verb, tmp8_object, tmp10_result, tmp9_context); this.hd_1 = 7; suspendResult = withDoorTransactionAsync(this.mnq_1.qnp_1, VOID, SubmitMarkUseCase$invoke$slambda_0(this.mnq_1, this.lnr_1, this.nnq_1, this.tnq_1, this.anr_1, this.inr_1, this.pnq_1, this.knr_1, this.jnr_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, endpoint, createXapiGroupUseCase, xapiStatementResource, xxStringHasher, json) { this.qnp_1 = repo; this.rnp_1 = endpoint; this.snp_1 = createXapiGroupUseCase; this.tnp_1 = xapiStatementResource; this.unp_1 = xxStringHasher; this.vnp_1 = json; } protoOf(SubmitMarkUseCase).ynr = function (activeUserPerson, assignment, clazzUid, submitterUid, draftMark, submissions, courseBlock, $completion) { var tmp = new $invokeCOROUTINE$10(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.hns_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda).mns = function (value, $completion) { var tmp = this.nns(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.mns((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.kns_1 = this.hns_1; var tmp_1 = this; tmp_1.lns_1 = this.ins_1; var tmp0_safe_receiver = this.lns_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xfs_1) == null)) { this.hd_1 = 3; suspendResult = this.kns_1.t1d(this.lns_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.jns_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).nns = function (value, completion) { var i = new GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda(this.hns_1, completion); i.ins_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.mns(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$12(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wns_1 = _this__u8e3s4; this.xns_1 = collector; } protoOf($collectCOROUTINE$12).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.yns_1 = this.xns_1; this.hd_1 = 1; var tmp_1 = GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda_0(this.yns_1, null); suspendResult = this.wns_1.zns_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) { this.ant_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).t1d = function (value, $completion) { return this.ant_1(value, $completion); }; function _no_name_provided__qut3iv($this) { this.zns_1 = $this; } protoOf(_no_name_provided__qut3iv).bnt = function (collector, $completion) { var tmp = new $collectCOROUTINE$12(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv).a1c = function (collector, $completion) { return this.bnt(collector, $completion); }; function $invokeCOROUTINE$11(_this__u8e3s4, submitterUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.knt_1 = _this__u8e3s4; this.lnt_1 = submitterUid; } 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 = 3; Companion_getInstance_1(); if (this.lnt_1.c7(toLong(10000)) < 0) { var tmp_0 = this; tmp_0.mnt_1 = this.knt_1.ont_1.tno(strings_getInstance().ymq_1) + ' ' + this.lnt_1.toString(); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var this_0 = this.knt_1.nnt_1.n7d().ffp(this.lnt_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.xfs_1; tmp_1.mnt_1 = '' + tmp_2 + ' ' + (it == null ? null : it.yfs_1); this.hd_1 = 2; continue $sm; case 2: return this.mnt_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.nnt_1 = repo; this.ont_1 = systemImpl; } protoOf(GetAssignmentSubmitterNameUseCase).pnt = function (submitterUid, $completion) { var tmp = new $invokeCOROUTINE$11(this, submitterUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; 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.qnt_1 = blobUrl; this.rnt_1 = transferJobItemUid; this.snt_1 = lockIdToRelease; this.tnt_1 = estimatedSize; this.unt_1 = partialResponseFile; } protoOf(BlobTransferJobItem).toString = function () { return 'BlobTransferJobItem(blobUrl=' + this.qnt_1 + ', transferJobItemUid=' + this.rnt_1 + ', lockIdToRelease=' + this.snt_1.toString() + ', estimatedSize=' + toString_0(this.tnt_1) + ', partialResponseFile=' + this.unt_1 + ')'; }; protoOf(BlobTransferJobItem).hashCode = function () { var result = getStringHashCode(this.qnt_1); result = imul(result, 31) + this.rnt_1 | 0; result = imul(result, 31) + this.snt_1.hashCode() | 0; result = imul(result, 31) + (this.tnt_1 == null ? 0 : this.tnt_1.hashCode()) | 0; result = imul(result, 31) + (this.unt_1 == null ? 0 : getStringHashCode(this.unt_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.qnt_1 === tmp0_other_with_cast.qnt_1)) return false; if (!(this.rnt_1 === tmp0_other_with_cast.rnt_1)) return false; if (!this.snt_1.equals(tmp0_other_with_cast.snt_1)) return false; if (!equals(this.tnt_1, tmp0_other_with_cast.tnt_1)) return false; if (!(this.unt_1 == tmp0_other_with_cast.unt_1)) return false; return true; }; function BlobTransferProgressUpdate(transferItem, bytesTransferred) { this.vnt_1 = transferItem; this.wnt_1 = bytesTransferred; } protoOf(BlobTransferProgressUpdate).toString = function () { return 'Uid #' + this.vnt_1.rnt_1 + ' transferred=' + this.wnt_1.toString() + ' bytes'; }; protoOf(BlobTransferProgressUpdate).hashCode = function () { var result = this.vnt_1.hashCode(); result = imul(result, 31) + this.wnt_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.vnt_1.equals(tmp0_other_with_cast.vnt_1)) return false; if (!this.wnt_1.equals(tmp0_other_with_cast.wnt_1)) return false; return true; }; function BlobTransferStatusUpdate(transferItem, status) { this.xnt_1 = transferItem; this.ynt_1 = status; } protoOf(BlobTransferStatusUpdate).toString = function () { return 'BlobTransferStatusUpdate(transferItem=' + this.xnt_1 + ', status=' + this.ynt_1 + ')'; }; protoOf(BlobTransferStatusUpdate).hashCode = function () { var result = this.xnt_1.hashCode(); result = imul(result, 31) + this.ynt_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.xnt_1.equals(tmp0_other_with_cast.xnt_1)) return false; if (!(this.ynt_1 === tmp0_other_with_cast.ynt_1)) return false; return true; }; function CancelDownloadUseCase() { } function MakeContentEntryAvailableOfflineUseCase(repo, nodeIdAndAuth, enqueueContentManifestDownloadUseCase) { this.znt_1 = repo; this.anu_1 = nodeIdAndAuth; this.bnu_1 = enqueueContentManifestDownloadUseCase; } function OpenBlobItem(uri, mimeType, fileName, fileSize) { this.cnu_1 = uri; this.dnu_1 = mimeType; this.enu_1 = fileName; this.fnu_1 = fileSize; } protoOf(OpenBlobItem).toString = function () { return 'OpenBlobItem(uri=' + this.cnu_1 + ', mimeType=' + this.dnu_1 + ', fileName=' + this.enu_1 + ', fileSize=' + this.fnu_1.toString() + ')'; }; protoOf(OpenBlobItem).hashCode = function () { var result = getStringHashCode(this.cnu_1); result = imul(result, 31) + getStringHashCode(this.dnu_1) | 0; result = imul(result, 31) + getStringHashCode(this.enu_1) | 0; result = imul(result, 31) + this.fnu_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.cnu_1 === tmp0_other_with_cast.cnu_1)) return false; if (!(this.dnu_1 === tmp0_other_with_cast.dnu_1)) return false; if (!(this.enu_1 === tmp0_other_with_cast.enu_1)) return false; if (!this.fnu_1.equals(tmp0_other_with_cast.fnu_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$14(_this__u8e3s4, openItem, onUiUpdate, intent, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.onu_1 = _this__u8e3s4; this.pnu_1 = openItem; this.qnu_1 = onUiUpdate; this.rnu_1 = intent; } protoOf($invokeCOROUTINE$14).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.qnu_1(new OpeningBlobState(this.pnu_1, new Long(0, 0), new Long(0, 0))); this.id_1 = 2; this.hd_1 = 1; suspendResult = this.onu_1.snu_1.unu(this.pnu_1, OpenBlobUiUseCase$invoke$lambda(this.qnu_1, this.pnu_1), this.rnu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.qnu_1(null); this.id_1 = 4; this.hd_1 = 3; continue $sm; case 2: this.id_1 = 4; var tmp_0 = this.kd_1; if (tmp_0 instanceof Error) { var e = this.kd_1; Napier_getInstance().m5e('OpenBlobUiCase: could not open ' + this.pnu_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.qnu_1(new OpeningBlobState(this.pnu_1, tmp_1, tmp_2, tmp0_elvis_lhs == null ? this.onu_1.tnu_1.tno(strings_getInstance().alu_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.snu_1 = openBlobUseCase; this.tnu_1 = systemImpl; } protoOf(OpenBlobUiUseCase).vnu = function (openItem, onUiUpdate, intent, $completion) { var tmp = new $invokeCOROUTINE$14(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.wnu_1 = item; this.xnu_1 = bytesReady; this.ynu_1 = totalBytes; this.znu_1 = error; } protoOf(OpeningBlobState).toString = function () { return 'OpeningBlobState(item=' + this.wnu_1 + ', bytesReady=' + this.xnu_1.toString() + ', totalBytes=' + this.ynu_1.toString() + ', error=' + this.znu_1 + ')'; }; protoOf(OpeningBlobState).hashCode = function () { var result = this.wnu_1.hashCode(); result = imul(result, 31) + this.xnu_1.hashCode() | 0; result = imul(result, 31) + this.ynu_1.hashCode() | 0; result = imul(result, 31) + (this.znu_1 == null ? 0 : getStringHashCode(this.znu_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.wnu_1.equals(tmp0_other_with_cast.wnu_1)) return false; if (!this.xnu_1.equals(tmp0_other_with_cast.xnu_1)) return false; if (!this.ynu_1.equals(tmp0_other_with_cast.ynu_1)) return false; if (!(this.znu_1 == tmp0_other_with_cast.znu_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.inv_1 = $blobs; this.jnv_1 = $this_updateUris; this.knv_1 = $timeNow; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveAndUploadLocalUrisUseCase$updateUris$slambda).un7 = function (_anonymous_parameter_0__qggqh8, $completion) { var tmp = this.vn7(_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.un7(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.mnv_1 = this.inv_1; this.nnv_1 = this.mnv_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.nnv_1.f()) { this.hd_1 = 4; continue $sm; } this.onv_1 = this.nnv_1.e(); var tmp_1 = this; tmp_1.pnv_1 = this.onv_1; this.qnv_1 = this.pnv_1.snv_1; if (this.qnv_1 === 90) { this.hd_1 = 2; suspendResult = this.jnv_1.s7e().jbw(this.pnv_1.rnv_1, this.pnv_1.unv_1, this.knv_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).vn7 = function (_anonymous_parameter_0__qggqh8, completion) { var i = new SaveAndUploadLocalUrisUseCase$updateUris$slambda(this.inv_1, this.jnv_1, this.knv_1, completion); i.lnv_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.un7(_anonymous_parameter_0__qggqh8, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$15(_this__u8e3s4, localUrisToSave, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hnw_1 = _this__u8e3s4; this.inw_1 = localUrisToSave; } protoOf($invokeCOROUTINE$15).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.hnw_1.lnw_1.pnw(this.inw_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.jnw_1 = suspendResult; this.knw_1 = this.hnw_1.mnw_1; if (!(this.knw_1 == null)) { this.hd_1 = 3; suspendResult = updateUris(this.hnw_1.nnw_1, this.hnw_1, this.jnw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; var tmp0_elvis_lhs = this.hnw_1.onw_1; suspendResult = updateUris(tmp0_elvis_lhs == null ? this.hnw_1.nnw_1 : tmp0_elvis_lhs, this.hnw_1, this.jnw_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.jnw_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.unv_1; var tmp1_entityUid = item.rnv_1; var tmp2_tableId = item.snv_1; var tmp3_retentionLockIdToRelease = item.vnv_1; destination.i1(new EnqueueBlobUploadItem(tmp0_blobUrl, tmp2_tableId, tmp1_entityUid, tmp3_retentionLockIdToRelease)); } suspendResult = this.knw_1.qnw(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.lnw_1 = saveLocalUrisAsBlobsUseCase; this.mnw_1 = enqueueBlobUploadClientUseCase; this.nnw_1 = activeDb; this.onw_1 = activeRepo; } protoOf(SaveAndUploadLocalUrisUseCase).rnw = function (localUrisToSave, $completion) { var tmp = new $invokeCOROUTINE$15(this, localUrisToSave, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_33() { } protoOf(Companion_33).n4r = function () { return $serializer_getInstance_44(); }; var Companion_instance_81; function Companion_getInstance_50() { return Companion_instance_81; } function $serializer_32() { $serializer_instance_32 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.blob.savelocaluris.SaveLocalUrisAsBlobsUseCase.SavedBlob', this, 8); tmp0_serialDesc.t4f('entityUid', false); tmp0_serialDesc.t4f('tableId', false); tmp0_serialDesc.t4f('localUri', false); tmp0_serialDesc.t4f('blobUrl', false); tmp0_serialDesc.t4f('retentionLockId', true); tmp0_serialDesc.t4f('integrity', false); tmp0_serialDesc.t4f('mimeType', false); tmp0_serialDesc.t4f('storageSize', false); this.snw_1 = tmp0_serialDesc; } protoOf($serializer_32).q44 = function () { return this.snw_1; }; protoOf($serializer_32).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_32).s44 = function (decoder) { var tmp0_desc = this.snw_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = 0; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.i48(tmp0_desc); if (tmp12_input.x48()) { tmp4_local0 = tmp12_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.s48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.o48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.s48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.s48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.o48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.s48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.o48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.s48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.s48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.o48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.j48(tmp0_desc); return SavedBlob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_32).tnw = function (encoder, value) { var tmp0_desc = this.snw_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.s49(tmp0_desc, 0, value.rnv_1); tmp1_output.r49(tmp0_desc, 1, value.snv_1); tmp1_output.w49(tmp0_desc, 2, value.tnv_1); tmp1_output.w49(tmp0_desc, 3, value.unv_1); if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.vnv_1.equals(new Long(0, 0))) { tmp1_output.s49(tmp0_desc, 4, value.vnv_1); } tmp1_output.w49(tmp0_desc, 5, value.wnv_1); tmp1_output.w49(tmp0_desc, 6, value.xnv_1); tmp1_output.s49(tmp0_desc, 7, value.ynv_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_32).r44 = function (encoder, value) { return this.tnw(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().snw_1); } $this.rnv_1 = entityUid; $this.snv_1 = tableId; $this.tnv_1 = localUri; $this.unv_1 = blobUrl; if (0 === (seen1 & 16)) $this.vnv_1 = new Long(0, 0); else $this.vnv_1 = retentionLockId; $this.wnv_1 = integrity; $this.xnv_1 = mimeType; $this.ynv_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_129.b4e() : extraHeaders; this.unw_1 = localUri; this.vnw_1 = entityUid; this.wnw_1 = tableId; this.xnw_1 = mimeType; this.ynw_1 = deleteLocalUriAfterSave; this.znw_1 = createRetentionLock; this.anx_1 = extraHeaders; } protoOf(SaveLocalUriAsBlobItem).toString = function () { return 'SaveLocalUriAsBlobItem(localUri=' + this.unw_1 + ', entityUid=' + this.vnw_1.toString() + ', tableId=' + this.wnw_1 + ', mimeType=' + this.xnw_1 + ', deleteLocalUriAfterSave=' + this.ynw_1 + ', createRetentionLock=' + this.znw_1 + ', extraHeaders=' + this.anx_1 + ')'; }; protoOf(SaveLocalUriAsBlobItem).hashCode = function () { var result = getStringHashCode(this.unw_1); result = imul(result, 31) + this.vnw_1.hashCode() | 0; result = imul(result, 31) + this.wnw_1 | 0; result = imul(result, 31) + (this.xnw_1 == null ? 0 : getStringHashCode(this.xnw_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.ynw_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.znw_1) | 0; result = imul(result, 31) + hashCode(this.anx_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.unw_1 === tmp0_other_with_cast.unw_1)) return false; if (!this.vnw_1.equals(tmp0_other_with_cast.vnw_1)) return false; if (!(this.wnw_1 === tmp0_other_with_cast.wnw_1)) return false; if (!(this.xnw_1 == tmp0_other_with_cast.xnw_1)) return false; if (!(this.ynw_1 === tmp0_other_with_cast.ynw_1)) return false; if (!(this.znw_1 === tmp0_other_with_cast.znw_1)) return false; if (!equals(this.anx_1, tmp0_other_with_cast.anx_1)) return false; return true; }; function SavedBlob(entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize) { retentionLockId = retentionLockId === VOID ? new Long(0, 0) : retentionLockId; this.rnv_1 = entityUid; this.snv_1 = tableId; this.tnv_1 = localUri; this.unv_1 = blobUrl; this.vnv_1 = retentionLockId; this.wnv_1 = integrity; this.xnv_1 = mimeType; this.ynv_1 = storageSize; } protoOf(SavedBlob).bnx = function (entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize) { return new SavedBlob(entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize); }; protoOf(SavedBlob).cnx = function (entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize, $super) { entityUid = entityUid === VOID ? this.rnv_1 : entityUid; tableId = tableId === VOID ? this.snv_1 : tableId; localUri = localUri === VOID ? this.tnv_1 : localUri; blobUrl = blobUrl === VOID ? this.unv_1 : blobUrl; retentionLockId = retentionLockId === VOID ? this.vnv_1 : retentionLockId; integrity = integrity === VOID ? this.wnv_1 : integrity; mimeType = mimeType === VOID ? this.xnv_1 : mimeType; storageSize = storageSize === VOID ? this.ynv_1 : storageSize; return $super === VOID ? this.bnx(entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize) : $super.bnx.call(this, entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize); }; protoOf(SavedBlob).toString = function () { return 'SavedBlob(entityUid=' + this.rnv_1.toString() + ', tableId=' + this.snv_1 + ', localUri=' + this.tnv_1 + ', blobUrl=' + this.unv_1 + ', retentionLockId=' + this.vnv_1.toString() + ', integrity=' + this.wnv_1 + ', mimeType=' + this.xnv_1 + ', storageSize=' + this.ynv_1.toString() + ')'; }; protoOf(SavedBlob).hashCode = function () { var result = this.rnv_1.hashCode(); result = imul(result, 31) + this.snv_1 | 0; result = imul(result, 31) + getStringHashCode(this.tnv_1) | 0; result = imul(result, 31) + getStringHashCode(this.unv_1) | 0; result = imul(result, 31) + this.vnv_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.wnv_1) | 0; result = imul(result, 31) + getStringHashCode(this.xnv_1) | 0; result = imul(result, 31) + this.ynv_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.rnv_1.equals(tmp0_other_with_cast.rnv_1)) return false; if (!(this.snv_1 === tmp0_other_with_cast.snv_1)) return false; if (!(this.tnv_1 === tmp0_other_with_cast.tnv_1)) return false; if (!(this.unv_1 === tmp0_other_with_cast.unv_1)) return false; if (!this.vnv_1.equals(tmp0_other_with_cast.vnv_1)) return false; if (!(this.wnv_1 === tmp0_other_with_cast.wnv_1)) return false; if (!(this.xnv_1 === tmp0_other_with_cast.xnv_1)) return false; if (!this.ynv_1.equals(tmp0_other_with_cast.ynv_1)) return false; return true; }; function SaveLocalUrisAsBlobsUseCase$invoke$lambda(_anonymous_parameter_0__qggqh8, _anonymous_parameter_1__qggqgd) { return Unit_instance; } function SaveLocalUrisAsBlobsUseCase() { } function EnqueueSavePictureUseCase() { } function imageDaoForTable(_this__u8e3s4, $this, tableId) { var tmp; if (tableId === 50) { tmp = _this__u8e3s4.f7e(); } else { if (tableId === 125) { tmp = _this__u8e3s4.d7f(); } else { if (tableId === 6677) { tmp = _this__u8e3s4.q7f(); } else { if (tableId === 6678) { tmp = _this__u8e3s4.r7f(); } else { tmp = null; } } } } return tmp; } function Companion_34() { this.fnx_1 = 160; } var Companion_instance_82; function Companion_getInstance_51() { return Companion_instance_82; } function $invokeCOROUTINE$16(_this__u8e3s4, entityUid, tableId, pictureUri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.onx_1 = _this__u8e3s4; this.pnx_1 = entityUid; this.qnx_1 = tableId; this.rnx_1 = pictureUri; } 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 = 21; var tmp0_safe_receiver = this.rnx_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.snx_1 = Companion_getInstance_3().o2r(this.rnx_1); this.tnx_1 = this.onx_1.anz_1; if (this.tnx_1 == null) { this.unx_1 = null; this.hd_1 = 4; continue $sm; } else { this.hd_1 = 3; suspendResult = getLocalUriIfRemote(this.tnx_1, this.snx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } else { this.vnx_1 = imageDaoForTable(this.onx_1.xny_1, this.onx_1, this.qnx_1); if (this.vnx_1 == null) { this.wnx_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.vnx_1.ab5(this.pnx_1, null, null, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 1: var tmp_2 = this; tmp_2.wnx_1 = Unit_instance; this.hd_1 = 2; continue $sm; case 2: this.hd_1 = 20; continue $sm; case 3: this.unx_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: this.xnx_1 = this.unx_1; this.ynx_1 = this.xnx_1 == null ? this.snx_1 : this.xnx_1; this.hd_1 = 5; suspendResult = this.onx_1.yny_1.bnz(this.ynx_1.toString(), VOID, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.znx_1 = suspendResult; this.hd_1 = 6; suspendResult = this.onx_1.yny_1.bnz(this.ynx_1.toString(), VOID, new CompressParams(160, 160), VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.any_1 = suspendResult; this.bny_1 = this.onx_1.uny_1; var tmp_3 = this; tmp_3.cny_1 = ArrayList_init_$Create$(); var tmp_4 = this; tmp_4.dny_1 = this.cny_1; if (this.znx_1 == null) null; else { this.dny_1.i1(new SaveLocalUriAsBlobItem(this.znx_1.cnz_1, this.pnx_1, this.qnx_1, this.znx_1.dnz_1, true, true)); } if (this.any_1 == null) null; else { this.dny_1.i1(new SaveLocalUriAsBlobItem(this.any_1.cnz_1, this.pnx_1, this.qnx_1, this.any_1.dnz_1, true, true)); } if (this.znx_1 == null ? true : this.any_1 == null) { this.hd_1 = 7; suspendResult = isRemote(this.snx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.eny_1 = false; this.hd_1 = 8; continue $sm; } case 7: this.fny_1 = suspendResult; this.eny_1 = !this.fny_1; this.hd_1 = 8; continue $sm; case 8: this.gny_1 = this.eny_1; if (this.gny_1) { this.dny_1.i1(new SaveLocalUriAsBlobItem(this.rnx_1, this.pnx_1, this.qnx_1, VOID, VOID, true)); } this.hny_1 = this.cny_1; this.iny_1 = this.hny_1.f3(); this.hd_1 = 9; suspendResult = this.bny_1.pnw(this.iny_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 9: this.jny_1 = suspendResult; this.hd_1 = 10; suspendResult = this.onx_1.zny_1.gnz(listOf_0(this.rnx_1), true, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: var tmp_5 = this; var tmp$ret$0; l$ret$1: do { var tmp0_iterator = this.jny_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.tnv_1 === this.rnx_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.unv_1; tmp_5.kny_1 = tmp4_elvis_lhs == null ? this.snx_1.toString() : tmp4_elvis_lhs; var tmp_6 = this; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_0 = this.jny_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp0_safe_receiver_0 = this.znx_1; if (element_0.tnv_1 === (tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.cnz_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.unv_1; tmp_6.lny_1 = tmp6_elvis_lhs == null ? this.kny_1 : tmp6_elvis_lhs; var tmp_7 = this; var tmp$ret$4; l$ret$5: do { var tmp0_iterator_1 = this.jny_1.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); var tmp0_safe_receiver_1 = this.any_1; if (element_1.tnv_1 === (tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.cnz_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.unv_1; tmp_7.mny_1 = tmp8_elvis_lhs == null ? this.kny_1 : tmp8_elvis_lhs; if (!(this.onx_1.vny_1 == null)) { if (this.znx_1 == null ? true : this.any_1 == null) { this.hd_1 = 13; suspendResult = isRemote(this.snx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ony_1 = false; this.hd_1 = 14; continue $sm; } } else { this.pny_1 = imageDaoForTable(this.onx_1.xny_1, this.onx_1, this.qnx_1); if (this.pny_1 == null) { this.qny_1 = null; this.hd_1 = 12; continue $sm; } else { this.hd_1 = 11; suspendResult = this.pny_1.ab5(this.pnx_1, this.lny_1, this.mny_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 11: var tmp_8 = this; tmp_8.qny_1 = Unit_instance; this.hd_1 = 12; continue $sm; case 12: this.hd_1 = 19; continue $sm; case 13: this.ony_1 = suspendResult; this.hd_1 = 14; continue $sm; case 14: if (this.ony_1) { var tmp_9 = this; tmp_9.nny_1 = new EnqueueBlobUploadItem(this.snx_1.toString(), this.qnx_1, this.pnx_1, new Long(0, 0)); this.hd_1 = 15; continue $sm; } else { var tmp_10 = this; tmp_10.nny_1 = null; this.hd_1 = 15; continue $sm; } case 15: this.rny_1 = this.nny_1; this.sny_1 = imageDaoForTable(this.onx_1.wny_1, this.onx_1, this.qnx_1); if (this.sny_1 == null) { this.tny_1 = null; this.hd_1 = 17; continue $sm; } else { this.hd_1 = 16; suspendResult = this.sny_1.ab5(this.pnx_1, this.lny_1, this.mny_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 16: var tmp_11 = this; tmp_11.tny_1 = Unit_instance; this.hd_1 = 17; continue $sm; case 17: Napier_getInstance().i5e('SavePictureUseCase: Set picture url = ' + this.lny_1 + ' on entity=' + this.pnx_1.toString() + ' table=' + this.qnx_1); this.hd_1 = 18; var this_0 = this.jny_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.unv_1, this.qnx_1, this.pnx_1, item.vnv_1)); } var this_1 = listOf_0(this.rny_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.onx_1.vny_1.qnw(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.uny_1 = saveLocalUrisAsBlobUseCase; this.vny_1 = enqueueBlobUploadClientUseCase; this.wny_1 = db; this.xny_1 = repo; this.yny_1 = compressImageUseCase; this.zny_1 = deleteUrisUseCase; this.anz_1 = getStoragePathForUrlUseCase; } protoOf(SavePictureUseCase).enx = function (entityUid, tableId, pictureUri, $completion) { var tmp = new $invokeCOROUTINE$16(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.pnz_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.qnz_1)) { this.hd_1 = 4; continue $sm; } this.hd_1 = 2; suspendResult = delay(this.pnz_1.tnz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.hd_1 = 3; suspendResult = this.pnz_1.ynz(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.pnz_1, completion); i.qnz_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.ho0_1 = $progressUpdatesToCommit; this.io0_1 = this$0; this.jo0_1 = $statusUpdatesToCommit; this.ko0_1 = $repoNodeId; this.lo0_1 = $updateTransferJobStatusUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemStatusUpdater$commit$slambda).un7 = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TransferJobItemStatusUpdater$commit$slambda).he = function (p1, $completion) { return this.un7(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.no0_1 = this.ho0_1; this.oo0_1 = this.no0_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.oo0_1.f()) { this.hd_1 = 3; continue $sm; } this.po0_1 = this.oo0_1.e(); var tmp_1 = this; tmp_1.qo0_1 = this.po0_1; this.hd_1 = 2; suspendResult = this.io0_1.rnz_1.k7f().aht(this.qo0_1.vnt_1.rnt_1, this.qo0_1.wnt_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.ro0_1 = this.jo0_1; this.so0_1 = this.ro0_1.w(); this.hd_1 = 4; continue $sm; case 4: if (!this.so0_1.f()) { this.hd_1 = 8; continue $sm; } this.to0_1 = this.so0_1.e(); var tmp_3 = this; tmp_3.uo0_1 = this.to0_1; this.hd_1 = 5; suspendResult = this.io0_1.rnz_1.k7f().bht(this.uo0_1.xnt_1.rnt_1, this.uo0_1.ynt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: if (this.uo0_1.ynt_1 === TransferJobItemStatus_COMPLETE_getInstance().mjp_1 ? !(this.ko0_1 == null) : false) { this.hd_1 = 6; suspendResult = this.io0_1.rnz_1.k7f().cht(this.ko0_1, this.uo0_1.xnt_1.rnt_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.lo0_1 === 0)) { this.hd_1 = 9; suspendResult = this.io0_1.rnz_1.j7f().qhq(this.lo0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 10; continue $sm; } case 9: var numUpdates = suspendResult; var tmp_4 = Napier_getInstance(); tmp_4.k5e(VOID, VOID, TransferJobItemStatusUpdater$commit$slambda$lambda(this.lo0_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).vn7 = function (it, completion) { var i = new TransferJobItemStatusUpdater$commit$slambda(this.ho0_1, this.io0_1, this.jo0_1, this.ko0_1, this.lo0_1, completion); i.mo0_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.un7(it, $completion); }; l.$arity = 1; return l; } function $commitCOROUTINE$17(_this__u8e3s4, updateTransferJobStatusUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.do1_1 = _this__u8e3s4; this.eo1_1 = updateTransferJobStatusUid; } protoOf($commitCOROUTINE$17).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.fo1_1 = this.do1_1.vnz_1.atomicfu$getAndSet(emptyList()); this.go1_1 = this.do1_1.wnz_1.atomicfu$getAndSet(emptyList()); var tmp_0 = this; var this_0 = this.fo1_1; var map = LinkedHashMap_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var key = element.vnt_1.rnt_1; map.s(key, element); } tmp_0.ho1_1 = toList(map.p2()); var tmp_1 = this; var this_1 = this.go1_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.xnt_1.rnt_1; map_0.s(key_0, element_0); } tmp_1.io1_1 = toList(map_0.p2()); var tmp_2 = this; var tmp_3 = this.do1_1.snz_1; var tmp0_safe_receiver = (!(tmp_3 == null) ? isInterface(tmp_3, DoorDatabaseRepository) : false) ? tmp_3 : null; tmp_2.jo1_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m61(); var tmp_4 = this; var this_2 = this.do1_1.rnz_1; var tmp_5; var tmp_6; var tmp_7; if (!this.ho1_1.c1()) { tmp_7 = true; } else { tmp_7 = !this.io1_1.c1(); } if (tmp_7) { tmp_6 = true; } else { tmp_6 = !(this.eo1_1 === 0); } if (tmp_6) { tmp_5 = this_2; } else { tmp_5 = null; } tmp_4.ko1_1 = tmp_5; if (this.ko1_1 == null) { this.lo1_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.ko1_1, VOID, TransferJobItemStatusUpdater$commit$slambda_0(this.ho1_1, this.do1_1, this.io1_1, this.jo1_1, this.eo1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_8 = this; tmp_8.lo1_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$18(_this__u8e3s4, updateTransferJobStatusUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.uo1_1 = _this__u8e3s4; this.vo1_1 = updateTransferJobStatusUid; } protoOf($onFinishedCOROUTINE$18).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.uo1_1.unz_1.atomicfu$getAndSet(true)) { this.uo1_1.xnz_1.mr(); this.hd_1 = 1; suspendResult = this.uo1_1.wo1(this.vo1_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.rnz_1 = db; this.snz_1 = repo; this.tnz_1 = commitInterval; this.unz_1 = atomic$boolean$1(false); this.vnz_1 = atomic$ref$1(emptyList()); this.wnz_1 = atomic$ref$1(emptyList()); var tmp = this; tmp.xnz_1 = launch(scope, VOID, VOID, TransferJobItemStatusUpdater$updateJob$slambda_0(this, null)); } protoOf(TransferJobItemStatusUpdater).xo1 = function (update) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.vnz_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).yo1 = function (update) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.wnz_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).wo1 = function (updateTransferJobStatusUid, $completion) { var tmp = new $commitCOROUTINE$17(this, updateTransferJobStatusUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TransferJobItemStatusUpdater).ynz = function (updateTransferJobStatusUid, $completion, $super) { updateTransferJobStatusUid = updateTransferJobStatusUid === VOID ? 0 : updateTransferJobStatusUid; return $super === VOID ? this.wo1(updateTransferJobStatusUid, $completion) : $super.wo1.call(this, updateTransferJobStatusUid, $completion); }; protoOf(TransferJobItemStatusUpdater).zo1 = function (updateTransferJobStatusUid, $completion) { var tmp = new $onFinishedCOROUTINE$18(this, updateTransferJobStatusUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TransferJobItemStatusUpdater).ao2 = function (updateTransferJobStatusUid, $completion, $super) { updateTransferJobStatusUid = updateTransferJobStatusUid === VOID ? 0 : updateTransferJobStatusUid; return $super === VOID ? this.zo1(updateTransferJobStatusUid, $completion) : $super.zo1.call(this, updateTransferJobStatusUid, $completion); }; function $invokeCOROUTINE$19(_this__u8e3s4, db, tableId, entityUid, transferJobItemUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jo2_1 = _this__u8e3s4; this.ko2_1 = db; this.lo2_1 = tableId; this.mo2_1 = entityUid; this.no2_1 = transferJobItemUid; } protoOf($invokeCOROUTINE$19).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.oo2_1 = this.lo2_1; if (this.oo2_1 === 50) { this.hd_1 = 2; suspendResult = this.ko2_1.f7e().obc(this.mo2_1, this.no2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { if (this.oo2_1 === 738) { this.hd_1 = 1; suspendResult = this.ko2_1.i7f().obc(this.mo2_1, this.no2_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).po2 = function (db, tableId, entityUid, transferJobItemUid, $completion) { var tmp = new $invokeCOROUTINE$19(this, db, tableId, entityUid, transferJobItemUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_35() { this.qo2_1 = 'X-Blob-Response-'; this.ro2_1 = 'Blob-Upload-Batch-Uuid'; } var Companion_instance_83; function Companion_getInstance_52() { return Companion_instance_83; } function CancelBlobUploadClientUseCase() { } function EnqueueBlobUploadItem(blobUrl, tableId, entityUid, retentionLockIdToRelease) { tableId = tableId === VOID ? 0 : tableId; entityUid = entityUid === VOID ? new Long(0, 0) : entityUid; retentionLockIdToRelease = retentionLockIdToRelease === VOID ? new Long(0, 0) : retentionLockIdToRelease; this.so2_1 = blobUrl; this.to2_1 = tableId; this.uo2_1 = entityUid; this.vo2_1 = retentionLockIdToRelease; } protoOf(EnqueueBlobUploadItem).toString = function () { return 'EnqueueBlobUploadItem(blobUrl=' + this.so2_1 + ', tableId=' + this.to2_1 + ', entityUid=' + this.uo2_1.toString() + ', retentionLockIdToRelease=' + this.vo2_1.toString() + ')'; }; protoOf(EnqueueBlobUploadItem).hashCode = function () { var result = getStringHashCode(this.so2_1); result = imul(result, 31) + this.to2_1 | 0; result = imul(result, 31) + this.uo2_1.hashCode() | 0; result = imul(result, 31) + this.vo2_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.so2_1 === tmp0_other_with_cast.so2_1)) return false; if (!(this.to2_1 === tmp0_other_with_cast.to2_1)) return false; if (!this.uo2_1.equals(tmp0_other_with_cast.uo2_1)) return false; if (!this.vo2_1.equals(tmp0_other_with_cast.vo2_1)) return false; return true; }; function EnqueueBlobUploadClientUseCase() { } function getLocalUriIfRemote(_this__u8e3s4, uri, $completion) { var tmp = new $getLocalUriIfRemoteCOROUTINE$20(_this__u8e3s4, uri, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $getLocalUriIfRemoteCOROUTINE$20(_this__u8e3s4, uri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fo3_1 = _this__u8e3s4; this.go3_1 = uri; } protoOf($getLocalUriIfRemoteCOROUTINE$20).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.go3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (suspendResult) { this.io3_1 = Companion_getInstance_3(); this.hd_1 = 2; suspendResult = this.fo3_1.jo3(this.go3_1.toString(), VOID, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_0 = this; tmp_0.ho3_1 = this.go3_1; this.hd_1 = 3; continue $sm; } case 2: var ARGUMENT = suspendResult; var ARGUMENT_0 = ARGUMENT.ko3_1; this.ho3_1 = this.io3_1.o2r(ARGUMENT_0); this.hd_1 = 3; continue $sm; case 3: return this.ho3_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.vo3_1 = $clazz; this.wo3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CreateNewClazzUseCase$invoke$slambda).pnp = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CreateNewClazzUseCase$invoke$slambda).he = function (p1, $completion) { return this.pnp(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.vo3_1; var tmp_0; if (this_0.e8e_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.e8e_1 = randomString(6); } this.hd_1 = 1; suspendResult = this.wo3_1.zo3_1.o7d().insertAsync(this.vo3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.yo3_1 = suspendResult; this.hd_1 = 2; var tmp_2 = this.wo3_1.zo3_1.o7f(); var tmp_3 = this.vo3_1.h8d_1; Companion_getInstance_5(); suspendResult = tmp_2.jd6(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.wo3_1.zo3_1.o7f(); var tmp_5 = this.vo3_1.h8d_1; Companion_getInstance_5(); suspendResult = tmp_4.jd6(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.yo3_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).vn7 = function (it, completion) { var i = new CreateNewClazzUseCase$invoke$slambda(this.vo3_1, this.wo3_1, completion); i.xo3_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.pnp(it, $completion); }; l.$arity = 1; return l; } function CreateNewClazzUseCase(repoOrDb) { this.zo3_1 = repoOrDb; } protoOf(CreateNewClazzUseCase).ao4 = function (clazz, $completion) { return withDoorTransactionAsync(this.zo3_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.jo4_1 = $approved; this.ko4_1 = this$0; this.lo4_1 = $enrolmentRequest; this.mo4_1 = $effectiveClazz; CoroutineImpl.call(this, resultContinuation); } protoOf(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda).un7 = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda).he = function (p1, $completion) { return this.un7(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.jo4_1) { this.hd_1 = 1; var tmp_0 = this.lo4_1.rek_1; var tmp_1 = this.lo4_1.tek_1; var tmp_2 = ClazzEnrolment_init_$Create$(tmp_0, tmp_1, 1000); var tmp0_elvis_lhs = this.mo4_1.z8d_1; suspendResult = this.ko4_1.so4_1.vo4(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.oo4_1 = 3; this.hd_1 = 2; continue $sm; } case 1: var tmp_4 = this; tmp_4.oo4_1 = 2; this.hd_1 = 2; continue $sm; case 2: this.po4_1 = this.oo4_1; this.hd_1 = 3; suspendResult = this.ko4_1.ro4_1.n7f().aek(this.lo4_1.qek_1, this.po4_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).vn7 = function (it, completion) { var i = new ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda(this.jo4_1, this.ko4_1, this.lo4_1, this.mo4_1, completion); i.no4_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.un7(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$21(_this__u8e3s4, enrolmentRequest, approved, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.eo5_1 = _this__u8e3s4; this.fo5_1 = enrolmentRequest; this.go5_1 = approved; } 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 = 3; this.hd_1 = 1; suspendResult = this.eo5_1.qo4_1.o7d().i8c(this.fo5_1.rek_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ho5_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.ho5_1 == null) { throw IllegalStateException_init_$Create$('Class does not exist'); } else { tmp_1 = this.ho5_1; } tmp_0.io5_1 = tmp_1; this.hd_1 = 2; suspendResult = withDoorTransactionAsync(this.eo5_1.ro4_1, VOID, ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda_0(this.go5_1, this.eo5_1, this.fo5_1, this.io5_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.qo4_1 = db; this.ro4_1 = repo; this.so4_1 = enrolIntoCourseUseCase; } protoOf(ApproveOrDeclinePendingEnrolmentUseCase).jo5 = function (enrolmentRequest, approved, $completion) { var tmp = new $invokeCOROUTINE$21(this, enrolmentRequest, approved, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function EnrolIntoCourseUseCase$invoke$slambda($effectiveDb, $enrolment, resultContinuation) { this.so5_1 = $effectiveDb; this.to5_1 = $enrolment; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolIntoCourseUseCase$invoke$slambda).pnp = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EnrolIntoCourseUseCase$invoke$slambda).he = function (p1, $completion) { return this.pnp(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.so5_1.t7d().insertAsync(this.to5_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).vn7 = function (it, completion) { var i = new EnrolIntoCourseUseCase$invoke$slambda(this.so5_1, this.to5_1, completion); i.uo5_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.pnp(it, $completion); }; l.$arity = 1; return l; } function EnrolIntoCourseUseCase(db, repo) { this.to4_1 = db; this.uo4_1 = repo; } protoOf(EnrolIntoCourseUseCase).vo4 = function (enrolment, timeZoneId, $completion) { enrolment.u8h_1 = toLocalMidnight(Companion_getInstance_6().pls(enrolment.u8h_1), timeZoneId).ols(); if (enrolment.v8h_1.c7(get_UNSET_DISTANT_FUTURE()) < 0) { enrolment.v8h_1 = toLocalEndOfDay(Companion_getInstance_6().pls(enrolment.v8h_1), timeZoneId).ols(); } var tmp0_elvis_lhs = this.uo4_1; var effectiveDb = tmp0_elvis_lhs == null ? this.to4_1 : tmp0_elvis_lhs; return withDoorTransactionAsync(effectiveDb, VOID, EnrolIntoCourseUseCase$invoke$slambda_0(effectiveDb, enrolment, null), $completion); }; function IApproveOrDeclinePendingEnrolmentRequestUseCase() { } function $invokeCOROUTINE$22(_this__u8e3s4, clazzCode, person, roleId, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.do6_1 = _this__u8e3s4; this.eo6_1 = clazzCode; this.fo6_1 = person; this.go6_1 = roleId; } protoOf($invokeCOROUTINE$22).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 7; this.hd_1 = 1; suspendResult = this.do6_1.ko6_1.o7d().h8c(this.eo6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ho6_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.ho6_1 == null) { throw IllegalArgumentException_init_$Create$_0(); } else { tmp_1 = this.ho6_1; } tmp_0.io6_1 = tmp_1; this.hd_1 = 2; suspendResult = this.do6_1.ko6_1.n7f().yej(this.fo6_1.s95_1, this.io6_1.h8d_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.do6_1.ko6_1.t7d().x92(this.io6_1.h8d_1, this.fo6_1.s95_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.jo6_1 = suspendResult; if (!this.jo6_1.c1()) { throw new AlreadyEnroledInClassException(); } else { this.hd_1 = 5; continue $sm; } case 5: this.hd_1 = 6; var tmp_2 = this.do6_1.ko6_1.n7f(); var tmp_3 = this.io6_1.h8d_1; var tmp_4 = this.io6_1.i8d_1; var tmp_5 = this.fo6_1.s95_1; var tmp_6 = this.fo6_1.ok4(); var tmp_7 = this.fo6_1.t95_1; var tmp_8 = systemTimeInMillis(); suspendResult = tmp_2.xej(new EnrolmentRequest(VOID, tmp_3, tmp_4, tmp_5, tmp_6, VOID, tmp_7, this.go6_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.ko6_1 = activeRepo; } protoOf(RequestEnrolmentUseCase).lo6 = function (clazzCode, person, roleId, $completion) { var tmp = new $invokeCOROUTINE$22(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_84; function Companion_getInstance_53() { return Companion_instance_84; } function $serializer_33() { $serializer_instance_33 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.compress.CompressParams', this, 3); tmp0_serialDesc.t4f('maxWidth', true); tmp0_serialDesc.t4f('maxHeight', true); tmp0_serialDesc.t4f('compressionLevel', true); this.no6_1 = tmp0_serialDesc; } protoOf($serializer_33).q44 = function () { return this.no6_1; }; protoOf($serializer_33).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), IntSerializer_getInstance(), CompressionLevelSerializer_getInstance()]; }; protoOf($serializer_33).s44 = function (decoder) { var tmp0_desc = this.no6_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = 0; var tmp6_local2 = null; var tmp7_input = decoder.i48(tmp0_desc); if (tmp7_input.x48()) { tmp4_local0 = tmp7_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.u48(tmp0_desc, 2, CompressionLevelSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.u48(tmp0_desc, 2, CompressionLevelSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.j48(tmp0_desc); return CompressParams_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_33).oo6 = function (encoder, value) { var tmp0_desc = this.no6_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.po6_1 === 1280)) { tmp1_output.r49(tmp0_desc, 0, value.po6_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.qo6_1 === 1280)) { tmp1_output.r49(tmp0_desc, 1, value.qo6_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.ro6_1.equals(CompressionLevel_MEDIUM_getInstance())) { tmp1_output.y49(tmp0_desc, 2, CompressionLevelSerializer_getInstance(), value.ro6_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_33).r44 = function (encoder, value) { return this.oo6(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().no6_1); } if (0 === (seen1 & 1)) $this.po6_1 = 1280; else $this.po6_1 = maxWidth; if (0 === (seen1 & 2)) $this.qo6_1 = 1280; else $this.qo6_1 = maxHeight; if (0 === (seen1 & 4)) $this.ro6_1 = CompressionLevel_MEDIUM_getInstance(); else $this.ro6_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.po6_1 = maxWidth; this.qo6_1 = maxHeight; this.ro6_1 = compressionLevel; } protoOf(CompressParams).toString = function () { return 'CompressParams(maxWidth=' + this.po6_1 + ', maxHeight=' + this.qo6_1 + ', compressionLevel=' + this.ro6_1 + ')'; }; protoOf(CompressParams).hashCode = function () { var result = this.po6_1; result = imul(result, 31) + this.qo6_1 | 0; result = imul(result, 31) + this.ro6_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.po6_1 === tmp0_other_with_cast.po6_1)) return false; if (!(this.qo6_1 === tmp0_other_with_cast.qo6_1)) return false; if (!this.ro6_1.equals(tmp0_other_with_cast.ro6_1)) return false; return true; }; function CompressResult(uri, mimeType, originalSize, compressedSize) { this.cnz_1 = uri; this.dnz_1 = mimeType; this.enz_1 = originalSize; this.fnz_1 = compressedSize; } protoOf(CompressResult).toString = function () { return 'CompressResult(uri=' + this.cnz_1 + ', mimeType=' + this.dnz_1 + ', originalSize=' + this.enz_1.toString() + ', compressedSize=' + this.fnz_1.toString() + ')'; }; protoOf(CompressResult).hashCode = function () { var result = getStringHashCode(this.cnz_1); result = imul(result, 31) + getStringHashCode(this.dnz_1) | 0; result = imul(result, 31) + this.enz_1.hashCode() | 0; result = imul(result, 31) + this.fnz_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.cnz_1 === tmp0_other_with_cast.cnz_1)) return false; if (!(this.dnz_1 === tmp0_other_with_cast.dnz_1)) return false; if (!this.enz_1.equals(tmp0_other_with_cast.enz_1)) return false; if (!this.fnz_1.equals(tmp0_other_with_cast.fnz_1)) return false; return true; }; function CompressUseCase() { } function _get_$cachedSerializer__te6jhj($this) { return $this.to6_1.t2(); } function CompressionLevel$Companion$_anonymous__cmsj0x() { return CompressionLevelSerializer_getInstance(); } var CompressionLevel_NONE_instance; var CompressionLevel_LOWEST_instance; var CompressionLevel_LOW_instance; var CompressionLevel_MEDIUM_instance; var CompressionLevel_HIGH_instance; var CompressionLevel_HIGHEST_instance; function Companion_37() { Companion_instance_85 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.to6_1 = lazy(tmp_0, CompressionLevel$Companion$_anonymous__cmsj0x); } protoOf(Companion_37).uo6 = 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.xo6_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).n4r = function () { return _get_$cachedSerializer__te6jhj(this); }; protoOf(Companion_37).v4g = function (typeParamsSerializers) { return this.n4r(); }; var Companion_instance_85; function Companion_getInstance_54() { CompressionLevel_initEntries(); if (Companion_instance_85 == null) new Companion_37(); return Companion_instance_85; } function values_0() { return [CompressionLevel_NONE_getInstance(), CompressionLevel_LOWEST_getInstance(), CompressionLevel_LOW_getInstance(), CompressionLevel_MEDIUM_getInstance(), CompressionLevel_HIGH_getInstance(), CompressionLevel_HIGHEST_getInstance()]; } function get_entries() { if ($ENTRIES == null) $ENTRIES = enumEntries(values_0()); return $ENTRIES; } var CompressionLevel_entriesInitialized; function CompressionLevel_initEntries() { if (CompressionLevel_entriesInitialized) return Unit_instance; CompressionLevel_entriesInitialized = true; CompressionLevel_NONE_instance = new CompressionLevel('NONE', 0, 0); CompressionLevel_LOWEST_instance = new CompressionLevel('LOWEST', 1, 1); CompressionLevel_LOW_instance = new CompressionLevel('LOW', 2, 2); CompressionLevel_MEDIUM_instance = new CompressionLevel('MEDIUM', 3, 3); CompressionLevel_HIGH_instance = new CompressionLevel('HIGH', 4, 4); CompressionLevel_HIGHEST_instance = new CompressionLevel('HIGHEST', 5, 5); Companion_getInstance_54(); } var $ENTRIES; function CompressionLevel(name, ordinal, value) { Enum.call(this, name, ordinal); this.xo6_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.yo6_1 = PrimitiveSerialDescriptor('CompressionLevel', INT_getInstance()); } protoOf(CompressionLevelSerializer).q44 = function () { return this.yo6_1; }; protoOf(CompressionLevelSerializer).s44 = function (decoder) { return Companion_getInstance_54().uo6(decoder.y47()); }; protoOf(CompressionLevelSerializer).zo6 = function (encoder, value) { encoder.g49(value.xo6_1); }; protoOf(CompressionLevelSerializer).r44 = function (encoder, value) { return this.zo6(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.wnl_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().clp(element.anm_1); destination.s(tmp$ret$0, element); } tmp = destination; } else { tmp = entryMap; } entryMap = tmp; this.ao7_1 = manifest; this.bo7_1 = entryMap; } protoOf(ContentManifestMap).co7 = function (manifestUrl, pathInContentEntryVersion) { return UrlKmp(manifestUrl).do7(pathInContentEntryVersion).toString(); }; protoOf(ContentManifestMap).toString = function () { return 'ContentManifestMap(manifest=' + this.ao7_1 + ', entryMap=' + this.bo7_1 + ')'; }; protoOf(ContentManifestMap).hashCode = function () { var result = this.ao7_1.hashCode(); result = imul(result, 31) + hashCode(this.bo7_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.ao7_1.equals(tmp0_other_with_cast.ao7_1)) return false; if (!equals(this.bo7_1, tmp0_other_with_cast.bo7_1)) return false; return true; }; function DeleteContentEntryParentChildJoinUseCase$invoke$slambda(this$0, $entries, $timeNow, $activeUserPersonUid, resultContinuation) { this.mo7_1 = this$0; this.no7_1 = $entries; this.oo7_1 = $timeNow; this.po7_1 = $activeUserPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DeleteContentEntryParentChildJoinUseCase$invoke$slambda).un7 = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DeleteContentEntryParentChildJoinUseCase$invoke$slambda).he = function (p1, $completion) { return this.un7(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.mo7_1.vo7_1.x7d(); var this_0 = this.no7_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.xo7_1); } suspendResult = tmp_0.xaz(destination, true, this.oo7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this; tmp_1.ro7_1 = this.no7_1; this.so7_1 = this.ro7_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.so7_1.f()) { this.hd_1 = 4; continue $sm; } this.to7_1 = this.so7_1.e(); var tmp_2 = this; tmp_2.uo7_1 = this.to7_1; this.hd_1 = 3; suspendResult = this.mo7_1.vo7_1.m7f().ie2(this.uo7_1.xo7_1, this.oo7_1, this.po7_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).vn7 = function (it, completion) { var i = new DeleteContentEntryParentChildJoinUseCase$invoke$slambda(this.mo7_1, this.no7_1, this.oo7_1, this.po7_1, completion); i.qo7_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.un7(it, $completion); }; l.$arity = 1; return l; } function DeleteContentEntryParentChildJoinUseCase(repoOrDb) { this.vo7_1 = repoOrDb; } protoOf(DeleteContentEntryParentChildJoinUseCase).zo7 = function (entries, activeUserPersonUid, $completion) { var timeNow = systemTimeInMillis(); return withDoorTransactionAsync(this.vo7_1, VOID, DeleteContentEntryParentChildJoinUseCase$invoke$slambda_0(this, entries, timeNow, activeUserPersonUid, null), $completion); }; function Companion_38() { this.ao8_1 = 'upload-original-filename'; } var Companion_instance_86; function Companion_getInstance_55() { return Companion_instance_86; } function ContentEntryGetMetaDataFromUriUseCase() { } function ContentEntryGetMetadataStatus(indeterminate, error, processedBytes, totalBytes) { indeterminate = indeterminate === VOID ? true : indeterminate; error = error === VOID ? null : error; processedBytes = processedBytes === VOID ? new Long(0, 0) : processedBytes; totalBytes = totalBytes === VOID ? new Long(0, 0) : totalBytes; this.co8_1 = indeterminate; this.do8_1 = error; this.eo8_1 = processedBytes; this.fo8_1 = totalBytes; } protoOf(ContentEntryGetMetadataStatus).go8 = function () { var tmp; if (!this.fo8_1.equals(new Long(0, 0))) { // Inline function 'kotlin.Long.times' call tmp = this.eo8_1.cb(toLong(100)).bb(this.fo8_1).mb(); } else { tmp = 0; } return tmp; }; protoOf(ContentEntryGetMetadataStatus).ho8 = function (indeterminate, error, processedBytes, totalBytes) { return new ContentEntryGetMetadataStatus(indeterminate, error, processedBytes, totalBytes); }; protoOf(ContentEntryGetMetadataStatus).io8 = function (indeterminate, error, processedBytes, totalBytes, $super) { indeterminate = indeterminate === VOID ? this.co8_1 : indeterminate; error = error === VOID ? this.do8_1 : error; processedBytes = processedBytes === VOID ? this.eo8_1 : processedBytes; totalBytes = totalBytes === VOID ? this.fo8_1 : totalBytes; return $super === VOID ? this.ho8(indeterminate, error, processedBytes, totalBytes) : $super.ho8.call(this, indeterminate, error, processedBytes, totalBytes); }; protoOf(ContentEntryGetMetadataStatus).toString = function () { return 'ContentEntryGetMetadataStatus(indeterminate=' + this.co8_1 + ', error=' + this.do8_1 + ', processedBytes=' + this.eo8_1.toString() + ', totalBytes=' + this.fo8_1.toString() + ')'; }; protoOf(ContentEntryGetMetadataStatus).hashCode = function () { var result = getBooleanHashCode(this.co8_1); result = imul(result, 31) + (this.do8_1 == null ? 0 : getStringHashCode(this.do8_1)) | 0; result = imul(result, 31) + this.eo8_1.hashCode() | 0; result = imul(result, 31) + this.fo8_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.co8_1 === tmp0_other_with_cast.co8_1)) return false; if (!(this.do8_1 == tmp0_other_with_cast.do8_1)) return false; if (!this.eo8_1.equals(tmp0_other_with_cast.eo8_1)) return false; if (!this.fo8_1.equals(tmp0_other_with_cast.fo8_1)) return false; return true; }; function UnsupportedContentException(message) { Exception_init_$Init$(message, this); captureStack(this, UnsupportedContentException); } function Companion_39() { this.jo8_1 = 'text/vtt'; this.ko8_1 = 'filename'; this.lo8_1 = 'locale'; this.mo8_1 = 'WEBVTT'; } var Companion_instance_87; function Companion_getInstance_56() { return Companion_instance_87; } function GetSubtitleTrackFromUriUseCase() { } function CancelImportContentEntryUseCase() { } function $invokeCOROUTINE$23(_this__u8e3s4, cjiUid, activeUserPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xo8_1 = _this__u8e3s4; this.yo8_1 = cjiUid; this.zo8_1 = activeUserPersonUid; } 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 = 2; var tmp_0 = this; var tmp_1 = this.xo8_1.ko9_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.ao9_1 = tmp_2; var tmp_3 = this; tmp_3.bo9_1 = this.xo8_1.jo9_1; var tmp_4 = this; tmp_4.co9_1 = this.xo8_1.io9_1.jn2_1 + 'api/contententryimportjob/cancel'; var tmp_5 = this; tmp_5.do9_1 = this.bo9_1; var tmp_6 = this; tmp_6.eo9_1 = this.do9_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.co9_1); parameter(this_0, 'jobUid', this.yo8_1); doorNodeIdHeader(this_0, this.ao9_1); parameter(this_0, 'accountPersonUid', this.zo8_1); header(this_0, 'cache-control', 'no-store'); tmp_7.fo9_1 = this_0; this.fo9_1.w38_1 = Companion_getInstance().l2x_1; var tmp_8 = this; tmp_8.go9_1 = this.eo9_1; var tmp_9 = this; tmp_9.ho9_1 = this.fo9_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.ho9_1, this.go9_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function CancelRemoteContentEntryImportUseCase(endpoint, httpClient, repo) { this.io9_1 = endpoint; this.jo9_1 = httpClient; this.ko9_1 = repo; } protoOf(CancelRemoteContentEntryImportUseCase).lo9 = function (cjiUid, activeUserPersonUid, $completion) { var tmp = new $invokeCOROUTINE$23(this, cjiUid, activeUserPersonUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function $invokeCOROUTINE$24(_this__u8e3s4, cjiUid, activeUserPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.uo9_1 = _this__u8e3s4; this.vo9_1 = cjiUid; this.wo9_1 = activeUserPersonUid; } 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 = 2; var tmp_0 = this; var tmp_1 = this.uo9_1.hoa_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.xo9_1 = tmp_2; var tmp_3 = this; tmp_3.yo9_1 = this.uo9_1.foa_1; var tmp_4 = this; tmp_4.zo9_1 = this.uo9_1.goa_1.jn2_1 + 'api/contententryimportjob/dismissError'; var tmp_5 = this; tmp_5.aoa_1 = this.yo9_1; var tmp_6 = this; tmp_6.boa_1 = this.aoa_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.zo9_1); parameter(this_0, 'jobUid', this.vo9_1); doorNodeIdHeader(this_0, this.xo9_1); parameter(this_0, 'accountPersonUid', this.wo9_1); header(this_0, 'cache-control', 'no-store'); tmp_7.coa_1 = this_0; this.coa_1.w38_1 = Companion_getInstance().l2x_1; var tmp_8 = this; tmp_8.doa_1 = this.boa_1; var tmp_9 = this; tmp_9.eoa_1 = this.coa_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.eoa_1, this.doa_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function DismissRemoteContentEntryImportErrorUseCase(httpClient, endpoint, repo) { this.foa_1 = httpClient; this.goa_1 = endpoint; this.hoa_1 = repo; } protoOf(DismissRemoteContentEntryImportErrorUseCase).lo9 = function (cjiUid, activeUserPersonUid, $completion) { var tmp = new $invokeCOROUTINE$24(this, cjiUid, activeUserPersonUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function EnqueueContentEntryImportUseCase() { } function $invokeCOROUTINE$25(_this__u8e3s4, contentJobItem, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.roa_1 = _this__u8e3s4; this.soa_1 = contentJobItem; } 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 = 2; var tmp_0 = this; tmp_0.toa_1 = this.roa_1.bob_1; var tmp_1 = this; tmp_1.uoa_1 = this.roa_1.aob_1.jn2_1 + 'api/import/importRequest'; var tmp_2 = this; tmp_2.voa_1 = this.toa_1; var tmp_3 = this; tmp_3.woa_1 = this.voa_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.uoa_1); contentType(this_0, Application_getInstance().v2r_1); setBodyJson(this_0, this.roa_1.cob_1, Companion_instance_88.n4r(), new ImportRequest(this.soa_1)); tmp_4.xoa_1 = this_0; this.xoa_1.w38_1 = Companion_getInstance().m2x_1; var tmp_5 = this; tmp_5.yoa_1 = this.woa_1; var tmp_6 = this; tmp_6.zoa_1 = this.xoa_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.zoa_1, this.yoa_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function EnqueueImportContentEntryUseCaseRemote(endpoint, httpClient, json) { this.aob_1 = endpoint; this.bob_1 = httpClient; this.cob_1 = json; } protoOf(EnqueueImportContentEntryUseCaseRemote).ioa = function (contentJobItem, $completion) { var tmp = new $invokeCOROUTINE$25(this, contentJobItem, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_40() { } protoOf(Companion_40).n4r = function () { return $serializer_getInstance_46(); }; var Companion_instance_88; function Companion_getInstance_57() { return Companion_instance_88; } function $serializer_34() { $serializer_instance_34 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.contententry.importcontent.ImportRequest', this, 1); tmp0_serialDesc.t4f('contentJobItem', false); this.dob_1 = tmp0_serialDesc; } protoOf($serializer_34).q44 = function () { return this.dob_1; }; protoOf($serializer_34).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_5()]; }; protoOf($serializer_34).s44 = function (decoder) { var tmp0_desc = this.dob_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, $serializer_getInstance_5(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, $serializer_getInstance_5(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return ImportRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_34).eob = function (encoder, value) { var tmp0_desc = this.dob_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_5(), value.fob_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_34).r44 = function (encoder, value) { return this.eob(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().dob_1); } $this.fob_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.fob_1 = contentJobItem; } protoOf(ImportRequest).toString = function () { return 'ImportRequest(contentJobItem=' + this.fob_1 + ')'; }; protoOf(ImportRequest).hashCode = function () { return this.fob_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.fob_1.equals(tmp0_other_with_cast.fob_1)) return false; return true; }; function DefaultLaunchContentEntryVersionUseCase() { } protoOf(DefaultLaunchContentEntryVersionUseCase).gob = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { var tmp0_subject = contentEntryVersion.uaj_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_118(); var tmp_0 = to('entityUid', contentEntryVersion.raj_1.toString()); Companion_getInstance_118(); var tmp_1 = to('courseBlockUid', cbUid.toString()); Companion_getInstance_118(); var tmp_2 = to('clazzUid', clazzUid.toString()); Companion_getInstance_118(); navController.hob(destName, mapOf([tmp_0, tmp_1, tmp_2, to('entryid', contentEntryVersion.saj_1.toString())])); } return new LaunchResult(); }; protoOf(DefaultLaunchContentEntryVersionUseCase).iob = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { return this.gob(contentEntryVersion, navController, clazzUid, cbUid, target, $completion); }; function LaunchResult(message) { message = message === VOID ? null : message; this.job_1 = message; } protoOf(LaunchResult).toString = function () { return 'LaunchResult(message=' + this.job_1 + ')'; }; protoOf(LaunchResult).hashCode = function () { return this.job_1 == null ? 0 : getStringHashCode(this.job_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.job_1 == tmp0_other_with_cast.job_1)) return false; return true; }; function LaunchContentEntryVersionUseCase() { } function LaunchEpubUseCase() { } function LaunchXapiUseCase() { } function XapiLaunchHrefResult(url, launchUriInContent, launchActivity, manifestUrl) { this.kob_1 = url; this.lob_1 = launchUriInContent; this.mob_1 = launchActivity; this.nob_1 = manifestUrl; } function ResolveXapiLaunchHrefUseCase$invoke$lambda($contentEntryVersionUid) { return function () { return 'Resolving xAPI url for contentEntryVersion ' + $contentEntryVersionUid.toString(); }; } function ResolveXapiLaunchHrefUseCase$invoke$slambda($contentEntryVersionUid, resultContinuation) { this.wob_1 = $contentEntryVersionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ResolveXapiLaunchHrefUseCase$invoke$slambda).yob = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ResolveXapiLaunchHrefUseCase$invoke$slambda).he = function (p1, $completion) { return this.yob(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.xob_1.i7f().lbc(this.wob_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).vn7 = function (it, completion) { var i = new ResolveXapiLaunchHrefUseCase$invoke$slambda(this.wob_1, completion); i.xob_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.yob(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$26(_this__u8e3s4, contentEntryVersionUid, clazzUid, cbUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hoc_1 = _this__u8e3s4; this.ioc_1 = contentEntryVersionUid; this.joc_1 = clazzUid; this.koc_1 = cbUid; } protoOf($invokeCOROUTINE$26).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 7; var tmp_0 = Napier_getInstance(); tmp_0.e5e(VOID, VOID, ResolveXapiLaunchHrefUseCase$invoke$lambda(this.ioc_1)); this.hd_1 = 1; suspendResult = localFirstThenRepoIfNull(this.hoc_1.ood_1, ResolveXapiLaunchHrefUseCase$invoke$slambda_0(this.ioc_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.loc_1 = suspendResult; var tmp_1 = this; var tmp_2; if (this.loc_1 == null) { throw IllegalArgumentException_init_$Create$('could not load contententryversion ' + this.ioc_1.toString()); } else { tmp_2 = this.loc_1; } tmp_1.moc_1 = tmp_2; var tmp_3 = this; var tmp1_elvis_lhs = this.moc_1.vaj_1; var tmp_4; if (tmp1_elvis_lhs == null) { throw IllegalStateException_init_$Create$('ContentEntryVersion ' + this.ioc_1.toString() + ' manifesturl is null'); } else { tmp_4 = tmp1_elvis_lhs; } tmp_3.noc_1 = tmp_4; var tmp_5 = this; tmp_5.ooc_1 = this.hoc_1.qod_1; var tmp_6 = this; tmp_6.poc_1 = this.hoc_1.pod_1; var tmp_7 = this; tmp_7.qoc_1 = this.noc_1; var tmp_8 = this; tmp_8.roc_1 = this.poc_1; var tmp_9 = this; tmp_9.soc_1 = this.roc_1; var tmp_10 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.qoc_1); tmp_10.toc_1 = this_0; this.toc_1.w38_1 = Companion_getInstance().l2x_1; var tmp_11 = this; tmp_11.uoc_1 = this.soc_1; var tmp_12 = this; tmp_12.voc_1 = this.toc_1; this.hd_1 = 2; suspendResult = (new HttpStatement(this.voc_1, this.uoc_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.woc_1 = suspendResult; this.hd_1 = 3; suspendResult = bodyAsDecodedText(this.woc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.xoc_1 = suspendResult; var tmp_13 = this; var this_1 = this.ooc_1.t45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_13.yoc_1 = this.ooc_1.s45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.xoc_1); this.zoc_1 = requireEntryByUri(this.yoc_1, ensureNotNull(this.moc_1.taj_1)); var tmp_14 = this; tmp_14.aod_1 = this.hoc_1.pod_1; var tmp_15 = this; tmp_15.bod_1 = this.zoc_1.inm_1; var tmp_16 = this; tmp_16.cod_1 = this.aod_1; var tmp_17 = this; tmp_17.dod_1 = this.cod_1; var tmp_18 = this; var this_3 = new HttpRequestBuilder(); url(this_3, this.bod_1); tmp_18.eod_1 = this_3; this.eod_1.w38_1 = Companion_getInstance().l2x_1; var tmp_19 = this; tmp_19.fod_1 = this.dod_1; var tmp_20 = this; tmp_20.god_1 = this.eod_1; this.hd_1 = 4; suspendResult = (new HttpStatement(this.god_1, this.fod_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.hod_1 = suspendResult; this.hd_1 = 5; suspendResult = bodyAsDecodedText(this.hod_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.iod_1 = suspendResult; this.jod_1 = this.hoc_1.rod_1.y7c(); setInputString(this.jod_1, this.iod_1); this.kod_1 = Companion_instance_126.xod(this.jod_1); var tmp_21 = this; var tmp2_safe_receiver = this.kod_1.yod_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.goe_1; var tmp_22; if (tmp3_elvis_lhs == null) { throw IllegalStateException_init_$Create$('ContentEntryVersion ' + this.ioc_1.toString() + ' manifesturl is null'); } else { tmp_22 = tmp3_elvis_lhs; } tmp_21.lod_1 = tmp_22; var tmp_23 = this; var tmp4_safe_receiver = this.kod_1.yod_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.doe_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.mod_1 = tmp_24; this.nod_1 = this.hoc_1.uod_1.tnf().zn2_1.s95_1; this.hd_1 = 6; suspendResult = this.hoc_1.sod_1.joe(this.nod_1, this.hoc_1.uod_1.tnf().en3(), this.mod_1, this.joc_1, this.koc_1, this.moc_1.saj_1, this.ioc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: var xapiSession = suspendResult; var queryParams = mapOf([to('endpoint', this.hoc_1.tod_1.koe('/api/xapi/')), to('auth', authorizationHeader(xapiSession)), to('actor', this.hoc_1.qod_1.r45(Companion_instance_106.n4r(), agent(xapiSession, this.hoc_1.vod_1))), to('registration', get_registrationUuid(xapiSession).toString()), to('activity_id', xapiSession.zjd_1)]); var url_0 = appendQueryArgs(UMFileUtil_getInstance().qoe(this.noc_1, this.lod_1), queryParams); var tinCanXmlPathPrefix = substringBeforeLast(ensureNotNull(this.moc_1.taj_1), '/', ''); var tmp_25 = Napier_getInstance(); tmp_25.e5e(VOID, VOID, ResolveXapiLaunchHrefUseCase$invoke$lambda_0(this.ioc_1, url_0)); return new XapiLaunchHrefResult(url_0, appendQueryArgs(tinCanXmlPathPrefix + this.lod_1, queryParams), ensureNotNull(this.kod_1.yod_1), this.noc_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(activeRepo, httpClient, json, xppFactory, resumeOrStartXapiSessionUseCase, getApiUrlUseCase, accountManager, endpoint) { this.ood_1 = activeRepo; this.pod_1 = httpClient; this.qod_1 = json; this.rod_1 = xppFactory; this.sod_1 = resumeOrStartXapiSessionUseCase; this.tod_1 = getApiUrlUseCase; this.uod_1 = accountManager; this.vod_1 = endpoint; } protoOf(ResolveXapiLaunchHrefUseCase).roe = function (contentEntryVersionUid, clazzUid, cbUid, $completion) { var tmp = new $invokeCOROUTINE$26(this, contentEntryVersionUid, clazzUid, cbUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function MoveContentEntriesUseCase(repo, systemImpl) { this.soe_1 = repo; this.toe_1 = systemImpl; } protoOf(MoveContentEntriesUseCase).uoe = 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.wo7_1.equals(destContentEntry.tah_1)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) { throw IllegalArgumentException_init_$Create$(this.toe_1.tno(strings_getInstance().ymx_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.yo7_1.equals(destContentEntry.tah_1)) { tmp$ret$2 = true; break $l$block_2; } } tmp$ret$2 = false; } if (tmp$ret$2) { throw IllegalArgumentException_init_$Create$(this.toe_1.tno(strings_getInstance().zmx_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.xo7_1; destination.i1(tmp$ret$4); } var uidsToMove = destination; if (uidsToMove.c1()) return Unit_instance; return this.soe_1.x7d().waz(destContentEntry.tah_1, uidsToMove, systemTimeInMillis(), $completion); }; function SaveContentEntryUseCase$invoke$slambda$lambda($picture) { return function () { return 'SavePictureUseCase: ContentEntry Set picture upsert uri = ' + $picture.laj_1 + ' uid=' + $picture.jaj_1.toString(); }; } function SaveContentEntryUseCase$invoke$slambda($effectiveDb, $contentEntry, $picture, $initPictureUri, this$0, $joinToParentUid, resultContinuation) { this.dof_1 = $effectiveDb; this.eof_1 = $contentEntry; this.fof_1 = $picture; this.gof_1 = $initPictureUri; this.hof_1 = this$0; this.iof_1 = $joinToParentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveContentEntryUseCase$invoke$slambda).un7 = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SaveContentEntryUseCase$invoke$slambda).he = function (p1, $completion) { return this.un7(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.dof_1.v7d().wag(this.eof_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.fof_1 == null) ? !(this.fof_1.laj_1 == this.gof_1) : false) { var tmp_0 = Napier_getInstance(); tmp_0.e5e(VOID, VOID, SaveContentEntryUseCase$invoke$slambda$lambda(this.fof_1)); this.hd_1 = 2; suspendResult = this.hof_1.kof_1.r7f().zb4(listOf_0(this.fof_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.iof_1 == null)) { this.hd_1 = 4; suspendResult = this.dof_1.x7d().insertAsync(new ContentEntryParentChildJoin(this.iof_1, this.eof_1.tah_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).vn7 = function (it, completion) { var i = new SaveContentEntryUseCase$invoke$slambda(this.dof_1, this.eof_1, this.fof_1, this.gof_1, this.hof_1, this.iof_1, completion); i.jof_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.un7(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$27(_this__u8e3s4, contentEntry, joinToParentUid, picture, initPictureUri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vof_1 = _this__u8e3s4; this.wof_1 = contentEntry; this.xof_1 = joinToParentUid; this.yof_1 = picture; this.zof_1 = initPictureUri; } 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 = 4; var tmp_0 = this; var tmp0_elvis_lhs = this.vof_1.lof_1; tmp_0.aog_1 = tmp0_elvis_lhs == null ? this.vof_1.kof_1 : tmp0_elvis_lhs; this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.aog_1, VOID, SaveContentEntryUseCase$invoke$slambda_0(this.aog_1, this.wof_1, this.yof_1, this.zof_1, this.vof_1, this.xof_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.yof_1 == null) ? !(this.yof_1.laj_1 == this.zof_1) : false) { this.hd_1 = 2; var tmp_1 = this.yof_1.jaj_1; suspendResult = this.vof_1.mof_1.enx(tmp_1, 6678, this.yof_1.laj_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.kof_1 = db; this.lof_1 = repo; this.mof_1 = enqueueSavePictureUseCase; } protoOf(SaveContentEntryUseCase).bog = function (contentEntry, joinToParentUid, picture, initPictureUri, $completion) { var tmp = new $invokeCOROUTINE$27(this, contentEntry, joinToParentUid, picture, initPictureUri, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function AddOrUpdateCourseBlockUseCase() { } protoOf(AddOrUpdateCourseBlockUseCase).cog = 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.jjm_1.j7x_1.equals(addOrUpdateBlock.jjm_1.j7x_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.vjm(addOrUpdateBlock.jjm_1.tjz(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.jjm_1.m7x_1.equals(parentModUid) ? true : !(item.jjm_1.w7x_1 === index_0)) { tmp = item.vjm(item.jjm_1.tjz(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).jjm_1; var tmp = block.k7x_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.jjm_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.k7x_1; if (tmp_2 === 100) { tmp_1 = 1; } else { tmp_1 = prevBlock.l7x_1; } var autoIndent = tmp_1; var tmp_3; if (!(block.l7x_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).vjm(this_0.v(index).jjm_1.tjz(VOID, VOID, autoIndent))); tmp_3 = toList(this_0); } else { tmp_3 = _this__u8e3s4; } return tmp_3; } function findParentModule(_this__u8e3s4, forBlock) { var tmp = forBlock.jjm_1.k7x_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.jjm_1.j7x_1.equals(forBlock.jjm_1.j7x_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.jjm_1.k7x_1; if (tmp_2 === 100) { tmp_1 = prevBlock.jjm_1.j7x_1; } else { if (prevBlock.jjm_1.l7x_1 >= 1) { tmp_1 = prevBlock.jjm_1.m7x_1; } else { tmp_1 = new Long(0, 0); } } return tmp_1; } function UpdateCourseBlocksOnReorderOrCommitUseCase() { } protoOf(UpdateCourseBlocksOnReorderOrCommitUseCase).dog = function (currentList, autoIndentIndex) { var tmp; if (autoIndentIndex >= 0) { tmp = autoIndent(currentList, autoIndentIndex); } else { tmp = currentList; } var listIndented = tmp; return updateParentModuleUidsAndIndex(listIndented); }; protoOf(UpdateCourseBlocksOnReorderOrCommitUseCase).eog = function (currentList, autoIndentIndex, $super) { autoIndentIndex = autoIndentIndex === VOID ? -1 : autoIndentIndex; return $super === VOID ? this.dog(currentList, autoIndentIndex) : $super.dog.call(this, currentList, autoIndentIndex); }; function DeletePermanentlyUseCase(repoOrDb) { this.fog_1 = repoOrDb; } protoOf(DeletePermanentlyUseCase).gog = function (items, $completion) { var timeNow = systemTimeInMillis(); var tmp = this.fog_1.m7f(); // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(items, 10)); var tmp0_iterator = items.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.deleteditem.DeletePermanentlyUseCase.invoke.' call var tmp$ret$0 = item.le2_1; destination.i1(tmp$ret$0); } var tmp_0 = destination; return tmp.ke2(tmp_0, 3, timeNow, $completion); }; function RestoreDeletedItemUseCase$invoke$slambda($itemsByType, this$0, $timeNow, $items, resultContinuation) { this.pog_1 = $itemsByType; this.qog_1 = this$0; this.rog_1 = $timeNow; this.sog_1 = $items; CoroutineImpl.call(this, resultContinuation); } protoOf(RestoreDeletedItemUseCase$invoke$slambda).un7 = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(RestoreDeletedItemUseCase$invoke$slambda).he = function (p1, $completion) { return this.un7(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.uog_1 = this.pog_1; var tmp_1 = this; tmp_1.vog_1 = this.uog_1.q2().w(); this.hd_1 = 1; continue $sm; case 1: if (!this.vog_1.f()) { this.hd_1 = 4; continue $sm; } this.wog_1 = this.vog_1.e(); var tmp_2 = this; tmp_2.xog_1 = this.wog_1; this.yog_1 = this.xog_1.s2(); if (this.yog_1 === 7) { this.hd_1 = 2; var tmp_3 = this.qog_1.zog_1.x7d(); var this_0 = this.xog_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.re2_1); } suspendResult = tmp_3.xaz(destination, false, this.rog_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.qog_1.zog_1.m7f(); var this_1 = this.sog_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.le2_1); } suspendResult = tmp_4.ke2(destination_0, 2, this.rog_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).vn7 = function (it, completion) { var i = new RestoreDeletedItemUseCase$invoke$slambda(this.pog_1, this.qog_1, this.rog_1, this.sog_1, completion); i.tog_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.un7(it, $completion); }; l.$arity = 1; return l; } function RestoreDeletedItemUseCase(repoOrDb) { this.zog_1 = repoOrDb; } protoOf(RestoreDeletedItemUseCase).gog = 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.qe2_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.zog_1, VOID, RestoreDeletedItemUseCase$invoke$slambda_0(itemsByType, this, timeNow, items, null), $completion); }; function toEpubTocItem(_this__u8e3s4, $this, indentLevel, parentUids) { var uid = $this.boh_1.atomicfu$incrementAndGet(); var uidsForChildren = plus_2(parentUids, uid); var tmp8_uid = $this.boh_1.atomicfu$incrementAndGet(); var tmp0_safe_receiver = _this__u8e3s4.fnh_1; var tmp2_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vng_1; var tmp; if (tmp2_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.gnh_1; tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.vnh_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.fnh_1; var tmp10_href = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.wng_1; var tmp5_safe_receiver = _this__u8e3s4.hnh_1; var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.unh_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.boh_1.atomicfu$incrementAndGet(); var uidsForChildren = plus_2(parentUids, uid); var tmp0_safe_receiver = firstOrNull(_this__u8e3s4.uni_1); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mni_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.hnj_1; var tmp3_label = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; var tmp4_href = _this__u8e3s4.vni_1.bni_1; // Inline function 'kotlin.collections.map' call var this_0 = _this__u8e3s4.xni_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$28(_this__u8e3s4, opfPackage, readItemText, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.koh_1 = _this__u8e3s4; this.loh_1 = opfPackage; this.moh_1 = readItemText; } 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 = 4; this.noh_1 = this.loh_1.lnl(); if (!(this.noh_1 == null) ? startsWith(this.noh_1.gnk_1, 'application/xhtml') : false) { this.hd_1 = 2; suspendResult = this.moh_1(this.noh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_0; if (!(this.noh_1 == null)) { tmp_0 = this.noh_1.gnk_1 === 'application/x-dtbncx+xml'; } else { tmp_0 = false; } if (tmp_0) { this.hd_1 = 1; suspendResult = this.moh_1(this.noh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this; tmp_1.ooh_1 = null; this.hd_1 = 3; continue $sm; } } case 1: var docStr = suspendResult; var this_0 = this.koh_1.aoh_1; var this_1 = this_0.t45(); var this_2 = serializer(this_1, createKType(getKClass(NcxDocument), arrayOf([]), false)); var ncxDoc = this_0.s45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), docStr); var tmp_2 = this; var this_3 = ncxDoc.enj_1.qni_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.koh_1, 0, emptySet()); var list = plus(listOf_0(it), it.soh_1); addAll(destination, list); } tmp_2.ooh_1 = destination; this.hd_1 = 3; continue $sm; case 2: var docStr_0 = suspendResult; var this_4 = this.koh_1.aoh_1; var this_5 = this_4.t45(); var this_6 = serializer(this_5, createKType(getKClass(NavigationDocument), arrayOf([]), false)); var navDoc = this_4.s45(isInterface(this_6, KSerializer) ? this_6 : THROW_CCE(), docStr_0); var tmp_3 = this; var this_7 = first_0(navDoc.qnh_1.zng_1).lnh_1.unh_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.koh_1, 0, emptySet()); var list_0 = plus(listOf_0(it_0), it_0.soh_1); addAll(destination_0, list_0); } tmp_3.ooh_1 = destination_0; this.hd_1 = 3; continue $sm; case 3: return this.ooh_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.aoh_1 = xml; this.boh_1 = atomic$int$1(0); } protoOf(GetEpubTableOfContentsUseCase).woh = function (opfPackage, readItemText, $completion) { var tmp = new $invokeCOROUTINE$28(this, opfPackage, readItemText, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_41() { Companion_instance_89 = this; this.xoh_1 = Companion_getInstance_67().aoi_1; } var Companion_instance_89; function Companion_getInstance_58() { if (Companion_instance_89 == null) new Companion_41(); return Companion_instance_89; } function FilterUsernameUseCase() { Companion_getInstance_58(); } protoOf(FilterUsernameUseCase).boi = function (username, invalidCharReplacement) { // Inline function 'kotlin.text.map' call // Inline function 'kotlin.text.mapTo' call var destination = ArrayList_init_$Create$_0(charSequenceLength(username)); var inductionVariable = 0; while (inductionVariable < charSequenceLength(username)) { var item = charSequenceGet(username, inductionVariable); inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.domain.filterusername.FilterUsernameUseCase.invoke.' call var tmp; if (isLetter(item)) { // Inline function 'kotlin.text.lowercase' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp = toString_1(item).toLowerCase(); } else if (isDigit(item)) { tmp = new Char(item); } else if (Companion_getInstance_58().xoh_1.a1(new Char(item))) { tmp = new Char(item); } else { tmp = invalidCharReplacement; } var tmp$ret$3 = tmp; destination.i1(tmp$ret$3); } return joinToString(destination, ''); }; function GetApiUrlUseCase() { } function GetApiUrlUseCaseDirect(endpoint) { this.coi_1 = endpoint; } protoOf(GetApiUrlUseCaseDirect).koe = function (path) { return requirePostfix(this.coi_1.jn2_1, '/') + removePrefix(path, '/'); }; function VersionInfo(versionString, buildTime) { this.doi_1 = versionString; this.eoi_1 = buildTime; } protoOf(VersionInfo).toString = function () { return 'VersionInfo(versionString=' + this.doi_1 + ', buildTime=' + this.eoi_1.toString() + ')'; }; protoOf(VersionInfo).hashCode = function () { var result = getStringHashCode(this.doi_1); result = imul(result, 31) + this.eoi_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.doi_1 === tmp0_other_with_cast.doi_1)) return false; if (!this.eoi_1.equals(tmp0_other_with_cast.eoi_1)) return false; return true; }; function GetVersionUseCase() { } function GetHtmlContentDisplayEngineOptionsUseCase(optionsList) { this.goi_1 = optionsList; } protoOf(GetHtmlContentDisplayEngineOptionsUseCase).foi = function () { return this.goi_1; }; function GetHtmlContentDisplayEngineUseCase(settings, getOptionsUseCase) { this.hoi_1 = settings; this.ioi_1 = getOptionsUseCase; } protoOf(GetHtmlContentDisplayEngineUseCase).foi = function () { // Inline function 'com.russhwolf.settings.get' call var this_0 = this.hoi_1; var key = 'com.ustadmobile.htmlcontentdisplayengine'; var settingInt = this_0.glj(key, 0); var tmp$ret$2; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.ioi_1.foi().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.htmlcontentdisplayengine.GetHtmlContentDisplayEngineUseCase.invoke.' call if (element.joi_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.ioi_1.foi()) : tmp0_elvis_lhs; }; function Companion_42() { this.moi_1 = 'com.ustadmobile.htmlcontentdisplayengine'; } var Companion_instance_90; function Companion_getInstance_59() { return Companion_instance_90; } function SetHtmlContentDisplayEngineUseCase(settings) { this.noi_1 = settings; } function SetLangResult(waitForRestart) { this.ooi_1 = waitForRestart; } protoOf(SetLangResult).toString = function () { return 'SetLangResult(waitForRestart=' + this.ooi_1 + ')'; }; protoOf(SetLangResult).hashCode = function () { return getBooleanHashCode(this.ooi_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.ooi_1 === tmp0_other_with_cast.ooi_1)) return false; return true; }; function SetLanguageUseCase() { } function LaunchOpenLicensesUseCase() { } function MakeLinkUseCase(endpoint) { this.roi_1 = endpoint; } protoOf(MakeLinkUseCase).soi = function (destName, args) { var tmp = UMFileUtil_getInstance(); Companion_getInstance_90(); return appendQueryArgs_0(tmp.toi([this.roi_1.jn2_1, '/umapp/#/']) + destName, toQueryString(args)); }; function OnClickLinkUseCase_init_$Init$(navController, accountManager, openExternalLinkUseCase, apiUrlConfig, $this) { OnClickLinkUseCase.call($this, navController, accountManager, openExternalLinkUseCase, apiUrlConfig.ing_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.uoi_1 = navController; this.voi_1 = accountManager; this.woi_1 = openExternalLinkUseCase; this.xoi_1 = userCanSelectServer; } protoOf(OnClickLinkUseCase).yoi = function (link, target) { navigateToLink(this.uoi_1, link, this.voi_1, this.woi_1, VOID, VOID, this.xoi_1, VOID, VOID, target); }; var LinkTarget_BLANK_instance; var LinkTarget_TOP_instance; var LinkTarget_SELF_instance; var LinkTarget_DEFAULT_instance; function Companion_43() { } protoOf(Companion_43).fls = 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_91; function Companion_getInstance_60() { return Companion_instance_91; } var LinkTarget_entriesInitialized; function LinkTarget_initEntries() { if (LinkTarget_entriesInitialized) return Unit_instance; LinkTarget_entriesInitialized = true; LinkTarget_BLANK_instance = new LinkTarget('BLANK', 0); LinkTarget_TOP_instance = new LinkTarget('TOP', 1); LinkTarget_SELF_instance = new LinkTarget('SELF', 2); LinkTarget_DEFAULT_instance = new LinkTarget('DEFAULT', 3); } function LinkTarget(name, ordinal) { Enum.call(this, name, ordinal); } function LinkTarget_BLANK_getInstance() { LinkTarget_initEntries(); return LinkTarget_BLANK_instance; } function LinkTarget_TOP_getInstance() { LinkTarget_initEntries(); return LinkTarget_TOP_instance; } function LinkTarget_SELF_getInstance() { LinkTarget_initEntries(); return LinkTarget_SELF_instance; } function LinkTarget_DEFAULT_getInstance() { LinkTarget_initEntries(); return LinkTarget_DEFAULT_instance; } function OpenExternalLinkUseCase() { } function UpdatePeerReviewAllocationUseCase$invoke$lambda($selectedMarkerUid) { return function ($this$shallowCopy) { var tmp = $this$shallowCopy; var tmp0_elvis_lhs = $selectedMarkerUid; tmp.ufg_1 = tmp0_elvis_lhs == null ? new Long(0, 0) : tmp0_elvis_lhs; return Unit_instance; }; } function $invokeCOROUTINE$29(_this__u8e3s4, existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hoj_1 = _this__u8e3s4; this.ioj_1 = existingAllocations; this.joj_1 = groupUid; this.koj_1 = clazzUid; this.loj_1 = assignmentUid; this.moj_1 = numReviewsPerSubmission; this.noj_1 = allocateRemaining; this.ooj_1 = resetAllocations; } 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 = 8; this.hd_1 = 1; suspendResult = this.hoj_1.iok_1.q7e().c7s(this.koj_1, this.joj_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.poj_1 = suspendResult; var tmp_0 = this; tmp_0.qoj_1 = this.poj_1; var tmp_1 = this; tmp_1.roj_1 = this.qoj_1; var tmp_2 = this; tmp_2.soj_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.qoj_1, 10)); this.toj_1 = this.roj_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.toj_1.f()) { this.hd_1 = 7; continue $sm; } this.uoj_1 = this.toj_1.e(); var tmp_3 = this; tmp_3.voj_1 = this.uoj_1; var tmp_4 = this; tmp_4.woj_1 = this.hoj_1; var tmp_5 = this; var this_0 = this.ioj_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.vfg_1.equals(this.voj_1)) { destination.i1(element); } } tmp_5.xoj_1 = this.hoj_1.kok(destination, this.moj_1); var tmp_6 = this; tmp_6.yoj_1 = this.moj_1; if (this.xoj_1.u() >= this.yoj_1) { this.zoj_1 = this.xoj_1; this.hd_1 = 6; continue $sm; } else { var tmp_7 = this; tmp_7.aok_1 = until(0, this.yoj_1 - this.xoj_1.u() | 0); var tmp_8 = this; tmp_8.bok_1 = this.aok_1; var tmp_9 = this; tmp_9.cok_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.aok_1, 10)); this.dok_1 = this.bok_1.w(); this.hd_1 = 3; continue $sm; } case 3: if (!this.dok_1.f()) { this.hd_1 = 5; continue $sm; } this.eok_1 = this.dok_1.e(); var tmp_10 = this; tmp_10.fok_1 = this.eok_1; var tmp_11 = this; tmp_11.gok_1 = new PeerReviewerAllocation(); var tmp_12 = this; tmp_12.hok_1 = this.gok_1; this.hd_1 = 4; var tmp_13 = get_doorPrimaryKeyManager(this.hoj_1.iok_1); suspendResult = tmp_13.o62(140, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var ARGUMENT = suspendResult; this.hok_1.tfg_1 = ARGUMENT; this.hok_1.vfg_1 = this.voj_1; this.hok_1.wfg_1 = this.loj_1; var ARGUMENT_0 = this.gok_1; this.cok_1.i1(ARGUMENT_0); this.hd_1 = 3; continue $sm; case 5: var ARGUMENT_1 = this.cok_1; this.zoj_1 = plus(this.xoj_1, ARGUMENT_1); this.hd_1 = 6; continue $sm; case 6: var existingAllocationsForSubmitter = this.zoj_1; var ARGUMENT_2 = to(this.voj_1, existingAllocationsForSubmitter); this.soj_1.i1(ARGUMENT_2); this.hd_1 = 2; continue $sm; case 7: var ARGUMENT_3 = this.soj_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.ooj_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).ak4(VOID, new Long(0, 0))); } while (inductionVariable <= last); } if (this.noj_1) { var this_1 = this.poj_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.ufg_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.moj_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.ufg_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.vfg_1.equals(allocation.vfg_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.ufg_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.vfg_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.iok_1 = db; this.jok_1 = systemImpl; } protoOf(UpdatePeerReviewAllocationUseCase).kok = function (_this__u8e3s4, maxSize) { return _this__u8e3s4.u() <= maxSize ? _this__u8e3s4 : _this__u8e3s4.z(0, maxSize); }; protoOf(UpdatePeerReviewAllocationUseCase).lok = function (existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion) { var tmp = new $invokeCOROUTINE$29(this, existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UpdatePeerReviewAllocationUseCase).mok = function (existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion, $super) { resetAllocations = resetAllocations === VOID ? false : resetAllocations; return $super === VOID ? this.lok(existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion) : $super.lok.call(this, existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion); }; function AddNewPersonUseCase$invoke$slambda($effectiveDb, $person, $systemPermissions, $createPersonParentApprovalIfMinor, $addedByPersonUid, resultContinuation) { this.vok_1 = $effectiveDb; this.wok_1 = $person; this.xok_1 = $systemPermissions; this.yok_1 = $createPersonParentApprovalIfMinor; this.zok_1 = $addedByPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(AddNewPersonUseCase$invoke$slambda).pnp = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddNewPersonUseCase$invoke$slambda).he = function (p1, $completion) { return this.pnp(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.vok_1.n7d().insertAsync(this.wok_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.bol_1 = suspendResult; this.col_1 = this.wok_1.s95_1.equals(new Long(0, 0)) ? this.bol_1 : this.wok_1.s95_1; this.hd_1 = 2; suspendResult = this.vok_1.p7f().dhf(new SystemPermission(VOID, this.col_1, VOID, this.xok_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: if (isDateOfBirthAMinor(Companion_getInstance_6().pls(this.wok_1.a96_1)) ? this.yok_1 : false) { this.hd_1 = 3; var tmp_0 = this.vok_1.x7e(); var tmp2_ppjApprovalTiemstamp = systemTimeInMillis(); suspendResult = tmp_0.hgc(new PersonParentJoin(VOID, VOID, VOID, VOID, VOID, this.zok_1, this.col_1, 8, VOID, VOID, VOID, 1, tmp2_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.col_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).vn7 = function (it, completion) { var i = new AddNewPersonUseCase$invoke$slambda(this.vok_1, this.wok_1, this.xok_1, this.yok_1, this.zok_1, completion); i.aol_1 = it; return i; }; function AddNewPersonUseCase$invoke$slambda_0($effectiveDb, $person, $systemPermissions, $createPersonParentApprovalIfMinor, $addedByPersonUid, resultContinuation) { var i = new AddNewPersonUseCase$invoke$slambda($effectiveDb, $person, $systemPermissions, $createPersonParentApprovalIfMinor, $addedByPersonUid, resultContinuation); var l = function (it, $completion) { return i.pnp(it, $completion); }; l.$arity = 1; return l; } function AddNewPersonUseCase(db, repo) { this.dol_1 = db; this.eol_1 = repo; } protoOf(AddNewPersonUseCase).fol = function (person, addedByPersonUid, createPersonParentApprovalIfMinor, systemPermissions, $completion) { var tmp0_elvis_lhs = this.eol_1; var effectiveDb = tmp0_elvis_lhs == null ? this.dol_1 : tmp0_elvis_lhs; return withDoorTransactionAsync(effectiveDb, VOID, AddNewPersonUseCase$invoke$slambda_0(effectiveDb, person, systemPermissions, createPersonParentApprovalIfMinor, addedByPersonUid, null), $completion); }; protoOf(AddNewPersonUseCase).gol = function (person, addedByPersonUid, createPersonParentApprovalIfMinor, systemPermissions, $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; return $super === VOID ? this.fol(person, addedByPersonUid, createPersonParentApprovalIfMinor, systemPermissions, $completion) : $super.fol.call(this, person, addedByPersonUid, createPersonParentApprovalIfMinor, systemPermissions, $completion); }; function BulkAddPersonException(message, errors) { message = message === VOID ? null : message; IllegalArgumentException_init_$Init$_0(message, this); captureStack(this, BulkAddPersonException); this.hol_1 = errors; } protoOf(BulkAddPersonException).toString = function () { var tmp0_elvis_lhs = this.message; return (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs) + ' ' + joinToString(this.hol_1); }; function $serializer_35() { $serializer_instance_35 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.person.bulkadd.BulkAddPersonsDataError', this, 3); tmp0_serialDesc.t4f('lineNum', false); tmp0_serialDesc.t4f('colName', false); tmp0_serialDesc.t4f('invalidValue', false); this.iol_1 = tmp0_serialDesc; } protoOf($serializer_35).q44 = function () { return this.iol_1; }; protoOf($serializer_35).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_35).s44 = function (decoder) { var tmp0_desc = this.iol_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.i48(tmp0_desc); if (tmp7_input.x48()) { tmp4_local0 = tmp7_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.j48(tmp0_desc); return BulkAddPersonsDataError_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_35).jol = function (encoder, value) { var tmp0_desc = this.iol_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.r49(tmp0_desc, 0, value.kol_1); tmp1_output.w49(tmp0_desc, 1, value.lol_1); tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.mol_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_35).r44 = function (encoder, value) { return this.jol(encoder, value instanceof BulkAddPersonsDataError ? value : THROW_CCE()); }; var $serializer_instance_35; function $serializer_getInstance_47() { if ($serializer_instance_35 == null) new $serializer_35(); return $serializer_instance_35; } function BulkAddPersonsDataError_init_$Init$(seen1, lineNum, colName, invalidValue, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_47().iol_1); } $this.kol_1 = lineNum; $this.lol_1 = colName; $this.mol_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.kol_1 + ', colName=' + this.lol_1 + ', invalidValue=' + this.mol_1 + ')'; }; protoOf(BulkAddPersonsDataError).hashCode = function () { var result = this.kol_1; result = imul(result, 31) + getStringHashCode(this.lol_1) | 0; result = imul(result, 31) + (this.mol_1 == null ? 0 : getStringHashCode(this.mol_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.kol_1 === tmp0_other_with_cast.kol_1)) return false; if (!(this.lol_1 === tmp0_other_with_cast.lol_1)) return false; if (!(this.mol_1 == tmp0_other_with_cast.mol_1)) return false; return true; }; function BulkAddPersonsFromLocalUriUseCase() { } function Companion_44() { } var Companion_instance_92; function Companion_getInstance_61() { return Companion_instance_92; } function $serializer_36() { $serializer_instance_36 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.person.bulkadd.BulkAddPersonsUseCase.BulkAddUsersResult', this, 1); tmp0_serialDesc.t4f('numImported', false); this.ool_1 = tmp0_serialDesc; } protoOf($serializer_36).q44 = function () { return this.ool_1; }; protoOf($serializer_36).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance()]; }; protoOf($serializer_36).s44 = function (decoder) { var tmp0_desc = this.ool_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return BulkAddUsersResult_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_36).pol = function (encoder, value) { var tmp0_desc = this.ool_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.r49(tmp0_desc, 0, value.qol_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_36).r44 = function (encoder, value) { return this.pol(encoder, value instanceof BulkAddUsersResult ? value : THROW_CCE()); }; var $serializer_instance_36; function $serializer_getInstance_48() { if ($serializer_instance_36 == null) new $serializer_36(); return $serializer_instance_36; } function BulkAddUsersResult_init_$Init$(seen1, numImported, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_48().ool_1); } $this.qol_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.qol_1 = numImported; } protoOf(BulkAddUsersResult).toString = function () { return 'BulkAddUsersResult(numImported=' + this.qol_1 + ')'; }; protoOf(BulkAddUsersResult).hashCode = function () { return this.qol_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.qol_1 === tmp0_other_with_cast.qol_1)) return false; return true; }; function IPhoneNumberUtil() { } function formatInternationalOrNull(_this__u8e3s4, number) { var tmp; try { tmp = _this__u8e3s4.sol(_this__u8e3s4.rol(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.uol_1 = showPoweredBy; } protoOf(GetShowPoweredByUseCase).foi = function () { return this.uol_1; }; function Companion_45() { this.vol_1 = 'en'; } var Companion_instance_93; function Companion_getInstance_62() { return Companion_instance_93; } function $invokeCOROUTINE$30(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.eom_1 = _this__u8e3s4; } 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 = 2; this.fom_1 = plus(listOf_0(this.eom_1.nom_1.mom_1), this.eom_1.nom_1.gom_1); this.hd_1 = 1; suspendResult = this.eom_1.oom_1.w7e().nh6(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.fom_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.nom_1 = supportedLangConfig; this.oom_1 = repo; } protoOf(GetLocaleForSiteTermsUseCase).pom = function ($completion) { var tmp = new $invokeCOROUTINE$30(this, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function OnClickSendSmsUseCase() { } function Companion_46() { this.qom_1 = 'dismissed-social-warning-'; } var Companion_instance_94; function Companion_getInstance_63() { return Companion_instance_94; } function DismissSocialWarningUseCase(settings) { this.rom_1 = settings; } protoOf(DismissSocialWarningUseCase).mo6 = function (username) { var key = 'dismissed-social-warning-' + (username == null ? 'guest' : username); // Inline function 'com.russhwolf.settings.set' call this.rom_1.jlj(key, true); }; function Companion_47() { this.som_1 = 'dismissed-social-warning-'; this.tom_1 = 'https://beinternetawesome.withgoogle.com'; } var Companion_instance_95; function Companion_getInstance_64() { return Companion_instance_95; } function ShowSocialWarningUseCase(settings) { this.uom_1 = settings; } protoOf(ShowSocialWarningUseCase).koe = function (username) { var key = 'dismissed-social-warning-' + (username == null ? 'guest' : username); return !this.uom_1.klj(key, false); }; function GetOfflineStorageAvailableSpace() { } function Companion_48() { this.wom_1 = 'offlineStoragePath'; } var Companion_instance_96; function Companion_getInstance_65() { return Companion_instance_96; } function GetOfflineStorageOptionsUseCase() { } function GetOfflineStorageSettingUseCase(getOfflineStorageOptionsUseCase, settings) { this.xom_1 = getOfflineStorageOptionsUseCase; this.yom_1 = settings; } protoOf(GetOfflineStorageSettingUseCase).foi = function () { var setting = this.yom_1.ilj('offlineStoragePath'); var options = this.xom_1.foi(); // Inline function 'kotlin.takeIf' call // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.domain.storage.GetOfflineStorageSettingUseCase.invoke.' call if (!(setting == null)) { tmp = options; } else { tmp = null; } var tmp0_safe_receiver = tmp; var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { var tmp$ret$3; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = tmp0_safe_receiver.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.storage.GetOfflineStorageSettingUseCase.invoke.' call if (element.aon_1 === setting) { tmp$ret$3 = element; break $l$block; } } tmp$ret$3 = null; } tmp_0 = tmp$ret$3; } var tmp1_elvis_lhs = tmp_0; return tmp1_elvis_lhs == null ? first_0(options) : tmp1_elvis_lhs; }; function OfflineStorageOption() { } protoOf(OfflineStorageOption).hashCode = function () { var result = this.zom_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.aon_1) | 0; return result; }; protoOf(OfflineStorageOption).equals = function (other) { if (this === other) return true; if (!(other instanceof OfflineStorageOption)) return false; var tmp0_other_with_cast = other instanceof OfflineStorageOption ? other : THROW_CCE(); if (!this.zom_1.equals(tmp0_other_with_cast.zom_1)) return false; if (!(this.aon_1 === tmp0_other_with_cast.aon_1)) return false; return true; }; function SetOfflineStorageSettingUseCase(settings) { this.bon_1 = settings; } function DeleteUrisUseCase() { } function IsTempFileCheckerUseCase() { } function ChunkIterator(chunkInfo) { this.con_1 = chunkInfo; this.don_1 = 0; } protoOf(ChunkIterator).f = function () { return this.don_1 < this.con_1.ion_1; }; protoOf(ChunkIterator).e = function () { // Inline function 'kotlin.also' call var this_0 = this.con_1.v(this.don_1); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.upload.ChunkIterator.next.' call this.don_1 = this.don_1 + 1 | 0; return this_0; }; function Chunk(start, end, isLastChunk, size) { size = size === VOID ? end.mc(start).mb() : size; this.jon_1 = start; this.kon_1 = end; this.lon_1 = isLastChunk; this.mon_1 = size; } protoOf(Chunk).toString = function () { return 'Chunk(start=' + this.jon_1.toString() + ', end=' + this.kon_1.toString() + ', isLastChunk=' + this.lon_1 + ', size=' + this.mon_1 + ')'; }; protoOf(Chunk).hashCode = function () { var result = this.jon_1.hashCode(); result = imul(result, 31) + this.kon_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.lon_1) | 0; result = imul(result, 31) + this.mon_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.jon_1.equals(tmp0_other_with_cast.jon_1)) return false; if (!this.kon_1.equals(tmp0_other_with_cast.kon_1)) return false; if (!(this.lon_1 === tmp0_other_with_cast.lon_1)) return false; if (!(this.mon_1 === tmp0_other_with_cast.mon_1)) return false; return true; }; function ChunkInfo(totalSize, chunkSize, fromByte) { fromByte = fromByte === VOID ? new Long(0, 0) : fromByte; this.eon_1 = totalSize; this.fon_1 = chunkSize; this.gon_1 = fromByte; this.hon_1 = this.eon_1.mc(this.gon_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.hon_1; var other = this.fon_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.hon_1; var other_0 = this.fon_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.ion_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.fon_1)).lc(this.gon_1); // Inline function 'kotlin.math.min' call // Inline function 'kotlin.Long.plus' call var other = this.fon_1; var a = start.lc(toLong(other)); var b = this.eon_1; var end = a.c7(b) <= 0 ? a : b; var isLastChunk = index === (this.ion_1 - 1 | 0); return new Chunk(start, end, isLastChunk); }; function UploadProgress(bytesTransferred, totalBytes) { this.non_1 = bytesTransferred; this.oon_1 = totalBytes; } protoOf(UploadProgress).toString = function () { return 'UploadProgress(bytesTransferred=' + this.non_1.toString() + ', totalBytes=' + this.oon_1.toString() + ')'; }; protoOf(UploadProgress).hashCode = function () { var result = this.non_1.hashCode(); result = imul(result, 31) + this.oon_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.non_1.equals(tmp0_other_with_cast.non_1)) return false; if (!this.oon_1.equals(tmp0_other_with_cast.oon_1)) return false; return true; }; function LastChunkResponse(body, statusCode, headers) { this.pon_1 = body; this.qon_1 = statusCode; this.ron_1 = headers; } protoOf(LastChunkResponse).toString = function () { return 'LastChunkResponse(body=' + this.pon_1 + ', statusCode=' + this.qon_1 + ', headers=' + this.ron_1 + ')'; }; protoOf(LastChunkResponse).hashCode = function () { var result = this.pon_1 == null ? 0 : getStringHashCode(this.pon_1); result = imul(result, 31) + this.qon_1 | 0; result = imul(result, 31) + hashCode(this.ron_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.pon_1 == tmp0_other_with_cast.pon_1)) return false; if (!(this.qon_1 === tmp0_other_with_cast.qon_1)) return false; if (!equals(this.ron_1, tmp0_other_with_cast.ron_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_49() { this.uon_1 = 524288; } var Companion_instance_97; function Companion_getInstance_66() { return Companion_instance_97; } 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.von_1 = accountManager; } protoOf(StartUserSessionUseCase).won = function (session, nextDest, navController, goOptions, dontSetCurrentSession) { // Inline function 'kotlin.takeIf' call var this_0 = this.von_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.yn5(session); } navigateToViewUri(navController, appendSelectedAccount(nextDest, session.zn2_1.s95_1, session.an3_1), goOptions); }; protoOf(StartUserSessionUseCase).xon = function (session, nextDest, navController, goOptions, dontSetCurrentSession, $super) { var tmp; if (nextDest === VOID) { Companion_getInstance_129(); 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.won(session, nextDest, navController, goOptions, dontSetCurrentSession); tmp_0 = Unit_instance; } else { tmp_0 = $super.won.call(this, session, nextDest, navController, goOptions, dontSetCurrentSession); } return tmp_0; }; function ValidateEmailUseCase() { } protoOf(ValidateEmailUseCase).koe = function (email) { // Inline function 'kotlin.text.trim' call var trimmed = toString(trim(isCharSequence(email) ? email : THROW_CCE())); var atPos = indexOf(trimmed, _Char___init__impl__6a9atx(64)); if (atPos === -1) return null; if (indexOf(trimmed, _Char___init__impl__6a9atx(46), atPos) === -1) return null; var tmp$ret$2; $l$block: { // Inline function 'kotlin.text.any' call var inductionVariable = 0; while (inductionVariable < charSequenceLength(trimmed)) { var element = charSequenceGet(trimmed, inductionVariable); inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.domain.validateemail.ValidateEmailUseCase.invoke.' call if (((isWhitespace(element) ? true : element === _Char___init__impl__6a9atx(91)) ? true : element === _Char___init__impl__6a9atx(93)) ? true : element === _Char___init__impl__6a9atx(92)) { tmp$ret$2 = true; break $l$block; } } tmp$ret$2 = false; } if (tmp$ret$2) return null; return trimmed; }; function Companion_50() { Companion_instance_98 = this; this.yoh_1 = 3; this.zoh_1 = 30; this.aoi_1 = setOf([new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(95))]); } protoOf(Companion_50).yon = function (character) { return isLetter(character) ? true : isDigit(character) ? true : this.aoi_1.a1(new Char(character)) ? true : false; }; var Companion_instance_98; function Companion_getInstance_67() { if (Companion_instance_98 == null) new Companion_50(); return Companion_instance_98; } function ValidateUsernameUseCase() { Companion_getInstance_67(); } protoOf(ValidateUsernameUseCase).koe = function (username) { var tmp; if (username.length < 3) { tmp = Companion_getInstance_68().aoo_1; } else { if (username.length > 30) { tmp = Companion_getInstance_68().boo_1; } else { var tmp0_safe_receiver = firstOrNull_0(username); var tmp_0; var tmp_1 = tmp0_safe_receiver; if ((tmp_1 == null ? null : new Char(tmp_1)) == null) { tmp_0 = null; } else { tmp_0 = isDigit(tmp0_safe_receiver); } if (tmp_0 === true) { tmp = Companion_getInstance_68().coo_1; } else { var tmp$ret$1; $l$block: { // Inline function 'kotlin.text.all' call var inductionVariable = 0; while (inductionVariable < charSequenceLength(username)) { var element = charSequenceGet(username, inductionVariable); inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.domain.validateusername.ValidateUsernameUseCase.invoke.' call if (!Companion_getInstance_67().yon(element)) { tmp$ret$1 = false; break $l$block; } } tmp$ret$1 = true; } if (!tmp$ret$1) { tmp = Companion_getInstance_68().doo_1; } else { tmp = Companion_getInstance_68().zon_1; } } } } return tmp; }; function Companion_51() { Companion_instance_99 = this; this.zon_1 = new ValidationResult(); this.aoo_1 = new ValidationResult(strings_getInstance().wmi_1); this.boo_1 = new ValidationResult(strings_getInstance().xmi_1); this.coo_1 = new ValidationResult(strings_getInstance().ymi_1); this.doo_1 = new ValidationResult(strings_getInstance().zmi_1); } var Companion_instance_99; function Companion_getInstance_68() { if (Companion_instance_99 == null) new Companion_51(); return Companion_instance_99; } function ValidationResult(errorMessage) { Companion_getInstance_68(); errorMessage = errorMessage === VOID ? null : errorMessage; this.eoo_1 = errorMessage; } protoOf(ValidationResult).toString = function () { return 'ValidationResult(errorMessage=' + this.eoo_1 + ')'; }; protoOf(ValidationResult).hashCode = function () { return this.eoo_1 == null ? 0 : this.eoo_1.hashCode(); }; protoOf(ValidationResult).equals = function (other) { if (this === other) return true; if (!(other instanceof ValidationResult)) return false; var tmp0_other_with_cast = other instanceof ValidationResult ? other : THROW_CCE(); if (!equals(this.eoo_1, tmp0_other_with_cast.eoo_1)) return false; return true; }; function isAnonymous(_this__u8e3s4) { return ((_this__u8e3s4.eii_1 == null ? _this__u8e3s4.cii_1 == null : false) ? _this__u8e3s4.fii_1 == null : false) ? _this__u8e3s4.dii_1 == null : false; } function _get_isIdOnly__t0wrie(_this__u8e3s4, $this) { var tmp; var tmp_0; if (_this__u8e3s4.bi4_1 == null ? _this__u8e3s4.ci4_1 == null : false) { var tmp_1 = _this__u8e3s4.di4_1; tmp_0 = tmp_1 === 0; } else { tmp_0 = false; } if (tmp_0) { tmp = _this__u8e3s4.ei4_1 == null; } else { tmp = false; } return tmp; } function StoreActivitiesUseCase$invoke$slambda($activityEntities, $timeNow, this$0, resultContinuation) { this.noo_1 = $activityEntities; this.ooo_1 = $timeNow; this.poo_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(StoreActivitiesUseCase$invoke$slambda).wop = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(StoreActivitiesUseCase$invoke$slambda).he = function (p1, $completion) { return this.wop(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.noo_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.xop_1.gkd(VOID, VOID, VOID, VOID, VOID, VOID, this.ooo_1)); } tmp_0.roo_1 = destination; this.hd_1 = 1; suspendResult = this.poo_1.doq_1.h7e().ui3(this.roo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this; var this_1 = this.roo_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.poo_1)) { destination_0.i1(element); } } tmp_1.soo_1 = destination_0; this.too_1 = this.soo_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.too_1.f()) { this.hd_1 = 5; continue $sm; } this.uoo_1 = this.too_1.e(); var tmp_2 = this; tmp_2.voo_1 = this.uoo_1; this.hd_1 = 3; suspendResult = this.poo_1.doq_1.h7e().vi3(this.voo_1.zi3_1, this.voo_1.ci4_1, this.ooo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.hd_1 = 4; suspendResult = this.poo_1.doq_1.h7e().wi3(this.voo_1.zi3_1, this.voo_1.bi4_1, this.voo_1.ci4_1, this.voo_1.di4_1, this.voo_1.ei4_1, this.ooo_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.noo_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.yop_1; addAll(destination_1, list); } tmp_3.woo_1 = destination_1; var tmp_4 = this; var this_3 = this.noo_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.zop_1; addAll(destination_2, list_0); } tmp_4.xoo_1 = destination_2; this.hd_1 = 6; var tmp_5 = this.poo_1.coq_1.w7f(); var this_4 = this.xoo_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.mi9_1); } suspendResult = tmp_5.ji9(toList(distinct(destination_3)), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.yoo_1 = suspendResult; this.zoo_1 = toSet(this.yoo_1); this.hd_1 = 7; var tmp_6 = this.poo_1.doq_1.w7f(); var this_5 = this.xoo_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.zoo_1.a1(element_2.mi9_1)) { destination_4.i1(element_2); } } suspendResult = tmp_6.ii9(destination_4, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: var tmp_7 = this; var this_6 = this.woo_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.sib_1.equals(new Long(0, 0))) { first.i1(element_3); } else { second.i1(element_3); } } tmp_7.aop_1 = new Pair(first, second); this.bop_1 = this.aop_1.y6(); this.cop_1 = this.aop_1.z6(); this.hd_1 = 8; suspendResult = this.poo_1.doq_1.v7f().hib(this.bop_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: var tmp_8 = this; tmp_8.dop_1 = this.cop_1; this.eop_1 = this.dop_1.w(); this.hd_1 = 9; continue $sm; case 9: if (!this.eop_1.f()) { this.hd_1 = 11; continue $sm; } this.fop_1 = this.eop_1.e(); var tmp_9 = this; tmp_9.gop_1 = this.fop_1; this.hop_1 = this.poo_1.doq_1.v7f(); this.iop_1 = this.gop_1.nib_1; this.jop_1 = this.gop_1.sib_1; this.kop_1 = this.gop_1.qib_1; this.lop_1 = this.gop_1.rib_1; this.mop_1 = this.gop_1.pib_1; this.nop_1 = this.gop_1.oib_1; this.hd_1 = 10; suspendResult = this.hop_1.iib(this.iop_1, this.nop_1, this.kop_1, this.mop_1, this.lop_1, this.jop_1, this.ooo_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.oop_1 = this.woo_1; this.pop_1 = this.oop_1.w(); this.hd_1 = 12; continue $sm; case 12: if (!this.pop_1.f()) { this.hd_1 = 14; continue $sm; } this.qop_1 = this.pop_1.e(); var tmp_11 = this; tmp_11.rop_1 = this.qop_1; this.hd_1 = 13; suspendResult = this.poo_1.doq_1.v7f().jib(this.rop_1.nib_1, this.rop_1.oib_1, this.rop_1.rib_1, this.ooo_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.poo_1.doq_1.x7f(); var this_7 = this.noo_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.aoq_1; addAll(destination_5, list_1); } suspendResult = tmp_12.ei8(destination_5, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 15: var tmp_13 = this; var this_8 = this.noo_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.boq_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.sop_1 = tmp_14; if (this.sop_1 == null) { this.top_1 = null; this.hd_1 = 17; continue $sm; } else { var tmp_15 = this; tmp_15.uop_1 = this.sop_1; var tmp_16 = this; tmp_16.vop_1 = this.uop_1; this.hd_1 = 16; suspendResult = this.poo_1.doq_1.y7f().mir(this.vop_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 16: this.top_1 = this.uop_1; this.hd_1 = 17; continue $sm; case 17: return this.top_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).vn7 = function (it, completion) { var i = new StoreActivitiesUseCase$invoke$slambda(this.noo_1, this.ooo_1, this.poo_1, completion); i.qoo_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.wop(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$34(_this__u8e3s4, activityEntities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.moq_1 = _this__u8e3s4; this.noq_1 = activityEntities; } protoOf($invokeCOROUTINE$34).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.ooq_1 = systemTimeInMillis(); this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.moq_1.doq_1, VOID, StoreActivitiesUseCase$invoke$slambda_0(this.noq_1, this.ooq_1, this.moq_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.coq_1 = db; var tmp = this; tmp.doq_1 = repo == null ? this.coq_1 : repo; } protoOf(StoreActivitiesUseCase).poq = function (activityEntities, $completion) { var tmp = new $invokeCOROUTINE$34(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.qoq_1 = responseCode; } function XapiJson$_init_$lambda_lhwgtd($this$Json) { $this$Json.d4q_1 = false; $this$Json.f4q_1 = true; return Unit_instance; } function XapiJson(json) { var tmp; if (json === VOID) { tmp = Json_0(VOID, XapiJson$_init_$lambda_lhwgtd); } else { tmp = json; } json = tmp; this.roq_1 = json; } protoOf(XapiJson).toString = function () { return 'XapiJson(json=' + this.roq_1 + ')'; }; protoOf(XapiJson).hashCode = function () { return hashCode(this.roq_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.roq_1, tmp0_other_with_cast.roq_1)) return false; return true; }; function xapiRequireValidUuidOrNullAsString(uuid, errorMessage) { errorMessage = errorMessage === VOID ? 'Invalid uuid' : errorMessage; try { if (!(uuid == null)) { uuidFrom(uuid); } return uuid; } catch ($p) { if ($p instanceof Error) { var e = $p; throw new XapiException(400, errorMessage + ': ' + e.message, e); } else { throw $p; } } } function xapiRequireValidUuidOrNull(uuid, errorMessage) { errorMessage = errorMessage === VOID ? 'Invalid uuid' : errorMessage; try { var tmp; if (uuid == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.xapiRequireValidUuidOrNull.' call tmp = uuidFrom(uuid); } return tmp; } catch ($p) { if ($p instanceof Error) { var e = $p; throw new XapiException(400, errorMessage + ': ' + e.message, e); } else { throw $p; } } } function xapiRequireValidIRI(iri, errorMessage) { errorMessage = errorMessage === VOID ? 'Invalid iri' : errorMessage; if (iri == null) throw new XapiException(400, errorMessage + ': iri is null'); xapiRequireValidIRIOrNull(iri); return iri; } function xapiRequireDurationOrNullAsLong(duration) { var tmp; if (duration == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.xapiRequireDurationOrNullAsLong.' call var tmp_0; try { tmp_0 = _Duration___get_inWholeMilliseconds__impl__msfiry(Companion_getInstance_8().jm(duration)); } catch ($p) { var tmp_1; if ($p instanceof Error) { var e = $p; throw new XapiException(400, 'Invalid duration: ' + e.message, e); } else { throw $p; } } tmp = tmp_0; } return tmp; } function xapiRequireTimestampAsLong(timestampStr) { try { return Companion_getInstance_6().o2r(timestampStr).ols(); } catch ($p) { if ($p instanceof Error) { var e = $p; throw new XapiException(400, 'Invalid timestamp: ' + e.message, e); } else { throw $p; } } } function xapiRequireValidIRIOrNull(iri, errorMessage) { errorMessage = errorMessage === VOID ? 'Invalid IRI:' : errorMessage; if (!(iri == null)) { try { Companion_getInstance_3().o2r(iri); } catch ($p) { if ($p instanceof Error) { var e = $p; throw new XapiException(400, errorMessage + ': ' + e.message, e); } else { throw $p; } } } return iri; } function StatementStoreResult(statementUuids) { this.soq_1 = statementUuids; } protoOf(StatementStoreResult).toString = function () { return 'StatementStoreResult(statementUuids=' + this.soq_1 + ')'; }; protoOf(StatementStoreResult).hashCode = function () { return hashCode(this.soq_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.soq_1, tmp0_other_with_cast.soq_1)) return false; return true; }; function storeStatements($this, statements, xapiSession, $completion) { var tmp = new $storeStatementsCOROUTINE$35($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.por_1 = $statementEntities; this.qor_1 = this$0; this.ror_1 = $xapiSession; CoroutineImpl.call(this, resultContinuation); } protoOf(XapiStatementResource$storeStatements$slambda).un7 = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(XapiStatementResource$storeStatements$slambda).he = function (p1, $completion) { return this.un7(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.por_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.mos_1; var tmp_1; if (tmp0_safe_receiver == null) { tmp_1 = null; } else { tmp_1 = tmp0_safe_receiver.diu_1 ? tmp0_safe_receiver.lit_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.tor_1 = this.qor_1.bnq_1.z7f(); this.uor_1 = this.ror_1.njd_1; this.vor_1 = systemTimeInMillis(); this.hd_1 = 1; suspendResult = this.tor_1.fjd(true, this.vor_1, this.uor_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.qor_1.bnq_1.j7e(); var this_1 = this.por_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.mos_1; if (tmp0_safe_receiver_0 == null) null; else { destination.i1(tmp0_safe_receiver_0); } } suspendResult = tmp_2.ris(destination, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.hd_1 = 4; var tmp_3 = this.qor_1.bnq_1.a7g(); var this_2 = this.por_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.nos_1; if (tmp0_safe_receiver_1 == null) null; else { destination_0.i1(tmp0_safe_receiver_1); } } suspendResult = tmp_3.hja(destination_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var tmp_4 = this; var this_3 = this.por_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.oos_1; var list = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs; addAll(destination_1, list); } tmp_4.wor_1 = destination_1; var tmp_5 = this; var this_4 = this.wor_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.ros_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.jii_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.xor_1 = tmp_7; if (this.xor_1 == null) { this.yor_1 = null; this.hd_1 = 6; continue $sm; } else { var tmp_8 = this; tmp_8.zor_1 = this.xor_1; var tmp_9 = this; tmp_9.aos_1 = this.zor_1; this.hd_1 = 5; suspendResult = insertOrUpdateActorsIfNameChanged(this.qor_1.bnq_1.k7e(), this.aos_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 5: this.yor_1 = this.zor_1; this.hd_1 = 6; continue $sm; case 6: var tmp_10 = this; var this_5 = this.wor_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.ros_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.jii_1; if (tmp_11 === 2) { destination_5.i1(element_4); } } tmp_10.bos_1 = destination_5; this.hd_1 = 7; var tmp_12 = this.qor_1.wnp_1.k7e(); var this_6 = this.bos_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.zih_1); } suspendResult = tmp_12.fih(destination_6, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.cos_1 = suspendResult; var tmp_13 = this; var this_7 = this.wor_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.sos_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.zih_1, element_6); } tmp_13.dos_1 = destination_8; var tmp_14 = this; tmp_14.eos_1 = this.bos_1; this.fos_1 = this.eos_1.w(); this.hd_1 = 8; continue $sm; case 8: if (!this.fos_1.f()) { this.hd_1 = 14; continue $sm; } this.gos_1 = this.fos_1.e(); var tmp_15 = this; tmp_15.hos_1 = this.gos_1; var tmp_16 = this; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_10 = this.cos_1.w(); while (tmp0_iterator_10.f()) { var element_7 = tmp0_iterator_10.e(); if (element_7.bij_1.equals(this.hos_1.zih_1)) { tmp$ret$2 = element_7; break l$ret$3; } } tmp$ret$2 = null; } while (false); tmp_16.ios_1 = tmp$ret$2; var tmp_17 = this; var tmp_18; if (!isAnonymous(this.hos_1)) { var tmp_19 = this.hos_1.hii_1; var tmp0_safe_receiver_2 = this.ios_1; tmp_18 = !tmp_19.equals(tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.cij_1); } else { tmp_18 = true; } tmp_17.jos_1 = tmp_18; var tmp_20 = this; var this_8 = this.wor_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.tos_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.wim_1.equals(this.hos_1.zih_1)) { destination_10.i1(element_9); } } tmp_20.kos_1 = destination_10; var tmp_21 = this; var this_9 = this.kos_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.dos_1.q(element_10.xim_1); if (tmp0_safe_receiver_3 == null) null; else { destination_11.i1(tmp0_safe_receiver_3); } } tmp_21.los_1 = destination_11; this.hd_1 = 9; suspendResult = insertOrUpdateActorsIfNameChanged(this.qor_1.bnq_1.k7e(), this.los_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 9: if (!this.jos_1 ? !(this.ios_1 == null) : false) { this.hd_1 = 12; var tmp_22 = this.qor_1.bnq_1.u7f(); var this_10 = this.kos_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.cke(VOID, VOID, this.ios_1.dij_1)); } suspendResult = insertOrUpdateIfLastModChanged(tmp_22, destination_12, this.ios_1.dij_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 10; suspendResult = this.qor_1.bnq_1.k7e().dih(listOf_0(this.hos_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 10: this.hd_1 = 11; suspendResult = this.qor_1.bnq_1.u7f().sim(this.kos_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.qor_1.bnq_1.g7e(); var this_11 = this.por_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.pos_1; var tmp0_safe_receiver_5 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.uos_1; if (tmp0_safe_receiver_5 == null) null; else { destination_13.i1(tmp0_safe_receiver_5); } } suspendResult = tmp_23.jjb(destination_13, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 15: this.hd_1 = 16; var tmp_24 = this.qor_1.bnq_1.t7f(); var this_12 = this.por_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.pos_1; var tmp1_elvis_lhs = tmp0_safe_receiver_6 == null ? null : tmp0_safe_receiver_6.vos_1; var list_2 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs; addAll(destination_14, list_2); } suspendResult = tmp_24.hjc(destination_14, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 16: this.hd_1 = 17; var this_13 = this.por_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.qos_1; var list_3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0; addAll(destination_15, list_3); } suspendResult = this.qor_1.anq_1.poq(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).vn7 = function (it, completion) { var i = new XapiStatementResource$storeStatements$slambda(this.por_1, this.qor_1, this.ror_1, completion); i.sor_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.un7(it, $completion); }; l.$arity = 1; return l; } function $storeStatementsCOROUTINE$35(_this__u8e3s4, statements, xapiSession, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bor_1 = _this__u8e3s4; this.cor_1 = statements; this.dor_1 = xapiSession; } protoOf($storeStatementsCOROUTINE$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.eor_1 = identifierHash(agent(this.dor_1, this.bor_1.ynp_1), this.bor_1.xnp_1); var tmp_0 = this; var it = knownActorUidToPersonUidsMap(this.dor_1, this.bor_1.cnq_1); var tmp_1; if (!it.r(this.eor_1)) { tmp_1 = plus_3(it, to(this.eor_1, this.dor_1.sjd_1)); } else { tmp_1 = it; } tmp_0.for_1 = tmp_1; var tmp_2 = this; var this_0 = this.cor_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.ilp().toString(); var tmp1_elvis_lhs = element.cot_1; var tmp4_timestamp = tmp1_elvis_lhs == null ? timeNowStr : tmp1_elvis_lhs; var tmp0_elvis_lhs = xapiRequireValidUuidOrNullAsString(element.wos_1); var tmp5_id = tmp0_elvis_lhs == null ? randomUuidAsString() : tmp0_elvis_lhs; var tmp2_name = this.dor_1.ujd_1; var tmp3_homePage = this.bor_1.ynp_1.jn2_1; var tmp6_authority = new XapiAgent(VOID, VOID, VOID, VOID, VOID, new XapiAccount(tmp3_homePage, tmp2_name)); var exactStatement = element.iot(tmp5_id, VOID, VOID, VOID, VOID, VOID, tmp4_timestamp, timeNowStr, tmp6_authority); var tmp7_stringHasher = this.bor_1.xnp_1; var tmp8_exactJson = this.bor_1.cnq_1.r45(Companion_getInstance_84().n4r(), exactStatement); var tmp9_primaryKeyManager = get_doorPrimaryKeyManager(this.bor_1.wnp_1); var tmp10_hasherFactory = this.bor_1.znp_1; var tmp11_json = this.bor_1.cnq_1; var tmp12_endpoint = this.bor_1.ynp_1; var list = toEntities_3(exactStatement, tmp7_stringHasher, tmp9_primaryKeyManager, tmp10_hasherFactory, tmp11_json, this.dor_1, this.for_1, tmp8_exactJson, false, tmp12_endpoint); addAll(destination, list); } tmp_2.gor_1 = destination; this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.bor_1.bnq_1, VOID, XapiStatementResource$storeStatements$slambda_0(this.gor_1, this.bor_1, this.dor_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_1 = this.gor_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.mos_1; var tmp_3; if (tmp0_safe_receiver == null) { tmp_3 = null; } else { tmp_3 = Uuid_init_$Create$(tmp0_safe_receiver.bit_1, tmp0_safe_receiver.cit_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$37(_this__u8e3s4, statements, xapiSession, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sot_1 = _this__u8e3s4; this.tot_1 = statements; this.uot_1 = xapiSession; } protoOf($postCOROUTINE$37).ud = function () { var suspendResult = 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.sot_1, this.tot_1, this.uot_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return ARGUMENT.soq_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, endpoint, xapiJson, hasherFactory, storeActivitiesUseCase) { this.wnp_1 = db; this.xnp_1 = xxHasher; this.ynp_1 = endpoint; this.znp_1 = hasherFactory; this.anq_1 = storeActivitiesUseCase; var tmp = this; tmp.bnq_1 = repo == null ? this.wnp_1 : repo; this.cnq_1 = xapiJson.roq_1; } protoOf(XapiStatementResource).dnq = function (statements, xapiSession, $completion) { var tmp = new $postCOROUTINE$37(this, statements, xapiSession, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function XapiGroupAndPersonUidMap(group, actorUidToPersonUidMap) { this.qnr_1 = group; this.rnr_1 = actorUidToPersonUidMap; } protoOf(XapiGroupAndPersonUidMap).toString = function () { return 'XapiGroupAndPersonUidMap(group=' + this.qnr_1 + ', actorUidToPersonUidMap=' + this.rnr_1 + ')'; }; protoOf(XapiGroupAndPersonUidMap).hashCode = function () { var result = this.qnr_1.hashCode(); result = imul(result, 31) + hashCode(this.rnr_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.qnr_1.equals(tmp0_other_with_cast.qnr_1)) return false; if (!equals(this.rnr_1, tmp0_other_with_cast.rnr_1)) return false; return true; }; function $invokeCOROUTINE$39(_this__u8e3s4, groupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dou_1 = _this__u8e3s4; this.eou_1 = groupSetUid; this.fou_1 = groupNum; this.gou_1 = clazzUid; this.hou_1 = assignmentUid; this.iou_1 = accountPersonUid; } 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.hd_1 = 1; suspendResult = this.dou_1.mnr_1.s7d().bcq(this.eou_1, this.fou_1, this.gou_1, this.hou_1, this.iou_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.ics_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toXapiAgent(tmp0_safe_receiver, this.dou_1.nnr_1); var tmp_0; if (tmp1_safe_receiver == null) { tmp_0 = null; } else { var tmp0_safe_receiver_0 = element.hcs_1; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.ycq_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.dou_1.nnr_1.jn2_1, 'cgs-' + this.eou_1.toString() + '-' + this.fou_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.dou_1.onr_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, endpoint, stringHasher) { this.mnr_1 = repo; this.nnr_1 = endpoint; this.onr_1 = stringHasher; } protoOf(CreateXapiGroupForCourseGroupUseCase).pnr = function (groupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) { var tmp = new $invokeCOROUTINE$39(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$40(_this__u8e3s4, actors, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $insertOrUpdateActorsIfNameChangedCOROUTINE$40(_this__u8e3s4, actors, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.rou_1 = _this__u8e3s4; this.sou_1 = actors; } protoOf($insertOrUpdateActorsIfNameChangedCOROUTINE$40).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.rou_1.cih(this.sou_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.tou_1 = systemTimeInMillis(); var tmp_0 = this; tmp_0.uou_1 = this.sou_1; this.vou_1 = this.uou_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.vou_1.f()) { this.hd_1 = 4; continue $sm; } this.wou_1 = this.vou_1.e(); var tmp_1 = this; tmp_1.xou_1 = this.wou_1; this.hd_1 = 3; suspendResult = this.rou_1.eih(this.xou_1.zih_1, this.xou_1.bii_1, this.tou_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$41(_this__u8e3s4, memberJoins, lastModTime, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $insertOrUpdateIfLastModChangedCOROUTINE$41(_this__u8e3s4, memberJoins, lastModTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.gov_1 = _this__u8e3s4; this.hov_1 = memberJoins; this.iov_1 = lastModTime; } protoOf($insertOrUpdateIfLastModChangedCOROUTINE$41).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.gov_1.rim(this.hov_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_0 = this; tmp_0.jov_1 = this.hov_1; this.kov_1 = this.jov_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.kov_1.f()) { this.hd_1 = 4; continue $sm; } this.lov_1 = this.kov_1.e(); var tmp_1 = this; tmp_1.mov_1 = this.lov_1; this.hd_1 = 3; suspendResult = this.gov_1.tim(this.mov_1.wim_1, this.mov_1.xim_1, this.iov_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, endpoint) { var tmp0_account = new XapiAccount(endpoint.jn2_1, _this__u8e3s4.ujd_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.fje_1; if (charSequenceLength(this_0) > 0) { tmp = json.s45(MapSerializer(serializer_1(Companion_getInstance_2()), serializer_1(Companion_getInstance_2())), _this__u8e3s4.fje_1); } else { tmp = emptyMap(); } return tmp; } function authorizationHeader(_this__u8e3s4) { return 'Basic ' + encodeBase64(_this__u8e3s4.njd_1.toString() + ':' + _this__u8e3s4.dje_1); } function get_registrationUuid(_this__u8e3s4) { return Uuid_init_$Create$(_this__u8e3s4.pjd_1, _this__u8e3s4.qjd_1); } function get_resultProgressExtension(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.aot_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sov_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.ext..' call var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstNotNullOfOrNull' call var tmp0_iterator = get_XAPI_PROGRESSED_EXTENSIONS().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.xapi.ext...' call var tmp0_safe_receiver_0 = tmp1_safe_receiver.q(element); var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : get_jsonPrimitive(tmp0_safe_receiver_0); var result = tmp1_safe_receiver_0 == null ? null : get_intOrNull(tmp1_safe_receiver_0); if (!(result == null)) { tmp$ret$1 = result; break $l$block; } } tmp$ret$1 = null; } tmp = tmp$ret$1; } return tmp; } function FormattedStatementResponse(string, stringResource) { stringResource = stringResource === VOID ? null : stringResource; this.tov_1 = string; this.uov_1 = stringResource; } protoOf(FormattedStatementResponse).vov = function () { return !(this.tov_1 == null) ? true : !(this.uov_1 == null); }; protoOf(FormattedStatementResponse).toString = function () { return 'FormattedStatementResponse(string=' + this.tov_1 + ', stringResource=' + this.uov_1 + ')'; }; protoOf(FormattedStatementResponse).hashCode = function () { var result = this.tov_1 == null ? 0 : getStringHashCode(this.tov_1); result = imul(result, 31) + (this.uov_1 == null ? 0 : this.uov_1.hashCode()) | 0; return result; }; protoOf(FormattedStatementResponse).equals = function (other) { if (this === other) return true; if (!(other instanceof FormattedStatementResponse)) return false; var tmp0_other_with_cast = other instanceof FormattedStatementResponse ? other : THROW_CCE(); if (!(this.tov_1 == tmp0_other_with_cast.tov_1)) return false; if (!equals(this.uov_1, tmp0_other_with_cast.uov_1)) return false; return true; }; function Companion_52() { Companion_instance_100 = this; var tmp = this; tmp.wov_1 = listOf([2, 7, 8, 5, 6]); } var Companion_instance_100; function Companion_getInstance_69() { if (Companion_instance_100 == null) new Companion_52(); return Companion_instance_100; } function FormatStatementResponseUseCase$invoke$slambda($activityEntity, $statement, this$0, resultContinuation) { this.fow_1 = $activityEntity; this.gow_1 = $statement; this.how_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(FormatStatementResponseUseCase$invoke$slambda).tow = function ($this$flow, $completion) { var tmp = this.uow($this$flow, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(FormatStatementResponseUseCase$invoke$slambda).he = function (p1, $completion) { return this.tow((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(FormatStatementResponseUseCase$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 11; var tmp_0 = this; var tmp0_safe_receiver = this.fow_1; tmp_0.jow_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.di4_1; this.kow_1 = this.gow_1.sit_1; var tmp_1; if (this.kow_1 == null ? true : this.jow_1 == null) { tmp_1 = true; } else { tmp_1 = this.jow_1 === 0; } if (tmp_1) { this.hd_1 = 10; var tmp1_safe_receiver = this.kow_1; var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = toString(trim(isCharSequence(tmp1_safe_receiver) ? tmp1_safe_receiver : THROW_CCE())); } suspendResult = this.iow_1.t1d(new FormattedStatementResponse(tmp_2), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; continue $sm; } case 1: this.low_1 = this.jow_1; if (Companion_getInstance_69().wov_1.a1(this.low_1)) { var tmp_3 = this; tmp_3.mow_1 = listOfNotNull([this.how_1.vow_1, this.how_1.wow_1]); this.now_1 = this.mow_1.w(); this.hd_1 = 5; continue $sm; } else { if (this.low_1 === 1) { this.oow_1 = toBooleanStrictOrNull(this.kow_1); this.hd_1 = 4; var tmp_4; if (this.oow_1 === true) { tmp_4 = strings_getInstance().wn0_1; } else if (this.oow_1 === false) { tmp_4 = strings_getInstance().xn0_1; } else { tmp_4 = null; } suspendResult = this.iow_1.t1d(new FormattedStatementResponse(null, tmp_4), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_5; if (this.low_1 === 3) { tmp_5 = true; } else { tmp_5 = this.low_1 === 4; } if (tmp_5) { this.hd_1 = 3; var this_0 = htmlToPlainText(replace(this.kow_1, '[,]', ', ')); suspendResult = this.iow_1.t1d(new FormattedStatementResponse(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()))), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; var this_1 = htmlToPlainText(this.kow_1); suspendResult = this.iow_1.t1d(new FormattedStatementResponse(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE()))), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } } case 2: this.hd_1 = 9; continue $sm; case 3: this.hd_1 = 9; continue $sm; case 4: this.hd_1 = 9; continue $sm; case 5: if (!this.now_1.f()) { this.hd_1 = 8; continue $sm; } this.pow_1 = this.now_1.e(); var tmp_6 = this; tmp_6.qow_1 = this.pow_1; this.hd_1 = 6; suspendResult = this.qow_1.v7f().kib(this.gow_1.git_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.row_1 = suspendResult; var tmp_7 = this; var tmp0_subject = this.jow_1; var tmp_8; var tmp_9; var tmp_10; if (tmp0_subject === 2) { tmp_10 = true; } else { tmp_10 = tmp0_subject === 7; } if (tmp_10) { tmp_9 = true; } else { tmp_9 = tmp0_subject === 8; } if (tmp_9) { var tmp_11; if (this.jow_1 === 8) { tmp_11 = 'scale'; } else { tmp_11 = 'choices'; } var propPrefix = tmp_11; var responseIds = split(this.kow_1, ['[,]']); var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(responseIds, 10)); var tmp0_iterator = responseIds.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); var tmp$ret$0; l$ret$1: do { var tmp0_iterator_0 = this.row_1.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); if (element.qib_1 === propPrefix + '-' + item) { tmp$ret$0 = element; break l$ret$1; } } tmp$ret$0 = null; } while (false); var tmp0_safe_receiver_0 = tmp$ret$0; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.rib_1; destination.i1(tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs); } tmp_8 = joinToString(destination, ', '); } else { if (tmp0_subject === 5) { var this_2 = split(this.kow_1, ['[,]']); var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10)); var tmp0_iterator_1 = this_2.w(); while (tmp0_iterator_1.f()) { var item_0 = tmp0_iterator_1.e(); var pairStrList = split(item_0, ['[.]'], VOID, 2); var sourceId = first_0(pairStrList); var targetId = getOrNull(pairStrList, 1); var tmp$ret$2; l$ret$3: do { var tmp0_iterator_2 = this.row_1.w(); while (tmp0_iterator_2.f()) { var element_0 = tmp0_iterator_2.e(); if (element_0.qib_1 === 'source-' + sourceId) { tmp$ret$2 = element_0; break l$ret$3; } } tmp$ret$2 = null; } while (false); var tmp0_safe_receiver_1 = tmp$ret$2; var tmp1_elvis_lhs_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.rib_1; var sourceText = tmp1_elvis_lhs_0 == null ? sourceId : tmp1_elvis_lhs_0; var tmp$ret$4; l$ret$5: do { var tmp0_iterator_3 = this.row_1.w(); while (tmp0_iterator_3.f()) { var element_1 = tmp0_iterator_3.e(); if (element_1.qib_1 === 'target-' + targetId) { tmp$ret$4 = element_1; break l$ret$5; } } tmp$ret$4 = null; } while (false); var tmp2_safe_receiver = tmp$ret$4; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.rib_1; var targetText = tmp3_elvis_lhs == null ? targetId : tmp3_elvis_lhs; destination_0.i1(sourceText + ' - ' + targetText); } tmp_8 = joinToString(destination_0, ', '); } else { if (tmp0_subject === 6) { var this_3 = split(this.kow_1, ['[,]']); var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10)); var tmp0_iterator_4 = this_3.w(); while (tmp0_iterator_4.f()) { var item_1 = tmp0_iterator_4.e(); var stepStrList = split(item_1, ['[.]'], VOID, 2); var stepId = first_0(stepStrList); var stepResponse = getOrNull(stepStrList, 1); var tmp$ret$6; l$ret$7: do { var tmp0_iterator_5 = this.row_1.w(); while (tmp0_iterator_5.f()) { var element_2 = tmp0_iterator_5.e(); if (element_2.qib_1 === 'steps-' + stepId) { tmp$ret$6 = element_2; break l$ret$7; } } tmp$ret$6 = null; } while (false); var tmp0_safe_receiver_2 = tmp$ret$6; var tmp1_elvis_lhs_1 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.rib_1; var stepText = tmp1_elvis_lhs_1 == null ? stepId : tmp1_elvis_lhs_1; destination_1.i1(stepText + ': ' + (stepResponse == null ? '' : stepResponse)); } tmp_8 = joinToString(destination_1, ', '); } else { tmp_8 = null; } } } tmp_7.sow_1 = tmp_8; this.hd_1 = 7; var tmp1_elvis_lhs_2 = this.sow_1; var this_4 = htmlToPlainText(tmp1_elvis_lhs_2 == null ? this.kow_1 : tmp1_elvis_lhs_2); suspendResult = this.iow_1.t1d(new FormattedStatementResponse(toString(trim(isCharSequence(this_4) ? this_4 : THROW_CCE()))), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.hd_1 = 5; continue $sm; case 8: this.hd_1 = 9; continue $sm; case 9: return Unit_instance; case 10: return Unit_instance; case 11: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 11) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(FormatStatementResponseUseCase$invoke$slambda).uow = function ($this$flow, completion) { var i = new FormatStatementResponseUseCase$invoke$slambda(this.fow_1, this.gow_1, this.how_1, completion); i.iow_1 = $this$flow; return i; }; function FormatStatementResponseUseCase$invoke$slambda_0($activityEntity, $statement, this$0, resultContinuation) { var i = new FormatStatementResponseUseCase$invoke$slambda($activityEntity, $statement, this$0, resultContinuation); var l = function ($this$flow, $completion) { return i.tow($this$flow, $completion); }; l.$arity = 1; return l; } function FormatStatementResponseUseCase(db, repo) { Companion_getInstance_69(); this.vow_1 = db; this.wow_1 = repo; } protoOf(FormatStatementResponseUseCase).xow = function (statement, activityEntity) { return flow(FormatStatementResponseUseCase$invoke$slambda_0(activityEntity, statement, this, null)); }; function Companion_53() { Companion_instance_101 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.yow_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null, null, null]; } var Companion_instance_101; function Companion_getInstance_70() { if (Companion_instance_101 == null) new Companion_53(); return Companion_instance_101; } function $serializer_37() { $serializer_instance_37 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.Attachment', this, 6); tmp0_serialDesc.t4f('usageType', true); tmp0_serialDesc.t4f('display', true); tmp0_serialDesc.t4f('description', true); tmp0_serialDesc.t4f('contentType', true); tmp0_serialDesc.t4f('length', true); tmp0_serialDesc.t4f('sha2', true); this.zow_1 = tmp0_serialDesc; } protoOf($serializer_37).q44 = function () { return this.zow_1; }; protoOf($serializer_37).k4g = function () { var tmp0_cached = Companion_getInstance_70().yow_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_37).s44 = function (decoder) { var tmp0_desc = this.zow_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_input = decoder.i48(tmp0_desc); var tmp11_cached = Companion_getInstance_70().yow_1; if (tmp10_input.x48()) { tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.o48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.o48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.j48(tmp0_desc); return Attachment_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_37).aox = function (encoder, value) { var tmp0_desc = this.zow_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_70().yow_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.box_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.box_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.cox_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, tmp2_cached[1], value.cox_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.dox_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, tmp2_cached[2], value.dox_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.eox_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.eox_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.fox_1.equals(new Long(0, 0))) { tmp1_output.s49(tmp0_desc, 4, value.fox_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.gox_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.gox_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_37).r44 = function (encoder, value) { return this.aox(encoder, value instanceof Attachment ? value : THROW_CCE()); }; var $serializer_instance_37; function $serializer_getInstance_49() { if ($serializer_instance_37 == null) new $serializer_37(); return $serializer_instance_37; } function Attachment_init_$Init$(seen1, usageType, display, description, contentType, length, sha2, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_49().zow_1); } if (0 === (seen1 & 1)) $this.box_1 = null; else $this.box_1 = usageType; if (0 === (seen1 & 2)) $this.cox_1 = null; else $this.cox_1 = display; if (0 === (seen1 & 4)) $this.dox_1 = null; else $this.dox_1 = description; if (0 === (seen1 & 8)) $this.eox_1 = null; else $this.eox_1 = contentType; if (0 === (seen1 & 16)) $this.fox_1 = new Long(0, 0); else $this.fox_1 = length; if (0 === (seen1 & 32)) $this.gox_1 = null; else $this.gox_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_70(); 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.box_1 = usageType; this.cox_1 = display; this.dox_1 = description; this.eox_1 = contentType; this.fox_1 = length; this.gox_1 = sha2; } protoOf(Attachment).toString = function () { return 'Attachment(usageType=' + this.box_1 + ', display=' + this.cox_1 + ', description=' + this.dox_1 + ', contentType=' + this.eox_1 + ', length=' + this.fox_1.toString() + ', sha2=' + this.gox_1 + ')'; }; protoOf(Attachment).hashCode = function () { var result = this.box_1 == null ? 0 : getStringHashCode(this.box_1); result = imul(result, 31) + (this.cox_1 == null ? 0 : hashCode(this.cox_1)) | 0; result = imul(result, 31) + (this.dox_1 == null ? 0 : hashCode(this.dox_1)) | 0; result = imul(result, 31) + (this.eox_1 == null ? 0 : getStringHashCode(this.eox_1)) | 0; result = imul(result, 31) + this.fox_1.hashCode() | 0; result = imul(result, 31) + (this.gox_1 == null ? 0 : getStringHashCode(this.gox_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.box_1 == tmp0_other_with_cast.box_1)) return false; if (!equals(this.cox_1, tmp0_other_with_cast.cox_1)) return false; if (!equals(this.dox_1, tmp0_other_with_cast.dox_1)) return false; if (!(this.eox_1 == tmp0_other_with_cast.eox_1)) return false; if (!this.fox_1.equals(tmp0_other_with_cast.fox_1)) return false; if (!(this.gox_1 == tmp0_other_with_cast.gox_1)) return false; return true; }; function Companion_54() { } var Companion_instance_102; function Companion_getInstance_71() { return Companion_instance_102; } function $serializer_38() { $serializer_instance_38 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiAccount', this, 2); tmp0_serialDesc.t4f('homePage', false); tmp0_serialDesc.t4f('name', false); this.hox_1 = tmp0_serialDesc; } protoOf($serializer_38).q44 = function () { return this.hox_1; }; protoOf($serializer_38).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_38).s44 = function (decoder) { var tmp0_desc = this.hox_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return XapiAccount_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_38).iox = function (encoder, value) { var tmp0_desc = this.hox_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.w49(tmp0_desc, 0, value.jox_1); tmp1_output.w49(tmp0_desc, 1, value.kox_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_38).r44 = function (encoder, value) { return this.iox(encoder, value instanceof XapiAccount ? value : THROW_CCE()); }; var $serializer_instance_38; function $serializer_getInstance_50() { if ($serializer_instance_38 == null) new $serializer_38(); return $serializer_instance_38; } function XapiAccount_init_$Init$(seen1, homePage, name, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_50().hox_1); } $this.jox_1 = homePage; $this.kox_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.jox_1 = homePage; this.kox_1 = name; } protoOf(XapiAccount).toString = function () { return 'XapiAccount(homePage=' + this.jox_1 + ', name=' + this.kox_1 + ')'; }; protoOf(XapiAccount).hashCode = function () { var result = getStringHashCode(this.jox_1); result = imul(result, 31) + getStringHashCode(this.kox_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.jox_1 === tmp0_other_with_cast.jox_1)) return false; if (!(this.kox_1 === tmp0_other_with_cast.kox_1)) return false; return true; }; function Companion_55() { 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.lox_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; } var Companion_instance_103; function Companion_getInstance_72() { if (Companion_instance_103 == null) new Companion_55(); return Companion_instance_103; } function $serializer_39() { $serializer_instance_39 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiActivity.Interaction', this, 2); tmp0_serialDesc.t4f('id', true); tmp0_serialDesc.t4f('description', true); this.mox_1 = tmp0_serialDesc; } protoOf($serializer_39).q44 = function () { return this.mox_1; }; protoOf($serializer_39).k4g = function () { var tmp0_cached = Companion_getInstance_72().lox_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_39).s44 = function (decoder) { var tmp0_desc = this.mox_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.i48(tmp0_desc); var tmp7_cached = Companion_getInstance_72().lox_1; if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return Interaction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_39).nox = function (encoder, value) { var tmp0_desc = this.mox_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_72().lox_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.oox_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.oox_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.pox_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, tmp2_cached[1], value.pox_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_39).r44 = function (encoder, value) { return this.nox(encoder, value instanceof Interaction ? value : THROW_CCE()); }; var $serializer_instance_39; function $serializer_getInstance_51() { if ($serializer_instance_39 == null) new $serializer_39(); return $serializer_instance_39; } function Interaction_init_$Init$(seen1, id, description, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_51().mox_1); } if (0 === (seen1 & 1)) $this.oox_1 = null; else $this.oox_1 = id; if (0 === (seen1 & 2)) $this.pox_1 = null; else $this.pox_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_72(); id = id === VOID ? null : id; description = description === VOID ? null : description; this.oox_1 = id; this.pox_1 = description; } protoOf(Interaction).toString = function () { return 'Interaction(id=' + this.oox_1 + ', description=' + this.pox_1 + ')'; }; protoOf(Interaction).hashCode = function () { var result = this.oox_1 == null ? 0 : getStringHashCode(this.oox_1); result = imul(result, 31) + (this.pox_1 == null ? 0 : hashCode(this.pox_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.oox_1 == tmp0_other_with_cast.oox_1)) return false; if (!equals(this.pox_1, tmp0_other_with_cast.pox_1)) return false; return true; }; function Companion_56() { Companion_instance_104 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.qox_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_51()), new ArrayListSerializer($serializer_getInstance_51()), new ArrayListSerializer($serializer_getInstance_51()), new ArrayListSerializer($serializer_getInstance_51()), new ArrayListSerializer($serializer_getInstance_51())]; } var Companion_instance_104; function Companion_getInstance_73() { if (Companion_instance_104 == null) new Companion_56(); return Companion_instance_104; } function $serializer_40() { $serializer_instance_40 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('Activity', this, 12); tmp0_serialDesc.t4f('name', true); tmp0_serialDesc.t4f('description', true); tmp0_serialDesc.t4f('type', true); tmp0_serialDesc.t4f('extensions', true); tmp0_serialDesc.t4f('moreInfo', true); tmp0_serialDesc.t4f('interactionType', true); tmp0_serialDesc.t4f('correctResponsePattern', true); tmp0_serialDesc.t4f('choices', true); tmp0_serialDesc.t4f('scale', true); tmp0_serialDesc.t4f('source', true); tmp0_serialDesc.t4f('target', true); tmp0_serialDesc.t4f('steps', true); this.rox_1 = tmp0_serialDesc; } protoOf($serializer_40).q44 = function () { return this.rox_1; }; protoOf($serializer_40).k4g = function () { var tmp0_cached = Companion_getInstance_73().qox_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_40).s44 = function (decoder) { var tmp0_desc = this.rox_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_local9 = null; var tmp14_local10 = null; var tmp15_local11 = null; var tmp16_input = decoder.i48(tmp0_desc); var tmp17_cached = Companion_getInstance_73().qox_1; if (tmp16_input.x48()) { tmp4_local0 = tmp16_input.w48(tmp0_desc, 0, tmp17_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp16_input.w48(tmp0_desc, 1, tmp17_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp16_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp16_input.w48(tmp0_desc, 3, tmp17_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp16_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp16_input.w48(tmp0_desc, 5, XapiInteractionTypeSerializer_instance, tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp16_input.w48(tmp0_desc, 6, tmp17_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp16_input.w48(tmp0_desc, 7, tmp17_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp16_input.w48(tmp0_desc, 8, tmp17_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp16_input.w48(tmp0_desc, 9, tmp17_cached[9], tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp16_input.w48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp16_input.w48(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; } else while (tmp1_flag) { tmp2_index = tmp16_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp16_input.w48(tmp0_desc, 0, tmp17_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp16_input.w48(tmp0_desc, 1, tmp17_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp16_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp16_input.w48(tmp0_desc, 3, tmp17_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp16_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp16_input.w48(tmp0_desc, 5, XapiInteractionTypeSerializer_instance, tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp16_input.w48(tmp0_desc, 6, tmp17_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp16_input.w48(tmp0_desc, 7, tmp17_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp16_input.w48(tmp0_desc, 8, tmp17_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp16_input.w48(tmp0_desc, 9, tmp17_cached[9], tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp16_input.w48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp16_input.w48(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp16_input.j48(tmp0_desc); return XapiActivity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); }; protoOf($serializer_40).sox = function (encoder, value) { var tmp0_desc = this.rox_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_73().qox_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.tox_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, tmp2_cached[0], value.tox_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.uox_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, tmp2_cached[1], value.uox_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.vox_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.vox_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.wox_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, tmp2_cached[3], value.wox_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.xox_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.xox_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.yox_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, XapiInteractionTypeSerializer_instance, value.yox_1); } if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.zox_1 == null)) { tmp1_output.a4a(tmp0_desc, 6, tmp2_cached[6], value.zox_1); } if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.aoy_1 == null)) { tmp1_output.a4a(tmp0_desc, 7, tmp2_cached[7], value.aoy_1); } if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.boy_1 == null)) { tmp1_output.a4a(tmp0_desc, 8, tmp2_cached[8], value.boy_1); } if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.coy_1 == null)) { tmp1_output.a4a(tmp0_desc, 9, tmp2_cached[9], value.coy_1); } if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.doy_1 == null)) { tmp1_output.a4a(tmp0_desc, 10, tmp2_cached[10], value.doy_1); } if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.eoy_1 == null)) { tmp1_output.a4a(tmp0_desc, 11, tmp2_cached[11], value.eoy_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_40).r44 = function (encoder, value) { return this.sox(encoder, value instanceof XapiActivity ? value : THROW_CCE()); }; var $serializer_instance_40; function $serializer_getInstance_52() { if ($serializer_instance_40 == null) new $serializer_40(); return $serializer_instance_40; } 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_52().rox_1); } if (0 === (seen1 & 1)) $this.tox_1 = null; else $this.tox_1 = name; if (0 === (seen1 & 2)) $this.uox_1 = null; else $this.uox_1 = description; if (0 === (seen1 & 4)) $this.vox_1 = null; else $this.vox_1 = type; if (0 === (seen1 & 8)) $this.wox_1 = null; else $this.wox_1 = extensions; if (0 === (seen1 & 16)) $this.xox_1 = null; else $this.xox_1 = moreInfo; if (0 === (seen1 & 32)) $this.yox_1 = null; else $this.yox_1 = interactionType; if (0 === (seen1 & 64)) $this.zox_1 = null; else $this.zox_1 = correctResponsePattern; if (0 === (seen1 & 128)) $this.aoy_1 = null; else $this.aoy_1 = choices; if (0 === (seen1 & 256)) $this.boy_1 = null; else $this.boy_1 = scale; if (0 === (seen1 & 512)) $this.coy_1 = null; else $this.coy_1 = source; if (0 === (seen1 & 1024)) $this.doy_1 = null; else $this.doy_1 = target; if (0 === (seen1 & 2048)) $this.eoy_1 = null; else $this.eoy_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_73(); 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.tox_1 = name; this.uox_1 = description; this.vox_1 = type; this.wox_1 = extensions; this.xox_1 = moreInfo; this.yox_1 = interactionType; this.zox_1 = correctResponsePattern; this.aoy_1 = choices; this.boy_1 = scale; this.coy_1 = source; this.doy_1 = target; this.eoy_1 = steps; } protoOf(XapiActivity).toString = function () { return 'XapiActivity(name=' + this.tox_1 + ', description=' + this.uox_1 + ', type=' + this.vox_1 + ', extensions=' + this.wox_1 + ', moreInfo=' + this.xox_1 + ', interactionType=' + this.yox_1 + ', correctResponsePattern=' + this.zox_1 + ', choices=' + this.aoy_1 + ', scale=' + this.boy_1 + ', source=' + this.coy_1 + ', target=' + this.doy_1 + ', steps=' + this.eoy_1 + ')'; }; protoOf(XapiActivity).hashCode = function () { var result = this.tox_1 == null ? 0 : hashCode(this.tox_1); result = imul(result, 31) + (this.uox_1 == null ? 0 : hashCode(this.uox_1)) | 0; result = imul(result, 31) + (this.vox_1 == null ? 0 : getStringHashCode(this.vox_1)) | 0; result = imul(result, 31) + (this.wox_1 == null ? 0 : hashCode(this.wox_1)) | 0; result = imul(result, 31) + (this.xox_1 == null ? 0 : getStringHashCode(this.xox_1)) | 0; result = imul(result, 31) + (this.yox_1 == null ? 0 : this.yox_1.hashCode()) | 0; result = imul(result, 31) + (this.zox_1 == null ? 0 : hashCode(this.zox_1)) | 0; result = imul(result, 31) + (this.aoy_1 == null ? 0 : hashCode(this.aoy_1)) | 0; result = imul(result, 31) + (this.boy_1 == null ? 0 : hashCode(this.boy_1)) | 0; result = imul(result, 31) + (this.coy_1 == null ? 0 : hashCode(this.coy_1)) | 0; result = imul(result, 31) + (this.doy_1 == null ? 0 : hashCode(this.doy_1)) | 0; result = imul(result, 31) + (this.eoy_1 == null ? 0 : hashCode(this.eoy_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.tox_1, tmp0_other_with_cast.tox_1)) return false; if (!equals(this.uox_1, tmp0_other_with_cast.uox_1)) return false; if (!(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 (!(this.xox_1 == tmp0_other_with_cast.xox_1)) return false; if (!equals(this.yox_1, tmp0_other_with_cast.yox_1)) return false; if (!equals(this.zox_1, tmp0_other_with_cast.zox_1)) return false; if (!equals(this.aoy_1, tmp0_other_with_cast.aoy_1)) return false; if (!equals(this.boy_1, tmp0_other_with_cast.boy_1)) return false; if (!equals(this.coy_1, tmp0_other_with_cast.coy_1)) return false; if (!equals(this.doy_1, tmp0_other_with_cast.doy_1)) return false; if (!equals(this.eoy_1, tmp0_other_with_cast.eoy_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.xop_1 = activityEntity; this.yop_1 = activityLangMapEntries; this.zop_1 = activityInteractionEntities; this.aoq_1 = activityExtensionEntities; this.boq_1 = statementContextActivityJoin; } protoOf(ActivityEntities).foy = function (activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin) { return new ActivityEntities(activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin); }; protoOf(ActivityEntities).goy = function (activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin, $super) { activityEntity = activityEntity === VOID ? this.xop_1 : activityEntity; activityLangMapEntries = activityLangMapEntries === VOID ? this.yop_1 : activityLangMapEntries; activityInteractionEntities = activityInteractionEntities === VOID ? this.zop_1 : activityInteractionEntities; activityExtensionEntities = activityExtensionEntities === VOID ? this.aoq_1 : activityExtensionEntities; statementContextActivityJoin = statementContextActivityJoin === VOID ? this.boq_1 : statementContextActivityJoin; return $super === VOID ? this.foy(activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin) : $super.foy.call(this, activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin); }; protoOf(ActivityEntities).toString = function () { return 'ActivityEntities(activityEntity=' + this.xop_1 + ', activityLangMapEntries=' + this.yop_1 + ', activityInteractionEntities=' + this.zop_1 + ', activityExtensionEntities=' + this.aoq_1 + ', statementContextActivityJoin=' + this.boq_1 + ')'; }; protoOf(ActivityEntities).hashCode = function () { var result = this.xop_1.hashCode(); result = imul(result, 31) + hashCode(this.yop_1) | 0; result = imul(result, 31) + hashCode(this.zop_1) | 0; result = imul(result, 31) + hashCode(this.aoq_1) | 0; result = imul(result, 31) + (this.boq_1 == null ? 0 : this.boq_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.xop_1.equals(tmp0_other_with_cast.xop_1)) return false; if (!equals(this.yop_1, tmp0_other_with_cast.yop_1)) return false; if (!equals(this.zop_1, tmp0_other_with_cast.zop_1)) return false; if (!equals(this.aoq_1, tmp0_other_with_cast.aoq_1)) return false; if (!equals(this.boq_1, tmp0_other_with_cast.boq_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.hoy(activityId); var tmp9_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.aoy_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.boy_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.coy_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.doy_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.eoy_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.vox_1; var tmp_9 = _this__u8e3s4 == null ? null : _this__u8e3s4.xox_1; var tmp13_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.yox_1; var tmp14_elvis_lhs = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.loy_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.zox_1; var tmp_12; if (tmp16_safe_receiver == null) { tmp_12 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.' call // Inline function 'kotlinx.serialization.encodeToString' call // Inline function 'kotlinx.serialization.serializer' call var this_0 = json.t45(); // Inline function 'kotlinx.serialization.internal.cast' call var this_1 = serializer(this_0, createKType(getKClass(List), arrayOf([createInvariantKTypeProjection(createKType(PrimitiveClasses_getInstance().g8(), arrayOf([]), false))]), false)); var tmp$ret$16 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE(); tmp_12 = json.r45(tmp$ret$16, tmp16_safe_receiver); } var tmp_13 = new ActivityEntity(activityUid, activityId, tmp_8, tmp_9, tmp_11, tmp_12); var tmp20_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.tox_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.uox_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.wox_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.hoy(key), xapiRequireValidIRI(key, activityId + ' extension ' + key + ' is not a valid IRI'), json.r45(Companion_instance_22.n4r(), value)); destination_6.i1(tmp$ret$29); } tmp_20 = destination_6; } var tmp23_elvis_lhs = tmp_20; return new ActivityEntities(tmp_13, tmp_18, tmp_19, tmp23_elvis_lhs == null ? emptyList() : tmp23_elvis_lhs); } function toEntities$toLangMapEntries(_this__u8e3s4, activityUid, $stringHasher, propName, almeAieHash) { almeAieHash = almeAieHash === VOID ? new Long(0, 0) : almeAieHash; // Inline function 'kotlin.collections.map' call var this_0 = _this__u8e3s4.q2(); // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.toLangMapEntries.' call // Inline function 'kotlin.collections.component1' call var lang = item.s2(); // Inline function 'kotlin.collections.component2' call var text = item.t2(); var tmp$ret$2 = new ActivityLangMapEntry(activityUid, $stringHasher.hoy(propName + '-' + lang), lang, propName, text, almeAieHash); destination.i1(tmp$ret$2); } return destination; } function toEntities$toEntities(_this__u8e3s4, $stringHasher, activityUid, propId, propName) { var aieHash = $stringHasher.hoy('' + propId + _this__u8e3s4.oox_1); var tmp = new ActivityInteractionEntity(activityUid, aieHash, propId, _this__u8e3s4.oox_1); var tmp0_safe_receiver = _this__u8e3s4.pox_1; return to(tmp, toEmptyIfNull(tmp0_safe_receiver == null ? null : toEntities$toLangMapEntries(tmp0_safe_receiver, activityUid, $stringHasher, propName + '-' + _this__u8e3s4.oox_1, aieHash))); } function Companion_57() { } protoOf(Companion_57).n4r = function () { return XapiActorSerializer_getInstance(); }; protoOf(Companion_57).v4g = function (typeParamsSerializers) { return this.n4r(); }; var Companion_instance_105; function Companion_getInstance_74() { return Companion_instance_105; } function XapiActor() { } function XapiActorSerializer() { XapiActorSerializer_instance = this; JsonContentPolymorphicSerializer.call(this, getKClass(XapiActor)); } protoOf(XapiActorSerializer).l4r = function (element) { var tmp0_safe_receiver = get_jsonObject(element).ba('type'); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver); var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g3b(); var tmp; if (tmp2_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.model.XapiActorSerializer.selectDeserializer.' call tmp = valueOf(tmp2_safe_receiver); } var tmp3_elvis_lhs = tmp; var objectType = tmp3_elvis_lhs == null ? XapiObjectType_Agent_getInstance() : tmp3_elvis_lhs; var tmp_0; switch (objectType.za_1) { case 3: tmp_0 = Companion_instance_106.n4r(); break; case 4: tmp_0 = Companion_getInstance_79().n4r(); break; default: throw new XapiException(400, 'Invalid object type for actor: must be Agent or Group'); } return tmp_0; }; var XapiActorSerializer_instance; function XapiActorSerializer_getInstance() { if (XapiActorSerializer_instance == null) new XapiActorSerializer(); return XapiActorSerializer_instance; } function identifierHash(_this__u8e3s4, xxHasher) { var tmp; if (!(_this__u8e3s4.poy() == null)) { var tmp0_safe_receiver = _this__u8e3s4.poy(); var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kox_1; var tmp1_safe_receiver = _this__u8e3s4.poy(); tmp = '' + tmp_0 + '@' + (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.jox_1); } else if (!(_this__u8e3s4.moy() == null)) { tmp = _this__u8e3s4.moy(); } else if (!(_this__u8e3s4.noy() == null)) { tmp = _this__u8e3s4.noy(); } else if (!(_this__u8e3s4.ooy() == null)) { tmp = _this__u8e3s4.ooy(); } 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.hoy(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.ros_1 = actor; this.sos_1 = groupMemberAgents; this.tos_1 = groupMemberJoins; } protoOf(ActorEntities).toString = function () { return 'ActorEntities(actor=' + this.ros_1 + ', groupMemberAgents=' + this.sos_1 + ', groupMemberJoins=' + this.tos_1 + ')'; }; protoOf(ActorEntities).hashCode = function () { var result = this.ros_1.hashCode(); result = imul(result, 31) + hashCode(this.sos_1) | 0; result = imul(result, 31) + hashCode(this.tos_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.ros_1.equals(tmp0_other_with_cast.ros_1)) return false; if (!equals(this.sos_1, tmp0_other_with_cast.sos_1)) return false; if (!equals(this.tos_1, tmp0_other_with_cast.tos_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_58() { } protoOf(Companion_58).n4r = function () { return $serializer_getInstance_53(); }; var Companion_instance_106; function Companion_getInstance_75() { return Companion_instance_106; } function $serializer_41() { $serializer_instance_41 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiAgent', this, 6); tmp0_serialDesc.t4f('name', true); tmp0_serialDesc.t4f('mbox', true); tmp0_serialDesc.t4f('mbox_sha1sum', true); tmp0_serialDesc.t4f('openid', true); tmp0_serialDesc.t4f('objectType', true); tmp0_serialDesc.t4f('account', true); this.toy_1 = tmp0_serialDesc; } protoOf($serializer_41).q44 = function () { return this.toy_1; }; protoOf($serializer_41).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(XapiObjectTypeSerializer_instance), get_nullable($serializer_getInstance_50())]; }; protoOf($serializer_41).s44 = function (decoder) { var tmp0_desc = this.toy_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_input = decoder.i48(tmp0_desc); if (tmp10_input.x48()) { tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, $serializer_getInstance_50(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, $serializer_getInstance_50(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.j48(tmp0_desc); return XapiAgent_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_41).uoy = function (encoder, value) { var tmp0_desc = this.toy_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.voy_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.voy_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.woy_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.woy_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.xoy_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.xoy_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.yoy_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.yoy_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.zoy_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, XapiObjectTypeSerializer_instance, value.zoy_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.aoz_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, $serializer_getInstance_50(), value.aoz_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_41).r44 = function (encoder, value) { return this.uoy(encoder, value instanceof XapiAgent ? value : THROW_CCE()); }; var $serializer_instance_41; function $serializer_getInstance_53() { if ($serializer_instance_41 == null) new $serializer_41(); return $serializer_instance_41; } function XapiAgent_init_$Init$(seen1, name, mbox, mbox_sha1sum, openid, objectType, account, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_53().toy_1); } if (0 === (seen1 & 1)) $this.voy_1 = null; else $this.voy_1 = name; if (0 === (seen1 & 2)) $this.woy_1 = null; else $this.woy_1 = mbox; if (0 === (seen1 & 4)) $this.xoy_1 = null; else $this.xoy_1 = mbox_sha1sum; if (0 === (seen1 & 8)) $this.yoy_1 = null; else $this.yoy_1 = openid; if (0 === (seen1 & 16)) $this.zoy_1 = null; else $this.zoy_1 = objectType; if (0 === (seen1 & 32)) $this.aoz_1 = null; else $this.aoz_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.voy_1 = name; this.woy_1 = mbox; this.xoy_1 = mbox_sha1sum; this.yoy_1 = openid; this.zoy_1 = objectType; this.aoz_1 = account; } protoOf(XapiAgent).moy = function () { return this.woy_1; }; protoOf(XapiAgent).noy = function () { return this.xoy_1; }; protoOf(XapiAgent).ooy = function () { return this.yoy_1; }; protoOf(XapiAgent).boz = function () { return this.zoy_1; }; protoOf(XapiAgent).poy = function () { return this.aoz_1; }; protoOf(XapiAgent).toString = function () { return 'XapiAgent(name=' + this.voy_1 + ', mbox=' + this.woy_1 + ', mbox_sha1sum=' + this.xoy_1 + ', openid=' + this.yoy_1 + ', objectType=' + this.zoy_1 + ', account=' + this.aoz_1 + ')'; }; protoOf(XapiAgent).hashCode = function () { var result = this.voy_1 == null ? 0 : getStringHashCode(this.voy_1); result = imul(result, 31) + (this.woy_1 == null ? 0 : getStringHashCode(this.woy_1)) | 0; result = imul(result, 31) + (this.xoy_1 == null ? 0 : getStringHashCode(this.xoy_1)) | 0; result = imul(result, 31) + (this.yoy_1 == null ? 0 : getStringHashCode(this.yoy_1)) | 0; result = imul(result, 31) + (this.zoy_1 == null ? 0 : this.zoy_1.hashCode()) | 0; result = imul(result, 31) + (this.aoz_1 == null ? 0 : this.aoz_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.voy_1 == tmp0_other_with_cast.voy_1)) return false; if (!(this.woy_1 == tmp0_other_with_cast.woy_1)) return false; if (!(this.xoy_1 == tmp0_other_with_cast.xoy_1)) return false; if (!(this.yoy_1 == tmp0_other_with_cast.yoy_1)) return false; if (!equals(this.zoy_1, tmp0_other_with_cast.zoy_1)) return false; if (!equals(this.aoz_1, tmp0_other_with_cast.aoz_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.woy_1; var tmp7_actorMbox_sha1sum = _this__u8e3s4.xoy_1; var tmp8_actorOpenid = _this__u8e3s4.yoy_1; var tmp1_safe_receiver = _this__u8e3s4.aoz_1; var tmp9_actorAccountName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.kox_1; var tmp2_safe_receiver = _this__u8e3s4.aoz_1; var tmp10_actorAccountHomePage = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.jox_1; var tmp3_safe_receiver = _this__u8e3s4.voy_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.hoy(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_59() { Companion_instance_107 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.coz_1 = [null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), JsonElementSerializer_getInstance())]; } var Companion_instance_107; function Companion_getInstance_76() { if (Companion_instance_107 == null) new Companion_59(); return Companion_instance_107; } function $serializer_42() { $serializer_instance_42 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiContext', this, 9); tmp0_serialDesc.t4f('instructor', true); tmp0_serialDesc.t4f('registration', true); tmp0_serialDesc.t4f('language', true); tmp0_serialDesc.t4f('platform', true); tmp0_serialDesc.t4f('revision', true); tmp0_serialDesc.t4f('team', true); tmp0_serialDesc.t4f('statement', true); tmp0_serialDesc.t4f('contextActivities', true); tmp0_serialDesc.t4f('extensions', true); this.doz_1 = tmp0_serialDesc; } protoOf($serializer_42).q44 = function () { return this.doz_1; }; protoOf($serializer_42).k4g = function () { var tmp0_cached = Companion_getInstance_76().coz_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_60()), get_nullable(XapiContextActivitiesSerializer_getInstance()), get_nullable(tmp0_cached[8])]; }; protoOf($serializer_42).s44 = function (decoder) { var tmp0_desc = this.doz_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_input = decoder.i48(tmp0_desc); var tmp14_cached = Companion_getInstance_76().coz_1; if (tmp13_input.x48()) { tmp4_local0 = tmp13_input.w48(tmp0_desc, 0, XapiActorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.w48(tmp0_desc, 5, XapiActorSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.w48(tmp0_desc, 6, $serializer_getInstance_60(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.w48(tmp0_desc, 7, XapiContextActivitiesSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.w48(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.w48(tmp0_desc, 0, XapiActorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.w48(tmp0_desc, 5, XapiActorSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.w48(tmp0_desc, 6, $serializer_getInstance_60(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.w48(tmp0_desc, 7, XapiContextActivitiesSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.w48(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.j48(tmp0_desc); return XapiContext_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); }; protoOf($serializer_42).eoz = function (encoder, value) { var tmp0_desc = this.doz_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_76().coz_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.foz_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, XapiActorSerializer_getInstance(), value.foz_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.goz_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.goz_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.hoz_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.hoz_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.ioz_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.ioz_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.joz_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.joz_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.koz_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, XapiActorSerializer_getInstance(), value.koz_1); } if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.loz_1 == null)) { tmp1_output.a4a(tmp0_desc, 6, $serializer_getInstance_60(), value.loz_1); } if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.moz_1 == null)) { tmp1_output.a4a(tmp0_desc, 7, XapiContextActivitiesSerializer_getInstance(), value.moz_1); } if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.noz_1 == null)) { tmp1_output.a4a(tmp0_desc, 8, tmp2_cached[8], value.noz_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_42).r44 = function (encoder, value) { return this.eoz(encoder, value instanceof XapiContext ? value : THROW_CCE()); }; var $serializer_instance_42; function $serializer_getInstance_54() { if ($serializer_instance_42 == null) new $serializer_42(); return $serializer_instance_42; } 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_54().doz_1); } if (0 === (seen1 & 1)) $this.foz_1 = null; else $this.foz_1 = instructor; if (0 === (seen1 & 2)) $this.goz_1 = null; else $this.goz_1 = registration; if (0 === (seen1 & 4)) $this.hoz_1 = null; else $this.hoz_1 = language; if (0 === (seen1 & 8)) $this.ioz_1 = null; else $this.ioz_1 = platform; if (0 === (seen1 & 16)) $this.joz_1 = null; else $this.joz_1 = revision; if (0 === (seen1 & 32)) $this.koz_1 = null; else $this.koz_1 = team; if (0 === (seen1 & 64)) $this.loz_1 = null; else $this.loz_1 = statement; if (0 === (seen1 & 128)) $this.moz_1 = null; else $this.moz_1 = contextActivities; if (0 === (seen1 & 256)) $this.noz_1 = null; else $this.noz_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_76(); 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.foz_1 = instructor; this.goz_1 = registration; this.hoz_1 = language; this.ioz_1 = platform; this.joz_1 = revision; this.koz_1 = team; this.loz_1 = statement; this.moz_1 = contextActivities; this.noz_1 = extensions; } protoOf(XapiContext).toString = function () { return 'XapiContext(instructor=' + this.foz_1 + ', registration=' + this.goz_1 + ', language=' + this.hoz_1 + ', platform=' + this.ioz_1 + ', revision=' + this.joz_1 + ', team=' + this.koz_1 + ', statement=' + this.loz_1 + ', contextActivities=' + this.moz_1 + ', extensions=' + this.noz_1 + ')'; }; protoOf(XapiContext).hashCode = function () { var result = this.foz_1 == null ? 0 : hashCode(this.foz_1); result = imul(result, 31) + (this.goz_1 == null ? 0 : getStringHashCode(this.goz_1)) | 0; result = imul(result, 31) + (this.hoz_1 == null ? 0 : getStringHashCode(this.hoz_1)) | 0; result = imul(result, 31) + (this.ioz_1 == null ? 0 : getStringHashCode(this.ioz_1)) | 0; result = imul(result, 31) + (this.joz_1 == null ? 0 : getStringHashCode(this.joz_1)) | 0; result = imul(result, 31) + (this.koz_1 == null ? 0 : hashCode(this.koz_1)) | 0; result = imul(result, 31) + (this.loz_1 == null ? 0 : this.loz_1.hashCode()) | 0; result = imul(result, 31) + (this.moz_1 == null ? 0 : this.moz_1.hashCode()) | 0; result = imul(result, 31) + (this.noz_1 == null ? 0 : hashCode(this.noz_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.foz_1, tmp0_other_with_cast.foz_1)) return false; if (!(this.goz_1 == tmp0_other_with_cast.goz_1)) return false; if (!(this.hoz_1 == tmp0_other_with_cast.hoz_1)) return false; if (!(this.ioz_1 == tmp0_other_with_cast.ioz_1)) return false; if (!(this.joz_1 == tmp0_other_with_cast.joz_1)) return false; if (!equals(this.koz_1, tmp0_other_with_cast.koz_1)) return false; if (!equals(this.loz_1, tmp0_other_with_cast.loz_1)) return false; if (!equals(this.moz_1, tmp0_other_with_cast.moz_1)) return false; if (!equals(this.noz_1, tmp0_other_with_cast.noz_1)) return false; return true; }; function Companion_60() { } var Companion_instance_108; function Companion_getInstance_77() { return Companion_instance_108; } 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.ooz_1 = parent; this.poz_1 = grouping; this.qoz_1 = category; this.roz_1 = other; } protoOf(XapiContextActivities).toString = function () { return 'XapiContextActivities(parent=' + this.ooz_1 + ', grouping=' + this.poz_1 + ', category=' + this.qoz_1 + ', other=' + this.roz_1 + ')'; }; protoOf(XapiContextActivities).hashCode = function () { var result = this.ooz_1 == null ? 0 : hashCode(this.ooz_1); result = imul(result, 31) + (this.poz_1 == null ? 0 : hashCode(this.poz_1)) | 0; result = imul(result, 31) + (this.qoz_1 == null ? 0 : hashCode(this.qoz_1)) | 0; result = imul(result, 31) + (this.roz_1 == null ? 0 : hashCode(this.roz_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.ooz_1, tmp0_other_with_cast.ooz_1)) return false; if (!equals(this.poz_1, tmp0_other_with_cast.poz_1)) return false; if (!equals(this.qoz_1, tmp0_other_with_cast.qoz_1)) return false; if (!equals(this.roz_1, tmp0_other_with_cast.roz_1)) return false; return true; }; function deserialize$propertyToObjectList(jsonObject, jsonDecoder, propName) { var jsonElement = jsonObject.ba(propName); var tmp; if (!(jsonElement == null)) { tmp = decodeListOrSingleObjectAsList(jsonDecoder.m4r(), Companion_instance_116.n4r(), jsonElement); } else { tmp = null; } return tmp; } function XapiContextActivitiesSerializer() { XapiContextActivitiesSerializer_instance = this; this.soz_1 = Companion_getInstance_78().n4r().q44(); } protoOf(XapiContextActivitiesSerializer).q44 = function () { return this.soz_1; }; protoOf(XapiContextActivitiesSerializer).uoz = function (encoder, value) { encoder.z49(Companion_getInstance_78().n4r(), toSurrogate(value)); }; protoOf(XapiContextActivitiesSerializer).r44 = function (encoder, value) { return this.uoz(encoder, value instanceof XapiContextActivities ? value : THROW_CCE()); }; protoOf(XapiContextActivitiesSerializer).s44 = function (decoder) { var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null; var tmp; if (tmp0_elvis_lhs == null) { throw IllegalStateException_init_$Create$_0(); } else { tmp = tmp0_elvis_lhs; } var jsonDecoder = tmp; var tmp_0 = jsonDecoder.k4r(); var jsonObject = tmp_0 instanceof JsonObject ? tmp_0 : THROW_CCE(); return new XapiContextActivities(deserialize$propertyToObjectList(jsonObject, jsonDecoder, 'parent'), deserialize$propertyToObjectList(jsonObject, jsonDecoder, 'grouping'), deserialize$propertyToObjectList(jsonObject, jsonDecoder, 'category'), deserialize$propertyToObjectList(jsonObject, jsonDecoder, 'other')); }; var XapiContextActivitiesSerializer_instance; function XapiContextActivitiesSerializer_getInstance() { if (XapiContextActivitiesSerializer_instance == null) new XapiContextActivitiesSerializer(); return XapiContextActivitiesSerializer_instance; } function Companion_61() { Companion_instance_109 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.toz_1 = [new ArrayListSerializer($serializer_getInstance_60()), new ArrayListSerializer($serializer_getInstance_60()), new ArrayListSerializer($serializer_getInstance_60()), new ArrayListSerializer($serializer_getInstance_60())]; } protoOf(Companion_61).n4r = function () { return $serializer_getInstance_55(); }; var Companion_instance_109; function Companion_getInstance_78() { if (Companion_instance_109 == null) new Companion_61(); return Companion_instance_109; } function $serializer_43() { $serializer_instance_43 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('XapiContextActivities', this, 4); tmp0_serialDesc.t4f('parent', true); tmp0_serialDesc.t4f('grouping', true); tmp0_serialDesc.t4f('category', true); tmp0_serialDesc.t4f('other', true); this.voz_1 = tmp0_serialDesc; } protoOf($serializer_43).q44 = function () { return this.voz_1; }; protoOf($serializer_43).k4g = function () { var tmp0_cached = Companion_getInstance_78().toz_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_43).s44 = function (decoder) { var tmp0_desc = this.voz_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.i48(tmp0_desc); var tmp9_cached = Companion_getInstance_78().toz_1; if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return XapiContextActivitiesSurrogate_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_43).woz = function (encoder, value) { var tmp0_desc = this.voz_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_78().toz_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.xoz_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, tmp2_cached[0], value.xoz_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.yoz_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, tmp2_cached[1], value.yoz_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.zoz_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, tmp2_cached[2], value.zoz_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.ap0_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, tmp2_cached[3], value.ap0_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_43).r44 = function (encoder, value) { return this.woz(encoder, value instanceof XapiContextActivitiesSurrogate ? value : THROW_CCE()); }; var $serializer_instance_43; function $serializer_getInstance_55() { if ($serializer_instance_43 == null) new $serializer_43(); return $serializer_instance_43; } function XapiContextActivitiesSurrogate_init_$Init$(seen1, parent, grouping, category, other, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_55().voz_1); } if (0 === (seen1 & 1)) $this.xoz_1 = null; else $this.xoz_1 = parent; if (0 === (seen1 & 2)) $this.yoz_1 = null; else $this.yoz_1 = grouping; if (0 === (seen1 & 4)) $this.zoz_1 = null; else $this.zoz_1 = category; if (0 === (seen1 & 8)) $this.ap0_1 = null; else $this.ap0_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_78(); parent = parent === VOID ? null : parent; grouping = grouping === VOID ? null : grouping; category = category === VOID ? null : category; other = other === VOID ? null : other; this.xoz_1 = parent; this.yoz_1 = grouping; this.zoz_1 = category; this.ap0_1 = other; } function toSurrogate(_this__u8e3s4) { return new XapiContextActivitiesSurrogate(_this__u8e3s4.ooz_1, _this__u8e3s4.poz_1, _this__u8e3s4.qoz_1, _this__u8e3s4.roz_1); } function toEntities_1(_this__u8e3s4, stringHasher, json, statementUuid) { var tmp = toEntities$toEntitiesInternal(_this__u8e3s4.ooz_1, stringHasher, json, statementUuid, 1); var tmp_0 = plus(tmp, toEntities$toEntitiesInternal(_this__u8e3s4.poz_1, stringHasher, json, statementUuid, 2)); var tmp_1 = plus(tmp_0, toEntities$toEntitiesInternal(_this__u8e3s4.qoz_1, stringHasher, json, statementUuid, 3)); return plus(tmp_1, toEntities$toEntitiesInternal(_this__u8e3s4.roz_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.hoy(item.cp0_1); var scajToHash = stringHasher.hoy('' + contextType + '-' + item.cp0_1); var statementContextActivityJoin = new StatementContextActivityJoin(statementUuid.flp(), statementUuid.glp(), scajToHash, contextType, activityUid, item.cp0_1); var tmp0_safe_receiver = item.dp0_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toEntities(tmp0_safe_receiver, item.cp0_1, stringHasher, json); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.goy(VOID, VOID, VOID, VOID, statementContextActivityJoin); var tmp$ret$0 = tmp2_elvis_lhs == null ? new ActivityEntities(new ActivityEntity(activityUid, item.cp0_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_62() { Companion_instance_110 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.soy_1 = [null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_53())]; } protoOf(Companion_62).n4r = function () { return $serializer_getInstance_56(); }; var Companion_instance_110; function Companion_getInstance_79() { if (Companion_instance_110 == null) new Companion_62(); return Companion_instance_110; } function $serializer_44() { $serializer_instance_44 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiGroup', this, 7); tmp0_serialDesc.t4f('name', true); tmp0_serialDesc.t4f('mbox', true); tmp0_serialDesc.t4f('mbox_sha1sum', true); tmp0_serialDesc.t4f('openid', true); tmp0_serialDesc.t4f('objectType', true); tmp0_serialDesc.t4f('account', true); tmp0_serialDesc.t4f('member', true); this.ep0_1 = tmp0_serialDesc; } protoOf($serializer_44).q44 = function () { return this.ep0_1; }; protoOf($serializer_44).k4g = function () { var tmp0_cached = Companion_getInstance_79().soy_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_50()), tmp0_cached[6]]; }; protoOf($serializer_44).s44 = function (decoder) { var tmp0_desc = this.ep0_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_input = decoder.i48(tmp0_desc); var tmp12_cached = Companion_getInstance_79().soy_1; if (tmp11_input.x48()) { tmp4_local0 = tmp11_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.w48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.w48(tmp0_desc, 5, $serializer_getInstance_50(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.u48(tmp0_desc, 6, tmp12_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.w48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.w48(tmp0_desc, 5, $serializer_getInstance_50(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.u48(tmp0_desc, 6, tmp12_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.j48(tmp0_desc); return XapiGroup_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_44).fp0 = function (encoder, value) { var tmp0_desc = this.ep0_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_79().soy_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.gp0_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.gp0_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.hp0_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.hp0_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.ip0_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.ip0_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.jp0_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.jp0_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.kp0_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, XapiObjectTypeSerializer_instance, value.kp0_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.lp0_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, $serializer_getInstance_50(), value.lp0_1); } if (tmp1_output.e4a(tmp0_desc, 6) ? true : !equals(value.mp0_1, emptyList())) { tmp1_output.y49(tmp0_desc, 6, tmp2_cached[6], value.mp0_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_44).r44 = function (encoder, value) { return this.fp0(encoder, value instanceof XapiGroup ? value : THROW_CCE()); }; var $serializer_instance_44; function $serializer_getInstance_56() { if ($serializer_instance_44 == null) new $serializer_44(); return $serializer_instance_44; } function XapiGroup_init_$Init$(seen1, name, mbox, mbox_sha1sum, openid, objectType, account, member, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_56().ep0_1); } if (0 === (seen1 & 1)) $this.gp0_1 = null; else $this.gp0_1 = name; if (0 === (seen1 & 2)) $this.hp0_1 = null; else $this.hp0_1 = mbox; if (0 === (seen1 & 4)) $this.ip0_1 = null; else $this.ip0_1 = mbox_sha1sum; if (0 === (seen1 & 8)) $this.jp0_1 = null; else $this.jp0_1 = openid; if (0 === (seen1 & 16)) $this.kp0_1 = null; else $this.kp0_1 = objectType; if (0 === (seen1 & 32)) $this.lp0_1 = null; else $this.lp0_1 = account; if (0 === (seen1 & 64)) $this.mp0_1 = emptyList(); else $this.mp0_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_79(); 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.gp0_1 = name; this.hp0_1 = mbox; this.ip0_1 = mbox_sha1sum; this.jp0_1 = openid; this.kp0_1 = objectType; this.lp0_1 = account; this.mp0_1 = member; } protoOf(XapiGroup).moy = function () { return this.hp0_1; }; protoOf(XapiGroup).noy = function () { return this.ip0_1; }; protoOf(XapiGroup).ooy = function () { return this.jp0_1; }; protoOf(XapiGroup).boz = function () { return this.kp0_1; }; protoOf(XapiGroup).poy = function () { return this.lp0_1; }; protoOf(XapiGroup).toString = function () { return 'XapiGroup(name=' + this.gp0_1 + ', mbox=' + this.hp0_1 + ', mbox_sha1sum=' + this.ip0_1 + ', openid=' + this.jp0_1 + ', objectType=' + this.kp0_1 + ', account=' + this.lp0_1 + ', member=' + this.mp0_1 + ')'; }; protoOf(XapiGroup).hashCode = function () { var result = this.gp0_1 == null ? 0 : getStringHashCode(this.gp0_1); result = imul(result, 31) + (this.hp0_1 == null ? 0 : getStringHashCode(this.hp0_1)) | 0; result = imul(result, 31) + (this.ip0_1 == null ? 0 : getStringHashCode(this.ip0_1)) | 0; result = imul(result, 31) + (this.jp0_1 == null ? 0 : getStringHashCode(this.jp0_1)) | 0; result = imul(result, 31) + (this.kp0_1 == null ? 0 : this.kp0_1.hashCode()) | 0; result = imul(result, 31) + (this.lp0_1 == null ? 0 : this.lp0_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.mp0_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.gp0_1 == tmp0_other_with_cast.gp0_1)) return false; if (!(this.hp0_1 == tmp0_other_with_cast.hp0_1)) return false; if (!(this.ip0_1 == tmp0_other_with_cast.ip0_1)) return false; if (!(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; 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.mp0_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.np0(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.op0(toByteArray(element.w6_1)); } var memberHash = hasher.pp0(); var tmp_0; if (get_isAnonymous(_this__u8e3s4)) { tmp_0 = primaryKeyManager.n62(68); } else { tmp_0 = identifierHash(_this__u8e3s4, stringHasher); } var tmp2_actorUid = tmp_0; var tmp4_actorName = _this__u8e3s4.gp0_1; var tmp5_actorMbox = _this__u8e3s4.hp0_1; var tmp6_actorMbox_sha1sum = _this__u8e3s4.ip0_1; var tmp7_actorOpenid = _this__u8e3s4.jp0_1; var tmp0_safe_receiver = _this__u8e3s4.lp0_1; var tmp8_actorAccountName = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kox_1; var tmp1_safe_receiver = _this__u8e3s4.lp0_1; var tmp9_actorAccountHomePage = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.jox_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.zih_1, item_1.x6_1.zih_1, modTime); destination_1.i1(tmp$ret$8); } return new ActorEntities(groupActor, tmp_1, destination_1); } function get_isAnonymous(_this__u8e3s4) { return (_this__u8e3s4.hp0_1 == null ? _this__u8e3s4.jp0_1 == null : false) ? _this__u8e3s4.lp0_1 == null : false; } function sam$kotlin_Comparator$0_0(function_0) { this.qp0_1 = function_0; } protoOf(sam$kotlin_Comparator$0_0).pa = function (a, b) { return this.qp0_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.rp0_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_63() { Companion_instance_111 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.rp0_1 = lazy(tmp_0, XapiInteractionType$Companion$_anonymous__3zafad); } protoOf(Companion_63).sp0 = 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.koy_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_63).n4r = function () { return _get_$cachedSerializer__te6jhj_0(this); }; protoOf(Companion_63).v4g = function (typeParamsSerializers) { return this.n4r(); }; var Companion_instance_111; function Companion_getInstance_80() { XapiInteractionType_initEntries(); if (Companion_instance_111 == null) new Companion_63(); return Companion_instance_111; } 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_80(); } var $ENTRIES_0; function XapiInteractionType(name, ordinal, jsonFieldValue, dbFlag) { Enum.call(this, name, ordinal); this.koy_1 = jsonFieldValue; this.loy_1 = dbFlag; } function XapiInteractionTypeSerializer() { } protoOf(XapiInteractionTypeSerializer).q44 = function () { // Inline function 'kotlinx.serialization.descriptors.serialDescriptor' call // Inline function 'kotlinx.serialization.serializer' call // Inline function 'kotlinx.serialization.internal.cast' call var this_0 = serializer_2(createKType(PrimitiveClasses_getInstance().g8(), arrayOf([]), false)); return (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).q44(); }; protoOf(XapiInteractionTypeSerializer).s44 = function (decoder) { return Companion_getInstance_80().sp0(decoder.d48()); }; protoOf(XapiInteractionTypeSerializer).tp0 = function (encoder, value) { encoder.l49(value.koy_1); }; protoOf(XapiInteractionTypeSerializer).r44 = function (encoder, value) { return this.tp0(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.up0_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_64() { Companion_instance_112 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.up0_1 = lazy(tmp_0, XapiObjectType$Companion$_anonymous__v4av7w); } protoOf(Companion_64).n4r = function () { return _get_$cachedSerializer__te6jhj_1(this); }; protoOf(Companion_64).v4g = function (typeParamsSerializers) { return this.n4r(); }; var Companion_instance_112; function Companion_getInstance_81() { XapiObjectType_initEntries(); if (Companion_instance_112 == null) new Companion_64(); return Companion_instance_112; } 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_81(); } function XapiObjectType(name, ordinal) { Enum.call(this, name, ordinal); } function XapiObjectTypeSerializer() { } protoOf(XapiObjectTypeSerializer).q44 = function () { // Inline function 'kotlinx.serialization.descriptors.serialDescriptor' call // Inline function 'kotlinx.serialization.serializer' call // Inline function 'kotlinx.serialization.internal.cast' call var this_0 = serializer_2(createKType(PrimitiveClasses_getInstance().g8(), arrayOf([]), false)); return (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).q44(); }; protoOf(XapiObjectTypeSerializer).s44 = function (decoder) { var strValue = decoder.d48(); return valueOf(strValue); }; protoOf(XapiObjectTypeSerializer).vp0 = function (encoder, value) { encoder.l49(value.toString()); }; protoOf(XapiObjectTypeSerializer).r44 = function (encoder, value) { return this.vp0(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_65() { } var Companion_instance_113; function Companion_getInstance_82() { return Companion_instance_113; } function $serializer_45() { $serializer_instance_45 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiResult.Score', this, 4); tmp0_serialDesc.t4f('scaled', true); tmp0_serialDesc.t4f('raw', true); tmp0_serialDesc.t4f('min', true); tmp0_serialDesc.t4f('max', true); this.wp0_1 = tmp0_serialDesc; } protoOf($serializer_45).q44 = function () { return this.wp0_1; }; protoOf($serializer_45).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance())]; }; protoOf($serializer_45).s44 = function (decoder) { var tmp0_desc = this.wp0_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.i48(tmp0_desc); if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, FloatSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, FloatSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, FloatSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, FloatSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return Score_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_45).xp0 = function (encoder, value) { var tmp0_desc = this.wp0_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.yp0_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, FloatSerializer_getInstance(), value.yp0_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.zp0_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, FloatSerializer_getInstance(), value.zp0_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.ap1_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, FloatSerializer_getInstance(), value.ap1_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.bp1_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, FloatSerializer_getInstance(), value.bp1_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_45).r44 = function (encoder, value) { return this.xp0(encoder, value instanceof Score ? value : THROW_CCE()); }; var $serializer_instance_45; function $serializer_getInstance_57() { if ($serializer_instance_45 == null) new $serializer_45(); return $serializer_instance_45; } function Score_init_$Init$(seen1, scaled, raw, min, max, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_57().wp0_1); } if (0 === (seen1 & 1)) $this.yp0_1 = null; else $this.yp0_1 = scaled; if (0 === (seen1 & 2)) $this.zp0_1 = null; else $this.zp0_1 = raw; if (0 === (seen1 & 4)) $this.ap1_1 = null; else $this.ap1_1 = min; if (0 === (seen1 & 8)) $this.bp1_1 = null; else $this.bp1_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.yp0_1 = scaled; this.zp0_1 = raw; this.ap1_1 = min; this.bp1_1 = max; } protoOf(Score).toString = function () { return 'Score(scaled=' + this.yp0_1 + ', raw=' + this.zp0_1 + ', min=' + this.ap1_1 + ', max=' + this.bp1_1 + ')'; }; protoOf(Score).hashCode = function () { var result = this.yp0_1 == null ? 0 : getNumberHashCode(this.yp0_1); result = imul(result, 31) + (this.zp0_1 == null ? 0 : getNumberHashCode(this.zp0_1)) | 0; result = imul(result, 31) + (this.ap1_1 == null ? 0 : getNumberHashCode(this.ap1_1)) | 0; result = imul(result, 31) + (this.bp1_1 == null ? 0 : getNumberHashCode(this.bp1_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.yp0_1, tmp0_other_with_cast.yp0_1)) return false; if (!equals(this.zp0_1, tmp0_other_with_cast.zp0_1)) return false; if (!equals(this.ap1_1, tmp0_other_with_cast.ap1_1)) return false; if (!equals(this.bp1_1, tmp0_other_with_cast.bp1_1)) return false; return true; }; function Companion_66() { 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.cp1_1 = [null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), JsonElementSerializer_getInstance())]; } var Companion_instance_114; function Companion_getInstance_83() { if (Companion_instance_114 == null) new Companion_66(); return Companion_instance_114; } function $serializer_46() { $serializer_instance_46 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiResult', this, 6); tmp0_serialDesc.t4f('completion', true); tmp0_serialDesc.t4f('success', true); tmp0_serialDesc.t4f('score', true); tmp0_serialDesc.t4f('duration', true); tmp0_serialDesc.t4f('response', true); tmp0_serialDesc.t4f('extensions', true); this.dp1_1 = tmp0_serialDesc; } protoOf($serializer_46).q44 = function () { return this.dp1_1; }; protoOf($serializer_46).k4g = function () { var tmp0_cached = Companion_getInstance_83().cp1_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_57()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[5])]; }; protoOf($serializer_46).s44 = function (decoder) { var tmp0_desc = this.dp1_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_input = decoder.i48(tmp0_desc); var tmp11_cached = Companion_getInstance_83().cp1_1; if (tmp10_input.x48()) { tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, $serializer_getInstance_57(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, $serializer_getInstance_57(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.j48(tmp0_desc); return XapiResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_46).ep1 = function (encoder, value) { var tmp0_desc = this.dp1_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_83().cp1_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.nov_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, BooleanSerializer_getInstance(), value.nov_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.oov_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, BooleanSerializer_getInstance(), value.oov_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.pov_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_57(), value.pov_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.qov_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.qov_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.rov_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.rov_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.sov_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, tmp2_cached[5], value.sov_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_46).r44 = function (encoder, value) { return this.ep1(encoder, value instanceof XapiResult ? value : THROW_CCE()); }; var $serializer_instance_46; function $serializer_getInstance_58() { if ($serializer_instance_46 == null) new $serializer_46(); return $serializer_instance_46; } function XapiResult_init_$Init$(seen1, completion, success, score, duration, response, extensions, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_58().dp1_1); } if (0 === (seen1 & 1)) $this.nov_1 = null; else $this.nov_1 = completion; if (0 === (seen1 & 2)) $this.oov_1 = null; else $this.oov_1 = success; if (0 === (seen1 & 4)) $this.pov_1 = null; else $this.pov_1 = score; if (0 === (seen1 & 8)) $this.qov_1 = null; else $this.qov_1 = duration; if (0 === (seen1 & 16)) $this.rov_1 = null; else $this.rov_1 = response; if (0 === (seen1 & 32)) $this.sov_1 = null; else $this.sov_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_83(); 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.nov_1 = completion; this.oov_1 = success; this.pov_1 = score; this.qov_1 = duration; this.rov_1 = response; this.sov_1 = extensions; } protoOf(XapiResult).toString = function () { return 'XapiResult(completion=' + this.nov_1 + ', success=' + this.oov_1 + ', score=' + this.pov_1 + ', duration=' + this.qov_1 + ', response=' + this.rov_1 + ', extensions=' + this.sov_1 + ')'; }; protoOf(XapiResult).hashCode = function () { var result = this.nov_1 == null ? 0 : getBooleanHashCode(this.nov_1); result = imul(result, 31) + (this.oov_1 == null ? 0 : getBooleanHashCode(this.oov_1)) | 0; result = imul(result, 31) + (this.pov_1 == null ? 0 : this.pov_1.hashCode()) | 0; result = imul(result, 31) + (this.qov_1 == null ? 0 : getStringHashCode(this.qov_1)) | 0; result = imul(result, 31) + (this.rov_1 == null ? 0 : getStringHashCode(this.rov_1)) | 0; result = imul(result, 31) + (this.sov_1 == null ? 0 : hashCode(this.sov_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.nov_1 == tmp0_other_with_cast.nov_1)) return false; if (!(this.oov_1 == tmp0_other_with_cast.oov_1)) return false; if (!equals(this.pov_1, 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; if (!equals(this.sov_1, tmp0_other_with_cast.sov_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_67() { Companion_instance_115 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.jot_1 = [null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_49()), null]; } protoOf(Companion_67).n4r = function () { return $serializer_getInstance_59(); }; var Companion_instance_115; function Companion_getInstance_84() { if (Companion_instance_115 == null) new Companion_67(); return Companion_instance_115; } function $serializer_47() { $serializer_instance_47 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiStatement', this, 12); tmp0_serialDesc.t4f('id', true); tmp0_serialDesc.t4f('actor', false); tmp0_serialDesc.t4f('verb', false); tmp0_serialDesc.t4f('object', false); tmp0_serialDesc.t4f('result', true); tmp0_serialDesc.t4f('context', true); tmp0_serialDesc.t4f('timestamp', true); tmp0_serialDesc.t4f('stored', true); tmp0_serialDesc.t4f('authority', true); tmp0_serialDesc.t4f('version', true); tmp0_serialDesc.t4f('attachments', true); tmp0_serialDesc.t4f('objectType', true); this.fp1_1 = tmp0_serialDesc; } protoOf($serializer_47).q44 = function () { return this.fp1_1; }; protoOf($serializer_47).k4g = function () { var tmp0_cached = Companion_getInstance_84().jot_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_62(), XapiStatementObjectSerializer_getInstance(), get_nullable($serializer_getInstance_58()), get_nullable($serializer_getInstance_54()), 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_47).s44 = function (decoder) { var tmp0_desc = this.fp1_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_local9 = null; var tmp14_local10 = null; var tmp15_local11 = null; var tmp16_input = decoder.i48(tmp0_desc); var tmp17_cached = Companion_getInstance_84().jot_1; if (tmp16_input.x48()) { tmp4_local0 = tmp16_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp16_input.u48(tmp0_desc, 1, XapiActorSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp16_input.u48(tmp0_desc, 2, $serializer_getInstance_62(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp16_input.u48(tmp0_desc, 3, XapiStatementObjectSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp16_input.w48(tmp0_desc, 4, $serializer_getInstance_58(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp16_input.w48(tmp0_desc, 5, $serializer_getInstance_54(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp16_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp16_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp16_input.w48(tmp0_desc, 8, XapiActorSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp16_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp16_input.w48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp16_input.w48(tmp0_desc, 11, XapiObjectTypeSerializer_instance, tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; } else while (tmp1_flag) { tmp2_index = tmp16_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp16_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp16_input.u48(tmp0_desc, 1, XapiActorSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp16_input.u48(tmp0_desc, 2, $serializer_getInstance_62(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp16_input.u48(tmp0_desc, 3, XapiStatementObjectSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp16_input.w48(tmp0_desc, 4, $serializer_getInstance_58(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp16_input.w48(tmp0_desc, 5, $serializer_getInstance_54(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp16_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp16_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp16_input.w48(tmp0_desc, 8, XapiActorSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp16_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp16_input.w48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp16_input.w48(tmp0_desc, 11, XapiObjectTypeSerializer_instance, tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp16_input.j48(tmp0_desc); return XapiStatement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); }; protoOf($serializer_47).gp1 = function (encoder, value) { var tmp0_desc = this.fp1_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_84().jot_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.wos_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.wos_1); } tmp1_output.y49(tmp0_desc, 1, XapiActorSerializer_getInstance(), value.xos_1); tmp1_output.y49(tmp0_desc, 2, $serializer_getInstance_62(), value.yos_1); tmp1_output.y49(tmp0_desc, 3, XapiStatementObjectSerializer_getInstance(), value.zos_1); if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.aot_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, $serializer_getInstance_58(), value.aot_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.bot_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, $serializer_getInstance_54(), value.bot_1); } if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.cot_1 == null)) { tmp1_output.a4a(tmp0_desc, 6, StringSerializer_getInstance(), value.cot_1); } if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.dot_1 == null)) { tmp1_output.a4a(tmp0_desc, 7, StringSerializer_getInstance(), value.dot_1); } if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.eot_1 == null)) { tmp1_output.a4a(tmp0_desc, 8, XapiActorSerializer_getInstance(), value.eot_1); } if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.fot_1 == null)) { tmp1_output.a4a(tmp0_desc, 9, StringSerializer_getInstance(), value.fot_1); } if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.got_1 == null)) { tmp1_output.a4a(tmp0_desc, 10, tmp2_cached[10], value.got_1); } if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.hot_1 == null)) { tmp1_output.a4a(tmp0_desc, 11, XapiObjectTypeSerializer_instance, value.hot_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_47).r44 = function (encoder, value) { return this.gp1(encoder, value instanceof XapiStatement ? value : THROW_CCE()); }; var $serializer_instance_47; function $serializer_getInstance_59() { if ($serializer_instance_47 == null) new $serializer_47(); return $serializer_instance_47; } 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_59().fp1_1); } if (0 === (seen1 & 1)) $this.wos_1 = null; else $this.wos_1 = id; $this.xos_1 = actor; $this.yos_1 = verb; $this.zos_1 = object; if (0 === (seen1 & 16)) $this.aot_1 = null; else $this.aot_1 = result; if (0 === (seen1 & 32)) $this.bot_1 = null; else $this.bot_1 = context; if (0 === (seen1 & 64)) $this.cot_1 = null; else $this.cot_1 = timestamp; if (0 === (seen1 & 128)) $this.dot_1 = null; else $this.dot_1 = stored; if (0 === (seen1 & 256)) $this.eot_1 = null; else $this.eot_1 = authority; if (0 === (seen1 & 512)) $this.fot_1 = null; else $this.fot_1 = version; if (0 === (seen1 & 1024)) $this.got_1 = null; else $this.got_1 = attachments; if (0 === (seen1 & 2048)) $this.hot_1 = null; else $this.hot_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_84(); 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.wos_1 = id; this.xos_1 = actor; this.yos_1 = verb; this.zos_1 = object; this.aot_1 = result; this.bot_1 = context; this.cot_1 = timestamp; this.dot_1 = stored; this.eot_1 = authority; this.fot_1 = version; this.got_1 = attachments; this.hot_1 = objectType; } protoOf(XapiStatement).boz = function () { return this.hot_1; }; protoOf(XapiStatement).hp1 = 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).iot = function (id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType, $super) { id = id === VOID ? this.wos_1 : id; actor = actor === VOID ? this.xos_1 : actor; verb = verb === VOID ? this.yos_1 : verb; object = object === VOID ? this.zos_1 : object; result = result === VOID ? this.aot_1 : result; context = context === VOID ? this.bot_1 : context; timestamp = timestamp === VOID ? this.cot_1 : timestamp; stored = stored === VOID ? this.dot_1 : stored; authority = authority === VOID ? this.eot_1 : authority; version = version === VOID ? this.fot_1 : version; attachments = attachments === VOID ? this.got_1 : attachments; objectType = objectType === VOID ? this.hot_1 : objectType; return $super === VOID ? this.hp1(id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType) : $super.hp1.call(this, id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType); }; protoOf(XapiStatement).toString = function () { return 'XapiStatement(id=' + this.wos_1 + ', actor=' + this.xos_1 + ', verb=' + this.yos_1 + ', object=' + this.zos_1 + ', result=' + this.aot_1 + ', context=' + this.bot_1 + ', timestamp=' + this.cot_1 + ', stored=' + this.dot_1 + ', authority=' + this.eot_1 + ', version=' + this.fot_1 + ', attachments=' + this.got_1 + ', objectType=' + this.hot_1 + ')'; }; protoOf(XapiStatement).hashCode = function () { var result = this.wos_1 == null ? 0 : getStringHashCode(this.wos_1); result = imul(result, 31) + hashCode(this.xos_1) | 0; result = imul(result, 31) + this.yos_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.zos_1) | 0; result = imul(result, 31) + (this.aot_1 == null ? 0 : this.aot_1.hashCode()) | 0; result = imul(result, 31) + (this.bot_1 == null ? 0 : this.bot_1.hashCode()) | 0; result = imul(result, 31) + (this.cot_1 == null ? 0 : getStringHashCode(this.cot_1)) | 0; result = imul(result, 31) + (this.dot_1 == null ? 0 : getStringHashCode(this.dot_1)) | 0; result = imul(result, 31) + (this.eot_1 == null ? 0 : hashCode(this.eot_1)) | 0; result = imul(result, 31) + (this.fot_1 == null ? 0 : getStringHashCode(this.fot_1)) | 0; result = imul(result, 31) + (this.got_1 == null ? 0 : hashCode(this.got_1)) | 0; result = imul(result, 31) + (this.hot_1 == null ? 0 : this.hot_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.wos_1 == tmp0_other_with_cast.wos_1)) return false; if (!equals(this.xos_1, tmp0_other_with_cast.xos_1)) return false; if (!this.yos_1.equals(tmp0_other_with_cast.yos_1)) return false; if (!equals(this.zos_1, tmp0_other_with_cast.zos_1)) return false; if (!equals(this.aot_1, tmp0_other_with_cast.aot_1)) return false; if (!equals(this.bot_1, tmp0_other_with_cast.bot_1)) return false; if (!(this.cot_1 == tmp0_other_with_cast.cot_1)) return false; if (!(this.dot_1 == tmp0_other_with_cast.dot_1)) return false; if (!equals(this.eot_1, tmp0_other_with_cast.eot_1)) return false; if (!(this.fot_1 == tmp0_other_with_cast.fot_1)) return false; if (!equals(this.got_1, tmp0_other_with_cast.got_1)) return false; if (!equals(this.hot_1, tmp0_other_with_cast.hot_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.mos_1 = statementEntity; this.nos_1 = statementEntityJson; this.oos_1 = actorEntities; this.pos_1 = verbEntities; this.qos_1 = activityEntities; } protoOf(StatementEntities).toString = function () { return 'StatementEntities(statementEntity=' + this.mos_1 + ', statementEntityJson=' + this.nos_1 + ', actorEntities=' + this.oos_1 + ', verbEntities=' + this.pos_1 + ', activityEntities=' + this.qos_1 + ')'; }; protoOf(StatementEntities).hashCode = function () { var result = this.mos_1 == null ? 0 : this.mos_1.hashCode(); result = imul(result, 31) + (this.nos_1 == null ? 0 : this.nos_1.hashCode()) | 0; result = imul(result, 31) + (this.oos_1 == null ? 0 : hashCode(this.oos_1)) | 0; result = imul(result, 31) + (this.pos_1 == null ? 0 : this.pos_1.hashCode()) | 0; result = imul(result, 31) + (this.qos_1 == null ? 0 : hashCode(this.qos_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.mos_1, tmp0_other_with_cast.mos_1)) return false; if (!equals(this.nos_1, tmp0_other_with_cast.nos_1)) return false; if (!equals(this.oos_1, tmp0_other_with_cast.oos_1)) return false; if (!equals(this.pos_1, tmp0_other_with_cast.pos_1)) return false; if (!equals(this.qos_1, tmp0_other_with_cast.qos_1)) return false; return true; }; function toEntities_3(_this__u8e3s4, stringHasher, primaryKeyManager, hasherFactory, json, xapiSession, knownActorUidToPersonUidMap, exactJson, isSubStatement, endpoint) { isSubStatement = isSubStatement === VOID ? false : isSubStatement; _init_properties_XapiStatement_kt__raho1n(); var tmp0_safe_receiver = _this__u8e3s4.wos_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.zos_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.bot_1; var contextRegistration = xapiRequireValidUuidOrNull(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.goz_1, 'Invalid context registration uuid'); var statementActorEntities = toEntities_0(_this__u8e3s4.xos_1, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); var tmp3_safe_receiver = _this__u8e3s4.eot_1; var authorityActor = tmp3_safe_receiver == null ? null : toEntities_0(tmp3_safe_receiver, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); var tmp4_safe_receiver = _this__u8e3s4.bot_1; var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.foz_1; var contextInstructorActorEntities = tmp5_safe_receiver == null ? null : toEntities_0(tmp5_safe_receiver, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); var statementObjectForeignKeys = objectForeignKeys(_this__u8e3s4.zos_1, stringHasher, statementUuid); var tmp34_statementIdHi = statementUuid.flp(); var tmp35_statementIdLo = statementUuid.glp(); var tmp_3; var tmp_4; var tmp6_safe_receiver = _this__u8e3s4.xos_1.poy(); if ((tmp6_safe_receiver == null ? null : tmp6_safe_receiver.jox_1) === endpoint.jn2_1) { var tmp7_safe_receiver = _this__u8e3s4.xos_1.poy(); tmp_4 = (tmp7_safe_receiver == null ? null : tmp7_safe_receiver.kox_1) === xapiSession.ujd_1; } else { tmp_4 = false; } if (tmp_4) { tmp_3 = xapiSession.sjd_1; } else { tmp_3 = new Long(0, 0); } var tmp36_statementActorPersonUid = tmp_3; var tmp37_statementActorUid = statementActorEntities.ros_1.zih_1; var tmp9_safe_receiver = authorityActor == null ? null : authorityActor.ros_1; var tmp10_elvis_lhs = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.zih_1; var tmp38_authorityActorUid = tmp10_elvis_lhs == null ? new Long(0, 0) : tmp10_elvis_lhs; var tmp39_statementVerbUid = stringHasher.hoy(xapiRequireValidIRI(_this__u8e3s4.yos_1.ip1_1, 'Statement ' + statementUuid + ' VerbID ' + _this__u8e3s4.yos_1.ip1_1 + ' is not a valid IRI')); var tmp11_safe_receiver = _this__u8e3s4.aot_1; var tmp40_resultCompletion = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.nov_1; var tmp12_safe_receiver = _this__u8e3s4.aot_1; var tmp41_resultSuccess = tmp12_safe_receiver == null ? null : tmp12_safe_receiver.oov_1; var tmp13_safe_receiver = _this__u8e3s4.aot_1; var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.pov_1; var tmp42_resultScoreScaled = tmp14_safe_receiver == null ? null : tmp14_safe_receiver.yp0_1; var tmp15_safe_receiver = _this__u8e3s4.aot_1; var tmp16_safe_receiver = tmp15_safe_receiver == null ? null : tmp15_safe_receiver.pov_1; var tmp43_resultScoreRaw = tmp16_safe_receiver == null ? null : tmp16_safe_receiver.zp0_1; var tmp17_safe_receiver = _this__u8e3s4.aot_1; var tmp18_safe_receiver = tmp17_safe_receiver == null ? null : tmp17_safe_receiver.pov_1; var tmp44_resultScoreMin = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.ap1_1; var tmp19_safe_receiver = _this__u8e3s4.aot_1; var tmp20_safe_receiver = tmp19_safe_receiver == null ? null : tmp19_safe_receiver.pov_1; var tmp45_resultScoreMax = tmp20_safe_receiver == null ? null : tmp20_safe_receiver.bp1_1; var tmp21_safe_receiver = _this__u8e3s4.aot_1; var tmp46_resultDuration = xapiRequireDurationOrNullAsLong(tmp21_safe_receiver == null ? null : tmp21_safe_receiver.qov_1); var tmp22_safe_receiver = _this__u8e3s4.aot_1; var tmp47_resultResponse = tmp22_safe_receiver == null ? null : tmp22_safe_receiver.rov_1; var tmp23_safe_receiver = _this__u8e3s4.cot_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.flp(); var tmp50_contextRegistrationHi = tmp26_elvis_lhs == null ? new Long(0, 0) : tmp26_elvis_lhs; var tmp28_elvis_lhs = contextRegistration == null ? null : contextRegistration.glp(); var tmp51_contextRegistrationLo = tmp28_elvis_lhs == null ? new Long(0, 0) : tmp28_elvis_lhs; var tmp29_safe_receiver = _this__u8e3s4.bot_1; var tmp52_contextPlatform = tmp29_safe_receiver == null ? null : tmp29_safe_receiver.ioz_1; var tmp31_safe_receiver = contextInstructorActorEntities == null ? null : contextInstructorActorEntities.ros_1; var tmp32_elvis_lhs = tmp31_safe_receiver == null ? null : tmp31_safe_receiver.zih_1; var tmp53_contextInstructorActorUid = tmp32_elvis_lhs == null ? new Long(0, 0) : tmp32_elvis_lhs; var tmp54_statementContentEntryUid = xapiSession.xjd_1; var tmp55_statementClazzUid = xapiSession.vjd_1; var tmp56_statementCbUid = xapiSession.wjd_1; var tmp_6; if (isCompletionOrProgress(_this__u8e3s4)) { var tmp_7; if (xapiSession.xjd_1.equals(new Long(0, 0))) { tmp_7 = true; } else { var tmp_8 = _this__u8e3s4.zos_1; var tmp33_safe_receiver = tmp_8 instanceof XapiActivityStatementObject ? tmp_8 : null; tmp_7 = (tmp33_safe_receiver == null ? null : tmp33_safe_receiver.cp0_1) === xapiSession.zjd_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.zos_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.flp(), statementUuid.glp(), 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.yos_1, stringHasher); var tmp62_safe_receiver = _this__u8e3s4.bot_1; var tmp63_safe_receiver = tmp62_safe_receiver == null ? null : tmp62_safe_receiver.moz_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.zos_1, stringHasher, primaryKeyManager, hasherFactory, json, xapiSession, knownActorUidToPersonUidMap, statementUuid, endpoint)); } function isCompletionOrProgress(_this__u8e3s4) { _init_properties_XapiStatement_kt__raho1n(); var tmp; var tmp0_safe_receiver = _this__u8e3s4.aot_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nov_1) == null)) { tmp = true; } else { tmp = !(get_resultProgressExtension(_this__u8e3s4) == null); } return tmp; } var properties_initialized_XapiStatement_kt_2xltj7; function _init_properties_XapiStatement_kt__raho1n() { if (!properties_initialized_XapiStatement_kt_2xltj7) { properties_initialized_XapiStatement_kt_2xltj7 = true; XAPI_PROGRESSED_EXTENSIONS = listOf(['https://w3id.org/xapi/cmi5/result/extensions/progress', 'http://w3id.org/xapi/cmi5/result/extensions/progress']); } } function XapiStatementObject() { } function XapiStatementObjectSerializer() { XapiStatementObjectSerializer_instance = this; JsonContentPolymorphicSerializer.call(this, getKClass(XapiStatementObject)); } protoOf(XapiStatementObjectSerializer).l4r = function (element) { var tmp0_safe_receiver = get_jsonObject(element).ba('objectType'); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver); var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.takeIf' call // Inline function 'kotlin.contracts.contract' call var tmp_0; // Inline function 'com.ustadmobile.core.domain.xapi.model.XapiStatementObjectSerializer.selectDeserializer.' call if (!(tmp1_safe_receiver instanceof JsonNull)) { tmp_0 = tmp1_safe_receiver; } else { tmp_0 = null; } tmp = tmp_0; } var tmp2_safe_receiver = tmp; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.g3b(); var tmp_1; if (tmp3_safe_receiver == null) { tmp_1 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.model.XapiStatementObjectSerializer.selectDeserializer.' call tmp_1 = valueOf(tmp3_safe_receiver); } var tmp4_elvis_lhs = tmp_1; var objectType = tmp4_elvis_lhs == null ? XapiObjectType_Activity_getInstance() : tmp4_elvis_lhs; var tmp_2; switch (objectType.za_1) { case 2: tmp_2 = Companion_instance_116.n4r(); break; case 3: tmp_2 = Companion_instance_106.n4r(); break; case 4: tmp_2 = Companion_getInstance_79().n4r(); break; case 0: tmp_2 = Companion_instance_117.n4r(); break; case 1: tmp_2 = Companion_getInstance_84().n4r(); break; default: throw new XapiException(400, 'Statement object type invalid'); } return tmp_2; }; var XapiStatementObjectSerializer_instance; function XapiStatementObjectSerializer_getInstance() { if (XapiStatementObjectSerializer_instance == null) new XapiStatementObjectSerializer(); return XapiStatementObjectSerializer_instance; } function Companion_68() { } protoOf(Companion_68).n4r = function () { return $serializer_getInstance_60(); }; var Companion_instance_116; function Companion_getInstance_85() { return Companion_instance_116; } function $serializer_48() { $serializer_instance_48 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiActivityStatementObject', this, 3); tmp0_serialDesc.t4f('objectType', true); tmp0_serialDesc.t4f('id', false); tmp0_serialDesc.t4f('definition', true); this.mp1_1 = tmp0_serialDesc; } protoOf($serializer_48).q44 = function () { return this.mp1_1; }; protoOf($serializer_48).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(XapiObjectTypeSerializer_instance), StringSerializer_getInstance(), get_nullable($serializer_getInstance_52())]; }; protoOf($serializer_48).s44 = function (decoder) { var tmp0_desc = this.mp1_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.i48(tmp0_desc); if (tmp7_input.x48()) { tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, $serializer_getInstance_52(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, $serializer_getInstance_52(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.j48(tmp0_desc); return XapiActivityStatementObject_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_48).np1 = function (encoder, value) { var tmp0_desc = this.mp1_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.bp0_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, XapiObjectTypeSerializer_instance, value.bp0_1); } tmp1_output.w49(tmp0_desc, 1, value.cp0_1); if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.dp0_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_52(), value.dp0_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_48).r44 = function (encoder, value) { return this.np1(encoder, value instanceof XapiActivityStatementObject ? value : THROW_CCE()); }; var $serializer_instance_48; function $serializer_getInstance_60() { if ($serializer_instance_48 == null) new $serializer_48(); return $serializer_instance_48; } function XapiActivityStatementObject_init_$Init$(seen1, objectType, id, definition, serializationConstructorMarker, $this) { if (!(2 === (2 & seen1))) { throwMissingFieldException(seen1, 2, $serializer_getInstance_60().mp1_1); } if (0 === (seen1 & 1)) $this.bp0_1 = null; else $this.bp0_1 = objectType; $this.cp0_1 = id; if (0 === (seen1 & 4)) $this.dp0_1 = null; else $this.dp0_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.bp0_1 = objectType; this.cp0_1 = id; this.dp0_1 = definition; } protoOf(XapiActivityStatementObject).boz = function () { return this.bp0_1; }; protoOf(XapiActivityStatementObject).toString = function () { return 'XapiActivityStatementObject(objectType=' + this.bp0_1 + ', id=' + this.cp0_1 + ', definition=' + this.dp0_1 + ')'; }; protoOf(XapiActivityStatementObject).hashCode = function () { var result = this.bp0_1 == null ? 0 : this.bp0_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.cp0_1) | 0; result = imul(result, 31) + (this.dp0_1 == null ? 0 : this.dp0_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.bp0_1, tmp0_other_with_cast.bp0_1)) return false; if (!(this.cp0_1 === tmp0_other_with_cast.cp0_1)) return false; if (!equals(this.dp0_1, tmp0_other_with_cast.dp0_1)) return false; return true; }; function objectForeignKeys(_this__u8e3s4, stringHasher, statementUuid) { var tmp; if (_this__u8e3s4 instanceof XapiActivityStatementObject) { tmp = new Pair(stringHasher.hoy(_this__u8e3s4.cp0_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.pp1_1); tmp = new Pair(uuid.flp(), uuid.glp()); } else { if (_this__u8e3s4 instanceof XapiStatement) { var tmp_0 = statementUuid.flp(); // Inline function 'kotlin.Long.plus' call var tmp$ret$0 = statementUuid.glp().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, endpoint) { var tmp; if (_this__u8e3s4 instanceof XapiActivityStatementObject) { tmp = listOf_0(new StatementEntities(VOID, VOID, VOID, VOID, listOf_0(toEntities(_this__u8e3s4.dp0_1, _this__u8e3s4.cp0_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.flp(); // Inline function 'kotlin.Long.plus' call var tmp$ret$0 = parentStatementUuid.glp().lc(toLong(1)); tmp = toEntities_3(_this__u8e3s4.iot(Uuid_init_$Create$(tmp_0, tmp$ret$0).toString()), stringHasher, primaryKeyManager, hasherFactory, json, xapiSession, knownActorUidToPersonUidMap, null, true, endpoint); } 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.boz(); 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_69() { } protoOf(Companion_69).n4r = function () { return $serializer_getInstance_61(); }; var Companion_instance_117; function Companion_getInstance_86() { return Companion_instance_117; } function $serializer_49() { $serializer_instance_49 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiStatementRef', this, 2); tmp0_serialDesc.t4f('objectType', false); tmp0_serialDesc.t4f('id', false); this.qp1_1 = tmp0_serialDesc; } protoOf($serializer_49).q44 = function () { return this.qp1_1; }; protoOf($serializer_49).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [XapiObjectTypeSerializer_instance, StringSerializer_getInstance()]; }; protoOf($serializer_49).s44 = function (decoder) { var tmp0_desc = this.qp1_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return XapiStatementRef_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_49).rp1 = function (encoder, value) { var tmp0_desc = this.qp1_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, XapiObjectTypeSerializer_instance, value.op1_1); tmp1_output.w49(tmp0_desc, 1, value.pp1_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_49).r44 = function (encoder, value) { return this.rp1(encoder, value instanceof XapiStatementRef ? value : THROW_CCE()); }; var $serializer_instance_49; function $serializer_getInstance_61() { if ($serializer_instance_49 == null) new $serializer_49(); return $serializer_instance_49; } function XapiStatementRef_init_$Init$(seen1, objectType, id, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_61().qp1_1); } $this.op1_1 = objectType; $this.pp1_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).boz = function () { return this.op1_1; }; protoOf(XapiStatementRef).toString = function () { return 'XapiStatementRef(objectType=' + this.op1_1 + ', id=' + this.pp1_1 + ')'; }; protoOf(XapiStatementRef).hashCode = function () { var result = this.op1_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.pp1_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.op1_1.equals(tmp0_other_with_cast.op1_1)) return false; if (!(this.pp1_1 === tmp0_other_with_cast.pp1_1)) return false; return true; }; function Companion_70() { 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.sp1_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; } var Companion_instance_118; function Companion_getInstance_87() { if (Companion_instance_118 == null) new Companion_70(); return Companion_instance_118; } function $serializer_50() { $serializer_instance_50 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiVerb', this, 2); tmp0_serialDesc.t4f('id', true); tmp0_serialDesc.t4f('display', true); this.tp1_1 = tmp0_serialDesc; } protoOf($serializer_50).q44 = function () { return this.tp1_1; }; protoOf($serializer_50).k4g = function () { var tmp0_cached = Companion_getInstance_87().sp1_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_50).s44 = function (decoder) { var tmp0_desc = this.tp1_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.i48(tmp0_desc); var tmp7_cached = Companion_getInstance_87().sp1_1; if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return XapiVerb_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_50).up1 = function (encoder, value) { var tmp0_desc = this.tp1_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_87().sp1_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.ip1_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.ip1_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.jp1_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, tmp2_cached[1], value.jp1_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_50).r44 = function (encoder, value) { return this.up1(encoder, value instanceof XapiVerb ? value : THROW_CCE()); }; var $serializer_instance_50; function $serializer_getInstance_62() { if ($serializer_instance_50 == null) new $serializer_50(); return $serializer_instance_50; } function XapiVerb_init_$Init$(seen1, id, display, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_62().tp1_1); } if (0 === (seen1 & 1)) $this.ip1_1 = null; else $this.ip1_1 = id; if (0 === (seen1 & 2)) $this.jp1_1 = null; else $this.jp1_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_87(); id = id === VOID ? null : id; display = display === VOID ? null : display; this.ip1_1 = id; this.jp1_1 = display; } protoOf(XapiVerb).toString = function () { return 'XapiVerb(id=' + this.ip1_1 + ', display=' + this.jp1_1 + ')'; }; protoOf(XapiVerb).hashCode = function () { var result = this.ip1_1 == null ? 0 : getStringHashCode(this.ip1_1); result = imul(result, 31) + (this.jp1_1 == null ? 0 : hashCode(this.jp1_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.ip1_1 == tmp0_other_with_cast.ip1_1)) return false; if (!equals(this.jp1_1, tmp0_other_with_cast.jp1_1)) return false; return true; }; function get_VERB_COMPLETED() { return VERB_COMPLETED; } var VERB_COMPLETED; function VerbEntities(verbEntity, verbLangMapEntries) { this.uos_1 = verbEntity; this.vos_1 = verbLangMapEntries; } protoOf(VerbEntities).toString = function () { return 'VerbEntities(verbEntity=' + this.uos_1 + ', verbLangMapEntries=' + this.vos_1 + ')'; }; protoOf(VerbEntities).hashCode = function () { var result = this.uos_1.hashCode(); result = imul(result, 31) + hashCode(this.vos_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.uos_1.equals(tmp0_other_with_cast.uos_1)) return false; if (!equals(this.vos_1, tmp0_other_with_cast.vos_1)) return false; return true; }; function toVerbEntities(_this__u8e3s4, xxHasher) { var verbIri = xapiRequireValidIRI(_this__u8e3s4.ip1_1); var verbUid = xxHasher.hoy(verbIri); var tmp = new VerbEntity(verbUid, _this__u8e3s4.ip1_1); var tmp0_safe_receiver = _this__u8e3s4.jp1_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.hoy(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.yp1_1, $this.bp2_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.ap2_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.gp2(false); var tmp$ret$1; $l$block: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_0 = $this.cp2_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.dp2_1; while (true) { var cur_0 = this_1.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.createFinalStatement.' call var upd_0 = 0; if (this_1.atomicfu$compareAndSet(cur_0, upd_0)) { tmp$ret$3 = cur_0; break $l$block_0; } } } var maxProgressVal = tmp$ret$3; return createXapiStatement($this, usageDurationVal, maxProgressVal, false); } function NonInteractiveContentXapiStatementRecorder$onActiveChanged$lambda($active) { return function () { return 'ContentUsageStatementRecorder: active=' + $active; }; } function NonInteractiveContentXapiStatementRecorder$onComplete$lambda() { return 'ContentUsageStatementRecorder: completed'; } function NonInteractiveContentXapiStatementRecorder$onComplete$slambda(this$0, $usageDurationVal, $timeSinceActive, resultContinuation) { this.pp2_1 = this$0; this.qp2_1 = $usageDurationVal; this.rp2_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.pp2_1.xp1_1.dnq(listOf_0(createXapiStatement(this.pp2_1, this.qp2_1.lc(this.rp2_1), 100, true)), this.pp2_1.yp1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.pp2_1, this.qp2_1, this.rp2_1, completion); i.sp2_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, endpoint) { this.vp1_1 = saveStatementOnClearUseCase; this.wp1_1 = saveStatementOnUnloadUseCase; this.xp1_1 = xapiStatementResource; this.yp1_1 = xapiSession; this.zp1_1 = scope; this.ap2_1 = xapiActivityProvider; this.bp2_1 = endpoint; this.cp2_1 = atomic$long$1(new Long(0, 0)); this.dp2_1 = atomic$int$1(0); this.ep2_1 = atomic$long$1(new Long(0, 0)); this.fp2_1 = atomic$boolean$1(false); } protoOf(NonInteractiveContentXapiStatementRecorder).gp2 = function (active) { var tmp = Napier_getInstance(); tmp.e5e(VOID, VOID, NonInteractiveContentXapiStatementRecorder$onActiveChanged$lambda(active)); if (active) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.ep2_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.ep2_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.cp2_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).tp2 = function (progress) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.dp2_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).up2 = function (oneCompletionStatementOnly) { var tmp = Napier_getInstance(); tmp.e5e(VOID, VOID, NonInteractiveContentXapiStatementRecorder$onComplete$lambda); var tmp_0; var tmp$ret$1; $l$block: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_0 = this.fp2_1; while (true) { var cur = this_0.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.onComplete.' call var upd = true; if (this_0.atomicfu$compareAndSet(cur, upd)) { tmp$ret$1 = cur; break $l$block; } } } if (!tmp$ret$1) { tmp_0 = true; } else { tmp_0 = !oneCompletionStatementOnly; } if (tmp_0) { var tmp$ret$3; $l$block_0: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_1 = this.cp2_1; while (true) { var cur_0 = this_1.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.onComplete.' call var upd_0 = new Long(0, 0); if (this_1.atomicfu$compareAndSet(cur_0, upd_0)) { tmp$ret$3 = cur_0; break $l$block_0; } } } var usageDurationVal = tmp$ret$3; var tmp$ret$5; $l$block_1: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_2 = this.ep2_1; while (true) { var cur_1 = this_2.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.onComplete.' call var upd_1 = new Long(0, 0); if (this_2.atomicfu$compareAndSet(cur_1, upd_1)) { tmp$ret$5 = cur_1; break $l$block_1; } } } var activeStartTimeVal = tmp$ret$5; var tmp_1; if (!activeStartTimeVal.equals(new Long(0, 0))) { tmp_1 = systemTimeInMillis().mc(activeStartTimeVal); } else { tmp_1 = new Long(0, 0); } var timeSinceActive = tmp_1; $l$block_2: { // Inline function 'kotlinx.atomicfu.update' call var this_3 = this.dp2_1; while (true) { var cur_2 = this_3.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.onComplete.' call var upd_2 = 0; if (this_3.atomicfu$compareAndSet(cur_2, upd_2)) { break $l$block_2; } } } launch(this.zp1_1, VOID, VOID, NonInteractiveContentXapiStatementRecorder$onComplete$slambda_0(this, usageDurationVal, timeSinceActive, null)); } }; protoOf(NonInteractiveContentXapiStatementRecorder).elj = function () { this.vp1_1.vp2(listOf_0(createFinalStatement(this)), this.yp1_1); }; protoOf(NonInteractiveContentXapiStatementRecorder).wp2 = function () { var tmp0_safe_receiver = this.wp1_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.vp2(listOf_0(createFinalStatement(this)), this.yp1_1); } }; function NonInteractiveContentXapiStatementRecorderFactory(saveStatementOnClearUseCase, saveStatementOnUnloadUseCase, xapiStatementResource, endpoint) { this.xp2_1 = saveStatementOnClearUseCase; this.yp2_1 = saveStatementOnUnloadUseCase; this.zp2_1 = xapiStatementResource; this.ap3_1 = endpoint; } protoOf(NonInteractiveContentXapiStatementRecorderFactory).bp3 = function (xapiSession, scope, xapiActivityProvider) { return new NonInteractiveContentXapiStatementRecorder(this.xp2_1, this.yp2_1, this.zp2_1, xapiSession, scope, xapiActivityProvider, this.ap3_1); }; function SaveStatementOnClearUseCase() { } function SaveStatementOnUnloadUseCase() { } function Companion_71() { Companion_instance_119 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.cp3_1 = [new ArrayListSerializer($serializer_getInstance_59()), null]; } protoOf(Companion_71).n4r = function () { return $serializer_getInstance_63(); }; var Companion_instance_119; function Companion_getInstance_88() { if (Companion_instance_119 == null) new Companion_71(); return Companion_instance_119; } function $serializer_51() { $serializer_instance_51 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.savestatementonclear.XapiStatementsAndSession', this, 2); tmp0_serialDesc.t4f('statements', false); tmp0_serialDesc.t4f('session', false); this.dp3_1 = tmp0_serialDesc; } protoOf($serializer_51).q44 = function () { return this.dp3_1; }; protoOf($serializer_51).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_88().cp3_1[0], $serializer_getInstance_6()]; }; protoOf($serializer_51).s44 = function (decoder) { var tmp0_desc = this.dp3_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.i48(tmp0_desc); var tmp7_cached = Companion_getInstance_88().cp3_1; if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, $serializer_getInstance_6(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, $serializer_getInstance_6(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return XapiStatementsAndSession_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_51).ep3 = function (encoder, value) { var tmp0_desc = this.dp3_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_88().cp3_1; tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.fp3_1); tmp1_output.y49(tmp0_desc, 1, $serializer_getInstance_6(), value.gp3_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_51).r44 = function (encoder, value) { return this.ep3(encoder, value instanceof XapiStatementsAndSession ? value : THROW_CCE()); }; var $serializer_instance_51; function $serializer_getInstance_63() { if ($serializer_instance_51 == null) new $serializer_51(); return $serializer_instance_51; } function XapiStatementsAndSession_init_$Init$(seen1, statements, session, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_63().dp3_1); } $this.fp3_1 = statements; $this.gp3_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_88(); this.fp3_1 = statements; this.gp3_1 = session; } protoOf(XapiStatementsAndSession).toString = function () { return 'XapiStatementsAndSession(statements=' + this.fp3_1 + ', session=' + this.gp3_1 + ')'; }; protoOf(XapiStatementsAndSession).hashCode = function () { var result = hashCode(this.fp3_1); result = imul(result, 31) + this.gp3_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.fp3_1, tmp0_other_with_cast.fp3_1)) return false; if (!this.gp3_1.equals(tmp0_other_with_cast.gp3_1)) return false; return true; }; function ResumeOrStartXapiSessionUseCase() { } function XXHasher64Factory() { } function XXStringHasher() { } function UstadMobileConstants() { UstadMobileConstants_instance = this; this.hp3_1 = 'UTF-8'; this.ip3_1 = 0; this.jp3_1 = 'UTC'; this.kp3_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.lp3_1 = ['ar', 'arc', 'dv', 'fa', 'ha', 'he', 'khw', 'ks', 'ku', 'ps', 'ur', 'yi']; this.mp3_1 = 13; this.np3_1 = 18; this.op3_1 = 10000; this.pp3_1 = 512; } var UstadMobileConstants_instance; function UstadMobileConstants_getInstance() { if (UstadMobileConstants_instance == null) new UstadMobileConstants(); return UstadMobileConstants_instance; } function Companion_72() { Companion_instance_120 = this; this.qp3_1 = new UstadGoOptions(null, false); } var Companion_instance_120; function Companion_getInstance_89() { if (Companion_instance_120 == null) new Companion_72(); return Companion_instance_120; } function UstadGoOptions(popUpToViewName, popUpToInclusive, clearStack, serializer) { Companion_getInstance_89(); popUpToViewName = popUpToViewName === VOID ? null : popUpToViewName; popUpToInclusive = popUpToInclusive === VOID ? false : popUpToInclusive; clearStack = clearStack === VOID ? false : clearStack; serializer = serializer === VOID ? null : serializer; this.rp3_1 = popUpToViewName; this.sp3_1 = popUpToInclusive; this.tp3_1 = clearStack; this.up3_1 = serializer; } protoOf(UstadGoOptions).toString = function () { return 'UstadGoOptions(popUpToViewName=' + this.rp3_1 + ', popUpToInclusive=' + this.sp3_1 + ', clearStack=' + this.tp3_1 + ', serializer=' + this.up3_1 + ')'; }; protoOf(UstadGoOptions).hashCode = function () { var result = this.rp3_1 == null ? 0 : getStringHashCode(this.rp3_1); result = imul(result, 31) + getBooleanHashCode(this.sp3_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.tp3_1) | 0; result = imul(result, 31) + (this.up3_1 == null ? 0 : hashCode(this.up3_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.rp3_1 == tmp0_other_with_cast.rp3_1)) return false; if (!(this.sp3_1 === tmp0_other_with_cast.sp3_1)) return false; 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; return true; }; function UiLanguage(langCode, langDisplay) { this.vp3_1 = langCode; this.wp3_1 = langDisplay; } protoOf(UiLanguage).toString = function () { return 'UiLanguage(langCode=' + this.vp3_1 + ', langDisplay=' + this.wp3_1 + ')'; }; protoOf(UiLanguage).hashCode = function () { var result = getStringHashCode(this.vp3_1); result = imul(result, 31) + getStringHashCode(this.wp3_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.vp3_1 === tmp0_other_with_cast.vp3_1)) return false; if (!(this.wp3_1 === tmp0_other_with_cast.wp3_1)) return false; return true; }; function Companion_73() { Companion_instance_121 = this; this.xp3_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.xp3_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.yp3_1 = destination; this.zp3_1 = 'ustadmobileContent'; this.ap4_1 = ''; this.PREFKEY_LOCALE = 'locale'; this.bp4_1 = 2; this.cp4_1 = 4; this.dp4_1 = 'ref'; this.ep4_1 = 67108864; this.fp4_1 = 'dlenabled'; this.gp4_1 = 16; this.hp4_1 = 32; this.ip4_1 = 64; this.jp4_1 = 'umclient'; this.kp4_1 = '/umapp/#/'; this.lp4_1 = 'sitedata'; this.mp4_1 = 'container'; this.np4_1 = 'attachments'; this.op4_1 = 'rootViewName'; this.pp4_1 = 'client_id'; } protoOf(Companion_73).qp4 = function () { return this.PREFKEY_LOCALE; }; var Companion_instance_121; function Companion_getInstance_90() { if (Companion_instance_121 == null) new Companion_73(); return Companion_instance_121; } function UstadMobileSystemCommon(settings, langConfig) { Companion_getInstance_90(); this.rp4_1 = settings; this.sp4_1 = langConfig; this.tp4_1 = null; } protoOf(UstadMobileSystemCommon).up4 = function () { Companion_getInstance_129(); return 'CourseListHome'; }; protoOf(UstadMobileSystemCommon).vp4 = 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.tno(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.wp4_1 = visible; this.xp4_1 = text; this.yp4_1 = enabled; this.zp4_1 = onClick; } protoOf(ActionBarButtonUiState).ap5 = function (visible, text, enabled, onClick) { return new ActionBarButtonUiState(visible, text, enabled, onClick); }; protoOf(ActionBarButtonUiState).bp5 = function (visible, text, enabled, onClick, $super) { visible = visible === VOID ? this.wp4_1 : visible; text = text === VOID ? this.xp4_1 : text; enabled = enabled === VOID ? this.yp4_1 : enabled; onClick = onClick === VOID ? this.zp4_1 : onClick; return $super === VOID ? this.ap5(visible, text, enabled, onClick) : $super.ap5.call(this, visible, text, enabled, onClick); }; protoOf(ActionBarButtonUiState).toString = function () { return 'ActionBarButtonUiState(visible=' + this.wp4_1 + ', text=' + this.xp4_1 + ', enabled=' + this.yp4_1 + ', onClick=' + this.zp4_1 + ')'; }; protoOf(ActionBarButtonUiState).hashCode = function () { var result = getBooleanHashCode(this.wp4_1); result = imul(result, 31) + (this.xp4_1 == null ? 0 : getStringHashCode(this.xp4_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.yp4_1) | 0; result = imul(result, 31) + hashCode(this.zp4_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.wp4_1 === tmp0_other_with_cast.wp4_1)) return false; if (!(this.xp4_1 == tmp0_other_with_cast.xp4_1)) return false; if (!(this.yp4_1 === tmp0_other_with_cast.yp4_1)) return false; if (!equals(this.zp4_1, tmp0_other_with_cast.zp4_1)) return false; return true; }; function AppActionButton(icon, contentDescription, onClick, id) { this.cp5_1 = icon; this.dp5_1 = contentDescription; this.ep5_1 = onClick; this.fp5_1 = id; } protoOf(AppActionButton).toString = function () { return 'AppActionButton(icon=' + this.cp5_1 + ', contentDescription=' + this.dp5_1 + ', onClick=' + this.ep5_1 + ', id=' + this.fp5_1 + ')'; }; protoOf(AppActionButton).hashCode = function () { var result = this.cp5_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.dp5_1) | 0; result = imul(result, 31) + hashCode(this.ep5_1) | 0; result = imul(result, 31) + getStringHashCode(this.fp5_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.cp5_1.equals(tmp0_other_with_cast.cp5_1)) return false; if (!(this.dp5_1 === tmp0_other_with_cast.dp5_1)) return false; if (!equals(this.ep5_1, tmp0_other_with_cast.ep5_1)) return false; if (!(this.fp5_1 === tmp0_other_with_cast.fp5_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.gp5_1 = visible; this.hp5_1 = searchText; this.ip5_1 = onSearchTextChanged; } protoOf(AppBarSearchUiState).jp5 = function (visible, searchText, onSearchTextChanged) { return new AppBarSearchUiState(visible, searchText, onSearchTextChanged); }; protoOf(AppBarSearchUiState).kp5 = function (visible, searchText, onSearchTextChanged, $super) { visible = visible === VOID ? this.gp5_1 : visible; searchText = searchText === VOID ? this.hp5_1 : searchText; onSearchTextChanged = onSearchTextChanged === VOID ? this.ip5_1 : onSearchTextChanged; return $super === VOID ? this.jp5(visible, searchText, onSearchTextChanged) : $super.jp5.call(this, visible, searchText, onSearchTextChanged); }; protoOf(AppBarSearchUiState).toString = function () { return 'AppBarSearchUiState(visible=' + this.gp5_1 + ', searchText=' + this.hp5_1 + ', onSearchTextChanged=' + this.ip5_1 + ')'; }; protoOf(AppBarSearchUiState).hashCode = function () { var result = getBooleanHashCode(this.gp5_1); result = imul(result, 31) + getStringHashCode(this.hp5_1) | 0; result = imul(result, 31) + hashCode(this.ip5_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.gp5_1 === tmp0_other_with_cast.gp5_1)) return false; if (!(this.hp5_1 === tmp0_other_with_cast.hp5_1)) return false; if (!equals(this.ip5_1, tmp0_other_with_cast.ip5_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.lp5_1 = fabState; this.mp5_1 = loadingState; this.np5_1 = title; this.op5_1 = navigationVisible; this.pp5_1 = hideBottomNavigation; this.qp5_1 = hideSettingsIcon; this.rp5_1 = userAccountIconVisible; this.sp5_1 = searchState; this.tp5_1 = actionBarButtonState; this.up5_1 = overflowItems; this.vp5_1 = hideAppBar; this.wp5_1 = actionButtons; this.xp5_1 = leadingActionButton; this.yp5_1 = appBarColors; } protoOf(AppUiState).zp5 = 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).ap6 = function (fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors, $super) { fabState = fabState === VOID ? this.lp5_1 : fabState; loadingState = loadingState === VOID ? this.mp5_1 : loadingState; title = title === VOID ? this.np5_1 : title; navigationVisible = navigationVisible === VOID ? this.op5_1 : navigationVisible; hideBottomNavigation = hideBottomNavigation === VOID ? this.pp5_1 : hideBottomNavigation; hideSettingsIcon = hideSettingsIcon === VOID ? this.qp5_1 : hideSettingsIcon; userAccountIconVisible = userAccountIconVisible === VOID ? this.rp5_1 : userAccountIconVisible; searchState = searchState === VOID ? this.sp5_1 : searchState; actionBarButtonState = actionBarButtonState === VOID ? this.tp5_1 : actionBarButtonState; overflowItems = overflowItems === VOID ? this.up5_1 : overflowItems; hideAppBar = hideAppBar === VOID ? this.vp5_1 : hideAppBar; actionButtons = actionButtons === VOID ? this.wp5_1 : actionButtons; leadingActionButton = leadingActionButton === VOID ? this.xp5_1 : leadingActionButton; appBarColors = appBarColors === VOID ? this.yp5_1 : appBarColors; return $super === VOID ? this.zp5(fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors) : $super.zp5.call(this, fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors); }; protoOf(AppUiState).toString = function () { return 'AppUiState(fabState=' + this.lp5_1 + ', loadingState=' + this.mp5_1 + ', title=' + this.np5_1 + ', navigationVisible=' + this.op5_1 + ', hideBottomNavigation=' + this.pp5_1 + ', hideSettingsIcon=' + this.qp5_1 + ', userAccountIconVisible=' + this.rp5_1 + ', searchState=' + this.sp5_1 + ', actionBarButtonState=' + this.tp5_1 + ', overflowItems=' + this.up5_1 + ', hideAppBar=' + this.vp5_1 + ', actionButtons=' + this.wp5_1 + ', leadingActionButton=' + this.xp5_1 + ', appBarColors=' + this.yp5_1 + ')'; }; protoOf(AppUiState).hashCode = function () { var result = this.lp5_1.hashCode(); result = imul(result, 31) + this.mp5_1.hashCode() | 0; result = imul(result, 31) + (this.np5_1 == null ? 0 : getStringHashCode(this.np5_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.op5_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.pp5_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.qp5_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.rp5_1) | 0; result = imul(result, 31) + this.sp5_1.hashCode() | 0; result = imul(result, 31) + this.tp5_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.up5_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.vp5_1) | 0; result = imul(result, 31) + hashCode(this.wp5_1) | 0; result = imul(result, 31) + (this.xp5_1 == null ? 0 : this.xp5_1.hashCode()) | 0; result = imul(result, 31) + this.yp5_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.lp5_1.equals(tmp0_other_with_cast.lp5_1)) return false; if (!this.mp5_1.equals(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 (!(this.qp5_1 === tmp0_other_with_cast.qp5_1)) return false; if (!(this.rp5_1 === tmp0_other_with_cast.rp5_1)) return false; if (!this.sp5_1.equals(tmp0_other_with_cast.sp5_1)) return false; if (!this.tp5_1.equals(tmp0_other_with_cast.tp5_1)) return false; if (!equals(this.up5_1, tmp0_other_with_cast.up5_1)) return false; if (!(this.vp5_1 === tmp0_other_with_cast.vp5_1)) return false; if (!equals(this.wp5_1, tmp0_other_with_cast.wp5_1)) return false; if (!equals(this.xp5_1, tmp0_other_with_cast.xp5_1)) return false; if (!this.yp5_1.equals(tmp0_other_with_cast.yp5_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.bp6_1 = visible; this.cp6_1 = text; this.dp6_1 = icon; this.ep6_1 = onClick; } protoOf(FabUiState).fp6 = function (visible, text, icon, onClick) { return new FabUiState(visible, text, icon, onClick); }; protoOf(FabUiState).gp6 = function (visible, text, icon, onClick, $super) { visible = visible === VOID ? this.bp6_1 : visible; text = text === VOID ? this.cp6_1 : text; icon = icon === VOID ? this.dp6_1 : icon; onClick = onClick === VOID ? this.ep6_1 : onClick; return $super === VOID ? this.fp6(visible, text, icon, onClick) : $super.fp6.call(this, visible, text, icon, onClick); }; protoOf(FabUiState).toString = function () { return 'FabUiState(visible=' + this.bp6_1 + ', text=' + this.cp6_1 + ', icon=' + this.dp6_1 + ', onClick=' + this.ep6_1 + ')'; }; protoOf(FabUiState).hashCode = function () { var result = getBooleanHashCode(this.bp6_1); result = imul(result, 31) + (this.cp6_1 == null ? 0 : getStringHashCode(this.cp6_1)) | 0; result = imul(result, 31) + this.dp6_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.ep6_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.bp6_1 === tmp0_other_with_cast.bp6_1)) return false; if (!(this.cp6_1 == tmp0_other_with_cast.cp6_1)) return false; if (!this.dp6_1.equals(tmp0_other_with_cast.dp6_1)) return false; if (!equals(this.ep6_1, tmp0_other_with_cast.ep6_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_74() { Companion_instance_122 = this; this.hp6_1 = new LoadingUiState(State_INDETERMINATE_getInstance()); this.ip6_1 = new LoadingUiState(State_NOT_LOADING_getInstance()); } var Companion_instance_122; function Companion_getInstance_91() { if (Companion_instance_122 == null) new Companion_74(); return Companion_instance_122; } 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_91(); loadingState = loadingState === VOID ? State_NOT_LOADING_getInstance() : loadingState; this.jp6_1 = loadingState; } protoOf(LoadingUiState).toString = function () { return 'LoadingUiState(loadingState=' + this.jp6_1 + ')'; }; protoOf(LoadingUiState).hashCode = function () { return this.jp6_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.jp6_1.equals(tmp0_other_with_cast.jp6_1)) return false; return true; }; function OverflowItem(label, onClick) { this.kp6_1 = label; this.lp6_1 = onClick; } protoOf(OverflowItem).toString = function () { return 'OverflowItem(label=' + this.kp6_1 + ', onClick=' + this.lp6_1 + ')'; }; protoOf(OverflowItem).hashCode = function () { var result = getStringHashCode(this.kp6_1); result = imul(result, 31) + hashCode(this.lp6_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.kp6_1 === tmp0_other_with_cast.kp6_1)) return false; if (!equals(this.lp6_1, tmp0_other_with_cast.lp6_1)) return false; return true; }; function Snack(message, action, onAction) { action = action === VOID ? null : action; onAction = onAction === VOID ? null : onAction; this.mp6_1 = message; this.np6_1 = action; this.op6_1 = onAction; } protoOf(Snack).toString = function () { return 'Snack(message=' + this.mp6_1 + ', action=' + this.np6_1 + ', onAction=' + this.op6_1 + ')'; }; protoOf(Snack).hashCode = function () { var result = getStringHashCode(this.mp6_1); result = imul(result, 31) + (this.np6_1 == null ? 0 : getStringHashCode(this.np6_1)) | 0; result = imul(result, 31) + (this.op6_1 == null ? 0 : hashCode(this.op6_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.mp6_1 === tmp0_other_with_cast.mp6_1)) return false; if (!(this.np6_1 == tmp0_other_with_cast.np6_1)) return false; if (!equals(this.op6_1, tmp0_other_with_cast.op6_1)) return false; return true; }; function SnackBarDispatcher() { } function TabItem(viewName, args, label) { this.qp6_1 = viewName; this.rp6_1 = args; this.sp6_1 = label; } protoOf(TabItem).toString = function () { return 'TabItem(viewName=' + this.qp6_1 + ', args=' + this.rp6_1 + ', label=' + this.sp6_1 + ')'; }; protoOf(TabItem).hashCode = function () { var result = getStringHashCode(this.qp6_1); result = imul(result, 31) + hashCode(this.rp6_1) | 0; result = imul(result, 31) + getStringHashCode(this.sp6_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.qp6_1 === tmp0_other_with_cast.qp6_1)) return false; if (!equals(this.rp6_1, tmp0_other_with_cast.rp6_1)) return false; if (!(this.sp6_1 === tmp0_other_with_cast.sp6_1)) return false; return true; }; function UstadContextMenuItem(label, onClick) { this.tp6_1 = label; this.up6_1 = onClick; } protoOf(UstadContextMenuItem).toString = function () { return 'UstadContextMenuItem(label=' + this.tp6_1 + ', onClick=' + this.up6_1 + ')'; }; protoOf(UstadContextMenuItem).hashCode = function () { var result = getStringHashCode(this.tp6_1); result = imul(result, 31) + hashCode(this.up6_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.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 ApiUrlConfig(presetApiUrl) { this.hng_1 = presetApiUrl; this.ing_1 = this.hng_1 == null; } protoOf(ApiUrlConfig).toString = function () { return 'ApiUrlConfig(presetApiUrl=' + this.hng_1 + ')'; }; protoOf(ApiUrlConfig).hashCode = function () { return this.hng_1 == null ? 0 : getStringHashCode(this.hng_1); }; protoOf(ApiUrlConfig).equals = function (other) { if (this === other) return true; if (!(other instanceof ApiUrlConfig)) return false; var tmp0_other_with_cast = other instanceof ApiUrlConfig ? other : THROW_CCE(); if (!(this.hng_1 == tmp0_other_with_cast.hng_1)) return false; return true; }; function AppConfig() { } function AppConfigMap(delegate) { this.vp6_1 = delegate; } function Companion_75() { this.wp6_1 = '1,2,4'; } var Companion_instance_123; function Companion_getInstance_92() { return Companion_instance_123; } 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.xp6_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().ap7_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.xp6_1.a1(element_0.dp7_1)) { destination_1.i1(element_0); } } tmp_0.yp6_1 = destination_1; var tmp_1 = this; var tmp_2 = strings_getInstance().rlt_1; tmp_1.zp6_1 = plus(this.yp6_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.ep7_1 = settings; } protoOf(SettingsLocaleSettingDelegate).fp7 = function (value) { if (!(value == null)) { this.ep7_1.hlj('locale', value); } else { this.ep7_1.a2o('locale'); } }; protoOf(SettingsLocaleSettingDelegate).gp7 = function () { return this.ep7_1.ilj('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.hp7().vp3_1; } else { tmp = setting; } return tmp; } function Companion_76() { this.ip7_1 = 'locale'; this.jp7_1 = 'com.ustadmobile.presetlocale'; this.kp7_1 = 'localePresetDone'; this.lp7_1 = 'en,fa,ps,ar,tg,bn,ne,my,rw,ru'; this.mp7_1 = ''; } var Companion_instance_124; function Companion_getInstance_93() { return Companion_instance_124; } 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.gom_1 = systemLocales; this.hom_1 = localeSettingDelegate; this.iom_1 = availableLanguagesConfig; this.jom_1 = fallbackLocaleCode; var tmp = this; // Inline function 'kotlin.collections.map' call var this_0 = sorted(split(this.iom_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().kp3_1.q(item); var tmp$ret$0 = new UiLanguage(item, tmp0_elvis_lhs == null ? item : tmp0_elvis_lhs); destination.i1(tmp$ret$0); } tmp.kom_1 = destination; var tmp_0 = this; // Inline function 'kotlin.collections.associateBy' call var this_1 = this.kom_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.vp3_1; destination_0.s(tmp$ret$3, element); } tmp_0.lom_1 = destination_0; this.mom_1 = displayLocaleForLangSetting(this, this.gp7()); if (!this.lom_1.r(this.jom_1)) throw IllegalStateException_init_$Create$('available languages ' + this.iom_1 + ' does not ' + ("include fallback: '" + this.jom_1 + "'")); } protoOf(SupportedLanguagesConfig).fp7 = function (value) { this.hom_1.fp7(value); this.mom_1 = displayLocaleForLangSetting(this, value); }; protoOf(SupportedLanguagesConfig).gp7 = function () { return this.hom_1.gp7(); }; protoOf(SupportedLanguagesConfig).np7 = function (systemImpl) { var tmp0_elvis_lhs = this.gp7(); 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.op7(systemImpl).w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.config.SupportedLanguagesConfig.getCurrentLanguage.' call if (element.vp3_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).pp7 = function (useDeviceLangDisplay) { Companion_getInstance_90(); return plus(listOf_0(new UiLanguage('', useDeviceLangDisplay)), this.kom_1); }; protoOf(SupportedLanguagesConfig).op7 = function (systemImpl) { return this.pp7(systemImpl.tno(strings_getInstance().kmf_1)); }; protoOf(SupportedLanguagesConfig).qp7 = function (preferredLocales) { // Inline function 'kotlin.collections.map' call var this_0 = this.kom_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.vp3_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.lom_1.q(tmp$ret$8)); } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? ensureNotNull(this.lom_1.q(this.jom_1)) : tmp1_elvis_lhs; }; protoOf(SupportedLanguagesConfig).hp7 = function (preferredLocales, $super) { preferredLocales = preferredLocales === VOID ? this.gom_1 : preferredLocales; return $super === VOID ? this.qp7(preferredLocales) : $super.qp7.call(this, preferredLocales); }; 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.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.d58(tmp$ret$2, 2); return new EnrolIntoCourseUseCase(tmp_1, tmp$ret$3); } function commonDomainDiModule$lambda$lambda_0($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp0_repo = tmp.d58(tmp$ret$0, 2); // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); var tmp1_db = tmp_1.d58(tmp$ret$2, 1); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(EnrolIntoCourseUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp2_enrolIntoCourseUseCase = tmp_3.d58(tmp$ret$4, null); return new ApproveOrDeclinePendingEnrolmentUseCase(tmp1_db, tmp0_repo, tmp2_enrolIntoCourseUseCase); } function commonDomainDiModule$lambda$lambda_1($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instanceOrNull' call var tmp_2 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp_4 = tmp_2.e58(tmp$ret$2, 2); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp$ret$5 = tmp_5.d58(tmp$ret$4, null); return new SaveContentEntryUseCase(tmp_1, tmp_4, tmp$ret$5); } function commonDomainDiModule$lambda$lambda_2($this$provider) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = $this$provider.od(); var tmp = $this$provider.f58(); // 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(Endpoint), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.h57(tmp$ret$0, context); var tmp_2 = tmp.c58(tmp$ret$1).f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp_4 = tmp_2.d58(tmp$ret$3, 2); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$5 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp$ret$6 = tmp_5.d58(tmp$ret$5, null); return new GetAssignmentSubmitterNameUseCase(tmp_4, tmp$ret$6); } function commonDomainDiModule$lambda$lambda_3($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SupportedLanguagesConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = $this$provider.od(); var tmp_2 = $this$provider.f58(); // Inline function 'org.kodein.di.diContext' call var tmp_3 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp$ret$3 = tmp_3.h57(tmp$ret$2, context); var tmp_5 = tmp_2.c58(tmp$ret$3).f58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$5 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp$ret$6 = tmp_5.d58(tmp$ret$5, 2); return new GetLocaleForSiteTermsUseCase(tmp_1, tmp$ret$6); } function commonDomainDiModule$lambda$lambda_4($this$provider) { return new DefaultLaunchContentEntryVersionUseCase(); } function commonDomainDiModule$lambda$lambda_5($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.d58(tmp$ret$0, 2); return new RequestEnrolmentUseCase(tmp$ret$1); } function commonDomainDiModule$lambda$lambda_6($this$singleton) { return new MakeLinkUseCase($this$singleton.od()); } function commonDomainDiModule$lambda$lambda_7($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.d58(tmp$ret$0, 2); return new CreateNewClazzUseCase(tmp$ret$1); } function commonDomainDiModule$lambda$lambda_8($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, 2); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UstadAccountManager), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.d58(tmp$ret$2, null); return new CopyCourseUseCase(tmp_1, tmp$ret$3); } function commonDomainDiModule$lambda$lambda_9($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.d58(tmp$ret$2, 2); return new AddNewPersonUseCase(tmp_1, tmp$ret$3); } function commonDomainDiModule$lambda$lambda_10($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, 2); var tmp_2 = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(CreateXapiGroupForCourseGroupUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = tmp_3.d58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(XapiStatementResource), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp_8 = tmp_6.d58(tmp$ret$4, null); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(XXStringHasher), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); var tmp_11 = tmp_9.d58(tmp$ret$6, null); // Inline function 'org.kodein.di.instance' call var tmp_12 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); var tmp$ret$9 = tmp_12.d58(tmp$ret$8, null); return new SubmitMarkUseCase(tmp_1, tmp_2, tmp_5, tmp_8, tmp_11, tmp$ret$9); } function commonDomainDiModule$lambda$lambda_11($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, 2); var tmp_2 = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(XXStringHasher), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp$ret$3 = tmp_3.d58(tmp$ret$2, null); return new CreateXapiGroupForCourseGroupUseCase(tmp_1, tmp_2, tmp$ret$3); } function commonDomainDiModule$lambda$lambda_12($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instanceOrNull' call var tmp_2 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.e58(tmp$ret$2, 2); return new FormatStatementResponseUseCase(tmp_1, tmp$ret$3); } function commonDomainDiModule$lambda($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.o56(tmp$ret$0, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var this_0 = new ImplWithScope(tmp$ret$2, scope); var creator = commonDomainDiModule$lambda$lambda; var tmp_2 = this_0.b56(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(EnrolIntoCourseUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$5 = new Provider(tmp_2, tmp$ret$4, creator); tmp_0.c5b(tmp$ret$5); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(IApproveOrDeclinePendingEnrolmentRequestUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = $this$$receiver.o56(tmp$ret$6, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_0 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var this_1 = new ImplWithScope(tmp$ret$8, scope_0); var creator_0 = commonDomainDiModule$lambda$lambda_0; var tmp_7 = this_1.b56(); // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(ApproveOrDeclinePendingEnrolmentUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); var tmp$ret$11 = new Provider(tmp_7, tmp$ret$10, creator_0); tmp_5.c5b(tmp$ret$11); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_9 = typeToken(createKType(getKClass(SaveContentEntryUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); var tmp_10 = $this$$receiver.o56(tmp$ret$12, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_1 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_11 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(); var this_2 = new ImplWithScope(tmp$ret$14, scope_1); var creator_1 = commonDomainDiModule$lambda$lambda_1; var tmp_12 = this_2.b56(); // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(SaveContentEntryUseCase), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); var tmp$ret$17 = new Provider(tmp_12, tmp$ret$16, creator_1); tmp_10.c5b(tmp$ret$17); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_14 = typeToken(createKType(getKClass(GetAssignmentSubmitterNameUseCase), arrayOf([]), false)); var tmp$ret$18 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(); var tmp_15 = $this$$receiver.o56(tmp$ret$18, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_2 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_16 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$20 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE(); var this_3 = new ImplWithScope(tmp$ret$20, scope_2); var creator_2 = commonDomainDiModule$lambda$lambda_2; var tmp_17 = this_3.b56(); // Inline function 'org.kodein.type.generic' call var tmp_18 = typeToken(createKType(getKClass(GetAssignmentSubmitterNameUseCase), arrayOf([]), false)); var tmp$ret$22 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE(); var tmp$ret$23 = new Provider(tmp_17, tmp$ret$22, creator_2); tmp_15.c5b(tmp$ret$23); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_19 = typeToken(createKType(getKClass(GetLocaleForSiteTermsUseCase), arrayOf([]), false)); var tmp$ret$24 = isInterface(tmp_19, TypeToken) ? tmp_19 : THROW_CCE(); var tmp_20 = $this$$receiver.o56(tmp$ret$24, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_3 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_21 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$26 = isInterface(tmp_21, TypeToken) ? tmp_21 : THROW_CCE(); var this_4 = new ImplWithScope(tmp$ret$26, scope_3); var creator_3 = commonDomainDiModule$lambda$lambda_3; var tmp_22 = this_4.b56(); // Inline function 'org.kodein.type.generic' call var tmp_23 = typeToken(createKType(getKClass(GetLocaleForSiteTermsUseCase), arrayOf([]), false)); var tmp$ret$28 = isInterface(tmp_23, TypeToken) ? tmp_23 : THROW_CCE(); var tmp$ret$29 = new Provider(tmp_22, tmp$ret$28, creator_3); tmp_20.c5b(tmp$ret$29); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_24 = typeToken(createKType(getKClass(LaunchContentEntryVersionUseCase), arrayOf([]), false)); var tmp$ret$30 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE(); var tmp_25 = $this$$receiver.o56(tmp$ret$30, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_4 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_26 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$32 = isInterface(tmp_26, TypeToken) ? tmp_26 : THROW_CCE(); var this_5 = new ImplWithScope(tmp$ret$32, scope_4); var creator_4 = commonDomainDiModule$lambda$lambda_4; var tmp_27 = this_5.b56(); // Inline function 'org.kodein.type.generic' call var tmp_28 = typeToken(createKType(getKClass(DefaultLaunchContentEntryVersionUseCase), arrayOf([]), false)); var tmp$ret$34 = isInterface(tmp_28, TypeToken) ? tmp_28 : THROW_CCE(); var tmp$ret$35 = new Provider(tmp_27, tmp$ret$34, creator_4); tmp_25.c5b(tmp$ret$35); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_29 = typeToken(createKType(getKClass(RequestEnrolmentUseCase), arrayOf([]), false)); var tmp$ret$36 = isInterface(tmp_29, TypeToken) ? tmp_29 : THROW_CCE(); var tmp_30 = $this$$receiver.o56(tmp$ret$36, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_5 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_31 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$38 = isInterface(tmp_31, TypeToken) ? tmp_31 : THROW_CCE(); var this_6 = new ImplWithScope(tmp$ret$38, scope_5); var creator_5 = commonDomainDiModule$lambda$lambda_5; var tmp_32 = this_6.b56(); // Inline function 'org.kodein.type.generic' call var tmp_33 = typeToken(createKType(getKClass(RequestEnrolmentUseCase), arrayOf([]), false)); var tmp$ret$40 = isInterface(tmp_33, TypeToken) ? tmp_33 : THROW_CCE(); var tmp$ret$41 = new Provider(tmp_32, tmp$ret$40, creator_5); tmp_30.c5b(tmp$ret$41); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_34 = typeToken(createKType(getKClass(MakeLinkUseCase), arrayOf([]), false)); var tmp$ret$42 = isInterface(tmp_34, TypeToken) ? tmp_34 : THROW_CCE(); var tmp_35 = $this$$receiver.o56(tmp$ret$42, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_6 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_36 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$44 = isInterface(tmp_36, TypeToken) ? tmp_36 : THROW_CCE(); var this_7 = new ImplWithScope(tmp$ret$44, scope_6); var creator_6 = commonDomainDiModule$lambda$lambda_6; var tmp_37 = this_7.c56(); var tmp_38 = this_7.b56(); var tmp_39 = this_7.d56(); // Inline function 'org.kodein.type.generic' call var tmp_40 = typeToken(createKType(getKClass(MakeLinkUseCase), arrayOf([]), false)); var tmp$ret$46 = isInterface(tmp_40, TypeToken) ? tmp_40 : THROW_CCE(); var tmp$ret$47 = new Singleton(tmp_37, tmp_38, tmp_39, tmp$ret$46, null, true, creator_6); tmp_35.c5b(tmp$ret$47); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_41 = typeToken(createKType(getKClass(CreateNewClazzUseCase), arrayOf([]), false)); var tmp$ret$48 = isInterface(tmp_41, TypeToken) ? tmp_41 : THROW_CCE(); var tmp_42 = $this$$receiver.o56(tmp$ret$48, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_7 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_43 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$50 = isInterface(tmp_43, TypeToken) ? tmp_43 : THROW_CCE(); var this_8 = new ImplWithScope(tmp$ret$50, scope_7); var creator_7 = commonDomainDiModule$lambda$lambda_7; var tmp_44 = this_8.c56(); var tmp_45 = this_8.b56(); var tmp_46 = this_8.d56(); // Inline function 'org.kodein.type.generic' call var tmp_47 = typeToken(createKType(getKClass(CreateNewClazzUseCase), arrayOf([]), false)); var tmp$ret$52 = isInterface(tmp_47, TypeToken) ? tmp_47 : THROW_CCE(); var tmp$ret$53 = new Singleton(tmp_44, tmp_45, tmp_46, tmp$ret$52, null, true, creator_7); tmp_42.c5b(tmp$ret$53); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_48 = typeToken(createKType(getKClass(CopyCourseUseCase), arrayOf([]), false)); var tmp$ret$54 = isInterface(tmp_48, TypeToken) ? tmp_48 : THROW_CCE(); var tmp_49 = $this$$receiver.o56(tmp$ret$54, null, null); // Inline function 'org.kodein.di.singleton' 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(Endpoint), arrayOf([]), false)); var tmp$ret$56 = isInterface(tmp_50, TypeToken) ? tmp_50 : THROW_CCE(); var this_9 = new ImplWithScope(tmp$ret$56, scope_8); var creator_8 = commonDomainDiModule$lambda$lambda_8; var tmp_51 = this_9.c56(); var tmp_52 = this_9.b56(); var tmp_53 = this_9.d56(); // Inline function 'org.kodein.type.generic' call var tmp_54 = typeToken(createKType(getKClass(CopyCourseUseCase), arrayOf([]), false)); var tmp$ret$58 = isInterface(tmp_54, TypeToken) ? tmp_54 : THROW_CCE(); var tmp$ret$59 = new Singleton(tmp_51, tmp_52, tmp_53, tmp$ret$58, null, true, creator_8); tmp_49.c5b(tmp$ret$59); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_55 = typeToken(createKType(getKClass(AddNewPersonUseCase), arrayOf([]), false)); var tmp$ret$60 = isInterface(tmp_55, TypeToken) ? tmp_55 : THROW_CCE(); var tmp_56 = $this$$receiver.o56(tmp$ret$60, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_9 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_57 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$62 = isInterface(tmp_57, TypeToken) ? tmp_57 : THROW_CCE(); var this_10 = new ImplWithScope(tmp$ret$62, scope_9); var creator_9 = commonDomainDiModule$lambda$lambda_9; var tmp_58 = this_10.c56(); var tmp_59 = this_10.b56(); var tmp_60 = this_10.d56(); // Inline function 'org.kodein.type.generic' call var tmp_61 = typeToken(createKType(getKClass(AddNewPersonUseCase), arrayOf([]), false)); var tmp$ret$64 = isInterface(tmp_61, TypeToken) ? tmp_61 : THROW_CCE(); var tmp$ret$65 = new Singleton(tmp_58, tmp_59, tmp_60, tmp$ret$64, null, true, creator_9); tmp_56.c5b(tmp$ret$65); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_62 = typeToken(createKType(getKClass(SubmitMarkUseCase), arrayOf([]), false)); var tmp$ret$66 = isInterface(tmp_62, TypeToken) ? tmp_62 : THROW_CCE(); var tmp_63 = $this$$receiver.o56(tmp$ret$66, 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_64 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$68 = isInterface(tmp_64, TypeToken) ? tmp_64 : THROW_CCE(); var this_11 = new ImplWithScope(tmp$ret$68, scope_10); var creator_10 = commonDomainDiModule$lambda$lambda_10; var tmp_65 = this_11.b56(); // Inline function 'org.kodein.type.generic' call var tmp_66 = typeToken(createKType(getKClass(SubmitMarkUseCase), arrayOf([]), false)); var tmp$ret$70 = isInterface(tmp_66, TypeToken) ? tmp_66 : THROW_CCE(); var tmp$ret$71 = new Provider(tmp_65, tmp$ret$70, creator_10); tmp_63.c5b(tmp$ret$71); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_67 = typeToken(createKType(getKClass(CreateXapiGroupForCourseGroupUseCase), arrayOf([]), false)); var tmp$ret$72 = isInterface(tmp_67, TypeToken) ? tmp_67 : THROW_CCE(); var tmp_68 = $this$$receiver.o56(tmp$ret$72, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_11 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_69 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$74 = isInterface(tmp_69, TypeToken) ? tmp_69 : THROW_CCE(); var this_12 = new ImplWithScope(tmp$ret$74, scope_11); var creator_11 = commonDomainDiModule$lambda$lambda_11; var tmp_70 = this_12.b56(); // Inline function 'org.kodein.type.generic' call var tmp_71 = typeToken(createKType(getKClass(CreateXapiGroupForCourseGroupUseCase), arrayOf([]), false)); var tmp$ret$76 = isInterface(tmp_71, TypeToken) ? tmp_71 : THROW_CCE(); var tmp$ret$77 = new Provider(tmp_70, tmp$ret$76, creator_11); tmp_68.c5b(tmp$ret$77); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_72 = typeToken(createKType(getKClass(FormatStatementResponseUseCase), arrayOf([]), false)); var tmp$ret$78 = isInterface(tmp_72, TypeToken) ? tmp_72 : THROW_CCE(); var tmp_73 = $this$$receiver.o56(tmp$ret$78, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_12 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_74 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$80 = isInterface(tmp_74, TypeToken) ? tmp_74 : THROW_CCE(); var this_13 = new ImplWithScope(tmp$ret$80, scope_12); var creator_12 = commonDomainDiModule$lambda$lambda_12; var tmp_75 = this_13.c56(); var tmp_76 = this_13.b56(); var tmp_77 = this_13.d56(); // Inline function 'org.kodein.type.generic' call var tmp_78 = typeToken(createKType(getKClass(FormatStatementResponseUseCase), arrayOf([]), false)); var tmp$ret$82 = isInterface(tmp_78, TypeToken) ? tmp_78 : THROW_CCE(); var tmp$ret$83 = new Singleton(tmp_75, tmp_76, tmp_77, tmp$ret$82, null, true, creator_12); tmp_73.c5b(tmp$ret$83); return Unit_instance; }; } function CourseTerminologyStrings_init_$Init$(courseTerminology, systemImpl, json, $this) { CourseTerminologyStrings.call($this, toTerminologyEntries(courseTerminology, json, systemImpl), courseTerminology.f8g_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_125 = this; this.rp7_1 = new CourseTerminologyStrings(emptyList()); } var Companion_instance_125; function Companion_getInstance_94() { if (Companion_instance_125 == null) new Companion_77(); return Companion_instance_125; } function CourseTerminologyStrings(terminologyEntries, terminologyKey) { Companion_getInstance_94(); terminologyKey = terminologyKey === VOID ? null : terminologyKey; this.sp7_1 = terminologyEntries; this.tp7_1 = terminologyKey; } protoOf(CourseTerminologyStrings).up7 = function (messageId) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.sp7_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.locale.CourseTerminologyStrings.get.' call if (element.wp7_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.xp7_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.sp7_1, this.sp7_1); }; protoOf(CourseTerminologyStrings).hashCode = function () { return hashCode(this.sp7_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.up7(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.vp7_1 = id; this.wp7_1 = stringResource; this.xp7_1 = term; this.yp7_1 = errorMessage; } protoOf(TerminologyEntry).zp7 = function (id, stringResource, term, errorMessage) { return new TerminologyEntry(id, stringResource, term, errorMessage); }; protoOf(TerminologyEntry).ap8 = function (id, stringResource, term, errorMessage, $super) { id = id === VOID ? this.vp7_1 : id; stringResource = stringResource === VOID ? this.wp7_1 : stringResource; term = term === VOID ? this.xp7_1 : term; errorMessage = errorMessage === VOID ? this.yp7_1 : errorMessage; return $super === VOID ? this.zp7(id, stringResource, term, errorMessage) : $super.zp7.call(this, id, stringResource, term, errorMessage); }; protoOf(TerminologyEntry).toString = function () { return 'TerminologyEntry(id=' + this.vp7_1 + ', stringResource=' + this.wp7_1 + ', term=' + this.xp7_1 + ', errorMessage=' + this.yp7_1 + ')'; }; protoOf(TerminologyEntry).hashCode = function () { var result = getStringHashCode(this.vp7_1); result = imul(result, 31) + this.wp7_1.hashCode() | 0; result = imul(result, 31) + (this.xp7_1 == null ? 0 : getStringHashCode(this.xp7_1)) | 0; result = imul(result, 31) + (this.yp7_1 == null ? 0 : getStringHashCode(this.yp7_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.vp7_1 === tmp0_other_with_cast.vp7_1)) return false; if (!this.wp7_1.equals(tmp0_other_with_cast.wp7_1)) return false; if (!(this.xp7_1 == tmp0_other_with_cast.xp7_1)) return false; if (!(this.yp7_1 == tmp0_other_with_cast.yp7_1)) return false; return true; }; function ClazzEnrolmentListConstants() { ClazzEnrolmentListConstants_instance = this; var tmp = this; var tmp_0 = to(1000, strings_getInstance().emg_1); var tmp_1 = to(1001, strings_getInstance().rm9_1); var tmp_2 = to(1003, strings_getInstance().rmq_1); tmp.bp8_1 = mapOf([tmp_0, tmp_1, tmp_2, to(1002, strings_getInstance().omj_1)]); var tmp_3 = this; var tmp_4 = to(202, strings_getInstance().gm9_1); var tmp_5 = to(201, strings_getInstance().qm8_1); var tmp_6 = to(203, strings_getInstance().rm8_1); tmp_3.cp8_1 = mapOf([tmp_4, tmp_5, tmp_6, to(200, strings_getInstance().fm9_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().xm3_1; var tmp_1 = new MessageIdOption2(tmp_0, 200); var tmp_2 = strings_getInstance().ym3_1; var tmp_3 = new MessageIdOption2(tmp_2, 201); var tmp_4 = strings_getInstance().zm3_1; var tmp_5 = new MessageIdOption2(tmp_4, 202); var tmp_6 = strings_getInstance().am4_1; var tmp_7 = new MessageIdOption2(tmp_6, 203); var tmp_8 = strings_getInstance().dm4_1; var tmp_9 = new MessageIdOption2(tmp_8, 205); var tmp_10 = strings_getInstance().bm4_1; var tmp_11 = new MessageIdOption2(tmp_10, 206); var tmp_12 = strings_getInstance().cm4_1; tmp.dp8_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().slx_1; var tmp_1 = new MessageIdOption2(tmp_0, 100); var tmp_2 = strings_getInstance().olx_1; var tmp_3 = new MessageIdOption2(tmp_2, 102); var tmp_4 = strings_getInstance().nlx_1; tmp.ep8_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().wms_1; Companion_getInstance_4(); var tmp_1 = new MessageIdOption2(tmp_0, 102); var tmp_2 = strings_getInstance().wmu_1; Companion_getInstance_4(); tmp.fp8_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().rm3_1; var tmp_1 = new MessageIdOption2(tmp_0, 100); var tmp_2 = strings_getInstance().sm3_1; var tmp_3 = new MessageIdOption2(tmp_2, 101); var tmp_4 = strings_getInstance().tm3_1; var tmp_5 = new MessageIdOption2(tmp_4, 102); var tmp_6 = strings_getInstance().um3_1; var tmp_7 = new MessageIdOption2(tmp_6, 103); var tmp_8 = strings_getInstance().vm3_1; var tmp_9 = new MessageIdOption2(tmp_8, 104); var tmp_10 = strings_getInstance().wm3_1; var tmp_11 = new MessageIdOption2(tmp_10, 105); var tmp_12 = strings_getInstance().dm9_1; var tmp_13 = new MessageIdOption2(tmp_12, 106); var tmp_14 = strings_getInstance().em9_1; tmp.gp8_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().im5_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().jm5_1; var tmp_3 = new MessageIdOption2(tmp_2, 2); var tmp_4 = strings_getInstance().km5_1; var tmp_5 = new MessageIdOption2(tmp_4, 3); var tmp_6 = strings_getInstance().lm5_1; var tmp_7 = new MessageIdOption2(tmp_6, 4); var tmp_8 = strings_getInstance().om5_1; var tmp_9 = new MessageIdOption2(tmp_8, 5); var tmp_10 = strings_getInstance().mm5_1; var tmp_11 = new MessageIdOption2(tmp_10, 6); var tmp_12 = strings_getInstance().nm5_1; var tmp_13 = new MessageIdOption2(tmp_12, 7); var tmp_14 = strings_getInstance().blw_1; var tmp_15 = new MessageIdOption2(tmp_14, 8); var tmp_16 = strings_getInstance().pm5_1; var tmp_17 = new MessageIdOption2(tmp_16, 9); var tmp_18 = strings_getInstance().clw_1; tmp.hp8_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().fm9_1; var tmp_1 = new MessageIdOption2(tmp_0, 200); var tmp_2 = strings_getInstance().qm8_1; var tmp_3 = new MessageIdOption2(tmp_2, 201); var tmp_4 = strings_getInstance().nlx_1; var tmp_5 = new MessageIdOption2(tmp_4, 202); var tmp_6 = strings_getInstance().rm8_1; tmp.ip8_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().alw_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().zlv_1; var tmp_3 = new MessageIdOption2(tmp_2, 2); var tmp_4 = strings_getInstance().blw_1; tmp.ap7_1 = listOf([tmp_1, tmp_3, new MessageIdOption2(tmp_4, 4)]); var tmp_5 = this; var tmp_6 = strings_getInstance().clw_1; tmp_5.bp7_1 = plus(listOf_0(new MessageIdOption2(tmp_6, 0)), this.ap7_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().km6_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().jm6_1; var tmp_3 = new MessageIdOption2(tmp_2, 2); var tmp_4 = strings_getInstance().mmm_1; var tmp_5 = new MessageIdOption2(tmp_4, 4); var tmp_6 = strings_getInstance().blw_1; tmp.jp8_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().emg_1; var tmp_1 = new MessageIdOption2(tmp_0, 1000); var tmp_2 = strings_getInstance().rm9_1; tmp.kp8_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.lp8_1 = listOf([new MessageIdOption2(strings_getInstance().tm7_1, Companion_instance_28.jk9_1), new MessageIdOption2(strings_getInstance().um7_1, Companion_instance_28.dk9_1), new MessageIdOption2(strings_getInstance().vm7_1, Companion_instance_28.ek9_1), new MessageIdOption2(strings_getInstance().wm7_1, Companion_instance_28.fk9_1), new MessageIdOption2(strings_getInstance().xm7_1, Companion_instance_28.gk9_1), new MessageIdOption2(strings_getInstance().ym7_1, Companion_instance_28.hk9_1), new MessageIdOption2(strings_getInstance().zm7_1, Companion_instance_28.ik9_1)]); var tmp = this; // Inline function 'kotlin.collections.map' call var this_0 = this.lp8_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.dp7_1, item.cp7_1); destination.i1(tmp$ret$0); } tmp.mp8_1 = toMap(destination); this.np8_1 = mapOf([to(Companion_instance_28.yk8_1, strings_getInstance().qm7_1), to(Companion_instance_28.zk8_1, strings_getInstance().om7_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().ymu_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().zmu_1; tmp.op8_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.pp8_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.qp8_1 = asSharedFlow(this.pp8_1); } protoOf(CommandFlowUstadNavController).rp8 = function (viewName, args, goOptions) { this.pp8_1.i1h(new NavigateNavCommand(viewName, args, goOptions)); }; protoOf(CommandFlowUstadNavController).sp8 = function (viewName, inclusive) { this.pp8_1.i1h(new PopNavCommand(viewName, inclusive)); }; function NavCommand(timestamp) { this.tp8_1 = timestamp; } function NavigateNavCommand(viewName, args, goOptions) { NavCommand.call(this, systemTimeInMillis()); this.vp8_1 = viewName; this.wp8_1 = args; this.xp8_1 = goOptions; } protoOf(NavigateNavCommand).toString = function () { return 'NavigateNavCommand(viewName=' + this.vp8_1 + ', args=' + this.wp8_1 + ', goOptions=' + this.xp8_1 + ')'; }; protoOf(NavigateNavCommand).hashCode = function () { var result = getStringHashCode(this.vp8_1); result = imul(result, 31) + hashCode(this.wp8_1) | 0; result = imul(result, 31) + this.xp8_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.vp8_1 === tmp0_other_with_cast.vp8_1)) return false; if (!equals(this.wp8_1, tmp0_other_with_cast.wp8_1)) return false; if (!this.xp8_1.equals(tmp0_other_with_cast.xp8_1)) return false; return true; }; function PopNavCommand(viewName, inclusive) { NavCommand.call(this, systemTimeInMillis()); this.zp8_1 = viewName; this.ap9_1 = inclusive; } protoOf(PopNavCommand).toString = function () { return 'PopNavCommand(viewName=' + this.zp8_1 + ', inclusive=' + this.ap9_1 + ')'; }; protoOf(PopNavCommand).hashCode = function () { var result = getStringHashCode(this.zp8_1); result = imul(result, 31) + getBooleanHashCode(this.ap9_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.zp8_1 === tmp0_other_with_cast.zp8_1)) return false; if (!(this.ap9_1 === tmp0_other_with_cast.ap9_1)) return false; return true; }; function NavResult(key, timestamp, result) { this.bp9_1 = key; this.cp9_1 = timestamp; this.dp9_1 = result; } protoOf(NavResult).toString = function () { return 'NavResult(key=' + this.bp9_1 + ', timestamp=' + this.cp9_1.toString() + ', result=' + toString_0(this.dp9_1) + ')'; }; protoOf(NavResult).hashCode = function () { var result = getStringHashCode(this.bp9_1); result = imul(result, 31) + this.cp9_1.hashCode() | 0; result = imul(result, 31) + (this.dp9_1 == null ? 0 : hashCode(this.dp9_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.bp9_1 === tmp0_other_with_cast.bp9_1)) return false; if (!this.cp9_1.equals(tmp0_other_with_cast.cp9_1)) return false; if (!equals(this.dp9_1, tmp0_other_with_cast.dp9_1)) return false; return true; }; function NavResultDest(viewName, key) { this.ep9_1 = viewName; this.fp9_1 = key; } function NavResultReturner() { } function NavResultReturnerImpl$resultFlowForKey$o$collect$slambda($$this$unsafeFlow, $key, resultContinuation) { this.qp9_1 = $$this$unsafeFlow; this.rp9_1 = $key; CoroutineImpl.call(this, resultContinuation); } protoOf(NavResultReturnerImpl$resultFlowForKey$o$collect$slambda).wp9 = function (value, $completion) { var tmp = this.xp9(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.wp9(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.up9_1 = this.qp9_1; var tmp_1 = this; tmp_1.vp9_1 = this.sp9_1; if (this.vp9_1.bp9_1 === this.rp9_1) { this.hd_1 = 3; suspendResult = this.up9_1.t1d(this.vp9_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.tp9_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).xp9 = function (value, completion) { var i = new NavResultReturnerImpl$resultFlowForKey$o$collect$slambda(this.qp9_1, this.rp9_1, completion); i.sp9_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.wp9(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$42(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.gpa_1 = _this__u8e3s4; this.hpa_1 = collector; } protoOf($collectCOROUTINE$42).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.ipa_1 = this.hpa_1; this.hd_1 = 1; var tmp_1 = NavResultReturnerImpl$resultFlowForKey$o$collect$slambda_0(this.ipa_1, this.gpa_1.kpa_1, null); suspendResult = this.gpa_1.jpa_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function sam$kotlinx_coroutines_flow_FlowCollector$0_1(function_0) { this.lpa_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).t1d = function (value, $completion) { return this.lpa_1(value, $completion); }; function _no_name_provided__qut3iv_0($this, $key) { this.jpa_1 = $this; this.kpa_1 = $key; } protoOf(_no_name_provided__qut3iv_0).mpa = function (collector, $completion) { var tmp = new $collectCOROUTINE$42(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_0).a1c = function (collector, $completion) { return this.mpa(collector, $completion); }; function NavResultReturnerImpl() { this.npa_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); } protoOf(NavResultReturnerImpl).gp9 = function (key) { // Inline function 'kotlinx.coroutines.flow.filter' call // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call var this_0 = this.npa_1; // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call return new _no_name_provided__qut3iv_0(this_0, key); }; protoOf(NavResultReturnerImpl).hp9 = function (result) { this.npa_1.i1h(result); }; function UstadNavController() { } function BitmaskFlag(flagVal, stringResource, enabled) { enabled = enabled === VOID ? false : enabled; this.opa_1 = flagVal; this.ppa_1 = stringResource; this.qpa_1 = enabled; } protoOf(BitmaskFlag).rpa = function (flagVal, stringResource, enabled) { return new BitmaskFlag(flagVal, stringResource, enabled); }; protoOf(BitmaskFlag).spa = function (flagVal, stringResource, enabled, $super) { flagVal = flagVal === VOID ? this.opa_1 : flagVal; stringResource = stringResource === VOID ? this.ppa_1 : stringResource; enabled = enabled === VOID ? this.qpa_1 : enabled; return $super === VOID ? this.rpa(flagVal, stringResource, enabled) : $super.rpa.call(this, flagVal, stringResource, enabled); }; protoOf(BitmaskFlag).toString = function () { return 'BitmaskFlag(flagVal=' + this.opa_1.toString() + ', stringResource=' + this.ppa_1 + ', enabled=' + this.qpa_1 + ')'; }; protoOf(BitmaskFlag).hashCode = function () { var result = this.opa_1.hashCode(); result = imul(result, 31) + this.ppa_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.qpa_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.opa_1.equals(tmp0_other_with_cast.opa_1)) return false; if (!this.ppa_1.equals(tmp0_other_with_cast.ppa_1)) return false; if (!(this.qpa_1 === tmp0_other_with_cast.qpa_1)) return false; return true; }; function ListPagingSource(list) { PagingSource.call(this); this.upa_1 = list; } protoOf(ListPagingSource).c5s = function (params, $completion) { var tmp0_elvis_lhs = params.s2(); var startFrom = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs; var loadSize = params.h54_1; var tmp1_elvis_lhs = params.s2(); var tmp = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; // Inline function 'kotlin.math.min' call var a = this.upa_1.u(); var b = startFrom + loadSize | 0; var tmp$ret$0 = Math.min(a, b); var subList = this.upa_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.upa_1.u()) { tmp_2 = startFrom + loadSize | 0; } else { tmp_2 = null; } var tmp_3 = Page_init_$Create$(subList, tmp_1, tmp_2); return tmp_3 instanceof LoadResult ? tmp_3 : THROW_CCE(); }; protoOf(ListPagingSource).p54 = function (params, $completion) { return this.c5s(params, $completion); }; function RefreshCommand(time) { time = time === VOID ? systemTimeInMillis() : time; this.vpa_1 = time; } function ClazzLogCreatorManager() { } function generateUid(_this__u8e3s4) { return toLong(_this__u8e3s4.n9q_1.hashCode()).rc(32).vc(toLong(_this__u8e3s4.o9q_1.hashCode())); } function get_totalAttendeeStatusRecorded(_this__u8e3s4) { return (_this__u8e3s4.t9q_1 + _this__u8e3s4.v9q_1 | 0) + _this__u8e3s4.u9q_1 | 0; } function Activity(id, aType, lang) { lang = lang === VOID ? 'en' : lang; this.boe_1 = aType; this.coe_1 = lang; this.eoe_1 = null; this.foe_1 = null; this.goe_1 = null; this.hoe_1 = null; this.ioe_1 = new JsonObject(mapOf_0(to('id', JsonPrimitive_0(id)))); this.doe_1 = id; } protoOf(Activity).xpa = function (key, value) { // Inline function 'kotlin.collections.isNullOrEmpty' call var this_0 = this.hoe_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.hoe_1 = LinkedHashMap_init_$Create$(); } // Inline function 'kotlin.collections.set' call ensureNotNull(this.hoe_1).s(key, value); }; function Companion_78() { this.wod_1 = 1; } protoOf(Companion_78).ypa = function (xpp, parseFlags) { var tcxml = new TinCanXML(); var activity = null; var evtType = xpp.l7d(); var storeActivities = (parseFlags & this.wod_1) === this.wod_1; var inExtensions = false; var tagName; var extKey; var extVal; $l$1: do { $l$0: do { var tmp; var tmp_0 = evtType; if (tmp_0 === 2) { tmp = !(xpp.k7d() == null); } else { tmp = false; } if (tmp) { tagName = ensureNotNull(xpp.k7d()); if (!inExtensions) { if (tagName === 'activity') { activity = new Activity(ensureNotNull(xpp.m7d(null, 'id')), ensureNotNull(xpp.m7d(null, 'type'))); } else { var tmp_1; if (tagName === 'launch') { var tmp_2 = xpp.e(); tmp_1 = tmp_2 === 4; } else { tmp_1 = false; } if (tmp_1) { ensureNotNull(activity).goe_1 = xpp.j7d(); } else { var tmp_3; if (tagName === 'name') { var tmp_4 = xpp.e(); tmp_3 = tmp_4 === 4; } else { tmp_3 = false; } if (tmp_3) { ensureNotNull(activity).foe_1 = xpp.j7d(); } else { var tmp_5; if (tagName === 'description') { var tmp_6 = xpp.e(); tmp_5 = tmp_6 === 4; } else { tmp_5 = false; } if (tmp_5) { ensureNotNull(activity).eoe_1 = xpp.j7d(); } else { if (xpp.k7d() === 'extensions') { inExtensions = true; } } } } } } else { if (tagName === 'extension') { extKey = ensureNotNull(xpp.m7d(null, 'key')); var tmp_7; var tmp_8 = xpp.e(); if (tmp_8 === 4) { var tmp0_elvis_lhs = xpp.j7d(); tmp_7 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; } else { tmp_7 = ''; } extVal = tmp_7; ensureNotNull(activity).xpa(extKey, extVal); } } } else { var tmp_9 = evtType; if (tmp_9 === 3) { if (!(xpp.k7d() == null)) { if (xpp.k7d() === 'activity') { if (!(ensureNotNull(activity).goe_1 == null)) { tcxml.yod_1 = activity; if (!storeActivities) { break $l$1; } } } else if (xpp.k7d() === 'extensions') { inExtensions = false; } } } } evtType = xpp.e(); } while (false); var tmp_10 = evtType; } while (!(tmp_10 === 1)); return tcxml; }; protoOf(Companion_78).xod = function (xpp, parseFlags, $super) { parseFlags = parseFlags === VOID ? 0 : parseFlags; return $super === VOID ? this.ypa(xpp, parseFlags) : $super.ypa.call(this, xpp, parseFlags); }; var Companion_instance_126; function Companion_getInstance_95() { return Companion_instance_126; } function TinCanXML() { this.yod_1 = null; this.zod_1 = false; this.aoe_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.wnl_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.entryByUri.' call if (element.anm_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.inm_1; } function requireBodyUrlForUri(_this__u8e3s4, uri) { return requireEntryByUri(_this__u8e3s4, uri).inm_1; } function DiTag() { this.zpa_1 = 13; this.apb_1 = 81; this.bpb_1 = 12; this.cpb_1 = 1; this.dpb_1 = 0; this.epb_1 = 32; this.fpb_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.opb_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.opb_1.qpb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.opb_1.upb_1 = null; this.hd_1 = 2; suspendResult = this.opb_1.spb_1(tryReceiveAll(this.opb_1.tpb_1, this.opb_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.opb_1, completion); i.ppb_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.qpb_1 = maxWaitTime; this.rpb_1 = coroutineScope; this.spb_1 = onCollate; this.tpb_1 = Channel(capacity, onBufferOverflow); this.upb_1 = null; } protoOf(EventCollator2).s6x = function (event) { this.tpb_1.w19(event); if (this.upb_1 == null) { var tmp = this; tmp.upb_1 = launch(this.rpb_1, VOID, VOID, EventCollator2$receiveEvent$slambda_0(this, null)); } }; function Companion_79() { Companion_instance_127 = this; this.vpb_1 = -1; this.wpb_1 = new MessageIdOption2(strings_getInstance().clw_1, this.vpb_1); } var Companion_instance_127; function Companion_getInstance_96() { if (Companion_instance_127 == null) new Companion_79(); return Companion_instance_127; } function MessageIdOption2(stringResource, value) { Companion_getInstance_96(); this.cp7_1 = stringResource; this.dp7_1 = value; } protoOf(MessageIdOption2).toString = function () { return 'MessageIdOption2(stringResource=' + this.cp7_1 + ', value=' + this.dp7_1 + ')'; }; protoOf(MessageIdOption2).hashCode = function () { var result = this.cp7_1.hashCode(); result = imul(result, 31) + this.dp7_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.cp7_1.equals(tmp0_other_with_cast.cp7_1)) return false; if (!(this.dp7_1 === tmp0_other_with_cast.dp7_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.xpb_1 = fieldMessageId; this.ypb_1 = flag; this.zpb_1 = order; } protoOf(SortOrderOption).toString = function () { return 'SortOrderOption(fieldMessageId=' + this.xpb_1 + ', flag=' + this.ypb_1 + ', order=' + this.zpb_1 + ')'; }; protoOf(SortOrderOption).hashCode = function () { var result = this.xpb_1.hashCode(); result = imul(result, 31) + this.ypb_1 | 0; result = imul(result, 31) + (this.zpb_1 == null ? 0 : getBooleanHashCode(this.zpb_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.xpb_1.equals(tmp0_other_with_cast.xpb_1)) return false; if (!(this.ypb_1 === tmp0_other_with_cast.ypb_1)) return false; if (!(this.zpb_1 == tmp0_other_with_cast.zpb_1)) return false; 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.loe_1 = _Char___init__impl__6a9atx(47); this.moe_1 = 'file:///'; this.noe_1 = new Long(1073741824, 0); this.ooe_1 = new Long(1048576, 0); this.poe_1 = new Long(1024, 0); } protoOf(UMFileUtil).toi = 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).qoe = 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).apc = 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.apc(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_240.bpc(item.s2()), Companion_instance_240.bpc(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_240.cpc(key)).z5(_Char___init__impl__6a9atx(61)); var tmp = Companion_instance_240; var tmp_0 = ht.q(key); sb.y5(tmp.cpc((!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : THROW_CCE())); } return sb.toString(); }; protoOf(UMFileUtil).dpc = 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).epc = 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.fpc_1 = '/#/'; } protoOf(Companion_80).gpc = 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).hpc = function (url, divider, $super) { divider = divider === VOID ? '/#/' : divider; return $super === VOID ? this.gpc(url, divider) : $super.gpc.call(this, url, divider); }; var Companion_instance_128; function Companion_getInstance_97() { return Companion_instance_128; } function UstadUrlComponents$arguments$delegate$lambda(this$0) { return function () { var parsedParams = UMFileUtil_getInstance().apc(this$0.unr_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_240.bpc(item.s2()), Companion_instance_240.bpc(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.unr_1; if (charSequenceLength(this_0) === 0) { tmp = this$0.tnr_1; } else { tmp = this$0.tnr_1 + '?' + this$0.unr_1; } return tmp; }; } function UstadUrlComponents(endpoint, viewName, queryString) { this.snr_1 = endpoint; this.tnr_1 = viewName; this.unr_1 = queryString; var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.vnr_1 = lazy(tmp_0, UstadUrlComponents$arguments$delegate$lambda(this)); var tmp_1 = this; tmp_1.wnr_1 = lazy_0(UstadUrlComponents$viewUri$delegate$lambda(this)); } protoOf(UstadUrlComponents).ipc = function () { // Inline function 'kotlin.getValue' call var this_0 = this.wnr_1; viewUri$factory(); return this_0.t2(); }; protoOf(UstadUrlComponents).jpc = function (divider) { return UMFileUtil_getInstance().toi([this.snr_1, divider, this.ipc()]); }; protoOf(UstadUrlComponents).xnr = function (divider, $super) { var tmp; if (divider === VOID) { Companion_getInstance_90(); tmp = '/umapp/#/'; } else { tmp = divider; } divider = tmp; return $super === VOID ? this.jpc(divider) : $super.jpc.call(this, divider); }; protoOf(UstadUrlComponents).toString = function () { return 'UstadUrlComponents(endpoint=' + this.snr_1 + ', viewName=' + this.tnr_1 + ', queryString=' + this.unr_1 + ')'; }; protoOf(UstadUrlComponents).hashCode = function () { var result = getStringHashCode(this.snr_1); result = imul(result, 31) + getStringHashCode(this.tnr_1) | 0; result = imul(result, 31) + getStringHashCode(this.unr_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.snr_1 === tmp0_other_with_cast.snr_1)) return false; if (!(this.tnr_1 === tmp0_other_with_cast.tnr_1)) return false; if (!(this.unr_1 === tmp0_other_with_cast.unr_1)) return false; return true; }; function viewUri$factory() { return getPropertyCallableRef('viewUri', 1, KProperty1, function (receiver) { return receiver.ipc(); }, null); } function roundTo(_this__u8e3s4, decimalPlaces) { decimalPlaces = decimalPlaces === VOID ? 0 : decimalPlaces; // Inline function 'kotlin.math.pow' call var factor = Math.pow(10.0, decimalPlaces); return roundToInt(_this__u8e3s4 * factor) / factor; } function toDisplayString(_this__u8e3s4, decimalPlaces) { decimalPlaces = decimalPlaces === VOID ? 2 : decimalPlaces; var strVal = _this__u8e3s4.toString(); var tmp; // Inline function 'kotlin.math.round' call if (round(_this__u8e3s4) === _this__u8e3s4) { tmp = substringBefore(strVal, _Char___init__impl__6a9atx(46)); } else { tmp = removeSuffix(roundTo(_this__u8e3s4, decimalPlaces).toString(), '0'); } return tmp; } function paramSubtitles(_this__u8e3s4, json) { var tmp0_safe_receiver = paramMap(_this__u8e3s4, json); var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = tmp0_safe_receiver.q('subtitles'); } var tmp1_safe_receiver = tmp; var tmp_0; if (tmp1_safe_receiver == null) { tmp_0 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.paramSubtitles.' call tmp_0 = json.s45(ListSerializer(Companion_instance_79.n4r()), tmp1_safe_receiver); } return tmp_0; } function paramMap(_this__u8e3s4, json) { var tmp0_safe_receiver = _this__u8e3s4.kaz_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.paramMap.' call tmp = json.s45(MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)), tmp0_safe_receiver); } return tmp; } function penaltyPercentage(_this__u8e3s4) { // Inline function 'kotlin.math.roundToInt' call var this_0 = _this__u8e3s4.tbi_1 * 100 / (_this__u8e3s4.rbi_1 + _this__u8e3s4.tbi_1); return roundToInt(this_0); } function textLength(_this__u8e3s4, limitType) { var tmp; if (limitType === 1) { var tmp0_safe_receiver = _this__u8e3s4.ubo_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.ubo_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.t7x_1) ? _this__u8e3s4.t7x_1.c7(_this__u8e3s4.r7x_1) > 0 : false) return _this__u8e3s4.t7x_1; else return _this__u8e3s4.r7x_1; } function maxScoreSummedIfModule(_this__u8e3s4, allBlocks) { var tmp = _this__u8e3s4.k7x_1; if (!(tmp === 100)) return _this__u8e3s4.u7x_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.m7x_1.equals(_this__u8e3s4.j7x_1)) { numModBlocks = numModBlocks + 1 | 0; var tmp_0 = totalModPoints; var tmp1_elvis_lhs = element.u7x_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.e8g_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().rnn_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.tno(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.xp7_1; var tmp$ret$0 = to(item.vp7_1, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); destination.i1(tmp$ret$0); } return encodeStringMapToString(json, toMap(destination)); } function onActiveEndpoint(_this__u8e3s4) { // Inline function 'org.kodein.di.on' call // Inline function 'org.kodein.di.instance' call var tmp = get_direct(_this__u8e3s4).f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UstadAccountManager), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var context = tmp.d58(tmp$ret$0, null).mng(); var trigger = _this__u8e3s4.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_1 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); var tmp$ret$3 = tmp_1.h57(tmp$ret$2, context); return On(_this__u8e3s4, tmp$ret$3, trigger); } function get_dayStringResource(_this__u8e3s4) { switch (_this__u8e3s4.za_1) { case 0: return strings_getInstance().um7_1; case 1: return strings_getInstance().vm7_1; case 2: return strings_getInstance().wm7_1; case 3: return strings_getInstance().xm7_1; case 4: return strings_getInstance().ym7_1; case 5: return strings_getInstance().zm7_1; case 6: return strings_getInstance().tm7_1; default: return strings_getInstance().rlt_1; } } function verifySite(_this__u8e3s4, endpointUrl, timeout, json, $completion) { timeout = timeout === VOID ? new Long(30000, 0) : timeout; var tmp = new $verifySiteCOROUTINE$43(_this__u8e3s4, endpointUrl, timeout, json, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function verifySite$lambda($timeout) { return function ($this$timeout) { $this$timeout.y3s($timeout); return Unit_instance; }; } function $verifySiteCOROUTINE$43(_this__u8e3s4, endpointUrl, timeout, json, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.spc_1 = _this__u8e3s4; this.tpc_1 = endpointUrl; this.upc_1 = timeout; this.vpc_1 = json; } protoOf($verifySiteCOROUTINE$43).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.wpc_1 = UMFileUtil_getInstance().toi([this.tpc_1, 'Site', 'verify']); var tmp_0 = this; tmp_0.xpc_1 = this.spc_1; var tmp_1 = this; tmp_1.ypc_1 = this.wpc_1; var tmp_2 = this; tmp_2.zpc_1 = this.xpc_1; var tmp_3 = this; tmp_3.apd_1 = this.zpc_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.ypc_1); header(this_0, 'cache-control', 'no-cache'); timeout(this_0, verifySite$lambda(this.upc_1)); tmp_4.bpd_1 = this_0; this.bpd_1.w38_1 = Companion_getInstance().l2x_1; var tmp_5 = this; tmp_5.cpd_1 = this.apd_1; var tmp_6 = this; tmp_6.dpd_1 = this.bpd_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.dpd_1, this.cpd_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.epd_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.epd_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var responseStr = suspendResult; return this.vpc_1.s45(Companion_instance_30.n4r(), responseStr); case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function toMap_1(_this__u8e3s4) { var tmp; if (_this__u8e3s4 instanceof MapStringValues) { tmp = _this__u8e3s4.fpd_1; } else { // Inline function 'kotlin.collections.map' call var this_0 = _this__u8e3s4.o2n(); // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.ext.toMap.' call var tmp$ret$0 = to(item, _this__u8e3s4.n2n(item)); destination.i1(tmp$ret$0); } tmp = toMap(destination); } return tmp; } function toLocalMidnight(_this__u8e3s4, timeZoneId) { return toLocalMidnight_0(_this__u8e3s4, Companion_getInstance_9().fls(timeZoneId)); } function toLocalEndOfDay(_this__u8e3s4, timeZoneId) { return toLocalEndOfDay_0(_this__u8e3s4, Companion_getInstance_9().fls(timeZoneId)); } function isDateOfBirthAnAdult(_this__u8e3s4) { return ageInYears(_this__u8e3s4) >= UstadMobileConstants_getInstance().np3_1; } function isDateOfBirthAMinor(_this__u8e3s4) { return ageInYears(_this__u8e3s4) < UstadMobileConstants_getInstance().mp3_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.ilp(), Companion_getInstance_9().els_1).qlp(); } function hasFlag(_this__u8e3s4, flag) { return (_this__u8e3s4 & flag) === flag; } function decodeStringMapFromString(_this__u8e3s4, string) { return _this__u8e3s4.s45(MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)), string); } function encodeStringMapToString(_this__u8e3s4, stringMap) { return _this__u8e3s4.r45(MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)), stringMap); } function decodeListOrSingleObjectAsList(_this__u8e3s4, serializer, element) { var tmp; if (element instanceof JsonArray) { tmp = _this__u8e3s4.o4p(ListSerializer(serializer), element); } else { if (element instanceof JsonObject) { tmp = listOf_0(_this__u8e3s4.o4p(serializer, element)); } else { tmp = null; } } return tmp; } function replaceOrAppend(_this__u8e3s4, element, replacePredicate) { var tmp$ret$0; $l$block: { // Inline function 'kotlin.collections.indexOfFirst' call var index = 0; var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); if (replacePredicate(item)) { tmp$ret$0 = index; break $l$block; } index = index + 1 | 0; } tmp$ret$0 = -1; } var replaceIndex = tmp$ret$0; var tmp; if (replaceIndex >= 0) { // Inline function 'kotlin.also' call var this_0 = toMutableList(_this__u8e3s4); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.replaceOrAppend.' call this_0.f1(replaceIndex, element); tmp = toList(this_0); } else { tmp = plus_1(_this__u8e3s4, element); } return tmp; } function findKeysNotInOtherList(_this__u8e3s4, otherList, key) { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(otherList, 10)); var tmp0_iterator = otherList.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); destination.i1(key(item)); } var otherListKeys = destination; // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(_this__u8e3s4, 10)); var tmp0_iterator_0 = _this__u8e3s4.w(); while (tmp0_iterator_0.f()) { var item_0 = tmp0_iterator_0.e(); destination_0.i1(key(item_0)); } var thisListKeys = destination_0; // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination_1 = ArrayList_init_$Create$(); var tmp0_iterator_1 = thisListKeys.w(); while (tmp0_iterator_1.f()) { var element = tmp0_iterator_1.e(); // Inline function 'com.ustadmobile.core.util.ext.findKeysNotInOtherList.' call if (!otherListKeys.a1(element)) { destination_1.i1(element); } } return destination_1; } function replace_0(_this__u8e3s4, element, replacePredicate) { var tmp$ret$0; $l$block: { // Inline function 'kotlin.collections.indexOfFirst' call var index = 0; var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); if (replacePredicate(item)) { tmp$ret$0 = index; break $l$block; } index = index + 1 | 0; } tmp$ret$0 = -1; } var replaceIndex = tmp$ret$0; if (replaceIndex === -1) throw IllegalArgumentException_init_$Create$('element to replace not found'); // Inline function 'kotlin.also' call var this_0 = toMutableList(_this__u8e3s4); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.replace.' call this_0.f1(replaceIndex, element); return toList(this_0); } function trimToSize(_this__u8e3s4, maxSize) { var tmp; if (_this__u8e3s4.u() > maxSize) { tmp = _this__u8e3s4.z(0, maxSize); } else { tmp = _this__u8e3s4; } return tmp; } function toggle(_this__u8e3s4, item) { var indexOfItem = _this__u8e3s4.x(item); var tmp; if (indexOfItem < 0) { tmp = plus_1(_this__u8e3s4, item); } else { // Inline function 'kotlin.also' call var this_0 = toMutableList(_this__u8e3s4); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.toggle.' call this_0.s1(indexOfItem); tmp = toList(this_0); } return tmp; } function toEmptyIfNull(_this__u8e3s4) { return _this__u8e3s4 == null ? emptyList() : _this__u8e3s4; } function filterByFlags(_this__u8e3s4, value) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination = ArrayList_init_$Create$(); var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.ext.filterByFlags.' call if (hasFlag_0(value, element.x6_1)) { destination.i1(element); } } return destination; } function toLocalMidnight_1(_this__u8e3s4) { return LocalDateTime_init_$Create$(_this__u8e3s4.clt(), LocalTime_init_$Create$(0, 0, 0)); } function toLocalEndOfDay_1(_this__u8e3s4) { return LocalDateTime_init_$Create$(_this__u8e3s4.clt(), LocalTime_init_$Create$(23, 59, 59)); } function chopOffSeconds(_this__u8e3s4) { if (_this__u8e3s4.alt() > 0 ? true : _this__u8e3s4.blt() > 0) { return LocalDateTime_init_$Create$(_this__u8e3s4.clt(), LocalTime_init_$Create$(_this__u8e3s4.yls(), _this__u8e3s4.zls())); } else { return _this__u8e3s4; } } function chopOffSeconds_0(_this__u8e3s4) { if (_this__u8e3s4.alt() > 0 ? true : _this__u8e3s4.blt() > 0) return LocalTime_init_$Create$(_this__u8e3s4.yls(), _this__u8e3s4.zls()); 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_240.cpc(item.s2()) + '=' + Companion_instance_240.cpc(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.gpd_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).t1d = function (value, $completion) { return this.gpd_1(value, $completion); }; function whenSubscribed$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.ppd_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.rpd_1 = this.ppd_1; var tmp_1 = this; tmp_1.spd_1 = this.qpd_1; this.hd_1 = 1; var it = this.spd_1; suspendResult = this.rpd_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.ppd_1, completion); i.qpd_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$44(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bpe_1 = _this__u8e3s4; this.cpe_1 = collector; } protoOf($collectCOROUTINE$44).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.dpe_1 = this.cpe_1; this.hd_1 = 1; var tmp_1 = whenSubscribed$o$collect$slambda_0(this.dpe_1, null); suspendResult = this.bpe_1.epe_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function _no_name_provided__qut3iv_1($this) { this.epe_1 = $this; } protoOf(_no_name_provided__qut3iv_1).fpe = function (collector, $completion) { var tmp = new $collectCOROUTINE$44(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_1).a1c = function (collector, $completion) { return this.fpe(collector, $completion); }; function whenSubscribed$slambda($block, resultContinuation) { this.ope_1 = $block; CoroutineImpl.call(this, resultContinuation); } protoOf(whenSubscribed$slambda).qpe = function (active, $completion) { var tmp = this.rpe(active, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(whenSubscribed$slambda).he = function (p1, $completion) { return this.qpe((!(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.ppe_1) { this.hd_1 = 1; suspendResult = this.ope_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).rpe = function (active, completion) { var i = new whenSubscribed$slambda(this.ope_1, completion); i.ppe_1 = active; return i; }; function whenSubscribed$slambda_0($block, resultContinuation) { var i = new whenSubscribed$slambda($block, resultContinuation); var l = function (active, $completion) { return i.qpe(active, $completion); }; l.$arity = 1; return l; } function navigateToLink(_this__u8e3s4, link, accountManager, openExternalLinkUseCase, goOptions, forceAccountSelection, userCanSelectServer, accountName, scope, linkTarget, dontSetCurrentSession) { goOptions = goOptions === VOID ? Companion_getInstance_89().qp3_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; var endpointUrl = {_v: null}; var viewUri = {_v: null}; var tmp; if (startsWithHttpProtocol(link)) { tmp = contains(link, '/#/'); } else { tmp = false; } if (tmp) { var urlComponents = Companion_instance_128.hpc(link); endpointUrl._v = urlComponents.snr_1; viewUri._v = urlComponents.ipc(); } 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.ilp(), UstadMobileConstants_getInstance().np3_1, Companion_getInstance_10().tlq_1, Companion_getInstance_9().els_1).ols(); } else { tmp_0 = new Long(0, 0); } var maxDateOfBirth = tmp_0; var tmp_2; if (viewUri._v == null ? true : (!userCanSelectServer ? !(endpointUrl._v == null) : false) ? !(endpointUrl._v === accountManager.mng().jn2_1) : false) { openExternalLinkUseCase.yoi(link, linkTarget); tmp_2 = null; } else { tmp_2 = launch(scope, VOID, VOID, navigateToLink$slambda_0(accountName, endpointUrl, accountManager, dontSetCurrentSession, _this__u8e3s4, viewUri, goOptions, forceAccountSelection, maxDateOfBirth, userCanSelectServer, 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.rp8(viewName, args, goOptions); } function sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1(function_0) { this.spe_1 = function_0; } protoOf(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1).sn8 = function (endpointUrl) { return this.spe_1(endpointUrl); }; function navigateToLink$slambda$lambda($endpointUrl) { return function (filterUrl) { return filterUrl === $endpointUrl._v; }; } function navigateToLink$slambda$lambda_0($endpointUrl) { return function (it) { return it === $endpointUrl._v; }; } function navigateToLink$slambda($accountName, $endpointUrl, $accountManager, $dontSetCurrentSession, $this_navigateToLink, $viewUri, $goOptions, $forceAccountSelection, $maxDateOfBirth, $userCanSelectServer, resultContinuation) { this.bpf_1 = $accountName; this.cpf_1 = $endpointUrl; this.dpf_1 = $accountManager; this.epf_1 = $dontSetCurrentSession; this.fpf_1 = $this_navigateToLink; this.gpf_1 = $viewUri; this.hpf_1 = $goOptions; this.ipf_1 = $forceAccountSelection; this.jpf_1 = $maxDateOfBirth; this.kpf_1 = $userCanSelectServer; 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 = 17; if (!(this.bpf_1 == null) ? !(this.cpf_1._v == null) : false) { this.hd_1 = 10; continue $sm; } else { if ((!this.ipf_1 ? !isTemporary(this.dpf_1.tnf().yn2_1) : false) ? this.cpf_1._v == null ? true : this.dpf_1.mng().jn2_1 === this.cpf_1._v : false) { navigateToViewUri(this.fpf_1, this.gpf_1._v, this.hpf_1); this.hd_1 = 16; continue $sm; } else { if (!(this.cpf_1._v == null)) { this.hd_1 = 1; var tmp_0 = navigateToLink$slambda$lambda_0(this.cpf_1); suspendResult = this.dpf_1.nng(this.jpf_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.opf_1 = false; this.hd_1 = 2; continue $sm; } } } case 1: this.ppf_1 = suspendResult; this.opf_1 = this.ppf_1 === 0; this.hd_1 = 2; continue $sm; case 2: if (this.opf_1) { this.npf_1 = true; this.hd_1 = 6; continue $sm; } else { if (this.cpf_1._v == null) { this.hd_1 = 3; suspendResult = this.dpf_1.ong(this.jpf_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.rpf_1 = false; this.hd_1 = 4; continue $sm; } } case 3: this.spf_1 = suspendResult; this.rpf_1 = this.spf_1 === 0; this.hd_1 = 4; continue $sm; case 4: if (this.rpf_1) { this.qpf_1 = !this.kpf_1; this.hd_1 = 5; continue $sm; } else { this.qpf_1 = false; this.hd_1 = 5; continue $sm; } case 5: this.npf_1 = this.qpf_1; this.hd_1 = 6; continue $sm; case 6: if (this.npf_1) { Companion_getInstance_108(); var tmp_1 = to('next', this.gpf_1._v); Companion_getInstance_118(); var args = mutableMapOf([tmp_1, to('noSessionChange', this.epf_1.toString())]); if (!(this.cpf_1._v == null)) { Companion_getInstance_108(); var key = 'serverUrl'; var value = this.cpf_1._v; args.s(key, value); } this.fpf_1.rp8('Login', toMap_0(args), this.hpf_1); this.hd_1 = 16; continue $sm; } else { if (this.cpf_1._v == null) { this.hd_1 = 7; suspendResult = this.dpf_1.ong(this.jpf_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.upf_1 = false; this.hd_1 = 8; continue $sm; } } case 7: this.vpf_1 = suspendResult; this.upf_1 = this.vpf_1 === 0; this.hd_1 = 8; continue $sm; case 8: if (this.upf_1) { this.tpf_1 = this.kpf_1; this.hd_1 = 9; continue $sm; } else { this.tpf_1 = false; this.hd_1 = 9; continue $sm; } case 9: if (this.tpf_1) { Companion_getInstance_200(); Companion_getInstance_108(); var tmp_2 = to('next', this.gpf_1._v); Companion_getInstance_118(); this.fpf_1.rp8('SiteEnterLink', mapOf([tmp_2, to('noSessionChange', this.epf_1.toString())]), this.hpf_1); this.hd_1 = 16; continue $sm; } else { Companion_getInstance_108(); var tmp_3 = to('next', this.gpf_1._v); Companion_getInstance_118(); var args_0 = mutableMapOf([tmp_3, to('noSessionChange', this.epf_1.toString())]); if (!(this.cpf_1._v == null)) { var key_0 = 'filterByEndpoint'; var value_0 = this.cpf_1._v; args_0.s(key_0, value_0); } var key_1 = 'activeAccountMode'; args_0.s(key_1, 'inlist'); Companion_getInstance_108(); var key_2 = 'listMode'; var value_1 = ListViewMode_PICKER_getInstance().toString(); args_0.s(key_2, value_1); Companion_getInstance_108(); var value_2 = this.jpf_1.toString(); args_0.s('maxDob', value_2); this.fpf_1.rp8('AccountList', toMap_0(args_0), this.hpf_1); this.hd_1 = 16; continue $sm; } case 10: this.hd_1 = 11; var tmp_4 = navigateToLink$slambda$lambda(this.cpf_1); suspendResult = this.dpf_1.unf(new sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1(tmp_4), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 11: var tmp0_iterator = suspendResult.w(); this.hd_1 = 12; continue $sm; case 12: if (!tmp0_iterator.f()) { this.hd_1 = 14; continue $sm; } var element = tmp0_iterator.e(); if (element.zn2_1.t95_1 === substringBefore_0(this.bpf_1, '@')) { this.mpf_1 = element; this.hd_1 = 15; continue $sm; } else { this.hd_1 = 13; continue $sm; } case 13: this.hd_1 = 12; continue $sm; case 14: this.mpf_1 = null; if (false) { this.hd_1 = 10; continue $sm; } this.hd_1 = 15; continue $sm; case 15: var session = this.mpf_1; if (!(session == null)) { var this_0 = this.dpf_1; var tmp_5; if (!this.epf_1) { tmp_5 = this_0; } else { tmp_5 = null; } var tmp0_safe_receiver = tmp_5; if (tmp0_safe_receiver != null) { tmp0_safe_receiver.yn5(session); } navigateToViewUri(this.fpf_1, this.gpf_1._v, this.hpf_1); } this.hd_1 = 16; continue $sm; case 16: return Unit_instance; case 17: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 17) { 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.bpf_1, this.cpf_1, this.dpf_1, this.epf_1, this.fpf_1, this.gpf_1, this.hpf_1, this.ipf_1, this.jpf_1, this.kpf_1, completion); i.lpf_1 = $this$launch; return i; }; function navigateToLink$slambda_0($accountName, $endpointUrl, $accountManager, $dontSetCurrentSession, $this_navigateToLink, $viewUri, $goOptions, $forceAccountSelection, $maxDateOfBirth, $userCanSelectServer, resultContinuation) { var i = new navigateToLink$slambda($accountName, $endpointUrl, $accountManager, $dontSetCurrentSession, $this_navigateToLink, $viewUri, $goOptions, $forceAccountSelection, $maxDateOfBirth, $userCanSelectServer, 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, endpoint) { 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 = endpoint.jn2_1; return new XapiAgent(tmp, VOID, VOID, VOID, VOID, new XapiAccount(tmp2_homePage, tmp1_name)); } function toggle_0(_this__u8e3s4, item) { var tmp; if (_this__u8e3s4.a1(item)) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination = ArrayList_init_$Create$(); var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.ext.toggle.' call if (!equals(element, item)) { destination.i1(element); } } tmp = toSet(destination); } else { // Inline function 'kotlin.apply' call var this_0 = toMutableSet(_this__u8e3s4); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.toggle.' call this_0.i1(item); tmp = toSet(this_0); } return tmp; } function toQueryLikeParam(_this__u8e3s4) { var tmp; // Inline function 'kotlin.text.isNullOrEmpty' call // Inline function 'kotlin.contracts.contract' call if (_this__u8e3s4 == null ? true : charSequenceLength(_this__u8e3s4) === 0) { tmp = '%'; } else { tmp = '%' + _this__u8e3s4 + '%'; } return tmp; } function capitalizeFirstLetter(_this__u8e3s4) { // Inline function 'kotlin.text.replaceFirstChar' call var tmp; // Inline function 'kotlin.text.isNotEmpty' call if (charSequenceLength(_this__u8e3s4) > 0) { // Inline function 'com.ustadmobile.core.util.ext.capitalizeFirstLetter.' call var it = charSequenceGet(_this__u8e3s4, 0); var tmp$ret$1 = isLowerCase(it) ? titlecase(it) : toString_1(it); var tmp_0 = toString(tmp$ret$1); // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call tmp = tmp_0 + _this__u8e3s4.substring(1); } else { tmp = _this__u8e3s4; } return tmp; } function appendQueryArgs(_this__u8e3s4, args) { var tmp; // Inline function 'kotlin.collections.isNotEmpty' call if (!args.c1()) { tmp = appendQueryArgs_0(_this__u8e3s4, toQueryString(args)); } else { tmp = _this__u8e3s4; } return tmp; } function appendQueryArgs_0(_this__u8e3s4, queryArgs) { var retVal = _this__u8e3s4; if (contains(_this__u8e3s4, '?')) retVal = retVal + '&'; else retVal = retVal + '?'; retVal = retVal + queryArgs; return retVal; } function countWords(_this__u8e3s4) { var lastCharWasWhitespace = true; var wordCount = 0; var inductionVariable = 0; var last = _this__u8e3s4.length; if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; var thisCharWhitespace = isWhitespace(charSequenceGet(_this__u8e3s4, i)); if (!thisCharWhitespace ? lastCharWasWhitespace : false) { wordCount = wordCount + 1 | 0; } lastCharWasWhitespace = thisCharWhitespace; } while (inductionVariable < last); return wordCount; } function startsWithHttpProtocol(_this__u8e3s4) { // Inline function 'kotlin.let' call // Inline function 'kotlin.text.lowercase' call // Inline function 'kotlin.js.asDynamic' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.startsWithHttpProtocol.' call var it = _this__u8e3s4.toLowerCase(); return startsWith(it, 'http://') ? true : startsWith(it, 'https://'); } function requirePostfix(_this__u8e3s4, postFix, ignoreCase) { ignoreCase = ignoreCase === VOID ? false : ignoreCase; return endsWith(_this__u8e3s4, postFix, ignoreCase) ? _this__u8e3s4 : _this__u8e3s4 + postFix; } function appendSelectedAccount(_this__u8e3s4, personUid, endpoint) { Companion_getInstance_118(); var tmp = to('selectedAccountPersonUid', personUid.toString()); Companion_getInstance_118(); return appendQueryArgs(_this__u8e3s4, mapOf([tmp, to('selectedAccountEndpointUrl', endpoint.jn2_1)])); } function requireHttpPrefix(_this__u8e3s4, defaultProtocol) { defaultProtocol = defaultProtocol === VOID ? 'https' : defaultProtocol; return startsWithHttpProtocol(_this__u8e3s4) ? _this__u8e3s4 : defaultProtocol + '://' + _this__u8e3s4; } function toNullIfBlank(_this__u8e3s4) { var tmp; if (isBlank(_this__u8e3s4)) { tmp = null; } else { tmp = _this__u8e3s4; } return tmp; } 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.ilp() : instant; return gmtOffsetString(offsetAt(_this__u8e3s4, instant)) + ' ' + _this__u8e3s4.ils(); } function get_progressAsFloat(_this__u8e3s4) { var tmp = _this__u8e3s4.hby_1.zc(); // Inline function 'kotlin.takeIf' call var this_0 = _this__u8e3s4.gby_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$45(_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$46(_this__u8e3s4, block, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function ScopedGrantResult(sgUid) { this.aph_1 = sgUid; } protoOf(ScopedGrantResult).toString = function () { return 'ScopedGrantResult(sgUid=' + this.aph_1.toString() + ')'; }; protoOf(ScopedGrantResult).hashCode = function () { return this.aph_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.aph_1.equals(tmp0_other_with_cast.aph_1)) return false; return true; }; function grantScopedPermission(_this__u8e3s4, toPerson, permissions, scopeTableId, scopeEntityUid, $completion) { return grantScopedPermission_0(_this__u8e3s4, toPerson.d96_1, permissions, scopeTableId, scopeEntityUid, $completion); } function grantScopedPermission_0(_this__u8e3s4, toGroupUid, permissions, scopeTableId, scopeEntityUid, $completion) { var tmp = new $grantScopedPermissionCOROUTINE$47(_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$48(_this__u8e3s4, block, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $insertPersonAndGroupCOROUTINE$45(_this__u8e3s4, entity, groupFlag, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.epg_1 = _this__u8e3s4; this.fpg_1 = entity; this.gpg_1 = groupFlag; } protoOf($insertPersonAndGroupCOROUTINE$45).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.ffu_1 = 'Person individual group'; this_0.hfu_1 = this.gpg_1; tmp_0.hpg_1 = this_0; this.hd_1 = 1; suspendResult = this.epg_1.d7e().insertAsync(this.hpg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ipg_1 = suspendResult; this.hpg_1.afu_1 = this.ipg_1; this.fpg_1.d96_1 = this.hpg_1.afu_1; this.hd_1 = 2; suspendResult = this.epg_1.n7d().insertAsync(this.fpg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.jpg_1 = suspendResult; this.fpg_1.s95_1 = this.jpg_1; this.hd_1 = 3; suspendResult = this.epg_1.e7e().insertAsync(PersonGroupMember_init_$Create$(this.fpg_1.s95_1, this.fpg_1.d96_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.epg_1, this.fpg_1, tmp_1, 9, this.fpg_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: return this.fpg_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$46(_this__u8e3s4, block, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.spg_1 = _this__u8e3s4; this.tpg_1 = block; } protoOf($localFirstThenRepoIfFalseCOROUTINE$46).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.spg_1; var tmp0_safe_receiver = isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : null; var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x5i(); tmp_0.upg_1 = tmp_2 instanceof UmAppDatabase ? tmp_2 : null; this.vpg_1 = this.upg_1; if (this.vpg_1 == null) { this.wpg_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_3 = this; tmp_3.xpg_1 = this.vpg_1; var tmp_4 = this; tmp_4.ypg_1 = this.xpg_1; this.hd_1 = 1; suspendResult = this.tpg_1(this.ypg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.wpg_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.zpg_1 = this.wpg_1; if (this.zpg_1 === true) return this.zpg_1; this.hd_1 = 3; suspendResult = this.tpg_1(this.spg_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$47(_this__u8e3s4, toGroupUid, permissions, scopeTableId, scopeEntityUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jph_1 = _this__u8e3s4; this.kph_1 = toGroupUid; this.lph_1 = permissions; this.mph_1 = scopeTableId; this.nph_1 = scopeEntityUid; } protoOf($grantScopedPermissionCOROUTINE$47).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.jph_1.y7e(); var this_0 = new ScopedGrant(); this_0.ygz_1 = this.kph_1; this_0.xgz_1 = this.lph_1; this_0.vgz_1 = this.mph_1; this_0.wgz_1 = this.nph_1; suspendResult = tmp_0.bgz(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$48(_this__u8e3s4, block, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wph_1 = _this__u8e3s4; this.xph_1 = block; } protoOf($localFirstThenRepoIfNullCOROUTINE$48).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.wph_1; var tmp0_safe_receiver = isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : null; var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x5i(); tmp_0.yph_1 = tmp_2 instanceof UmAppDatabase ? tmp_2 : null; this.zph_1 = this.yph_1; if (this.zph_1 == null) { this.api_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_3 = this; tmp_3.bpi_1 = this.zph_1; var tmp_4 = this; tmp_4.cpi_1 = this.bpi_1; this.hd_1 = 1; suspendResult = this.xph_1(this.cpi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.api_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.dpi_1 = this.api_1; if (!(this.dpi_1 == null)) return this.dpi_1; this.hd_1 = 3; suspendResult = this.xph_1(this.wph_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 withEndpoint(_this__u8e3s4, endpoint) { var tmp0_elvis_lhs = _this__u8e3s4.lhy_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.jhy_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 UserSessionWithPersonAndEndpoint(tmp_0, tmp_1, endpoint); } function isTemporary(_this__u8e3s4) { var tmp = _this__u8e3s4.ihy_1; var tmp_0 = tmp & 8; return tmp_0 === 8; } function setIfNoValueSetYet(_this__u8e3s4, key, value) { if (_this__u8e3s4.ba(key) == null) { _this__u8e3s4.epi(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.mlt() / 3600 | 0; // Inline function 'kotlin.mod' call var r = _this__u8e3s4.mlt() % 3600 | 0; var minutes = r + (3600 & ((r ^ 3600) & (r | (-r | 0))) >> 31) | 0; // Inline function 'kotlin.text.buildString' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.apply' call var this_0 = StringBuilder_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.gmtOffsetString.' call this_0.y5('GMT'); if (hours >= 0) { this_0.y5('+'); } else { this_0.y5('-'); } // Inline function 'kotlin.math.absoluteValue' call var tmp$ret$1 = abs(hours); this_0.y5(padStart(tmp$ret$1.toString(), 2, _Char___init__impl__6a9atx(48))); this_0.y5(':'); // Inline function 'kotlin.math.absoluteValue' call var tmp$ret$2 = abs(minutes); this_0.y5(padStart(tmp$ret$2.toString(), 2, _Char___init__impl__6a9atx(48))); return this_0.toString(); } function displayName(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.tiz_1; var tmp2_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fiy_1; var tmp; if (tmp2_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.siz_1.zix_1; tmp = tmp1_safe_receiver == null ? null : substringAfterLast(tmp1_safe_receiver, '/'); } else { tmp = tmp2_elvis_lhs; } var tmp3_elvis_lhs = tmp; return tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs; } function xhtmlContentToText(_this__u8e3s4) { // Inline function 'kotlin.text.buildString' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.apply' call var this_0 = StringBuilder_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.xhtmlContentToText.' call var initTagName = _this__u8e3s4.dc(); var initDepth = _this__u8e3s4.ekh(); while (!((_this__u8e3s4.e().equals(EventType_END_ELEMENT_getInstance()) ? _this__u8e3s4.ekh() === (initDepth - 1 | 0) : false) ? _this__u8e3s4.dc().equals(initTagName) : false)) { switch (_this__u8e3s4.jkh().za_1) { case 1: if (_this__u8e3s4.dc().akl() === 'img') { var tmp1_elvis_lhs = _this__u8e3s4.m7d(null, 'alt'); var textVal = tmp1_elvis_lhs == null ? _this__u8e3s4.m7d(null, 'title') : tmp1_elvis_lhs; if (textVal == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.xhtmlContentToText..' call this_0.y5(textVal); } } break; case 4: this_0.y5(trimExcessWhiteSpace(_this__u8e3s4.hkh())); break; default: break; } } return this_0.toString(); } function emptyStringValues() { return new MapStringValues(emptyMap()); } function Companion_81() { } protoOf(Companion_81).b4e = function () { return new MapStringValues(emptyMap()); }; protoOf(Companion_81).n4r = function () { return new StringValuesSerializer(); }; protoOf(Companion_81).v4g = function (typeParamsSerializers) { return this.n4r(); }; var Companion_instance_129; function Companion_getInstance_98() { return Companion_instance_129; } function IStringValues() { } function MapStringValues(map) { this.fpd_1 = map; } protoOf(MapStringValues).n2n = function (key) { // Inline function 'kotlin.collections.flatMap' call // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.fpd_1.q2(); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.stringvalues.MapStringValues.getAll.' call if (equals_0(element.s2(), key, true)) { destination.i1(element); } } // Inline function 'kotlin.collections.flatMapTo' call var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_0 = destination.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.util.stringvalues.MapStringValues.getAll.' call var list = element_0.t2(); addAll(destination_0, list); } return destination_0; }; protoOf(MapStringValues).o2n = function () { return this.fpd_1.o2(); }; function asIStringValues(_this__u8e3s4) { return new MapStringValues(_this__u8e3s4); } function StringValuesSerializer() { this.fpi_1 = MapSerializer(serializer_0(StringCompanionObject_instance), ListSerializer(serializer_0(StringCompanionObject_instance))); this.gpi_1 = SerialDescriptor('StringValuesSerializer', this.fpi_1.q44()); } protoOf(StringValuesSerializer).q44 = function () { return this.gpi_1; }; protoOf(StringValuesSerializer).s44 = function (decoder) { var stringMap = decoder.h48(this.fpi_1); return new MapStringValues(stringMap); }; protoOf(StringValuesSerializer).hpi = function (encoder, value) { encoder.z49(this.fpi_1, toMap_1(value)); }; protoOf(StringValuesSerializer).r44 = function (encoder, value) { return this.hpi(encoder, (!(value == null) ? isInterface(value, IStringValues) : false) ? value : THROW_CCE()); }; function Companion_82() { this.ipi_1 = 'errCode'; this.jpi_1 = 'msg'; this.kpi_1 = 'stacktraceKey'; this.lpi_1 = 'fromUri'; this.mpi_1 = 'ErrorReport'; } var Companion_instance_130; function Companion_getInstance_99() { return Companion_instance_130; } function Companion_83() { this.npi_1 = 'HolidayCalendarDetail'; } var Companion_instance_131; function Companion_getInstance_100() { return Companion_instance_131; } function Companion_84() { this.opi_1 = 'InviteViaLink'; } var Companion_instance_132; function Companion_getInstance_101() { return Companion_instance_132; } function Companion_85() { this.ppi_1 = 'JoinWithCode'; } var Companion_instance_133; function Companion_getInstance_102() { return Companion_instance_133; } function Companion_86() { this.qpi_1 = 'LanguageDetailView'; } var Companion_instance_134; function Companion_getInstance_103() { return Companion_instance_134; } function Companion_87() { this.rpi_1 = 'LanguageEditEditView'; } var Companion_instance_135; function Companion_getInstance_104() { return Companion_instance_135; } function Companion_88() { this.spi_1 = 'ScopedGrantDetail'; } var Companion_instance_136; function Companion_getInstance_105() { return Companion_instance_136; } function Companion_89() { this.tpi_1 = 'SiteTermsDetailView'; this.upi_1 = 'SiteTermsDetailAcceptTerms'; this.vpi_1 = 'useDisplayLocale'; this.wpi_1 = 'showAccept'; } var Companion_instance_137; function Companion_getInstance_106() { return Companion_instance_137; } function Companion_90() { Companion_instance_138 = this; this.xpi_1 = 'entity'; this.ypi_1 = new Long(200, 0); } var Companion_instance_138; function Companion_getInstance_107() { if (Companion_instance_138 == null) new Companion_90(); return Companion_instance_138; } 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.bpj_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_139 = this; this.cpj_1 = 'clazzAction'; this.dpj_1 = 'entityUid'; this.epj_1 = 'containerUid'; this.fpj_1 = 'parentUid'; this.gpj_1 = 'parentTitle'; this.hpj_1 = 'entryid'; this.ipj_1 = 'statementVerUid'; this.jpj_1 = 'contextRegistrationIdHi'; this.kpj_1 = 'contextRegistrationIdLo'; this.lpj_1 = 'learnerGroupUid'; this.mpj_1 = 'noiframe'; this.npj_1 = 'schoolUid'; this.opj_1 = 'content_type'; this.ppj_1 = 'filterBySchoolUid'; this.qpj_1 = 'filterByRole'; this.rpj_1 = 'listMode'; this.spj_1 = 'getResultMode'; this.tpj_1 = 'listAddMode'; this.upj_1 = 'filterByPermission'; this.vpj_1 = 'clazzUid'; this.wpj_1 = 'filterByPersonGroupUid'; this.xpj_1 = 'filterByEnrolmentRole'; this.ypj_1 = 'clazzAssignmentUid'; this.zpj_1 = 'clazzAssignmentSubmitterUid'; this.apk_1 = 'personUid'; this.bpk_1 = 'next'; this.cpk_1 = 'site'; this.dpk_1 = 'serverUrl'; this.epk_1 = 'openLink'; this.fpk_1 = 'account'; this.gpk_1 = 'accountEndpoint'; this.hpk_1 = 'snack_message'; this.ipk_1 = 'argCode'; this.jpk_1 = 'argCodeTable'; this.kpk_1 = 'argEntityName'; this.lpk_1 = ''; this.mpk_1 = 'root'; this.npk_1 = 'current'; this.opk_1 = 'goToComplete'; this.ppk_1 = 'saveDb'; this.qpk_1 = 'popUpToOnFinish'; this.rpk_1 = 'result_dest'; this.spk_1 = 'result_viewname'; this.tpk_1 = 'registration_allowed'; this.upk_1 = 'result_key'; this.vpk_1 = 'intMsg'; this.wpk_1 = 'title'; this.xpk_1 = 'navChild'; this.ypk_1 = 'activeTabIndex'; this.zpk_1 = 'maxDob'; this.apl_1 = new Long(1, -955361223); } var Companion_instance_139; function Companion_getInstance_108() { if (Companion_instance_139 == null) new Companion_91(); return Companion_instance_139; } 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.wpl_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.tpn_1 = errorReport; this.upn_1 = fieldsEnabled; } protoOf(ErrorReportUiState).toString = function () { return 'ErrorReportUiState(errorReport=' + this.tpn_1 + ', fieldsEnabled=' + this.upn_1 + ')'; }; protoOf(ErrorReportUiState).hashCode = function () { var result = this.tpn_1 == null ? 0 : hashCode(this.tpn_1); result = imul(result, 31) + getBooleanHashCode(this.upn_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.tpn_1, tmp0_other_with_cast.tpn_1)) return false; if (!(this.upn_1 === tmp0_other_with_cast.upn_1)) return false; return true; }; function HolidayCalendarDetailUIState(holidayCalendar, holidayList) { holidayCalendar = holidayCalendar === VOID ? null : holidayCalendar; holidayList = holidayList === VOID ? emptyList() : holidayList; this.vpn_1 = holidayCalendar; this.wpn_1 = holidayList; } protoOf(HolidayCalendarDetailUIState).toString = function () { return 'HolidayCalendarDetailUIState(holidayCalendar=' + this.vpn_1 + ', holidayList=' + this.wpn_1 + ')'; }; protoOf(HolidayCalendarDetailUIState).hashCode = function () { var result = this.vpn_1 == null ? 0 : hashCode(this.vpn_1); result = imul(result, 31) + hashCode(this.wpn_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.vpn_1, tmp0_other_with_cast.vpn_1)) return false; if (!equals(this.wpn_1, tmp0_other_with_cast.wpn_1)) return false; return true; }; function Companion_92() { this.xpn_1 = 'HolidayCalendarEdit'; } var Companion_instance_140; function Companion_getInstance_109() { return Companion_instance_140; } function HolidayCalendarEditUiState(holidayCalendar, fieldsEnabled, holidayList) { holidayCalendar = holidayCalendar === VOID ? null : holidayCalendar; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; holidayList = holidayList === VOID ? emptyList() : holidayList; this.ypn_1 = holidayCalendar; this.zpn_1 = fieldsEnabled; this.apo_1 = holidayList; } protoOf(HolidayCalendarEditUiState).toString = function () { return 'HolidayCalendarEditUiState(holidayCalendar=' + this.ypn_1 + ', fieldsEnabled=' + this.zpn_1 + ', holidayList=' + this.apo_1 + ')'; }; protoOf(HolidayCalendarEditUiState).hashCode = function () { var result = this.ypn_1 == null ? 0 : hashCode(this.ypn_1); result = imul(result, 31) + getBooleanHashCode(this.zpn_1) | 0; result = imul(result, 31) + (this.apo_1 == null ? 0 : hashCode(this.apo_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.ypn_1, tmp0_other_with_cast.ypn_1)) return false; if (!(this.zpn_1 === tmp0_other_with_cast.zpn_1)) return false; if (!equals(this.apo_1, tmp0_other_with_cast.apo_1)) return false; return true; }; function Companion_93() { this.bpo_1 = 'HolidayCalendarList'; } var Companion_instance_141; function Companion_getInstance_110() { return Companion_instance_141; } function HolidayCalendarListUiState(holidayCalendarList) { var tmp; if (holidayCalendarList === VOID) { // Inline function 'kotlin.collections.listOf' call tmp = emptyList(); } else { tmp = holidayCalendarList; } holidayCalendarList = tmp; this.cpo_1 = holidayCalendarList; } protoOf(HolidayCalendarListUiState).toString = function () { return 'HolidayCalendarListUiState(holidayCalendarList=' + this.cpo_1 + ')'; }; protoOf(HolidayCalendarListUiState).hashCode = function () { return hashCode(this.cpo_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.cpo_1, tmp0_other_with_cast.cpo_1)) return false; return true; }; function LanguageDetailUiState(language) { language = language === VOID ? null : language; this.dpo_1 = language; } protoOf(LanguageDetailUiState).toString = function () { return 'LanguageDetailUiState(language=' + this.dpo_1 + ')'; }; protoOf(LanguageDetailUiState).hashCode = function () { return this.dpo_1 == null ? 0 : this.dpo_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.dpo_1, tmp0_other_with_cast.dpo_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.epo_1 = language; this.fpo_1 = fieldsEnabled; this.gpo_1 = languageNameError; this.hpo_1 = twoLettersCodeError; this.ipo_1 = threeLettersCodeError; } protoOf(LanguageEditUiState).toString = function () { return 'LanguageEditUiState(language=' + this.epo_1 + ', fieldsEnabled=' + this.fpo_1 + ', languageNameError=' + this.gpo_1 + ', twoLettersCodeError=' + this.hpo_1 + ', threeLettersCodeError=' + this.ipo_1 + ')'; }; protoOf(LanguageEditUiState).hashCode = function () { var result = this.epo_1 == null ? 0 : this.epo_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.fpo_1) | 0; result = imul(result, 31) + (this.gpo_1 == null ? 0 : getStringHashCode(this.gpo_1)) | 0; result = imul(result, 31) + (this.hpo_1 == null ? 0 : getStringHashCode(this.hpo_1)) | 0; result = imul(result, 31) + (this.ipo_1 == null ? 0 : getStringHashCode(this.ipo_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.epo_1, tmp0_other_with_cast.epo_1)) return false; if (!(this.fpo_1 === tmp0_other_with_cast.fpo_1)) return false; if (!(this.gpo_1 == tmp0_other_with_cast.gpo_1)) return false; if (!(this.hpo_1 == tmp0_other_with_cast.hpo_1)) return false; if (!(this.ipo_1 == tmp0_other_with_cast.ipo_1)) return false; return true; }; function Companion_94() { this.jpo_1 = 'LanguageList'; } var Companion_instance_142; function Companion_getInstance_111() { return Companion_instance_142; } function LanguageListUiState(languageList, sortOptions, sortOrder) { languageList = languageList === VOID ? emptyList() : languageList; var tmp; if (sortOptions === VOID) { var tmp_0 = strings_getInstance().xlv_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().xlv_1; var tmp_3 = new SortOrderOption(tmp_2, 2, false); var tmp_4 = strings_getInstance().klw_1; var tmp_5 = new SortOrderOption(tmp_4, 3, true); var tmp_6 = strings_getInstance().klw_1; var tmp_7 = new SortOrderOption(tmp_6, 4, false); var tmp_8 = strings_getInstance().llw_1; var tmp_9 = new SortOrderOption(tmp_8, 5, true); var tmp_10 = strings_getInstance().llw_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.kpo_1 = languageList; this.lpo_1 = sortOptions; this.mpo_1 = sortOrder; } protoOf(LanguageListUiState).toString = function () { return 'LanguageListUiState(languageList=' + this.kpo_1 + ', sortOptions=' + this.lpo_1 + ', sortOrder=' + this.mpo_1 + ')'; }; protoOf(LanguageListUiState).hashCode = function () { var result = hashCode(this.kpo_1); result = imul(result, 31) + hashCode(this.lpo_1) | 0; result = imul(result, 31) + this.mpo_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.kpo_1, tmp0_other_with_cast.kpo_1)) return false; if (!equals(this.lpo_1, tmp0_other_with_cast.lpo_1)) return false; if (!this.mpo_1.equals(tmp0_other_with_cast.mpo_1)) return false; return true; }; function LeavingReasonEditViewModel$slambda$slambda($savedStateHandle, resultContinuation) { this.vpo_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$slambda$slambda).xpo = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LeavingReasonEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.xpo(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.wpo_1.u7d(); Companion_getInstance_108(); var tmp0_safe_receiver = this.vpo_1.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); suspendResult = tmp_0.df4(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).vn7 = function (it, completion) { var i = new LeavingReasonEditViewModel$slambda$slambda(this.vpo_1, completion); i.wpo_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.xpo(it, $completion); }; l.$arity = 1; return l; } function LeavingReasonEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$slambda$slambda_1).gpp = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LeavingReasonEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.gpp($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).l78 = function (completion) { return new LeavingReasonEditViewModel$slambda$slambda_1(completion); }; function LeavingReasonEditViewModel$slambda$slambda_2(resultContinuation) { var i = new LeavingReasonEditViewModel$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.gpp($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.epq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.LeavingReasonEditViewModel...' call var nextValue = prevValue.jpq(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_95() { this.kpq_1 = 'LeavingReasonEdit'; } var Companion_instance_143; function Companion_getInstance_112() { return Companion_instance_143; } function LeavingReasonEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.tpq_1 = this$0; this.upq_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.wpq_1 = Companion_getInstance_11().n4r(); this.hd_1 = 1; var tmp_0 = LeavingReasonEditViewModel$slambda$slambda_0(this.upq_1, null); var tmp_1 = LeavingReasonEditViewModel$slambda$slambda_2(null); suspendResult = this.tpq_1.kpn(this.wpq_1, VOID, VOID, tmp_0, tmp_1, LeavingReasonEditViewModel$slambda$lambda(this.tpq_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.tpq_1.epq_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.jpq(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.tpq_1, this.upq_1, completion); i.vpq_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.fpr_1 = $commitDelay; this.gpr_1 = $entity; this.hpr_1 = $this; this.ipr_1 = $key; this.jpr_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.fpr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.gpr_1 == null)) { this.hd_1 = 2; suspendResult = this.hpr_1.gpn(this.hpr_1.cpm_1, this.ipr_1, this.jpr_1, this.gpr_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.fpr_1, this.gpr_1, this.hpr_1, this.ipr_1, this.jpr_1, completion); i.kpr_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.epq_1 = MutableStateFlow(new LeavingReasonEditUiState(VOID, VOID, false)); this.fpq_1 = asStateFlow(this.epq_1); var tmp = this.tpm(); launch(tmp, VOID, VOID, LeavingReasonEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(LeavingReasonEditViewModel).lpr = function (leavingReason) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.epq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.LeavingReasonEditViewModel.onEntityChanged.' call var nextValue = prevValue.jpq(leavingReason); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_11().n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver = this.hps_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.tpm(); tmp.hps_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.gpq_1 = leavingReason; this.hpq_1 = reasonTitleError; this.ipq_1 = fieldsEnabled; } protoOf(LeavingReasonEditUiState).mps = function (leavingReason, reasonTitleError, fieldsEnabled) { return new LeavingReasonEditUiState(leavingReason, reasonTitleError, fieldsEnabled); }; protoOf(LeavingReasonEditUiState).jpq = function (leavingReason, reasonTitleError, fieldsEnabled, $super) { leavingReason = leavingReason === VOID ? this.gpq_1 : leavingReason; reasonTitleError = reasonTitleError === VOID ? this.hpq_1 : reasonTitleError; fieldsEnabled = fieldsEnabled === VOID ? this.ipq_1 : fieldsEnabled; return $super === VOID ? this.mps(leavingReason, reasonTitleError, fieldsEnabled) : $super.mps.call(this, leavingReason, reasonTitleError, fieldsEnabled); }; protoOf(LeavingReasonEditUiState).toString = function () { return 'LeavingReasonEditUiState(leavingReason=' + this.gpq_1 + ', reasonTitleError=' + this.hpq_1 + ', fieldsEnabled=' + this.ipq_1 + ')'; }; protoOf(LeavingReasonEditUiState).hashCode = function () { var result = this.gpq_1 == null ? 0 : hashCode(this.gpq_1); result = imul(result, 31) + (this.hpq_1 == null ? 0 : getStringHashCode(this.hpq_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.ipq_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.gpq_1, tmp0_other_with_cast.gpq_1)) return false; if (!(this.hpq_1 == tmp0_other_with_cast.hpq_1)) return false; if (!(this.ipq_1 === tmp0_other_with_cast.ipq_1)) return false; return true; }; function Companion_96() { this.nps_1 = 'Onboarding'; this.ops_1 = 'onboaring_screen'; } var Companion_instance_144; function Companion_getInstance_113() { return Companion_instance_144; } function Companion_97() { this.pps_1 = 'ReportFilterEdit'; } var Companion_instance_145; function Companion_getInstance_114() { return Companion_instance_145; } 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.qps_1 = fieldError; this.rps_1 = conditionsError; this.sps_1 = valuesError; this.tps_1 = fieldsEnabled; this.ups_1 = reportFilter; this.vps_1 = uidAndLabelList; this.wps_1 = createNewFilter; this.xps_1 = reportFilterValueVisible; this.yps_1 = reportFilterBetweenValueVisible; this.zps_1 = reportFilterUidAndLabelListVisible; } protoOf(ReportFilterEditUiState).toString = function () { return 'ReportFilterEditUiState(fieldError=' + this.qps_1 + ', conditionsError=' + this.rps_1 + ', valuesError=' + this.sps_1 + ', fieldsEnabled=' + this.tps_1 + ', reportFilter=' + this.ups_1 + ', uidAndLabelList=' + this.vps_1 + ', createNewFilter=' + this.wps_1 + ', reportFilterValueVisible=' + this.xps_1 + ', reportFilterBetweenValueVisible=' + this.yps_1 + ', reportFilterUidAndLabelListVisible=' + this.zps_1 + ')'; }; protoOf(ReportFilterEditUiState).hashCode = function () { var result = this.qps_1 == null ? 0 : getStringHashCode(this.qps_1); result = imul(result, 31) + (this.rps_1 == null ? 0 : getStringHashCode(this.rps_1)) | 0; result = imul(result, 31) + (this.sps_1 == null ? 0 : getStringHashCode(this.sps_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.tps_1) | 0; result = imul(result, 31) + (this.ups_1 == null ? 0 : this.ups_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.vps_1) | 0; result = imul(result, 31) + getStringHashCode(this.wps_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.xps_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.yps_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.zps_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.qps_1 == tmp0_other_with_cast.qps_1)) return false; if (!(this.rps_1 == tmp0_other_with_cast.rps_1)) return false; if (!(this.sps_1 == tmp0_other_with_cast.sps_1)) return false; if (!(this.tps_1 === tmp0_other_with_cast.tps_1)) return false; if (!equals(this.ups_1, tmp0_other_with_cast.ups_1)) return false; if (!equals(this.vps_1, tmp0_other_with_cast.vps_1)) return false; if (!(this.wps_1 === tmp0_other_with_cast.wps_1)) return false; if (!(this.xps_1 === tmp0_other_with_cast.xps_1)) return false; if (!(this.yps_1 === tmp0_other_with_cast.yps_1)) return false; if (!(this.zps_1 === tmp0_other_with_cast.zps_1)) return false; return true; }; function ScopedGrantDetailUiState(entity, bitmaskList) { entity = entity === VOID ? null : entity; bitmaskList = bitmaskList === VOID ? emptyList() : bitmaskList; this.apt_1 = entity; this.bpt_1 = bitmaskList; } protoOf(ScopedGrantDetailUiState).toString = function () { return 'ScopedGrantDetailUiState(entity=' + this.apt_1 + ', bitmaskList=' + this.bpt_1 + ')'; }; protoOf(ScopedGrantDetailUiState).hashCode = function () { var result = this.apt_1 == null ? 0 : hashCode(this.apt_1); result = imul(result, 31) + hashCode(this.bpt_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.apt_1, tmp0_other_with_cast.apt_1)) return false; if (!equals(this.bpt_1, tmp0_other_with_cast.bpt_1)) return false; return true; }; function Companion_98() { this.cpt_1 = 'ScopedGrantEdit'; this.dpt_1 = 'grantToGroup'; this.ept_1 = 'grantToName'; this.fpt_1 = 'grantTableId'; this.gpt_1 = 'grantEntityUid'; this.hpt_1 = 'permissionList'; } var Companion_instance_146; function Companion_getInstance_115() { return Companion_instance_146; } 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.ipt_1 = entity; this.jpt_1 = bitmaskList; } protoOf(ScopedGrantEditUiState).toString = function () { return 'ScopedGrantEditUiState(entity=' + this.ipt_1 + ', bitmaskList=' + this.jpt_1 + ')'; }; protoOf(ScopedGrantEditUiState).hashCode = function () { var result = this.ipt_1 == null ? 0 : hashCode(this.ipt_1); result = imul(result, 31) + hashCode(this.jpt_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.ipt_1, tmp0_other_with_cast.ipt_1)) return false; if (!equals(this.jpt_1, tmp0_other_with_cast.jpt_1)) return false; return true; }; function Companion_99() { Companion_instance_147 = this; this.kpt_1 = new Long(200, 0); this.lpt_1 = 'initPicUri'; } var Companion_instance_147; function Companion_getInstance_116() { if (Companion_instance_147 == null) new Companion_99(); return Companion_instance_147; } function UstadEditViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_116(); UstadViewModel.call(this, di, savedStateHandle, destinationName); this.hps_1 = null; var tmp = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.ips_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; } protoOf(UstadEditViewModel).jps = function (detailViewName, entityUid, result, detailViewExtraArgs) { Companion_getInstance_108(); var popUpToViewName = this.cpm_1.ba('result_viewname'); Companion_getInstance_108(); var saveToKey = this.cpm_1.ba('result_key'); Companion_getInstance_118(); var createdNewEntity = this.cpm_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_118(); this_0.s('entityUid', entityUid.toString()); var tmp = this_0.f3(); Companion_getInstance_108(); this.epm_1.rp8(detailViewName, tmp, new UstadGoOptions('', true)); } else { this.lps(result); } }; protoOf(UstadEditViewModel).kps = function (detailViewName, entityUid, result, detailViewExtraArgs, $super) { detailViewExtraArgs = detailViewExtraArgs === VOID ? emptyMap() : detailViewExtraArgs; var tmp; if ($super === VOID) { this.jps(detailViewName, entityUid, result, detailViewExtraArgs); tmp = Unit_instance; } else { tmp = $super.jps.call(this, detailViewName, entityUid, result, detailViewExtraArgs); } return tmp; }; protoOf(UstadEditViewModel).mpt = function (newEntityStringResource, editEntityStringResource) { var tmp; if (!this.ips_1.equals(new Long(0, 0))) { tmp = true; } else { Companion_getInstance_107(); tmp = !(this.cpm_1.ba('entity') == null); } var isEditing = tmp; var tmp_0 = this.apn(); var tmp_1; if (isEditing) { tmp_1 = editEntityStringResource; } else { tmp_1 = newEntityStringResource; } return tmp_0.tno(tmp_1); }; protoOf(UstadEditViewModel).npt = function (prevFieldValue, currentFieldValue, currentErrorMessage) { return currentErrorMessage == null ? null : !equals(prevFieldValue, currentFieldValue) ? null : currentErrorMessage; }; function UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda(this$0, $fabStringResource, $onSetAddListItemVisibility, resultContinuation) { this.ypt_1 = this$0; this.zpt_1 = $fabStringResource; this.apu_1 = $onSetAddListItemVisibility; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda).qpe = function (hasAddPermission, $completion) { var tmp = this.rpe(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.qpe((!(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.ypt_1, this.bpu_1, this.zpt_1, this.apu_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).rpe = function (hasAddPermission, completion) { var i = new UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda(this.ypt_1, this.zpt_1, this.apu_1, completion); i.bpu_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.qpe(hasAddPermission, $completion); }; l.$arity = 1; return l; } function setAddNewItemUiState($this, hasAddPermission, fabStringResource, onSetAddItemVisibility) { var tmp; if (hasAddPermission ? $this.cpv().equals(ListViewMode_BROWSER_getInstance()) : false) { var tmp_0 = $this.apn().tno(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.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadListViewModel.setAddNewItemUiState.' call var nextValue = prevValue.ap6(fabState); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } onSetAddItemVisibility(hasAddPermission ? $this.cpv().equals(ListViewMode_PICKER_getInstance()) : false); } function Companion_100() { this.dpv_1 = 'listMode'; } var Companion_instance_148; function Companion_getInstance_117() { return Companion_instance_148; } function sam$kotlinx_coroutines_flow_FlowCollector$0_3(function_0) { this.epv_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).t1d = function (value, $completion) { return this.epv_1(value, $completion); }; function UstadListViewModel$searchEvtCollator$slambda(this$0, resultContinuation) { this.npv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadListViewModel$searchEvtCollator$slambda).ppv = function (it, $completion) { var tmp = this.qpv(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadListViewModel$searchEvtCollator$slambda).he = function (p1, $completion) { return this.ppv((!(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.opv_1); this.npv_1.rpv(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).qpv = function (it, completion) { var i = new UstadListViewModel$searchEvtCollator$slambda(this.npv_1, completion); i.opv_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.ppv(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.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadListViewModel.createSearchEnabledState..' call var nextValue = prevValue.ap6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.sp5_1.kp5(VOID, searchText)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this$0.bpv_1.s6x(searchText); return Unit_instance; }; } function UstadListViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.spv(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda($hasPermissionFlow, this$0, $fabStringResource, $onSetAddListItemVisibility, resultContinuation) { this.bpw_1 = $hasPermissionFlow; this.cpw_1 = this$0; this.dpw_1 = $fabStringResource; this.epw_1 = $onSetAddListItemVisibility; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda).m78 = function ($completion) { return this.z86($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.bpw_1()); var tmp_1 = UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda_0(this.cpw_1, this.dpw_1, this.epw_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda).l78 = function (completion) { return new UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda(this.bpw_1, this.cpw_1, this.dpw_1, this.epw_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.z86($completion); }; l.$arity = 0; return l; } function UstadListViewModel$onClickAdd$ref_0($boundThis) { var l = function () { $boundThis.spv(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function UstadListViewModel(di, savedStateHandle, initialState, destinationName) { UstadViewModel.call(this, di, savedStateHandle, destinationName); this.xpu_1 = MutableStateFlow(initialState); this.ypu_1 = asStateFlow(this.xpu_1); this.zpu_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.apv_1 = asSharedFlow(this.zpu_1); var tmp = this; var tmp_0 = new Long(200, 0); var tmp_1 = this.tpm(); var tmp_2 = BufferOverflow_DROP_OLDEST_getInstance(); tmp.bpv_1 = new EventCollator2(tmp_0, tmp_1, 1, tmp_2, UstadListViewModel$searchEvtCollator$slambda_0(this, null)); } protoOf(UstadListViewModel).cpv = function () { var tmp; var tmp_0; Companion_getInstance_108(); if (this.cpm_1.ba('listMode') === ListViewMode_PICKER_getInstance().bpj_1) { tmp_0 = true; } else { var tmp_1; Companion_getInstance_108(); if (!(this.cpm_1.ba('result_viewname') == null)) { Companion_getInstance_108(); tmp_1 = !(this.cpm_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).fpw = function (visible) { return new AppBarSearchUiState(visible, VOID, UstadListViewModel$createSearchEnabledState$lambda(this)); }; protoOf(UstadListViewModel).gpw = function (visible, $super) { visible = visible === VOID ? true : visible; return $super === VOID ? this.fpw(visible) : $super.fpw.call(this, visible); }; protoOf(UstadListViewModel).hpw = function (hasPermissionFlow, fabStringResource, onSetAddListItemVisibility, $completion) { return whenSubscribed(this.xpu_1, UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda_0(hasPermissionFlow, this, fabStringResource, onSetAddListItemVisibility, null), $completion); }; protoOf(UstadListViewModel).ipw = function (hasAddPermission, stringResource, onClick) { var tmp; if (hasAddPermission ? this.cpv().equals(ListViewMode_BROWSER_getInstance()) : false) { tmp = new FabUiState(true, this.apn().tno(stringResource), FabIcon_ADD_getInstance(), onClick); } else { tmp = new FabUiState(false); } return tmp; }; protoOf(UstadListViewModel).jpw = 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.ipw(hasAddPermission, stringResource, onClick) : $super.ipw.call(this, hasAddPermission, stringResource, onClick); }; protoOf(UstadListViewModel).kpw = function (editViewName, extraArgs) { var resultDest = this.bpn(); var tmp; if (!(resultDest == null)) { Companion_getInstance_108(); var tmp_0 = to('result_viewname', resultDest.ep9_1); Companion_getInstance_108(); tmp = plus_0(mapOf([tmp_0, to('result_key', resultDest.fp9_1)]), extraArgs); } else { tmp = extraArgs; } var args = tmp; this.epm_1.hob(editViewName, args); }; protoOf(UstadListViewModel).lpw = function (editViewName, extraArgs, $super) { extraArgs = extraArgs === VOID ? emptyMap() : extraArgs; var tmp; if ($super === VOID) { this.kpw(editViewName, extraArgs); tmp = Unit_instance; } else { tmp = $super.kpw.call(this, editViewName, extraArgs); } return tmp; }; protoOf(UstadListViewModel).mpw = function (detailViewName, entityUid, result, extraArgs) { var resultDest = this.bpn(); if (!(resultDest == null)) { this.lps(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_118(); this_0.s('entityUid', entityUid.toString()); var tmp$ret$2 = this_0.f3(); this.epm_1.hob(detailViewName, tmp$ret$2); } }; protoOf(UstadListViewModel).npw = function (detailViewName, entityUid, result, extraArgs, $super) { extraArgs = extraArgs === VOID ? emptyMap() : extraArgs; var tmp; if ($super === VOID) { this.mpw(detailViewName, entityUid, result, extraArgs); tmp = Unit_instance; } else { tmp = $super.mpw.call(this, detailViewName, entityUid, result, extraArgs); } return tmp; }; protoOf(UstadListViewModel).opw = function (browseStringResource, selectStringResource) { var tmp = this.apn(); var tmp_0; if (this.cpv().equals(ListViewMode_BROWSER_getInstance())) { tmp_0 = browseStringResource; } else { tmp_0 = selectStringResource; } return tmp.tno(tmp_0); }; function UstadViewModel$filteredResultFlowForKey$o$collect$slambda($$this$unsafeFlow, this$0, resultContinuation) { this.xpw_1 = $$this$unsafeFlow; this.ypw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$filteredResultFlowForKey$o$collect$slambda).wp9 = function (value, $completion) { var tmp = this.xp9(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.wp9(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.bpx_1 = this.xpw_1; var tmp_1 = this; tmp_1.cpx_1 = this.zpw_1; var it = this.cpx_1; var isNew = it.cp9_1.c7(this.ypw_1.rpm_1) > 0; if (isNew) { _set_lastNavResultTimestampCollected__txfbew(this.ypw_1, it.cp9_1); } if (isNew) { this.hd_1 = 3; suspendResult = this.bpx_1.t1d(this.cpx_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.apx_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).xp9 = function (value, completion) { var i = new UstadViewModel$filteredResultFlowForKey$o$collect$slambda(this.xpw_1, this.ypw_1, completion); i.zpw_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.wp9(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$52(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lpx_1 = _this__u8e3s4; this.mpx_1 = collector; } protoOf($collectCOROUTINE$52).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.npx_1 = this.mpx_1; this.hd_1 = 1; var tmp_1 = UstadViewModel$filteredResultFlowForKey$o$collect$slambda_0(this.npx_1, this.lpx_1.ppx_1, null); suspendResult = this.lpx_1.opx_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_4(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function _set_lastNavResultTimestampCollected__txfbew($this, value) { $this.rpm_1 = value; $this.cpm_1.epi('collectedTs', value.toString()); } function Companion_101() { Companion_instance_149 = this; this.qpx_1 = 'entityState'; this.rpx_1 = 'collectedTs'; this.spx_1 = 'initState'; this.tpx_1 = 'timeZone'; this.upx_1 = 'parentUid'; this.vpx_1 = 'courseBlockUid'; this.wpx_1 = 'entityUid'; this.xpx_1 = 'serverUrl'; this.ypx_1 = 'next'; this.zpx_1 = 'maxDob'; var tmp = this; Companion_getInstance_129(); Companion_getInstance_158(); Companion_getInstance_179(); Companion_getInstance_190(); tmp.apy_1 = listOf(['CourseListHome', 'ContentEntryListHome', 'ConversationListHome', 'PersonListHome']); this.bpy_1 = 'openLink'; this.cpy_1 = 'account'; this.dpy_1 = 'popUpToOnFinish'; this.epy_1 = 'inviteCode'; this.fpy_1 = 'clazzUid'; this.gpy_1 = 'entryid'; this.hpy_1 = 'personUid'; this.ipy_1 = 't'; this.jpy_1 = 'noSessionChange'; this.kpy_1 = 'selectedAccountPersonUid'; this.lpy_1 = 'selectedAccountEndpointUrl'; this.mpy_1 = 'result_viewname'; this.npy_1 = 'result_key'; } var Companion_instance_149; function Companion_getInstance_118() { if (Companion_instance_149 == null) new Companion_101(); return Companion_instance_149; } function sam$kotlinx_coroutines_flow_FlowCollector$0_4(function_0) { this.opy_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).t1d = function (value, $completion) { return this.opy_1(value, $completion); }; function sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0(function_0) { this.ppy_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0).yoi = function (url, target) { return this.ppy_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.spm(); // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(this$0.a57()).f58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(OpenExternalLinkUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(this$0.a57()).f58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(ApiUrlConfig), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp$ret$3 = tmp_3.d58(tmp$ret$2, null); return OnClickLinkUseCase_init_$Create$(this$0.epm_1, tmp, tmp_2, tmp$ret$3); }; } function _no_name_provided__qut3iv_2($this, this$0) { this.opx_1 = $this; this.ppx_1 = this$0; } protoOf(_no_name_provided__qut3iv_2).mpa = function (collector, $completion) { var tmp = new $collectCOROUTINE$52(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_2).a1c = function (collector, $completion) { return this.mpa(collector, $completion); }; function UstadViewModel$getJson$slambda(this$0, $deserializer, $jsonStr, resultContinuation) { this.ypy_1 = this$0; this.zpy_1 = $deserializer; this.apz_1 = $jsonStr; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$getJson$slambda).cpz = 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.cpz((!(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.ypy_1.m4r().s45(this.zpy_1, this.apz_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.ypy_1, this.zpy_1, this.apz_1, completion); i.bpz_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.cpz($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadViewModel$setJson$slambda(this$0, $serializer, $value, resultContinuation) { this.lpz_1 = this$0; this.mpz_1 = $serializer; this.npz_1 = $value; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$setJson$slambda).ppz = 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.ppz((!(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.lpz_1.m4r().r45(this.mpz_1, this.npz_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.lpz_1, this.mpz_1, this.npz_1, completion); i.opz_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.ppz($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadViewModel$launchIfHasPermission$slambda(this$0, $permissionCheck, $block, $onSetFieldsEnabled, resultContinuation) { this.ypz_1 = this$0; this.zpz_1 = $permissionCheck; this.aq0_1 = $block; this.bq0_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 = 7; this.hd_1 = 1; continue $sm; case 1: this.id_1 = 6; this.hd_1 = 2; suspendResult = localFirstThenRepoIfFalse(this.ypz_1.wpm(), this.zpz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.eq0_1 = suspendResult; if (!this.eq0_1) { this.ypz_1.epm_1.rp8('Error', emptyMap(), new UstadGoOptions(this.ypz_1.dpm_1, true)); this.hd_1 = 4; continue $sm; } else { this.hd_1 = 3; suspendResult = this.aq0_1(this.cq0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 3: this.hd_1 = 4; continue $sm; case 4: this.dq0_1 = Unit_instance; this.id_1 = 7; this.hd_1 = 5; continue $sm; case 5: this.id_1 = 7; l$ret$5: do { var this_0 = this.ypz_1.gpm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ap6(VOID, Companion_getInstance_91().ip6_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$5; } } } while (false); var tmp0_safe_receiver = this.bq0_1; if (tmp0_safe_receiver == null) null; else tmp0_safe_receiver(true); return Unit_instance; case 6: this.id_1 = 7; var t = this.kd_1; l$ret$3: do { var this_1 = this.ypz_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ap6(VOID, Companion_getInstance_91().ip6_1); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); var tmp0_safe_receiver_0 = this.bq0_1; if (tmp0_safe_receiver_0 == null) null; else tmp0_safe_receiver_0(true); throw t; 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(UstadViewModel$launchIfHasPermission$slambda).v1m = function ($this$launch, completion) { var i = new UstadViewModel$launchIfHasPermission$slambda(this.ypz_1, this.zpz_1, this.aq0_1, this.bq0_1, completion); i.cq0_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.nq0_1 = $onSetFieldsEnabled; this.oq0_1 = this$0; this.pq0_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.nq0_1(false); l$ret$1: do { var this_0 = this.oq0_1.gpm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ap6(VOID, Companion_getInstance_91().hp6_1, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.tp5_1.bp5(VOID, VOID, false)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 2; suspendResult = this.pq0_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.rq0_1 = suspendResult; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.nq0_1(true); l$ret$7: do { var this_1 = this.oq0_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ap6(VOID, Companion_getInstance_91().ip6_1, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.tp5_1.bp5(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.nq0_1(true); l$ret$5: do { var this_2 = this.oq0_1.gpm_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.ap6(VOID, Companion_getInstance_91().ip6_1, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_1.tp5_1.bp5(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.nq0_1, this.oq0_1, this.pq0_1, completion); i.qq0_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$49(_this__u8e3s4, _this__u8e3s4_0, key, deserializer, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.aq1_1 = _this__u8e3s4; this.bq1_1 = _this__u8e3s4_0; this.cq1_1 = key; this.dq1_1 = deserializer; } protoOf($getJsonCOROUTINE$49).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.eq1_1 = this.bq1_1.ba(this.cq1_1); if (!(this.eq1_1 == null)) { this.hd_1 = 1; var tmp_0 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_0, UstadViewModel$getJson$slambda_0(this.aq1_1, this.dq1_1, this.eq1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this; tmp_1.fq1_1 = null; this.hd_1 = 2; continue $sm; } case 1: this.fq1_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.fq1_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$50(_this__u8e3s4, _this__u8e3s4_0, key, serializer, value, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.oq1_1 = _this__u8e3s4; this.pq1_1 = _this__u8e3s4_0; this.qq1_1 = key; this.rq1_1 = serializer; this.sq1_1 = value; } protoOf($setJsonCOROUTINE$50).ud = function () { var suspendResult = this.jd_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.oq1_1, this.rq1_1, this.sq1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var jsonStr = suspendResult; this.pq1_1.epi(this.qq1_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$51(_this__u8e3s4, serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bq2_1 = _this__u8e3s4; this.cq2_1 = serializer; this.dq2_1 = loadFromStateKeys; this.eq2_1 = savedStateKey; this.fq2_1 = onLoadFromDb; this.gq2_1 = makeDefault; this.hq2_1 = uiUpdate; } protoOf($loadEntityCOROUTINE$51).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; tmp_0.iq2_1 = this.dq2_1; this.jq2_1 = this.iq2_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.jq2_1.f()) { this.hd_1 = 3; continue $sm; } this.kq2_1 = this.jq2_1.e(); var tmp_1 = this; tmp_1.lq2_1 = this.kq2_1; this.hd_1 = 2; suspendResult = this.bq2_1.fpn(this.bq2_1.cpm_1, this.lq2_1, this.cq2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.mq2_1 = suspendResult; if (!(this.mq2_1 == null)) { this.hq2_1(this.mq2_1); return this.mq2_1; } this.hd_1 = 1; continue $sm; case 3: this.nq2_1 = this.fq2_1; if (this.nq2_1 == null) { this.oq2_1 = null; this.hd_1 = 5; continue $sm; } else { this.hd_1 = 4; suspendResult = this.nq2_1(this.bq2_1.vpm(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.oq2_1 = suspendResult; this.hd_1 = 5; continue $sm; case 5: this.pq2_1 = this.oq2_1; if (!(this.pq2_1 == null)) { this.hq2_1(this.pq2_1); } this.id_1 = 12; this.rq2_1 = this.fq2_1; if (this.rq2_1 == null) { this.sq2_1 = null; this.hd_1 = 7; continue $sm; } else { this.hd_1 = 6; suspendResult = this.rq2_1(this.bq2_1.wpm(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 6: this.sq2_1 = suspendResult; this.hd_1 = 7; continue $sm; case 7: this.tq2_1 = this.sq2_1; if (this.tq2_1 == null) { this.hd_1 = 8; suspendResult = this.gq2_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.uq2_1 = this.tq2_1; this.hd_1 = 9; continue $sm; } case 8: this.uq2_1 = suspendResult; this.hd_1 = 9; continue $sm; case 9: this.vq2_1 = this.uq2_1; if (!(this.vq2_1 == null)) { this.hd_1 = 10; suspendResult = this.bq2_1.gpn(this.bq2_1.cpm_1, this.eq2_1, this.cq2_1, this.vq2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 11; continue $sm; } case 10: this.hd_1 = 11; continue $sm; case 11: this.hq2_1(this.vq2_1); this.qq2_1 = this.vq2_1; this.id_1 = 18; this.hd_1 = 17; continue $sm; case 12: this.id_1 = 18; var tmp_2 = this.kd_1; if (tmp_2 instanceof Exception) { this.wq2_1 = this.kd_1; if (!(this.pq2_1 == null)) { this.hd_1 = 13; suspendResult = this.bq2_1.gpn(this.bq2_1.cpm_1, this.eq2_1, this.cq2_1, this.pq2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 14; continue $sm; } } else { throw this.kd_1; } case 13: this.hd_1 = 14; continue $sm; case 14: this.xq2_1 = this.pq2_1; if (this.xq2_1 == null) { this.hd_1 = 15; suspendResult = this.gq2_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.yq2_1 = this.xq2_1; this.hd_1 = 16; continue $sm; } case 15: var this_0 = suspendResult; this.hq2_1(this_0); this.yq2_1 = this_0; this.hd_1 = 16; continue $sm; case 16: this.qq2_1 = this.yq2_1; this.hd_1 = 17; continue $sm; case 17: this.id_1 = 18; return this.qq2_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); }; function UstadViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_118(); ViewModel_init_$Init$(this); this.bpm_1 = di; this.cpm_1 = savedStateHandle; this.dpm_1 = destinationName; this.epm_1 = new CommandFlowUstadNavController(); this.fpm_1 = this.epm_1.qp8_1; this.gpm_1 = MutableStateFlow(new AppUiState()); this.hpm_1 = asStateFlow(this.gpm_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.ipm_1 = Instance(this, tmp$ret$0, null).a5d(this, accountManager$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.spm().mng(); var trigger = this.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_2 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.h57(tmp$ret$2, context); var this_0 = On(this, tmp$ret$3, trigger); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$5 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_1.jpm_1 = Instance(this_0, tmp$ret$5, 1).a5d(this, activeDb$factory()); var tmp_5 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_0 = this.spm().mng(); var trigger_0 = this.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_6 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$7 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp$ret$8 = tmp_6.h57(tmp$ret$7, context_0); var this_1 = On(this, tmp$ret$8, trigger_0); // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); tmp_5.kpm_1 = Instance(this_1, tmp$ret$10, 2).a5d(this, activeRepo$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.lpm_1 = Instance(this, tmp$ret$12, null).a5d(this, navResultReturner$factory()); var tmp_11 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_12 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); tmp_11.mpm_1 = Instance(this, tmp$ret$14, null).a5d(this, json$factory_1()); var tmp_13 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_14 = typeToken(createKType(getKClass(SnackBarDispatcher), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(); tmp_13.npm_1 = Instance(this, tmp$ret$16, null).a5d(this, snackDispatcher$factory()); var tmp_15 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_16 = typeToken(createKType(getKClass(NavResultReturner), arrayOf([]), false)); var tmp$ret$18 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE(); tmp_15.opm_1 = Instance(this, tmp$ret$18, null).a5d(this, resultReturner$factory()); var tmp_17 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_18 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$20 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE(); tmp_17.ppm_1 = Instance(this, tmp$ret$20, null).a5d(this, systemImpl$factory()); var tmp_19 = this; tmp_19.qpm_1 = lazy_0(UstadViewModel$onClickLinkUseCase$delegate$lambda(this)); var tmp_20 = this; var tmp0_safe_receiver = this.cpm_1.ba('collectedTs'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_20.rpm_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; if (this.rpm_1.equals(new Long(0, 0))) { _set_lastNavResultTimestampCollected__txfbew(this, systemTimeInMillis()); } } protoOf(UstadViewModel).a57 = function () { return this.bpm_1; }; protoOf(UstadViewModel).spm = function () { // Inline function 'kotlin.getValue' call var this_0 = this.ipm_1; accountManager$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).tpm = function () { return get_viewModelScope(this); }; protoOf(UstadViewModel).upm = function () { return this.spm().tnf().zn2_1.s95_1; }; protoOf(UstadViewModel).vpm = function () { // Inline function 'kotlin.getValue' call var this_0 = this.jpm_1; activeDb$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).wpm = function () { // Inline function 'kotlin.getValue' call var this_0 = this.kpm_1; activeRepo$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).xpm = function () { // Inline function 'kotlin.getValue' call var this_0 = this.lpm_1; navResultReturner$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).m4r = function () { // Inline function 'kotlin.getValue' call var this_0 = this.mpm_1; json$factory_2(); return this_0.t2(); }; protoOf(UstadViewModel).ypm = function () { // Inline function 'kotlin.getValue' call var this_0 = this.npm_1; snackDispatcher$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).zpm = function () { // Inline function 'kotlin.getValue' call var this_0 = this.opm_1; resultReturner$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).apn = function () { // Inline function 'kotlin.getValue' call var this_0 = this.ppm_1; systemImpl$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).bpn = function () { var popUpToViewName = this.cpm_1.ba('result_viewname'); var saveToKey = this.cpm_1.ba('result_key'); var tmp; if (!(popUpToViewName == null) ? !(saveToKey == null) : false) { tmp = new NavResultDest(popUpToViewName, saveToKey); } else { tmp = null; } return tmp; }; protoOf(UstadViewModel).cpn = function (value) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadViewModel..' call var nextValue = prevValue.ap6(VOID, value); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(UstadViewModel).dpn = function () { return this.gpm_1.t2().mp5_1; }; protoOf(UstadViewModel).epn = function (_this__u8e3s4, key) { // Inline function 'kotlinx.coroutines.flow.filter' call // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call var this_0 = _this__u8e3s4.gp9(key); // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call return new _no_name_provided__qut3iv_2(this_0, this); }; protoOf(UstadViewModel).fpn = function (_this__u8e3s4, key, deserializer, $completion) { var tmp = new $getJsonCOROUTINE$49(this, _this__u8e3s4, key, deserializer, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel).gpn = function (_this__u8e3s4, key, serializer, value, $completion) { var tmp = new $setJsonCOROUTINE$50(this, _this__u8e3s4, key, serializer, value, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel).opt = 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.rp8(viewName, args, goOptions); }; protoOf(UstadViewModel).lps = function (result) { var resultDest = this.bpn(); if (!(resultDest == null)) { this.xpm().hp9(new NavResult(resultDest.fp9_1, systemTimeInMillis(), result)); this.epm_1.sp8(resultDest.ep9_1, false); } else { Companion_getInstance_108(); this.epm_1.sp8('', true); } }; protoOf(UstadViewModel).hpn = 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.npn(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.npn(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.dpm_1; navArgs.s(key_1, value); } if (!(currentValue == null)) { // Inline function 'kotlin.collections.set' call Companion_getInstance_107(); var value_0 = this.m4r().r45(serializer, currentValue); navArgs.s('entity', value_0); } this.epm_1.rp8(nextViewName, toMap_0(navArgs), goOptions); }; protoOf(UstadViewModel).ipn = function (nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination, $super) { args = args === VOID ? emptyMap() : args; goOptions = goOptions === VOID ? Companion_getInstance_89().qp3_1 : goOptions; var tmp; if (overwriteDestination === VOID) { tmp = this instanceof UstadEditViewModel; } else { tmp = overwriteDestination; } overwriteDestination = tmp; var tmp_0; if ($super === VOID) { this.hpn(nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination); tmp_0 = Unit_instance; } else { tmp_0 = $super.hpn.call(this, nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination); } return tmp_0; }; protoOf(UstadViewModel).jpn = function (serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion) { var tmp = new $loadEntityCOROUTINE$51(this, serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel).kpn = 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.jpn(serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion) : $super.jpn.call(this, serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion); }; protoOf(UstadViewModel).lpn = function (permissionCheck, setLoadingState, onSetFieldsEnabled, block) { if (setLoadingState) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadViewModel.launchIfHasPermission.' call var nextValue = prevValue.ap6(VOID, Companion_getInstance_91().hp6_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } if (onSetFieldsEnabled == null) null; else onSetFieldsEnabled(false); var tmp = this.tpm(); launch(tmp, VOID, VOID, UstadViewModel$launchIfHasPermission$slambda_0(this, permissionCheck, block, onSetFieldsEnabled, null)); }; protoOf(UstadViewModel).mpn = function (permissionCheck, setLoadingState, onSetFieldsEnabled, block, $super) { setLoadingState = setLoadingState === VOID ? false : setLoadingState; onSetFieldsEnabled = onSetFieldsEnabled === VOID ? null : onSetFieldsEnabled; var tmp; if ($super === VOID) { this.lpn(permissionCheck, setLoadingState, onSetFieldsEnabled, block); tmp = Unit_instance; } else { tmp = $super.lpn.call(this, permissionCheck, setLoadingState, onSetFieldsEnabled, block); } return tmp; }; protoOf(UstadViewModel).npn = function (_this__u8e3s4, key) { putFromSavedStateIfPresent(_this__u8e3s4, this.cpm_1, key); }; protoOf(UstadViewModel).opn = 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.npn(_this__u8e3s4, element); } }; protoOf(UstadViewModel).ppt = function (onSetFieldsEnabled, block) { var tmp = this.tpm(); launch(tmp, VOID, VOID, UstadViewModel$launchWithLoadingIndicator$slambda_0(onSetFieldsEnabled, this, block, null)); }; protoOf(UstadViewModel).ppn = function (requireAdultAccount, args, block) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp = typeToken(createKType(getKClass(ApiUrlConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE(); var apiUrlConfig$delegate = Instance(this, tmp$ret$0, null).a5d(null, getLocalDelegateReference('apiUrlConfig', KProperty0, false, function () { return THROW_ISE(); })); // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.UstadViewModel.ifLoggedInElseNavigateToLoginWithNextDestSet.' call var it = this.spm().tnf().zn2_1; if (isGuestUser(it) ? true : requireAdultAccount ? !isDateOfBirthAnAdult(Companion_getInstance_6().pls(it.a96_1)) : false) { var tmp_0 = this.dpm_1 + '?' + toQueryString(args); var tmp_1 = this.spm(); var tmp_2 = UstadViewModel$ifLoggedInElseNavigateToLoginWithNextDestSet$lambda; navigateToLink(this.epm_1, tmp_0, tmp_1, new sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0(tmp_2), new UstadGoOptions(this.dpm_1, true), VOID, ifLoggedInElseNavigateToLoginWithNextDestSet$lambda(apiUrlConfig$delegate).ing_1); } else { block(); } }; protoOf(UstadViewModel).qpn = function (requireAdultAccount, args, block, $super) { requireAdultAccount = requireAdultAccount === VOID ? false : requireAdultAccount; var tmp; if ($super === VOID) { this.ppn(requireAdultAccount, args, block); tmp = Unit_instance; } else { tmp = $super.ppn.call(this, requireAdultAccount, args, block); } return tmp; }; protoOf(UstadViewModel).rpn = function (contentEntryUid, clazzUid, cbUid) { var registrationUuid = uuid4(); var activityId = this.spm().mng().jn2_1 + 'ns/xapi/contentEntry/' + contentEntryUid.toString(); // Inline function 'org.kodein.di.instance' call var tmp = get_direct(this.a57()).f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(XXStringHasher), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var xxStringHasher = tmp.d58(tmp$ret$0, null); var tmp_1 = get_doorPrimaryKeyManager(this.vpm()); var tmp1_xseUid = tmp_1.n62(400122); var tmp2_xseAccountPersonUid = this.upm(); var tmp0_elvis_lhs = this.spm().tnf().zn2_1.t95_1; var tmp3_xseAccountUsername = tmp0_elvis_lhs == null ? 'anonymous' : tmp0_elvis_lhs; var tmp4_xseRootActivityUid = xxStringHasher.hoy(activityId); var tmp5_xseRegistrationHi = registrationUuid.flp(); var tmp6_xseRegistrationLo = registrationUuid.glp(); 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).spn = function (contentEntryUid, clazzUid, cbUid, $super) { contentEntryUid = contentEntryUid === VOID ? new Long(0, 0) : contentEntryUid; var tmp; if (clazzUid === VOID) { var tmp0_safe_receiver = this.cpm_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.cpm_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.rpn(contentEntryUid, clazzUid, cbUid) : $super.rpn.call(this, contentEntryUid, clazzUid, cbUid); }; function accountManager$factory() { return getPropertyCallableRef('accountManager', 1, KProperty1, function (receiver) { return receiver.spm(); }, null); } function activeDb$factory() { return getPropertyCallableRef('activeDb', 1, KProperty1, function (receiver) { return receiver.vpm(); }, null); } function activeRepo$factory() { return getPropertyCallableRef('activeRepo', 1, KProperty1, function (receiver) { return receiver.wpm(); }, null); } function navResultReturner$factory() { return getPropertyCallableRef('navResultReturner', 1, KProperty1, function (receiver) { return receiver.xpm(); }, null); } function json$factory_1() { return getPropertyCallableRef('json', 1, KProperty1, function (receiver) { return receiver.m4r(); }, null); } function snackDispatcher$factory() { return getPropertyCallableRef('snackDispatcher', 1, KProperty1, function (receiver) { return receiver.ypm(); }, null); } function resultReturner$factory() { return getPropertyCallableRef('resultReturner', 1, KProperty1, function (receiver) { return receiver.zpm(); }, null); } function systemImpl$factory() { return getPropertyCallableRef('systemImpl', 1, KProperty1, function (receiver) { return receiver.apn(); }, null); } function accountManager$factory_0() { return getPropertyCallableRef('accountManager', 1, KProperty1, function (receiver) { return receiver.spm(); }, null); } function activeDb$factory_0() { return getPropertyCallableRef('activeDb', 1, KProperty1, function (receiver) { return receiver.vpm(); }, null); } function activeRepo$factory_0() { return getPropertyCallableRef('activeRepo', 1, KProperty1, function (receiver) { return receiver.wpm(); }, null); } function navResultReturner$factory_0() { return getPropertyCallableRef('navResultReturner', 1, KProperty1, function (receiver) { return receiver.xpm(); }, null); } function json$factory_2() { return getPropertyCallableRef('json', 1, KProperty1, function (receiver) { return receiver.m4r(); }, null); } function snackDispatcher$factory_0() { return getPropertyCallableRef('snackDispatcher', 1, KProperty1, function (receiver) { return receiver.ypm(); }, null); } function resultReturner$factory_0() { return getPropertyCallableRef('resultReturner', 1, KProperty1, function (receiver) { return receiver.zpm(); }, null); } function systemImpl$factory_0() { return getPropertyCallableRef('systemImpl', 1, KProperty1, function (receiver) { return receiver.apn(); }, null); } function Companion_102() { this.zq2_1 = 'OpenLicenses'; } var Companion_instance_150; function Companion_getInstance_119() { return Companion_instance_150; } function OpenLicensesViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'EpubContent'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.about.OpenLicensesViewModel.' call var tmp0_title = this.apn().tno(strings_getInstance().smx_1); var nextValue = prevValue.ap6(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.iq3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda$slambda).kn6 = function (it, $completion) { var tmp = this.ln6(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$slambda$slambda).he = function (p1, $completion) { return this.kn6(p1 instanceof UserSessionWithPersonAndEndpoint ? 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.iq3_1.lq4_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.yq4(this.jq3_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).ln6 = function (it, completion) { var i = new AccountListViewModel$slambda$slambda(this.iq3_1, completion); i.jq3_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.kn6(it, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.hq5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda$slambda$slambda).jq5 = function (accountList, $completion) { var tmp = this.kq5(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.jq5((!(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.hq5_1.spm().tnf().yn2_1.whx_1; var this_0 = this.iq5_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var isFilteredOutActiveAccount = this.hq5_1.hq4_1 === 'header' ? element.yn2_1.whx_1.equals(currentUserSessionUid) : false; var isFilteredOutByEndpoint = !(this.hq5_1.gq4_1 == null) ? !(element.an3_1.jn2_1 === this.hq5_1.gq4_1) : false; var isFilteredOutByDateOfBirth = this.hq5_1.iq4_1.c7(new Long(0, 0)) > 0 ? element.zn2_1.a96_1.c7(this.hq5_1.iq4_1) > 0 : false; if (!(((isFilteredOutActiveAccount ? true : isFilteredOutByEndpoint) ? true : isFilteredOutByDateOfBirth) ? true : isTemporary(element.yn2_1))) { destination.i1(element); } } var accountsToDisplay = destination; l$ret$1: do { var this_1 = this.hq5_1.lq4_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.yq4(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).kq5 = function (accountList, completion) { var i = new AccountListViewModel$slambda$slambda$slambda(this.hq5_1, completion); i.iq5_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.jq5(accountList, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.tq5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda$slambda_1).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$slambda$slambda_1).m78 = function ($completion) { return this.z86($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.tq5_1.spm().lng(); var tmp_1 = AccountListViewModel$slambda$slambda$slambda_0(this.tq5_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_5(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AccountListViewModel$slambda$slambda_1).l78 = function (completion) { return new AccountListViewModel$slambda$slambda_1(this.tq5_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.z86($completion); }; l.$arity = 0; return l; } function AccountListViewModel$onClickLogout$slambda$lambda(_anonymous_parameter_0__qggqh8, _anonymous_parameter_1__qggqgd) { return Unit_instance; } function _get_apiUrlConfig__mldllg_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jq4_1; apiUrlConfig$factory_2(); return this_0.t2(); } function _get_shareAppUseCase__louoas($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kq4_1; shareAppUseCase$factory_0(); return this_0.t2(); } function _get_getVersionUseCase__n7x57g($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nq4_1; getVersionUseCase$factory_0(); return this_0.t2(); } function _get_launchOpenLicensesUseCase__f5qz1z($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.oq4_1; launchOpenLicensesUseCase$factory_0(); return this_0.t2(); } function _get_getShowPoweredByUseCase__5l0p0e($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.pq4_1; getShowPoweredByUseCase$factory_0(); return this_0.t2(); } function Companion_103() { this.uq5_1 = 'AccountList'; this.vq5_1 = 'filterByEndpoint'; this.wq5_1 = 'activeAccountMode'; this.xq5_1 = 'header'; this.yq5_1 = 'inlist'; } var Companion_instance_151; function Companion_getInstance_120() { return Companion_instance_151; } function sam$kotlinx_coroutines_flow_FlowCollector$0_5(function_0) { this.zq5_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_5).t1d = function (value, $completion) { return this.zq5_1(value, $completion); }; function sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_0(function_0) { this.aq6_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_0).yoi = function (url, target) { return this.aq6_1(url, target); }; function AccountListViewModel$slambda(this$0, resultContinuation) { this.jq6_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.jq6_1.spm().jng(); var tmp_1 = AccountListViewModel$slambda$slambda_0(this.jq6_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_5(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AccountListViewModel$slambda).v1m = function ($this$launch, completion) { var i = new AccountListViewModel$slambda(this.jq6_1, completion); i.kq6_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.tq6_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.tq6_1.lq4_1, AccountListViewModel$slambda$slambda_2(this.tq6_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.tq6_1, completion); i.uq6_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.dq7_1 = this$0; this.eq7_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.dq7_1.spm().rng(this.eq7_1, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp0_$receiver = this.dq7_1.epm_1; Companion_getInstance_129(); var tmp1_link = 'CourseListHome'; var tmp2_accountManager = this.dq7_1.spm(); 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_0(this.dq7_1).ing_1; var tmp5_goOptions = new UstadGoOptions(VOID, VOID, true); navigateToLink(tmp0_$receiver, tmp1_link, tmp2_accountManager, tmp3_openExternalLinkUseCase, tmp5_goOptions, VOID, tmp4_userCanSelectServer); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.dq7_1, this.eq7_1, completion); i.fq7_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$onClickDeleteAccount$slambda(this$0, $session, resultContinuation) { this.oq7_1 = this$0; this.pq7_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.oq7_1.spm().rng(this.pq7_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.oq7_1, this.pq7_1, completion); i.qq7_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.zq7_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.zq7_1.z86(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.zq7_1, completion); i.aq8_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).f58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(UstadAccountManager), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.d58(tmp$ret$0, null); tmp = new StartUserSessionUseCase(tmp$ret$1); } else { tmp = startUserSessionUseCase; } startUserSessionUseCase = tmp; UstadViewModel.call(this, di, savedStateHandle, 'AccountList'); this.fq4_1 = startUserSessionUseCase; this.gq4_1 = savedStateHandle.ba('filterByEndpoint'); var tmp_2 = this; var tmp0_elvis_lhs = savedStateHandle.ba('activeAccountMode'); tmp_2.hq4_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.iq4_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(ApiUrlConfig), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); tmp_4.jq4_1 = Instance(this, tmp$ret$2, null).a5d(this, apiUrlConfig$factory_1()); 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.kq4_1 = InstanceOrNull(this, tmp$ret$4, null).a5d(this, shareAppUseCase$factory()); this.lq4_1 = MutableStateFlow(new AccountListUiState(VOID, VOID, _get_apiUrlConfig__mldllg_0(this).ing_1, VOID, VOID, !(_get_shareAppUseCase__louoas(this) == null))); this.mq4_1 = asStateFlow(this.lq4_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.nq4_1 = InstanceOrNull(this, tmp$ret$6, null).a5d(this, getVersionUseCase$factory()); var tmp_10 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_11 = typeToken(createKType(getKClass(LaunchOpenLicensesUseCase), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(); tmp_10.oq4_1 = InstanceOrNull(this, tmp$ret$8, null).a5d(this, launchOpenLicensesUseCase$factory()); var tmp_12 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(GetShowPoweredByUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); tmp_12.pq4_1 = InstanceOrNull(this, tmp$ret$10, null).a5d(this, getShowPoweredByUseCase$factory()); var tmp_14 = this; Companion_getInstance_118(); var tmp0_safe_receiver_0 = savedStateHandle.ba('noSessionChange'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : toBoolean(tmp0_safe_receiver_0); tmp_14.qq4_1 = tmp1_elvis_lhs_0 == null ? false : tmp1_elvis_lhs_0; var tmp_15; if (savedStateHandle.ba('listMode') === ListViewMode_PICKER_getInstance().bpj_1) { tmp_15 = this.apn().tno(strings_getInstance().qml_1); } else { tmp_15 = this.apn().tno(strings_getInstance().flx_1); } var tmp0_title = tmp_15; this.gpm_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.lq4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.accountlist.AccountListViewModel.' call var tmp0_safe_receiver_1 = _get_getVersionUseCase__n7x57g(this); var tmp1_safe_receiver = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.foi(); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.doi_1; var tmp_16 = 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.foi(); var nextValue = prevValue.yq4(VOID, VOID, VOID, tmp_16, 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.tpm(); // Inline function 'kotlin.contracts.contract' call var tmp_17; // Inline function 'com.ustadmobile.core.viewmodel.accountlist.AccountListViewModel.' call if (this.hq4_1 === 'header') { tmp_17 = this_1; } else { tmp_17 = null; } var tmp1_safe_receiver_0 = tmp_17; if (tmp1_safe_receiver_0 == null) null; else { launch(tmp1_safe_receiver_0, VOID, VOID, AccountListViewModel$slambda_0(this, null)); } var tmp_18 = this.tpm(); launch(tmp_18, VOID, VOID, AccountListViewModel$slambda_2(this, null)); } protoOf(AccountListViewModel).bq8 = function () { var tmp0_elvis_lhs = this.lq4_1.t2().rq4_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var currentSession = tmp; var tmp_0 = this.tpm(); launch(tmp_0, VOID, VOID, AccountListViewModel$onClickLogout$slambda_0(this, currentSession, null)); }; protoOf(AccountListViewModel).cq8 = function () { var tmp0_safe_receiver = this.lq4_1.t2().rq4_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zn2_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_118(); this.epm_1.hob('PersonDetailView', mapOf_0(to('entityUid', personUid.toString()))); }; protoOf(AccountListViewModel).dq8 = 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.gq4_1 == null)) { Companion_getInstance_118(); this_0.s('serverUrl', this.gq4_1); } Companion_getInstance_118(); Companion_getInstance_118(); this.opn(this_0, listOf(['next', 'noSessionChange'])); Companion_getInstance_118(); Companion_getInstance_118(); var tmp0_elvis_lhs = this.cpm_1.ba('maxDob'); this_0.s('maxDob', tmp0_elvis_lhs == null ? '0' : tmp0_elvis_lhs); var args = this_0.f3(); if (!(this.gq4_1 == null) ? true : !_get_apiUrlConfig__mldllg_0(this).ing_1) { this.epm_1.hob('Login', args); } else { Companion_getInstance_200(); this.epm_1.hob('SiteEnterLink', args); } }; protoOf(AccountListViewModel).eq8 = function (sessionWithPersonAndEndpoint) { var tmp1_$this = this.fq4_1; var tmp2_navController = this.epm_1; Companion_getInstance_118(); var tmp0_elvis_lhs = this.cpm_1.ba('next'); var tmp; if (tmp0_elvis_lhs == null) { Companion_getInstance_129(); tmp = 'CourseListHome'; } else { tmp = tmp0_elvis_lhs; } var tmp3_nextDest = tmp; var tmp4_dontSetCurrentSession = this.qq4_1; tmp1_$this.xon(sessionWithPersonAndEndpoint, tmp3_nextDest, tmp2_navController, VOID, tmp4_dontSetCurrentSession); }; protoOf(AccountListViewModel).fq8 = function (session) { var tmp = this.tpm(); launch(tmp, VOID, VOID, AccountListViewModel$onClickDeleteAccount$slambda_0(this, session, null)); }; protoOf(AccountListViewModel).gq8 = function () { var launchUseCaseVal = _get_launchOpenLicensesUseCase__f5qz1z(this); if (!(launchUseCaseVal == null)) { var tmp = this.tpm(); launch(tmp, VOID, VOID, AccountListViewModel$onClickOpenLicenses$slambda_0(launchUseCaseVal, null)); } else { this.epm_1.hob('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.rq4_1 = headerAccount; this.sq4_1 = accountsList; this.tq4_1 = showAccountEndpoint; this.uq4_1 = version; this.vq4_1 = showPoweredBy; this.wq4_1 = shareAppOptionVisible; this.xq4_1 = shareAppBottomSheetVisible; } protoOf(AccountListUiState).hq8 = function () { return !(this.rq4_1 == null) ? !this.rq4_1.zn2_1.s95_1.equals(new Long(0, 0)) : false; }; protoOf(AccountListUiState).iq8 = function () { return !(this.rq4_1 == null) ? !isGuestUser(this.rq4_1.zn2_1) : false; }; protoOf(AccountListUiState).jq8 = function (headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible) { return new AccountListUiState(headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible); }; protoOf(AccountListUiState).yq4 = function (headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible, $super) { headerAccount = headerAccount === VOID ? this.rq4_1 : headerAccount; accountsList = accountsList === VOID ? this.sq4_1 : accountsList; showAccountEndpoint = showAccountEndpoint === VOID ? this.tq4_1 : showAccountEndpoint; version = version === VOID ? this.uq4_1 : version; showPoweredBy = showPoweredBy === VOID ? this.vq4_1 : showPoweredBy; shareAppOptionVisible = shareAppOptionVisible === VOID ? this.wq4_1 : shareAppOptionVisible; shareAppBottomSheetVisible = shareAppBottomSheetVisible === VOID ? this.xq4_1 : shareAppBottomSheetVisible; return $super === VOID ? this.jq8(headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible) : $super.jq8.call(this, headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible); }; protoOf(AccountListUiState).toString = function () { return 'AccountListUiState(headerAccount=' + this.rq4_1 + ', accountsList=' + this.sq4_1 + ', showAccountEndpoint=' + this.tq4_1 + ', version=' + this.uq4_1 + ', showPoweredBy=' + this.vq4_1 + ', shareAppOptionVisible=' + this.wq4_1 + ', shareAppBottomSheetVisible=' + this.xq4_1 + ')'; }; protoOf(AccountListUiState).hashCode = function () { var result = this.rq4_1 == null ? 0 : this.rq4_1.hashCode(); result = imul(result, 31) + hashCode(this.sq4_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.tq4_1) | 0; result = imul(result, 31) + getStringHashCode(this.uq4_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.vq4_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.wq4_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.xq4_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.rq4_1, tmp0_other_with_cast.rq4_1)) return false; if (!equals(this.sq4_1, tmp0_other_with_cast.sq4_1)) return false; if (!(this.tq4_1 === tmp0_other_with_cast.tq4_1)) return false; if (!(this.uq4_1 === tmp0_other_with_cast.uq4_1)) return false; if (!(this.vq4_1 === tmp0_other_with_cast.vq4_1)) return false; if (!(this.wq4_1 === tmp0_other_with_cast.wq4_1)) return false; if (!(this.xq4_1 === tmp0_other_with_cast.xq4_1)) return false; return true; }; function apiUrlConfig$factory_1() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_0(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_2() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_0(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 = onActiveEndpoint(_this__u8e3s4.a57()); // Inline function 'org.kodein.type.generic' call var tmp = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE(); var repo$delegate = Instance(this_0, tmp$ret$0, 2).a5d(null, getLocalDelegateReference('repo', KProperty0, false, function () { return THROW_ISE(); })); // Inline function 'kotlin.takeIf' call var this_1 = _this__u8e3s4.tpm(); // 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, repo$delegate, updateUi, null)); } } function launchSetTitleFromClazzUid$lambda($repo$delegate) { // Inline function 'kotlin.getValue' call getLocalDelegateReference('repo', KProperty0, false, function () { return THROW_ISE(); }); return $repo$delegate.t2(); } function sam$kotlinx_coroutines_flow_FlowCollector$0_6(function_0) { this.kq8_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_6).t1d = function (value, $completion) { return this.kq8_1(value, $completion); }; function launchSetTitleFromClazzUid$slambda$slambda($updateUi, resultContinuation) { this.tq8_1 = $updateUi; CoroutineImpl.call(this, resultContinuation); } protoOf(launchSetTitleFromClazzUid$slambda$slambda).vq8 = function (it, $completion) { var tmp = this.wq8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(launchSetTitleFromClazzUid$slambda$slambda).he = function (p1, $completion) { return this.vq8((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.tq8_1(this.uq8_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).wq8 = function (it, completion) { var i = new launchSetTitleFromClazzUid$slambda$slambda(this.tq8_1, completion); i.uq8_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.vq8(it, $completion); }; l.$arity = 1; return l; } function launchSetTitleFromClazzUid$slambda($clazzUid, $repo$delegate, $updateUi, resultContinuation) { this.fq9_1 = $clazzUid; this.gq9_1 = $repo$delegate; this.hq9_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.gq9_1).o7d().p8c(this.fq9_1); var tmp_1 = launchSetTitleFromClazzUid$slambda$slambda_0(this.hq9_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_6(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(launchSetTitleFromClazzUid$slambda).v1m = function ($this$launch, completion) { var i = new launchSetTitleFromClazzUid$slambda(this.fq9_1, this.gq9_1, this.hq9_1, completion); i.iq9_1 = $this$launch; return i; }; function launchSetTitleFromClazzUid$slambda_0($clazzUid, $repo$delegate, $updateUi, resultContinuation) { var i = new launchSetTitleFromClazzUid$slambda($clazzUid, $repo$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.tp7_1; if (!equals(tmp, terminology == null ? null : terminology.f8g_1)) { var tmp_0; if (terminology == null) { tmp_0 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.parseAndUpdateTerminologyStringsIfNeeded.' call tmp_0 = CourseTerminologyStrings_init_$Create$(terminology, systemImpl, json); } var courseTerminologyStrings = tmp_0; onUpdate(courseTerminologyStrings); } } function collectClazzNameAndUpdateTitle(clazzUid, activeDb, appUiState, $completion) { var tmp = activeDb.o7d().p8c(clazzUid); var tmp_0 = collectClazzNameAndUpdateTitle$slambda_0(appUiState, null); return tmp.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_7(tmp_0), $completion); } function sam$kotlinx_coroutines_flow_FlowCollector$0_7(function_0) { this.jq9_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_7).t1d = function (value, $completion) { return this.jq9_1(value, $completion); }; function collectClazzNameAndUpdateTitle$slambda($appUiState, resultContinuation) { this.sq9_1 = $appUiState; CoroutineImpl.call(this, resultContinuation); } protoOf(collectClazzNameAndUpdateTitle$slambda).vq8 = function (clazzTitle, $completion) { var tmp = this.wq8(clazzTitle, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(collectClazzNameAndUpdateTitle$slambda).he = function (p1, $completion) { return this.vq8((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.sq9_1; var tmp_0; if (!(this.sq9_1.t2().np5_1 == this.tq9_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.ap6(VOID, VOID, this.tq9_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).wq8 = function (clazzTitle, completion) { var i = new collectClazzNameAndUpdateTitle$slambda(this.sq9_1, completion); i.tq9_1 = clazzTitle; return i; }; function collectClazzNameAndUpdateTitle$slambda_0($appUiState, resultContinuation) { var i = new collectClazzNameAndUpdateTitle$slambda($appUiState, resultContinuation); var l = function (clazzTitle, $completion) { return i.vq8(clazzTitle, $completion); }; l.$arity = 1; return l; } function get_blockTypeStringResource(_this__u8e3s4) { var tmp0_subject = _this__u8e3s4.k7x_1; var tmp; if (tmp0_subject === 102) { tmp = strings_getInstance().smd_1; } else { if (tmp0_subject === 104) { tmp = strings_getInstance().fmf_1; } else { if (tmp0_subject === 100) { tmp = strings_getInstance().ims_1; } else { if (tmp0_subject === 103) { tmp = strings_getInstance().sme_1; } else { if (tmp0_subject === 105) { tmp = strings_getInstance().nms_1; } else { tmp = strings_getInstance().rlt_1; } } } } } return tmp; } function CoursePermissionConstants() { CoursePermissionConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().lmy_1; PermissionFlags_getInstance(); var tmp_1 = to(tmp_0, new Long(1, 0)); var tmp_2 = strings_getInstance().rmy_1; PermissionFlags_getInstance(); var tmp_3 = to(tmp_2, new Long(8192, 0)); var tmp_4 = strings_getInstance().imu_1; PermissionFlags_getInstance(); var tmp_5 = to(tmp_4, new Long(2, 0)); var tmp_6 = strings_getInstance().mmy_1; PermissionFlags_getInstance(); var tmp_7 = to(tmp_6, new Long(4, 0)); var tmp_8 = strings_getInstance().nmy_1; PermissionFlags_getInstance(); var tmp_9 = to(tmp_8, new Long(8, 0)); var tmp_10 = strings_getInstance().omy_1; PermissionFlags_getInstance(); var tmp_11 = to(tmp_10, new Long(16, 0)); var tmp_12 = strings_getInstance().dmd_1; PermissionFlags_getInstance(); var tmp_13 = to(tmp_12, new Long(32, 0)); var tmp_14 = strings_getInstance().fmd_1; PermissionFlags_getInstance(); var tmp_15 = to(tmp_14, new Long(64, 0)); var tmp_16 = strings_getInstance().pmy_1; PermissionFlags_getInstance(); var tmp_17 = to(tmp_16, new Long(128, 0)); var tmp_18 = strings_getInstance().qmy_1; PermissionFlags_getInstance(); tmp.uq9_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$53(_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.id7_1; var tmp; if (tmp0_subject === 1000) { tmp = strings_getInstance().alx_1; } else { if (tmp0_subject === 1001) { tmp = strings_getInstance().um9_1; } else { tmp = null; } } return tmp; } function getTitleForCoursePermission$slambda($entity, resultContinuation) { this.qqa_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(getTitleForCoursePermission$slambda).sqa = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(getTitleForCoursePermission$slambda).he = function (p1, $completion) { return this.sqa(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.rqa_1.q7d().mdt(this.qqa_1.hd7_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).vn7 = function (it, completion) { var i = new getTitleForCoursePermission$slambda(this.qqa_1, completion); i.rqa_1 = it; return i; }; function getTitleForCoursePermission$slambda_0($entity, resultContinuation) { var i = new getTitleForCoursePermission$slambda($entity, resultContinuation); var l = function (it, $completion) { return i.sqa(it, $completion); }; l.$arity = 1; return l; } function getTitleForCoursePermission$slambda_1($entity, resultContinuation) { this.bqb_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(getTitleForCoursePermission$slambda_1).dqb = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(getTitleForCoursePermission$slambda_1).he = function (p1, $completion) { return this.dqb(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.cqb_1.n7d(); var tmp0_safe_receiver = this.bqb_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jd7_1; suspendResult = tmp_0.bfp(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).vn7 = function (it, completion) { var i = new getTitleForCoursePermission$slambda_1(this.bqb_1, completion); i.cqb_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.dqb(it, $completion); }; l.$arity = 1; return l; } function $getTitleForCoursePermissionCOROUTINE$53(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dqa_1 = _this__u8e3s4; this.eqa_1 = entity; } protoOf($getTitleForCoursePermissionCOROUTINE$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 = get_direct(this.dqa_1.a57()).f58(); var tmp_2 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); tmp_0.fqa_1 = tmp_1.d58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), null); var tmp_3 = this; var tmp0_safe_receiver = this.eqa_1; tmp_3.gqa_1 = tmp0_safe_receiver == null ? null : titleStringResource(tmp0_safe_receiver); if (!(this.gqa_1 == null)) { this.hd_1 = 2; var tmp_4 = this.dqa_1.wpm(); suspendResult = localFirstThenRepoIfNull(tmp_4, getTitleForCoursePermission$slambda_0(this.eqa_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; var tmp_5 = this.dqa_1.wpm(); suspendResult = localFirstThenRepoIfNull(tmp_5, getTitleForCoursePermission$slambda_2(this.eqa_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp5_elvis_lhs = suspendResult; this.hqa_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.fqa_1, this.dqa_1.apn()); 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.wp7_1.equals(this.gqa_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.xp7_1; tmp_6.hqa_1 = tmp4_elvis_lhs == null ? this.dqa_1.apn().tno(this.gqa_1) : tmp4_elvis_lhs; this.hd_1 = 3; continue $sm; case 3: return this.hqa_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.mqb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda$slambda$slambda$slambda).oqb = function (it, $completion) { var tmp = this.pqb(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.oqb((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.nqb_1; var clazz = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o8j_1; var tmp_0; if (clazz == null) { tmp_0 = emptyList(); } else { var tmp_1; var tmp_2 = clazz.r8d_1; Companion_getInstance_4(); if (hasFlag_0(tmp_2, new Long(1, 0))) { tmp_1 = this.nqb_1.p8j_1; } else { tmp_1 = false; } tmp_0 = createTabList(this.mqb_1, tmp_1, this.nqb_1.q8j_1, this.nqb_1.r8j_1); } var tabList = tmp_0; l$ret$1: do { var this_0 = this.mqb_1.mqc_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.pqc(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).pqb = function (it, completion) { var i = new ClazzDetailViewModel$slambda$slambda$slambda$slambda(this.mqb_1, completion); i.nqb_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.oqb(it, $completion); }; l.$arity = 1; return l; } function ClazzDetailViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.yqc_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.yqc_1.vpm().o7d().n8c(this.yqc_1.upm(), this.yqc_1.wpl_1); var tmp_1 = ClazzDetailViewModel$slambda$slambda$slambda$slambda_0(this.yqc_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_8(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new ClazzDetailViewModel$slambda$slambda$slambda(this.yqc_1, completion); i.zqc_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.iqd_1 = $this_launch; this.jqd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.iqd_1, VOID, VOID, ClazzDetailViewModel$slambda$slambda$slambda_0(this.jqd_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailViewModel$slambda$slambda).l78 = function (completion) { return new ClazzDetailViewModel$slambda$slambda(this.iqd_1, this.jqd_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.z86($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.wpl_1.toString())), $this.apn().tno(strings_getInstance().umt_1))]); if (showMembers) { Companion_getInstance_108(); tabs.i1(new TabItem('CourseMembers', mapOf_0(to('clazzUid', $this.wpl_1.toString())), capitalizeFirstLetter($this.apn().tno(strings_getInstance().kmc_1)))); } if (showProgressReport) { Companion_getInstance_108(); tabs.i1(new TabItem('Gradebook', mapOf_0(to('clazzUid', $this.wpl_1.toString())), $this.apn().tno(strings_getInstance().kn0_1))); } if (showAttendance) { Companion_getInstance_108(); tabs.i1(new TabItem('CourseLogListAttendanceView', mapOf_0(to('clazzUid', $this.wpl_1.toString())), $this.apn().tno(strings_getInstance().tlw_1))); } Companion_getInstance_108(); tabs.i1(new TabItem('CourseGroups', mapOf_0(to('clazzUid', $this.wpl_1.toString())), $this.apn().tno(strings_getInstance().umb_1))); return toList(tabs); } function Companion_104() { this.kqd_1 = 'Course'; } var Companion_instance_152; function Companion_getInstance_121() { return Companion_instance_152; } function sam$kotlinx_coroutines_flow_FlowCollector$0_8(function_0) { this.lqd_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_8).t1d = function (value, $completion) { return this.lqd_1(value, $completion); }; function ClazzDetailViewModel$slambda(this$0, resultContinuation) { this.uqd_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.uqd_1.mqc_1, ClazzDetailViewModel$slambda$slambda_0(this.vqd_1, this.uqd_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.uqd_1, completion); i.vqd_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.mqc_1 = MutableStateFlow(new ClazzDetailUiState()); this.nqc_1 = asStateFlow(this.mqc_1); var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzDetailViewModel$slambda_0(this, null)); } function ClazzDetailUiState(tabs) { tabs = tabs === VOID ? emptyList() : tabs; this.oqc_1 = tabs; } protoOf(ClazzDetailUiState).pqc = function (tabs) { return new ClazzDetailUiState(tabs); }; protoOf(ClazzDetailUiState).toString = function () { return 'ClazzDetailUiState(tabs=' + this.oqc_1 + ')'; }; protoOf(ClazzDetailUiState).hashCode = function () { return hashCode(this.oqc_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.oqc_1, tmp0_other_with_cast.oqc_1)) return false; return true; }; var ClazzAction_EDIT_instance; var ClazzAction_COPY_instance; function valueOf_0(value) { switch (value) { case 'EDIT': return ClazzAction_EDIT_getInstance(); case 'COPY': return ClazzAction_COPY_getInstance(); default: ClazzAction_initEntries(); THROW_IAE('No enum constant value.'); break; } } var ClazzAction_entriesInitialized; function ClazzAction_initEntries() { if (ClazzAction_entriesInitialized) return Unit_instance; ClazzAction_entriesInitialized = true; ClazzAction_EDIT_instance = new ClazzAction('EDIT', 0); ClazzAction_COPY_instance = new ClazzAction('COPY', 1); } function ClazzDetailOverviewViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.eqe_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda).qpe = function (hasPermission, $completion) { var tmp = this.rpe(hasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.qpe((!(p1 == null) ? typeof p1 === 'boolean' : 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; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.eqe_1.cqf_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.sqf(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.fqe_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).rpe = function (hasPermission, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda(this.eqe_1, completion); i.fqe_1 = hasPermission; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (hasPermission, $completion) { return i.qpe(hasPermission, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda(this$0, resultContinuation) { this.bqg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($completion); }; protoOf(ClazzDetailOverviewViewModel$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.bqg_1.wpm().p7f(); var tmp_1 = this.bqg_1.spm().kng().xkb_1; PermissionFlags_getInstance(); var tmp_2 = distinctUntilChanged(tmp_0.zhe(tmp_1, new Long(512, 0))); var tmp_3 = ClazzDetailOverviewViewModel$slambda$slambda$slambda_0(this.bqg_1, null); suspendResult = tmp_2.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_3), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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).l78 = function (completion) { return new ClazzDetailOverviewViewModel$slambda$slambda(this.bqg_1, completion); }; function ClazzDetailOverviewViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($completion) { return i.z86($completion); }; l.$arity = 0; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.kqg_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).oqg = function (value, $completion) { var tmp = this.pqg(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.oqg(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.mqg_1 = this.kqg_1; var tmp_1 = this; tmp_1.nqg_1 = this.lqg_1; this.hd_1 = 1; var it = this.nqg_1; suspendResult = this.mqg_1.t1d(it.dda_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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).pqg = function (value, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda(this.kqg_1, completion); i.lqg_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.oqg(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$54(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.yqg_1 = _this__u8e3s4; this.zqg_1 = collector; } protoOf($collectCOROUTINE$54).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.aqh_1 = this.zqg_1; this.hd_1 = 1; var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_0(this.aqh_1, null); suspendResult = this.yqg_1.bqh_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.kqh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda).mqh = function (courseBlockList, $completion) { var tmp = this.nqh(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.mqh((!(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.kqh_1.cqf_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.sqf(VOID, VOID, this.lqh_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).nqh = function (courseBlockList, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this.kqh_1, completion); i.lqh_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.mqh(courseBlockList, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.wqh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).yqh = function (blockStatuses, $completion) { var tmp = this.zqh(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.yqh((!(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.wqh_1.cqf_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.sqf(VOID, VOID, VOID, this.xqh_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).zqh = function (blockStatuses, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(this.wqh_1, completion); i.xqh_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.yqh(blockStatuses, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.iqi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).kqi = function (scheduleList, $completion) { var tmp = this.lqi(scheduleList, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.kqi((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$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.iqi_1.cqf_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.sqf(VOID, this.jqi_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_3).lqi = function (scheduleList, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this.iqi_1, completion); i.jqi_1 = scheduleList; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (scheduleList, $completion) { return i.kqi(scheduleList, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.uqi_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.uqi_1.wpm().p7d().oc7(this.uqi_1.wpl_1, false, false, systemTimeInMillis(), this.uqi_1.upm()); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_0(this.uqi_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this.uqi_1, completion); i.vqi_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.eqj_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.eqj_1.wpm().j7e().tis(this.eqj_1.wpl_1, listOf_0(this.eqj_1.upm()), this.eqj_1.upm()); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_2(this.eqj_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1(this.eqj_1, completion); i.fqj_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 ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.oqj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$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(ClazzDetailOverviewViewModel$slambda$slambda$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$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.oqj_1.wpm().n7e().egs(this.oqj_1.wpl_1); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_4(this.oqj_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_3).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_3(this.oqj_1, completion); i.pqj_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function _no_name_provided__qut3iv_3($this) { this.bqh_1 = $this; } protoOf(_no_name_provided__qut3iv_3).fpe = function (collector, $completion) { var tmp = new $collectCOROUTINE$54(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_3).a1c = function (collector, $completion) { return this.fpe(collector, $completion); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda($this_launch, this$0, resultContinuation) { this.yqj_1 = $this_launch; this.zqj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda).qpe = function (hasViewPermission, $completion) { var tmp = this.rpe(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.qpe((!(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.aqk_1) { launch(this.yqj_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_0(this.zqj_1, null)); launch(this.yqj_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_2(this.zqj_1, null)); launch(this.yqj_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_4(this.zqj_1, null)); } else { l$ret$1: do { var this_0 = this.zqj_1.cqf_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.sqf(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).rpe = function (hasViewPermission, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda(this.yqj_1, this.zqj_1, completion); i.aqk_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.qpe(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.cqf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewViewModel......' call var nextValue = prevValue.sqf(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).lqk = function (clazzWithDisplayDetails, permissions, $completion) { var tmp = this.mqk(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.lqk(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.jqk_1; var tmp_0; if (this.kqk_1.dda_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).mqk = function (clazzWithDisplayDetails, permissions, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(completion); i.jqk_1 = clazzWithDisplayDetails; i.kqk_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.lqk(clazzWithDisplayDetails, permissions, $completion); }; l.$arity = 2; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.vqk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).xqk = function (it, $completion) { var tmp = this.yqk(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.xqk((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.vqk_1.cqf_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.sqf(this.wqk_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp1_currentTerminologyStrings = this.vqk_1.cqf_1.t2().oqf_1; var tmp0_safe_receiver = this.wqk_1; var tmp2_terminology = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f8k_1; var tmp3_json = this.vqk_1.m4r(); var tmp4_systemImpl = this.vqk_1.apn(); parseAndUpdateTerminologyStringsIfNeeded(tmp1_currentTerminologyStrings, tmp2_terminology, tmp4_systemImpl, tmp3_json, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$lambda(this.vqk_1)); l$ret$3: do { var this_1 = this.vqk_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver_0 = this.wqk_1; var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.e8k_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.i8d_1; var nextValue_0 = prevValue_0.ap6(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).yqk = function (it, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this.vqk_1, completion); i.wqk_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.xqk(it, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1($$this$unsafeFlow, resultContinuation) { this.hql_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1).oqg = function (value, $completion) { var tmp = this.pqg(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.oqg(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.jql_1 = this.hql_1; var tmp_1 = this; tmp_1.kql_1 = this.iql_1; this.hd_1 = 1; var it = this.kql_1; suspendResult = this.jql_1.t1d(it.eda_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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).pqg = function (value, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1(this.hql_1, completion); i.iql_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.oqg(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$55(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tql_1 = _this__u8e3s4; this.uql_1 = collector; } protoOf($collectCOROUTINE$55).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.vql_1 = this.uql_1; this.hd_1 = 1; var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_2(this.vql_1, null); suspendResult = this.tql_1.wql_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function _no_name_provided__qut3iv_4($this) { this.wql_1 = $this; } protoOf(_no_name_provided__qut3iv_4).fpe = function (collector, $completion) { var tmp = new $collectCOROUTINE$55(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_4).a1c = function (collector, $completion) { return this.fpe(collector, $completion); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.fqm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).qpe = function (hasEditPermission, $completion) { var tmp = this.rpe(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.qpe((!(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.fqm_1.gpm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ap6(prevValue.lp5_1.gp6(this.gqm_1)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.fqm_1.cqf_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.sqf(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.gqm_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).rpe = function (hasEditPermission, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this.fqm_1, completion); i.gqm_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.qpe(hasEditPermission, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3($$this$unsafeFlow, resultContinuation) { this.pqm_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3).oqg = function (value, $completion) { var tmp = this.pqg(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.oqg(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.rqm_1 = this.pqm_1; var tmp_1 = this; tmp_1.sqm_1 = this.qqm_1; this.hd_1 = 1; var it = this.sqm_1; suspendResult = this.rqm_1.t1d(it.fda_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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).pqg = function (value, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3(this.pqm_1, completion); i.qqm_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.oqg(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$56(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bqn_1 = _this__u8e3s4; this.cqn_1 = collector; } protoOf($collectCOROUTINE$56).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.dqn_1 = this.cqn_1; this.hd_1 = 1; var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_4(this.dqn_1, null); suspendResult = this.bqn_1.eqn_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function _no_name_provided__qut3iv_5($this) { this.eqn_1 = $this; } protoOf(_no_name_provided__qut3iv_5).fpe = function (collector, $completion) { var tmp = new $collectCOROUTINE$56(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_5).a1c = function (collector, $completion) { return this.fpe(collector, $completion); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.nqn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).qpe = function (canAddStudent, $completion) { var tmp = this.rpe(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.qpe((!(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.nqn_1.cqf_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.sqf(VOID, VOID, VOID, VOID, this.oqn_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).rpe = function (canAddStudent, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this.nqn_1, completion); i.oqn_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.qpe(canAddStudent, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda_1($permissionFlow, this$0, resultContinuation) { this.xqn_1 = $permissionFlow; this.yqn_1 = this$0; 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 this_0 = this.xqn_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_3(this_0)); suspendResult = collectLatest(tmp_0, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_0(this.zqn_1, this.yqn_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_1).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_1(this.xqn_1, this.yqn_1, completion); i.zqn_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda_2($permissionFlow, this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_1($permissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda_3(this$0, $permissionFlow, resultContinuation) { this.iqo_1 = this$0; this.jqo_1 = $permissionFlow; 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 tmp_0 = this.iqo_1.wpm().o7d().o8c(this.iqo_1.wpl_1, systemTimeInMillis(), this.iqo_1.upm()); var tmp_1 = combine(tmp_0, this.jqo_1, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(null)); var tmp_2 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this.iqo_1, null); suspendResult = tmp_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_2), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_3).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_3(this.iqo_1, this.jqo_1, completion); i.kqo_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda_4(this$0, $permissionFlow, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_3(this$0, $permissionFlow, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda_5($permissionFlow, this$0, resultContinuation) { this.tqo_1 = $permissionFlow; this.uqo_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.tqo_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_4(this_0)); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this.uqo_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_5).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_5(this.tqo_1, this.uqo_1, completion); i.vqo_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$slambda_7($permissionFlow, this$0, resultContinuation) { this.eqp_1 = $permissionFlow; this.fqp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$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(ClazzDetailOverviewViewModel$slambda$slambda$slambda_7).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$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.eqp_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_5(this_0)); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this.fqp_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_7).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_7(this.eqp_1, this.fqp_1, completion); i.gqp_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda_8($permissionFlow, this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_7($permissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda_1($this_launch, $permissionFlow, this$0, resultContinuation) { this.pqp_1 = $this_launch; this.qqp_1 = $permissionFlow; this.rqp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda_1).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda_1).m78 = function ($completion) { return this.z86($completion); }; protoOf(ClazzDetailOverviewViewModel$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.pqp_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_2(this.qqp_1, this.rqp_1, null)); launch(this.pqp_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_4(this.rqp_1, this.qqp_1, null)); launch(this.pqp_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_6(this.qqp_1, this.rqp_1, null)); launch(this.pqp_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_8(this.qqp_1, this.rqp_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_1).l78 = function (completion) { return new ClazzDetailOverviewViewModel$slambda$slambda_1(this.pqp_1, this.qqp_1, this.rqp_1, completion); }; function ClazzDetailOverviewViewModel$slambda$slambda_2($this_launch, $permissionFlow, this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda_1($this_launch, $permissionFlow, this$0, resultContinuation); var l = function ($completion) { return i.z86($completion); }; l.$arity = 0; return l; } function _get_setClipboardStringUseCase__31i1s1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.eqf_1; setClipboardStringUseCase$factory_0(); return this_0.t2(); } function _get_copyCourseUseCase__jeltyi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hqf_1; copyCourseUseCase$factory_0(); return this_0.t2(); } function onClickEdit($this) { Companion_getInstance_108(); var tmp = to('entityUid', $this.wpl_1.toString()); Companion_getInstance_108(); $this.epm_1.hob('CourseEdit', mapOf([tmp, to('clazzAction', 'EDIT')])); } function Companion_105() { this.sqp_1 = 'CourseDetailOverviewView'; } var Companion_instance_153; function Companion_getInstance_122() { return Companion_instance_153; } function ClazzAction(name, ordinal) { Enum.call(this, name, ordinal); } function sam$kotlinx_coroutines_flow_FlowCollector$0_9(function_0) { this.tqp_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_9).t1d = function (value, $completion) { return this.tqp_1(value, $completion); }; function ClazzDetailOverviewViewModel$onClickEdit$ref($boundThis) { var l = function () { onClickEdit($boundThis); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function ClazzDetailOverviewViewModel$slambda(this$0, resultContinuation) { this.cqq_1 = this$0; 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.cqq_1.cqf_1, ClazzDetailOverviewViewModel$slambda$slambda_0(this.cqq_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.cqq_1, completion); i.dqq_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda_0(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda_1(this$0, $permissionFlow, resultContinuation) { this.mqq_1 = this$0; this.nqq_1 = $permissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$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_1).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$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.mqq_1.cqf_1, ClazzDetailOverviewViewModel$slambda$slambda_2(this.oqq_1, this.nqq_1, this.mqq_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_1).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda_1(this.mqq_1, this.nqq_1, completion); i.oqq_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda_2(this$0, $permissionFlow, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda_1(this$0, $permissionFlow, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$onClickCopyCourse$slambda(this$0, resultContinuation) { this.xqq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$onClickCopyCourse$slambda).u1m = 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$onClickCopyCourse$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$onClickCopyCourse$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.xqq_1.cqf_1.t2().bqr(); var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.zqq_1 = tmp_1; this.aqr_1 = this.xqq_1.cqf_1.t2().jqf_1; this.hd_1 = 1; suspendResult = _get_copyCourseUseCase__jeltyi(this.xqq_1).eqr(this.zqq_1, this.aqr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_0 = suspendResult; this_0.fqr_1.i8d_1 = this.xqq_1.apn().tno(strings_getInstance().an1_1) + ' ' + this_0.fqr_1.i8d_1; var copyResult = this_0; Companion_getInstance_108(); var tmp_2 = to('clazzAction', 'COPY'); Companion_getInstance_107(); var this_1 = this.xqq_1.m4r(); var value = copyResult.fqr_1; var this_2 = this_1.t45(); var this_3 = serializer(this_2, createKType(getKClass(ClazzWithHolidayCalendarAndAndTerminology), arrayOf([]), false)); var tmp_3 = to('entity', this_1.r45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), value)); var this_4 = this.xqq_1.m4r(); var value_0 = copyResult.gqr_1; var this_5 = this_4.t45(); var this_6 = serializer(this_5, createKType(getKClass(List), arrayOf([createInvariantKTypeProjection(createKType(getKClass(CourseBlockAndEditEntities), arrayOf([]), false))]), false)); var tmp_4 = to('courseblocks', this_4.r45(isInterface(this_6, KSerializer) ? this_6 : THROW_CCE(), value_0)); var this_7 = this.xqq_1.m4r(); var value_1 = copyResult.hqr_1; var this_8 = this_7.t45(); var this_9 = serializer(this_8, createKType(getKClass(List), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Schedule), arrayOf([]), false))]), false)); this.xqq_1.epm_1.hob('CourseEdit', mapOf([tmp_2, tmp_3, tmp_4, to('schedule', this_7.r45(isInterface(this_9, KSerializer) ? this_9 : THROW_CCE(), value_1))])); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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$onClickCopyCourse$slambda).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$onClickCopyCourse$slambda(this.xqq_1, completion); i.yqq_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$onClickCopyCourse$slambda_0(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$onClickCopyCourse$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAction_EDIT_getInstance() { ClazzAction_initEntries(); return ClazzAction_EDIT_instance; } function ClazzAction_COPY_getInstance() { ClazzAction_initEntries(); return ClazzAction_COPY_instance; } function ClazzDetailOverviewViewModel(di, savedStateHandle, destinationName) { destinationName = destinationName === VOID ? 'CourseDetailOverviewView' : destinationName; DetailViewModel.call(this, di, savedStateHandle, destinationName); this.cqf_1 = MutableStateFlow(new ClazzDetailOverviewUiState()); this.dqf_1 = asStateFlow(this.cqf_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.eqf_1 = Instance(this, tmp$ret$0, null).a5d(this, setClipboardStringUseCase$factory()); this.fqf_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.gqf_1 = asSharedFlow(this.fqf_1); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveEndpoint(di); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(CopyCourseUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.hqf_1 = Instance(this_0, tmp$ret$2, null).a5d(this, copyCourseUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.gpm_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewViewModel.' call var tmp_3 = this.apn().tno(strings_getInstance().qm6_1); var tmp_4 = FabIcon_EDIT_getInstance(); var nextValue = prevValue.ap6(new FabUiState(false, tmp_3, tmp_4, ClazzDetailOverviewViewModel$onClickEdit$ref(this))); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_5 = this.tpm(); launch(tmp_5, VOID, VOID, ClazzDetailOverviewViewModel$slambda_0(this, null)); var tmp_6 = this.wpm().o7f(); var tmp_7 = this.upm(); PermissionFlags_getInstance(); var tmp_8 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_9 = new Long(2, 0); PermissionFlags_getInstance(); var permissionFlow = shareIn(tmp_6.od6(tmp_7, this.wpl_1, tmp_8, tmp_9, new Long(8, 0)), this.tpm(), Companion_getInstance_12().v1h()); var tmp_10 = this.tpm(); launch(tmp_10, VOID, VOID, ClazzDetailOverviewViewModel$slambda_2(this, permissionFlow, null)); } protoOf(ClazzDetailOverviewViewModel).iqr = function (code) { _get_setClipboardStringUseCase__31i1s1(this).mo6(code); this.ypm().pp6(new Snack(this.apn().tno(strings_getInstance().smj_1))); }; protoOf(ClazzDetailOverviewViewModel).jqr = function (courseBlock) { Companion_getInstance_118(); var tmp = to('entityUid', courseBlock.j7x_1.toString()); Companion_getInstance_118(); var navArgs = mapOf([tmp, to('clazzUid', this.wpl_1.toString())]); var tmp0_subject = courseBlock.k7x_1; if (tmp0_subject === 100) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.cqf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewViewModel.onClickCourseBlock.' call var nextValue = prevValue.sqf(VOID, VOID, VOID, VOID, VOID, toggle_0(prevValue.nqf_1, courseBlock.j7x_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.fqf_1.i1h(new RefreshCommand()); } else { if (tmp0_subject === 102) { this.epm_1.hob('CourseText', navArgs); } else { if (tmp0_subject === 103) { this.epm_1.hob('CourseAssignment', navArgs); } else { if (tmp0_subject === 105) { this.epm_1.hob('CourseDiscussion', navArgs); } else { if (tmp0_subject === 104) { Companion_getInstance_149(); Companion_getInstance_118(); var tmp_0 = to('entityUid', courseBlock.b7y_1.toString()); Companion_getInstance_118(); var tmp_1 = to('clazzUid', this.wpl_1.toString()); Companion_getInstance_118(); this.epm_1.hob('ContentEntry', mapOf([tmp_0, tmp_1, to('courseBlockUid', courseBlock.j7x_1.toString())])); } } } } } }; protoOf(ClazzDetailOverviewViewModel).kqr = function () { Companion_getInstance_118(); this.epm_1.hob('CoursePermissionList', mapOf_0(to('clazzUid', this.wpl_1.toString()))); }; protoOf(ClazzDetailOverviewViewModel).lqr = function () { var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzDetailOverviewViewModel$onClickCopyCourse$slambda_0(this, null)); }; function ClazzDetailOverviewUiState$displayBlockList$delegate$lambda(this$0) { return function () { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this$0.kqf_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.fca_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m7x_1; if (!this$0.nqf_1.a1(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs)) { destination.i1(element); } } return destination; }; } function ClazzDetailOverviewUiState(clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible, canAddNewCourse) { clazzAndDetail = clazzAndDetail === VOID ? null : clazzAndDetail; scheduleList = scheduleList === VOID ? emptyList() : scheduleList; courseBlockList = courseBlockList === VOID ? emptyList() : courseBlockList; blockStatusesForActiveUser = blockStatusesForActiveUser === VOID ? emptyList() : blockStatusesForActiveUser; clazzCodeVisible = clazzCodeVisible === VOID ? false : clazzCodeVisible; collapsedBlockUids = collapsedBlockUids === VOID ? emptySet() : collapsedBlockUids; terminologyStrings = terminologyStrings === VOID ? null : terminologyStrings; managePermissionVisible = managePermissionVisible === VOID ? false : managePermissionVisible; canAddNewCourse = canAddNewCourse === VOID ? false : canAddNewCourse; this.iqf_1 = clazzAndDetail; this.jqf_1 = scheduleList; this.kqf_1 = courseBlockList; this.lqf_1 = blockStatusesForActiveUser; this.mqf_1 = clazzCodeVisible; this.nqf_1 = collapsedBlockUids; this.oqf_1 = terminologyStrings; this.pqf_1 = managePermissionVisible; this.qqf_1 = canAddNewCourse; var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.rqf_1 = lazy(tmp_0, ClazzDetailOverviewUiState$displayBlockList$delegate$lambda(this)); } protoOf(ClazzDetailOverviewUiState).bqr = function () { var tmp0_safe_receiver = this.iqf_1; return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e8k_1; }; protoOf(ClazzDetailOverviewUiState).mqr = function () { var tmp; var tmp0_safe_receiver = this.iqf_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e8k_1; if (isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p8d_1)) { tmp = true; } else { var tmp2_safe_receiver = this.iqf_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.e8k_1; tmp = isDateSet(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.q8d_1); } return tmp; }; protoOf(ClazzDetailOverviewUiState).nqr = function () { var tmp0_safe_receiver = this.iqf_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h8k_1; return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; }; protoOf(ClazzDetailOverviewUiState).oqr = function () { var tmp0_safe_receiver = this.iqf_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i8k_1; return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; }; protoOf(ClazzDetailOverviewUiState).pqr = function () { var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = this.kqf_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.fca_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k7x_1; if (tmp_0 === 100) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } return tmp$ret$0; }; protoOf(ClazzDetailOverviewUiState).qqr = function () { var tmp2_safe_receiver = this.oqf_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.up7(strings_getInstance().um9_1); var tmp = (tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs) + ': ' + this.oqr() + ', '; var tmp0_safe_receiver = this.oqf_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.up7(strings_getInstance().alx_1); return tmp + ((tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs) + ': ' + this.nqr()); }; protoOf(ClazzDetailOverviewUiState).rqr = function () { return this.pqf_1; }; protoOf(ClazzDetailOverviewUiState).sqr = function () { // Inline function 'kotlin.getValue' call var this_0 = this.rqf_1; displayBlockList$factory(); return this_0.t2(); }; protoOf(ClazzDetailOverviewUiState).tqr = function (clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible, canAddNewCourse) { return new ClazzDetailOverviewUiState(clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible, canAddNewCourse); }; protoOf(ClazzDetailOverviewUiState).sqf = function (clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible, canAddNewCourse, $super) { clazzAndDetail = clazzAndDetail === VOID ? this.iqf_1 : clazzAndDetail; scheduleList = scheduleList === VOID ? this.jqf_1 : scheduleList; courseBlockList = courseBlockList === VOID ? this.kqf_1 : courseBlockList; blockStatusesForActiveUser = blockStatusesForActiveUser === VOID ? this.lqf_1 : blockStatusesForActiveUser; clazzCodeVisible = clazzCodeVisible === VOID ? this.mqf_1 : clazzCodeVisible; collapsedBlockUids = collapsedBlockUids === VOID ? this.nqf_1 : collapsedBlockUids; terminologyStrings = terminologyStrings === VOID ? this.oqf_1 : terminologyStrings; managePermissionVisible = managePermissionVisible === VOID ? this.pqf_1 : managePermissionVisible; canAddNewCourse = canAddNewCourse === VOID ? this.qqf_1 : canAddNewCourse; return $super === VOID ? this.tqr(clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible, canAddNewCourse) : $super.tqr.call(this, clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible, canAddNewCourse); }; protoOf(ClazzDetailOverviewUiState).toString = function () { return 'ClazzDetailOverviewUiState(clazzAndDetail=' + this.iqf_1 + ', scheduleList=' + this.jqf_1 + ', courseBlockList=' + this.kqf_1 + ', blockStatusesForActiveUser=' + this.lqf_1 + ', clazzCodeVisible=' + this.mqf_1 + ', collapsedBlockUids=' + this.nqf_1 + ', terminologyStrings=' + this.oqf_1 + ', managePermissionVisible=' + this.pqf_1 + ', canAddNewCourse=' + this.qqf_1 + ')'; }; protoOf(ClazzDetailOverviewUiState).hashCode = function () { var result = this.iqf_1 == null ? 0 : this.iqf_1.hashCode(); result = imul(result, 31) + hashCode(this.jqf_1) | 0; result = imul(result, 31) + hashCode(this.kqf_1) | 0; result = imul(result, 31) + hashCode(this.lqf_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.mqf_1) | 0; result = imul(result, 31) + hashCode(this.nqf_1) | 0; result = imul(result, 31) + (this.oqf_1 == null ? 0 : this.oqf_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.pqf_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.qqf_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.iqf_1, tmp0_other_with_cast.iqf_1)) return false; if (!equals(this.jqf_1, tmp0_other_with_cast.jqf_1)) return false; if (!equals(this.kqf_1, tmp0_other_with_cast.kqf_1)) return false; if (!equals(this.lqf_1, tmp0_other_with_cast.lqf_1)) return false; if (!(this.mqf_1 === tmp0_other_with_cast.mqf_1)) return false; if (!equals(this.nqf_1, tmp0_other_with_cast.nqf_1)) return false; if (!equals(this.oqf_1, tmp0_other_with_cast.oqf_1)) return false; if (!(this.pqf_1 === tmp0_other_with_cast.pqf_1)) return false; if (!(this.qqf_1 === tmp0_other_with_cast.qqf_1)) return false; return true; }; function setClipboardStringUseCase$factory() { return getPropertyCallableRef('setClipboardStringUseCase', 1, KProperty1, function (receiver) { return _get_setClipboardStringUseCase__31i1s1(receiver); }, null); } function copyCourseUseCase$factory() { return getPropertyCallableRef('copyCourseUseCase', 1, KProperty1, function (receiver) { return _get_copyCourseUseCase__jeltyi(receiver); }, null); } function setClipboardStringUseCase$factory_0() { return getPropertyCallableRef('setClipboardStringUseCase', 1, KProperty1, function (receiver) { return _get_setClipboardStringUseCase__31i1s1(receiver); }, null); } function copyCourseUseCase$factory_0() { return getPropertyCallableRef('copyCourseUseCase', 1, KProperty1, function (receiver) { return _get_copyCourseUseCase__jeltyi(receiver); }, null); } function displayBlockList$factory() { return getPropertyCallableRef('displayBlockList', 1, KProperty1, function (receiver) { return receiver.sqr(); }, null); } function Companion_106() { Companion_instance_154 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.uqr_1 = [null, new ArrayListSerializer($serializer_getInstance_7()), new ArrayListSerializer($serializer_getInstance_8())]; } var Companion_instance_154; function Companion_getInstance_123() { if (Companion_instance_154 == null) new Companion_106(); return Companion_instance_154; } function $serializer_52() { $serializer_instance_52 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.clazz.detailoverview.CopyCourseUseCase.CopyCourseResult', this, 3); tmp0_serialDesc.t4f('clazz', false); tmp0_serialDesc.t4f('courseBlocks', false); tmp0_serialDesc.t4f('schedules', false); this.vqr_1 = tmp0_serialDesc; } protoOf($serializer_52).q44 = function () { return this.vqr_1; }; protoOf($serializer_52).k4g = function () { var tmp0_cached = Companion_getInstance_123().uqr_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_9(), tmp0_cached[1], tmp0_cached[2]]; }; protoOf($serializer_52).s44 = function (decoder) { var tmp0_desc = this.vqr_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.i48(tmp0_desc); var tmp8_cached = Companion_getInstance_123().uqr_1; if (tmp7_input.x48()) { tmp4_local0 = tmp7_input.u48(tmp0_desc, 0, $serializer_getInstance_9(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.u48(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.u48(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.u48(tmp0_desc, 0, $serializer_getInstance_9(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.u48(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.u48(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.j48(tmp0_desc); return CopyCourseResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_52).wqr = function (encoder, value) { var tmp0_desc = this.vqr_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_123().uqr_1; tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_9(), value.fqr_1); tmp1_output.y49(tmp0_desc, 1, tmp2_cached[1], value.gqr_1); tmp1_output.y49(tmp0_desc, 2, tmp2_cached[2], value.hqr_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_52).r44 = function (encoder, value) { return this.wqr(encoder, value instanceof CopyCourseResult ? value : THROW_CCE()); }; var $serializer_instance_52; function $serializer_getInstance_64() { if ($serializer_instance_52 == null) new $serializer_52(); return $serializer_instance_52; } function CopyCourseResult_init_$Init$(seen1, clazz, courseBlocks, schedules, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_64().vqr_1); } $this.fqr_1 = clazz; $this.gqr_1 = courseBlocks; $this.hqr_1 = schedules; return $this; } function CopyCourseResult_init_$Create$(seen1, clazz, courseBlocks, schedules, serializationConstructorMarker) { return CopyCourseResult_init_$Init$(seen1, clazz, courseBlocks, schedules, serializationConstructorMarker, objectCreate(protoOf(CopyCourseResult))); } function CopyCourseResult(clazz, courseBlocks, schedules) { Companion_getInstance_123(); this.fqr_1 = clazz; this.gqr_1 = courseBlocks; this.hqr_1 = schedules; } protoOf(CopyCourseResult).toString = function () { return 'CopyCourseResult(clazz=' + this.fqr_1 + ', courseBlocks=' + this.gqr_1 + ', schedules=' + this.hqr_1 + ')'; }; protoOf(CopyCourseResult).hashCode = function () { var result = this.fqr_1.hashCode(); result = imul(result, 31) + hashCode(this.gqr_1) | 0; result = imul(result, 31) + hashCode(this.hqr_1) | 0; return result; }; protoOf(CopyCourseResult).equals = function (other) { if (this === other) return true; if (!(other instanceof CopyCourseResult)) return false; var tmp0_other_with_cast = other instanceof CopyCourseResult ? other : THROW_CCE(); if (!this.fqr_1.equals(tmp0_other_with_cast.fqr_1)) return false; if (!equals(this.gqr_1, tmp0_other_with_cast.gqr_1)) return false; if (!equals(this.hqr_1, tmp0_other_with_cast.hqr_1)) return false; return true; }; function shallowCopyTo(_this__u8e3s4, $this, target) { target.i8d_1 = _this__u8e3s4.i8d_1; target.j8d_1 = _this__u8e3s4.j8d_1; target.k8d_1 = _this__u8e3s4.k8d_1; target.l8d_1 = _this__u8e3s4.l8d_1; target.m8d_1 = _this__u8e3s4.m8d_1; target.n8d_1 = _this__u8e3s4.n8d_1; target.o8d_1 = _this__u8e3s4.o8d_1; target.p8d_1 = _this__u8e3s4.p8d_1; target.q8d_1 = _this__u8e3s4.q8d_1; target.r8d_1 = _this__u8e3s4.r8d_1; target.s8d_1 = _this__u8e3s4.s8d_1; target.t8d_1 = _this__u8e3s4.t8d_1; target.u8d_1 = _this__u8e3s4.u8d_1; target.v8d_1 = _this__u8e3s4.v8d_1; target.w8d_1 = _this__u8e3s4.w8d_1; target.x8d_1 = _this__u8e3s4.x8d_1; target.y8d_1 = _this__u8e3s4.y8d_1; target.z8d_1 = _this__u8e3s4.z8d_1; target.a8e_1 = _this__u8e3s4.a8e_1; target.b8e_1 = _this__u8e3s4.b8e_1; target.c8e_1 = _this__u8e3s4.c8e_1; target.d8e_1 = _this__u8e3s4.d8e_1; target.e8e_1 = _this__u8e3s4.e8e_1; } function CopyCourseUseCase$invoke$lambda($newScheduleUid, $clazz) { return function ($this$shallowCopy) { $this$shallowCopy.zgs_1 = $newScheduleUid; $this$shallowCopy.ggt_1 = $clazz.h8d_1; return Unit_instance; }; } function $invokeCOROUTINE$57(_this__u8e3s4, clazz, scheduleListVal, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fqs_1 = _this__u8e3s4; this.gqs_1 = clazz; this.hqs_1 = scheduleListVal; } protoOf($invokeCOROUTINE$57).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 = this.fqs_1.cqr_1.p7d().nc7(this.gqs_1.h8d_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.iqs_1 = suspendResult; this.hd_1 = 2; suspendResult = this.fqs_1.cqr_1.g7f().yff(this.gqs_1.h8d_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.jqs_1 = suspendResult; this.hd_1 = 3; suspendResult = this.fqs_1.cqr_1.o7d().k8c(this.gqs_1.h8d_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.kqs_1 = suspendResult; this.lqs_1 = this.kqs_1 == null ? new ClazzWithHolidayCalendarAndAndTerminology() : this.kqs_1; var tmp_0 = this; var this_0 = this.iqs_1; var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); var tmp_1 = ensureNotNull(item.oc9_1); var tmp0_elvis_lhs = item.pc9_1; var tmp_2 = tmp0_elvis_lhs == null ? new CourseBlockPicture(ensureNotNull(item.oc9_1).j7x_1) : tmp0_elvis_lhs; var tmp_3 = item.qc9_1; var tmp_4 = item.rc9_1; var tmp_5 = item.sc9_1; var tmp_6 = item.tc9_1; var this_1 = this.jqs_1; var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_0 = this_1.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); var tmp_7 = element.wfg_1; var tmp0_safe_receiver = item.sc9_1; if (tmp_7.equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d7t_1)) { destination_0.i1(element); } } destination.i1(new CourseBlockAndEditEntities(tmp_1, tmp_2, tmp_3, VOID, VOID, VOID, tmp_4, tmp_5, tmp_6, destination_0)); } tmp_0.mqs_1 = destination; this.nqs_1 = get_doorPrimaryKeyManager(this.fqs_1.cqr_1); this.hd_1 = 4; Companion_getInstance_4(); suspendResult = this.nqs_1.o62(6, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.oqs_1 = suspendResult; this.pqs_1 = this.fqs_1.dqr_1.kng().xkb_1; this.hd_1 = 5; suspendResult = this.nqs_1.o62(21, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.qqs_1 = suspendResult; var tmp_8 = this; tmp_8.rqs_1 = this.mqs_1; var tmp_9 = this; tmp_9.sqs_1 = this.rqs_1; var tmp_10 = this; tmp_10.tqs_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.rqs_1, 10)); this.uqs_1 = this.sqs_1.w(); this.hd_1 = 6; continue $sm; case 6: if (!this.uqs_1.f()) { this.hd_1 = 10; continue $sm; } this.vqs_1 = this.uqs_1.e(); var tmp_11 = this; tmp_11.wqs_1 = this.vqs_1; this.hd_1 = 7; suspendResult = this.nqs_1.o62(124, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.xqs_1 = suspendResult; this.yqs_1 = this.wqs_1.qjm_1; if (this.yqs_1 == null) { this.zqs_1 = null; this.hd_1 = 9; continue $sm; } else { this.hd_1 = 8; suspendResult = this.nqs_1.o62(520, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 8: var tmp1_caUid = suspendResult; this.zqs_1 = this.yqs_1.tjr(tmp1_caUid, VOID, VOID, new Long(0, 0), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 1, VOID, VOID, VOID, VOID, this.oqs_1); this.hd_1 = 9; continue $sm; case 9: var copiedAssignment = this.zqs_1; var tmp4_elvis_lhs = copiedAssignment == null ? null : copiedAssignment.d7t_1; var ARGUMENT = this.wqs_1.vjm(this.wqs_1.jjm_1.tjz(this.xqs_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.oqs_1, VOID, VOID, VOID, tmp4_elvis_lhs == null ? new Long(0, 0) : tmp4_elvis_lhs), VOID, VOID, VOID, VOID, VOID, VOID, copiedAssignment); this.tqs_1.i1(ARGUMENT); this.hd_1 = 6; continue $sm; case 10: var courseBlocks = this.tqs_1; shallowCopyTo(this.gqs_1, this.fqs_1, this.lqs_1); var tmp_12 = this.lqs_1; var tmp1_safe_receiver = this.lqs_1.b8g_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.tk0(this.oqs_1); tmp_12.b8g_1 = tmp2_elvis_lhs == null ? new CoursePicture(this.oqs_1) : tmp2_elvis_lhs; this.lqs_1.h8d_1 = this.oqs_1; this.lqs_1.f8e_1 = this.pqs_1; this.lqs_1.h8d_1 = this.oqs_1; this.lqs_1.f8e_1 = this.pqs_1; var this_2 = this.hqs_1; var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10)); var tmp0_iterator_1 = this_2.w(); while (tmp0_iterator_1.f()) { var item_0 = tmp0_iterator_1.e(); destination_1.i1(shallowCopy_3(item_0, CopyCourseUseCase$invoke$lambda(this.qqs_1, this.gqs_1))); } var schedules = destination_1; return new CopyCourseResult(this.lqs_1, courseBlocks, schedules); 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 CopyCourseUseCase(repoOrDb, accountManager) { this.cqr_1 = repoOrDb; this.dqr_1 = accountManager; } protoOf(CopyCourseUseCase).eqr = function (clazz, scheduleListVal, $completion) { var tmp = new $invokeCOROUTINE$57(this, clazz, scheduleListVal, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function ClazzEditViewModel$slambda$slambda$slambda$lambda(this$0) { return function ($this$shallowCopy) { $this$shallowCopy.b8g_1 = new CoursePicture(this$0.ips_1); return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.iqt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda).mqt = function (it, $completion) { var tmp = this.vn7(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.mqt(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.jqt_1.o7d(); var tmp_1; if (!this.iqt_1.ips_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.kqt_1 = tmp_1; if (this.kqt_1 == null) { this.lqt_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.kqt_1.k8c(this.iqt_1.ips_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.lqt_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var tmp1_safe_receiver = this.lqt_1; var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { var updatedClazz = tmp1_safe_receiver; if (tmp1_safe_receiver.b8g_1 == null) { var tmp_3 = updatedClazz; updatedClazz = shallowCopy_4(tmp_3, ClazzEditViewModel$slambda$slambda$slambda$lambda(this.iqt_1)); } tmp_2 = updatedClazz; } 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).vn7 = function (it, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda(this.iqt_1, completion); i.jqt_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.mqt(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.vqt_1 = this$0; this.wqt_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_1).bqu = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_1).m78 = function ($completion) { return this.bqu($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.xqt_1 = new ClazzWithHolidayCalendarAndAndTerminology(); var tmp_1 = this; tmp_1.yqt_1 = this.xqt_1; this.yqt_1.h8d_1 = this.vqt_1.gqv_1; this.yqt_1.i8d_1 = ''; this.yqt_1.n8d_1 = true; this.yqt_1.p8d_1 = systemTimeInMillis(); this.yqt_1.z8d_1 = getDefaultTimeZoneId(); var tmp_2 = this.yqt_1; Companion_getInstance_108(); var tmp0_safe_receiver = this.wqt_1.ba('schoolUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_2.s8d_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_3 = this; var this_0 = this.vqt_1.wpm().q7d(); var tmp_4; if (!this.yqt_1.u8d_1.equals(new Long(0, 0))) { tmp_4 = this_0; } else { tmp_4 = null; } tmp_3.zqt_1 = tmp_4; if (this.zqt_1 == null) { this.aqu_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.zqt_1.mdt(this.yqt_1.u8d_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.aqu_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var ARGUMENT = this.aqu_1; this.yqt_1.a8g_1 = ARGUMENT; this.yqt_1.b8g_1 = new CoursePicture(this.vqt_1.gqv_1); this.yqt_1.f8e_1 = this.vqt_1.upm(); return this.xqt_1; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_1).l78 = function (completion) { return new ClazzEditViewModel$slambda$slambda$slambda_1(this.vqt_1, this.wqt_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.bqu($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.eqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel....' call var nextValue = prevValue.rqv(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.aqw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_3).eqw = function (it, $completion) { var tmp = this.vn7(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.eqw(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.bqw_1.n7e(); var tmp_1; if (!this.aqw_1.ips_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.cqw_1 = tmp_1; if (this.cqw_1 == null) { this.dqw_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.cqw_1.fgs(this.aqw_1.ips_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.dqw_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.dqw_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).vn7 = function (it, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_3(this.aqw_1, completion); i.bqw_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.eqw(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).nqw = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).m78 = function ($completion) { return this.nqw($completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).l78 = function (completion) { return new ClazzEditViewModel$slambda$slambda$slambda_5(completion); }; function ClazzEditViewModel$slambda$slambda$slambda_6(resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda$slambda_5(resultContinuation); var l = function ($completion) { return i.nqw($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.eqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel....' call var nextValue = prevValue.rqv(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.wqw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_7).eqx = function (db, $completion) { var tmp = this.vn7(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.eqx(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.xqw_1.p7d(); var tmp_1; if (!this.wqw_1.ips_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.yqw_1 = tmp_1; if (this.yqw_1 == null) { this.zqw_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.yqw_1.nc7(this.wqw_1.ips_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.zqw_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.aqx_1 = this.zqw_1; this.bqx_1 = this.aqx_1 == null ? emptyList() : this.aqx_1; var tmp_2 = this; var this_1 = this.xqw_1.g7f(); var tmp_3; if (!this.wqw_1.ips_1.equals(new Long(0, 0))) { tmp_3 = this_1; } else { tmp_3 = null; } tmp_2.cqx_1 = tmp_3; if (this.cqx_1 == null) { this.dqx_1 = null; this.hd_1 = 4; continue $sm; } else { this.hd_1 = 3; suspendResult = this.cqx_1.yff(this.wqw_1.ips_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 3: this.dqx_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: var tmp3_elvis_lhs = this.dqx_1; var assignmentPeerAllocations = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs; var this_2 = this.bqx_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.oc9_1); var tmp0_elvis_lhs = item.pc9_1; var tmp_5 = tmp0_elvis_lhs == null ? new CourseBlockPicture(ensureNotNull(item.oc9_1).j7x_1) : tmp0_elvis_lhs; var tmp_6 = item.qc9_1; var tmp_7 = item.rc9_1; var tmp_8 = item.sc9_1; var tmp_9 = item.tc9_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.wfg_1; var tmp0_safe_receiver = item.sc9_1; if (tmp_10.equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d7t_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).vn7 = function (db, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_7(this.wqw_1, completion); i.xqw_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.eqx(db, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_9(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).nqx = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).m78 = function ($completion) { return this.nqx($completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).l78 = function (completion) { return new ClazzEditViewModel$slambda$slambda$slambda_9(completion); }; function ClazzEditViewModel$slambda$slambda$slambda_10(resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda$slambda_9(resultContinuation); var l = function ($completion) { return i.nqx($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.eqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel....' call var nextValue = prevValue.rqv(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.zgs_1.equals($returnedSchedule.zgs_1); }; } function ClazzEditViewModel$slambda$slambda$slambda$slambda(this$0, $newSchedules, resultContinuation) { this.wqx_1 = this$0; this.xqx_1 = $newSchedules; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda$slambda).ppz = 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.ppz((!(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.wqx_1.m4r().r45(ListSerializer(Companion_instance_28.n4r()), this.xqx_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.wqx_1, this.xqx_1, completion); i.yqx_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.ppz($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_11(this$0, $savedStateHandle, resultContinuation) { this.hqy_1 = this$0; this.iqy_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_11).wp9 = function (result, $completion) { var tmp = this.xp9(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.wp9(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.jqy_1.dp9_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.kqy_1 = tmp_2; var tmp_3 = this; var tmp_4 = this.hqy_1.eqv_1.t2().oqv_1; tmp_3.lqy_1 = replaceOrAppend(tmp_4, this.kqy_1, ClazzEditViewModel$slambda$slambda$slambda$lambda_0(this.kqy_1)); l$ret$1: do { var this_0 = this.hqy_1.eqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.rqv(VOID, VOID, VOID, VOID, VOID, this.lqy_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.hqy_1, this.lqy_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.iqy_1.epi('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).xp9 = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_11(this.hqy_1, this.iqy_1, completion); i.jqy_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.wp9(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_13(this$0, resultContinuation) { this.uqy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_13).wp9 = function (result, $completion) { var tmp = this.xp9(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.wp9(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.vqy_1.dp9_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.wqy_1 = tmp_2; var tmp_3 = this; var tmp_4 = this.uqy_1.eqv_1.t2().pqv_1; var tmp1_safe_receiver = this.uqy_1.eqv_1.t2().kqv_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h8d_1; tmp_3.xqy_1 = this.uqy_1.zqu_1.cog(tmp_4, tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs, this.wqy_1); this.hd_1 = 1; suspendResult = updateCourseBlockList(this.uqy_1, this.xqy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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).xp9 = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_13(this.uqy_1, completion); i.vqy_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.wp9(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_1($timeZoneId) { return function ($this$shallowCopy) { $this$shallowCopy.z8d_1 = $timeZoneId; return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_15(this$0, resultContinuation) { this.gqz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_15).wp9 = function (result, $completion) { var tmp = this.xp9(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.wp9(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.hqz_1.dp9_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.gqz_1.eqv_1.t2().kqv_1; var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = shallowCopy_4(tmp1_safe_receiver, ClazzEditViewModel$slambda$slambda$slambda$lambda_1(timeZoneId)); } this.gqz_1.iqz(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).xp9 = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_15(this.gqz_1, completion); i.hqz_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.wp9(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_2($newTerminology) { return function ($this$shallowCopy) { $this$shallowCopy.u8d_1 = $newTerminology.c8g_1; $this$shallowCopy.a8g_1 = $newTerminology; return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_17(this$0, resultContinuation) { this.rqz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_17).wp9 = function (result, $completion) { var tmp = this.xp9(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.wp9(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.sqz_1.dp9_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.rqz_1.eqv_1.t2().kqv_1; var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = shallowCopy_4(tmp1_safe_receiver, ClazzEditViewModel$slambda$slambda$slambda$lambda_2(newTerminology)); } this.rqz_1.iqz(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).xp9 = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_17(this.rqz_1, completion); i.sqz_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.wp9(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_3($newDescription) { return function ($this$shallowCopy) { $this$shallowCopy.j8d_1 = $newDescription; return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_19(this$0, resultContinuation) { this.br0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_19).wp9 = function (result, $completion) { var tmp = this.xp9(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.wp9(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.cr0_1.dp9_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.br0_1.eqv_1.t2().kqv_1; var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = shallowCopy_4(tmp1_safe_receiver, ClazzEditViewModel$slambda$slambda$slambda$lambda_3(newDescription)); } this.br0_1.iqz(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).xp9 = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_19(this.br0_1, completion); i.cr0_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.wp9(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda(this$0, $savedStateHandle, resultContinuation) { this.lr0_1 = this$0; this.mr0_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda).or0 = 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.or0((!(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_32.n4r(); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_0(this.lr0_1, null); var tmp_2 = ClazzEditViewModel$slambda$slambda$slambda_2(this.lr0_1, this.mr0_1, null); suspendResult = this.lr0_1.kpn(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzEditViewModel$slambda$slambda$lambda(this.lr0_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_0 = suspendResult; Companion_getInstance_116(); var tmp1_safe_receiver = this_0 == null ? null : this_0.b8g_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.i8g_1; setIfNoValueSetYet(this.mr0_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.lr0_1, this.mr0_1, completion); i.nr0_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.or0($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.xr0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_1).zr0 = 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.zr0((!(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_28.n4r()); var tmp_1 = listOf_0('schedule'); var tmp_2 = ClazzEditViewModel$slambda$slambda$slambda_4(this.xr0_1, null); var tmp_3 = ClazzEditViewModel$slambda$slambda$slambda_6(null); suspendResult = this.xr0_1.kpn(tmp_0, tmp_1, VOID, tmp_2, tmp_3, ClazzEditViewModel$slambda$slambda$lambda_0(this.xr0_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.xr0_1, completion); i.yr0_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.zr0($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.ir1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_3).kr1 = 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.kr1((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = ListSerializer(Companion_getInstance_13().n4r()); var tmp_1 = listOf_0('courseblocks'); var tmp_2 = ClazzEditViewModel$slambda$slambda$slambda_8(this.ir1_1, null); var tmp_3 = ClazzEditViewModel$slambda$slambda$slambda_10(null); suspendResult = this.ir1_1.kpn(tmp_0, tmp_1, VOID, tmp_2, tmp_3, ClazzEditViewModel$slambda$slambda$lambda_1(this.ir1_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.ir1_1, completion); i.jr1_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.kr1($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_5(this$0, resultContinuation) { this.tr1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_5).ppz = 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.ppz((!(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.tr1_1.m4r(); var value = this.tr1_1.eqv_1.t2(); var this_1 = this_0.t45(); var this_2 = serializer(this_1, createKType(getKClass(ClazzEditUiState), arrayOf([]), false)); return this_0.r45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), value); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_5).v1m = function ($this$withContext, completion) { var i = new ClazzEditViewModel$slambda$slambda_5(this.tr1_1, completion); i.ur1_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.ppz($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_7(this$0, $savedStateHandle, resultContinuation) { this.dr2_1 = this$0; this.er2_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.dr2_1.epn(this.dr2_1.zpm(), 'Schedule'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_12(this.dr2_1, this.er2_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_10(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_7).v1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_7(this.dr2_1, this.er2_1, completion); i.fr2_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.or2_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.or2_1.epn(this.or2_1.zpm(), 'courseblock'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_14(this.or2_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_10(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_9).v1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_9(this.or2_1, completion); i.pr2_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.yr2_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.yr2_1.epn(this.yr2_1.zpm(), 'timeZone'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_16(this.yr2_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_10(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_11).v1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_11(this.yr2_1, completion); i.zr2_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.ir3_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.ir3_1.epn(this.ir3_1.zpm(), 'terminology'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_18(this.ir3_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_10(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_13).v1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_13(this.ir3_1, completion); i.jr3_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.sr3_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.sr3_1.epn(this.sr3_1.zpm(), 'clazzDescriptionHtml'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_20(this.sr3_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_10(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_15).v1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_15(this.sr3_1, completion); i.tr3_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.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda($clazzUid) { return function ($this$shallowCopy) { $this$shallowCopy.ggt_1 = $clazzUid; return Unit_instance; }; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_0(it) { return it.zgs_1; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_1(it) { return it.jjm_1.j7x_1; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_2(it) { return it.d7t_1; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_3(it) { return it.tfg_1; } function invoke$lambda_1($clazzLogCreatorManager$delegate) { // Inline function 'kotlin.getValue' call getLocalDelegateReference('clazzLogCreatorManager', KProperty0, false, function () { return THROW_ISE(); }); return $clazzLogCreatorManager$delegate.t2(); } function ClazzEditViewModel$onClickSave$slambda$slambda(this$0, $initEntity, $updateImage, $coursePictureVal, $entity, $initState, $courseBlockListVal, $updatedCourseBlockPictures, resultContinuation) { this.dr4_1 = this$0; this.er4_1 = $initEntity; this.fr4_1 = $updateImage; this.gr4_1 = $coursePictureVal; this.hr4_1 = $entity; this.ir4_1 = $initState; this.jr4_1 = $courseBlockListVal; this.kr4_1 = $updatedCourseBlockPictures; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onClickSave$slambda$slambda).un7 = function (it, $completion) { var tmp = this.vn7(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.un7(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.dr4_1.ips_1.equals(new Long(0, 0))) { this.hd_1 = 2; suspendResult = _get_createNewClazzUseCase__mo489e(this.dr4_1).ao4(this.er4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; suspendResult = this.dr4_1.wpm().o7d().l8c(this.er4_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.fr4_1 ? !(this.gr4_1 == null) : false) { this.gr4_1.h8g_1 = systemTimeInMillis(); this.gr4_1.g8g_1 = this.hr4_1.h8d_1; this.hd_1 = 4; suspendResult = this.dr4_1.vpm().d7f().mdq(this.gr4_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.mr4_1 = this.hr4_1.h8d_1; var tmp_0 = this; var this_0 = this.dr4_1.eqv_1.t2().oqv_1; var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); destination.i1(shallowCopy_3(item, ClazzEditViewModel$onClickSave$slambda$slambda$lambda(this.mr4_1))); } tmp_0.nr4_1 = destination; this.hd_1 = 6; suspendResult = this.dr4_1.wpm().n7e().cgs(this.nr4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.hd_1 = 7; var tmp_1 = this.dr4_1.wpm().n7e(); suspendResult = deactivateByUids(tmp_1, findKeysNotInOtherList(this.ir4_1.oqv_1, this.nr4_1, ClazzEditViewModel$onClickSave$slambda$slambda$lambda_0), systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.or4_1 = this.dr4_1.aqv_1.eog(this.jr4_1); this.hd_1 = 8; var tmp_2 = this.dr4_1.wpm().p7d(); var this_1 = this.or4_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.jjm_1); } suspendResult = tmp_2.qc7(destination_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: this.hd_1 = 9; var tmp_3 = this.dr4_1.wpm().p7d(); suspendResult = deactivateByUids_0(tmp_3, findKeysNotInOtherList(this.ir4_1.pqv_1, this.or4_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.jr4_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.qjm_1; if (tmp0_safe_receiver == null) null; else { destination_1.i1(tmp0_safe_receiver); } } tmp_4.pr4_1 = destination_1; this.hd_1 = 10; suspendResult = this.dr4_1.wpm().q7e().h7s(this.pr4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: var tmp_5 = this; var this_3 = this.ir4_1.pqv_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.qjm_1; if (tmp0_safe_receiver_0 == null) null; else { destination_2.i1(tmp0_safe_receiver_0); } } tmp_5.qr4_1 = findKeysNotInOtherList(destination_2, this.pr4_1, ClazzEditViewModel$onClickSave$slambda$slambda$lambda_2); var tmp_6 = this; var this_4 = this.dr4_1.wpm().q7e(); var tmp_7; if (!this.qr4_1.c1()) { tmp_7 = this_4; } else { tmp_7 = null; } tmp_6.rr4_1 = tmp_7; if (this.rr4_1 == null) { this.sr4_1 = null; this.hd_1 = 12; continue $sm; } else { this.hd_1 = 11; suspendResult = this.rr4_1.i7s(this.qr4_1, false, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 11: var tmp_8 = this; tmp_8.sr4_1 = Unit_instance; this.hd_1 = 12; continue $sm; case 12: var tmp_9 = this; var this_5 = this.jr4_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.sjm_1; addAll(destination_3, list); } tmp_9.tr4_1 = destination_3; var tmp_10 = this; var this_6 = this.ir4_1.pqv_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.sjm_1; addAll(destination_4, list_0); } tmp_10.ur4_1 = destination_4; this.hd_1 = 13; var tmp_11 = this.dr4_1.wpm().g7f(); suspendResult = deactivateByUids_1(tmp_11, findKeysNotInOtherList(this.ur4_1, this.tr4_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.dr4_1.wpm().g7f().zff(this.tr4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 14: var tmp_12 = this; var this_7 = this.jr4_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.njm_1; if (tmp0_safe_receiver_1 == null) null; else { destination_5.i1(tmp0_safe_receiver_1); } } tmp_12.vr4_1 = destination_5; this.wr4_1 = this.vr4_1.w(); this.hd_1 = 15; continue $sm; case 15: if (!this.wr4_1.f()) { this.hd_1 = 17; continue $sm; } this.xr4_1 = this.wr4_1.e(); var tmp_13 = this; tmp_13.yr4_1 = this.xr4_1; this.hd_1 = 16; suspendResult = this.dr4_1.cqv_1.ioa(this.yr4_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.dr4_1.vpm().q7f(); var tmp_15; if (!this.kr4_1.c1()) { tmp_15 = this_8; } else { tmp_15 = null; } tmp_14.zr4_1 = tmp_15; if (this.zr4_1 == null) { this.ar5_1 = null; this.hd_1 = 19; continue $sm; } else { this.hd_1 = 18; suspendResult = this.zr4_1.ncn(this.kr4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 18: var tmp_16 = this; tmp_16.ar5_1 = Unit_instance; this.hd_1 = 19; continue $sm; case 19: Napier_getInstance().i5e('onClickSave: transaction block done'); return Unit_instance; case 20: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 20) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$onClickSave$slambda$slambda).vn7 = function (it, completion) { var i = new ClazzEditViewModel$onClickSave$slambda$slambda(this.dr4_1, this.er4_1, this.fr4_1, this.gr4_1, this.hr4_1, this.ir4_1, this.jr4_1, this.kr4_1, completion); i.lr4_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.un7(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$updateCourseBlock$slambda$lambda($updatedBlock) { return function (it) { return it.jjm_1.j7x_1.equals($updatedBlock.jjm_1.j7x_1); }; } function _get_createNewClazzUseCase__mo489e($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hqv_1; createNewClazzUseCase$factory_0(); return this_0.t2(); } function updateCourseBlockList($this, newCourseBlockList, $completion) { var tmp = new $updateCourseBlockListCOROUTINE$58($this, newCourseBlockList, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function hasErrors(_this__u8e3s4, $this) { return (!(_this__u8e3s4.lqv_1 == null) ? true : !(_this__u8e3s4.mqv_1 == null)) ? true : !(_this__u8e3s4.nqv_1 == null); } function updateCourseBlock($this, updatedBlock) { var tmp = $this.tpm(); launch(tmp, VOID, VOID, ClazzEditViewModel$updateCourseBlock$slambda_0($this, updatedBlock, null)); } function Companion_107() { this.mr5_1 = 'CourseEdit'; this.nr5_1 = 'Schedule'; this.or5_1 = 'schedule'; this.pr5_1 = 'courseblock'; this.qr5_1 = 'timeZone'; this.rr5_1 = 'terminology'; this.sr5_1 = 'courseblocks'; this.tr5_1 = 'clazzDescriptionHtml'; } var Companion_instance_155; function Companion_getInstance_124() { return Companion_instance_155; } function sam$kotlinx_coroutines_flow_FlowCollector$0_10(function_0) { this.ur5_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_10).t1d = function (value, $completion) { return this.ur5_1(value, $completion); }; function ClazzEditViewModel$slambda(this$0, resultContinuation) { this.dr6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda).gr6 = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda).he = function (p1, $completion) { return this.gr6(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.dr6_1.ips_1.equals(new Long(0, 0))) { this.hd_1 = 2; var tmp_0 = this.er6_1.o7f(); var tmp_1 = this.dr6_1.upm(); PermissionFlags_getInstance(); suspendResult = tmp_0.pd6(tmp_1, this.dr6_1.ips_1, new Long(2, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; var tmp_2 = this.er6_1.p7f(); var tmp_3 = this.dr6_1.upm(); PermissionFlags_getInstance(); suspendResult = tmp_2.yhe(tmp_3, new Long(512, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.fr6_1 = suspendResult; this.hd_1 = 3; continue $sm; case 2: this.fr6_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: return this.fr6_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).vn7 = function (it, completion) { var i = new ClazzEditViewModel$slambda(this.dr6_1, completion); i.er6_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.gr6(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda_1($savedStateHandle, this$0, resultContinuation) { this.pr6_1 = $savedStateHandle; this.qr6_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.rr6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_0(this.qr6_1, this.pr6_1, null)); var tmp_1 = async(this.rr6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_2(this.qr6_1, null)); suspendResult = awaitAll([tmp_0, tmp_1, async(this.rr6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_4(this.qr6_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Companion_getInstance_118(); if (this.pr6_1.ba('initState') == null) { var tmp_2 = this; Companion_getInstance_118(); tmp_2.sr6_1 = 'initState'; this.hd_1 = 2; var tmp_3 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_3, ClazzEditViewModel$slambda$slambda_6(this.qr6_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.pr6_1.epi(this.sr6_1, ARGUMENT); this.hd_1 = 3; continue $sm; case 3: launch(this.rr6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_8(this.qr6_1, this.pr6_1, null)); launch(this.rr6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_10(this.qr6_1, null)); launch(this.rr6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_12(this.qr6_1, null)); launch(this.rr6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_14(this.qr6_1, null)); launch(this.rr6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_16(this.qr6_1, null)); l$ret$1: do { var this_0 = this.qr6_1.eqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.rqv(true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.qr6_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_4 = Companion_getInstance_91().ip6_1; var tmp_5 = this.qr6_1.apn().tno(strings_getInstance().eme_1); var nextValue_0 = prevValue_0.ap6(VOID, tmp_4, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_5, VOID, ClazzEditViewModel$onClickSave$ref(this.qr6_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.pr6_1, this.qr6_1, completion); i.rr6_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.br7_1 = this$0; this.cr7_1 = $newCourseBlockList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$updateCourseBlockList$slambda).ppz = 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.ppz((!(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.br7_1.m4r().r45(ListSerializer(Companion_getInstance_13().n4r()), this.cr7_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.br7_1, this.cr7_1, completion); i.dr7_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.ppz($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.mr7_1 = $commitDelay; this.nr7_1 = $entity; this.or7_1 = $this; this.pr7_1 = $key; this.qr7_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.mr7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.nr7_1 == null)) { this.hd_1 = 2; suspendResult = this.or7_1.gpn(this.or7_1.cpm_1, this.pr7_1, this.qr7_1, this.nr7_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.mr7_1, this.nr7_1, this.or7_1, this.pr7_1, this.qr7_1, completion); i.rr7_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.r8d_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.i8d_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.i8d_1 = tmp_0; var tmp_1 = $this$shallowCopy; var tmp_2 = Companion_getInstance_6().pls($initEntity.p8d_1); // Inline function 'com.ustadmobile.core.util.ext.effectiveTimeZone' call var tmp0_elvis_lhs = $initEntity.z8d_1; var tmp$ret$1 = tmp0_elvis_lhs == null ? 'UTC' : tmp0_elvis_lhs; tmp_1.p8d_1 = toLocalMidnight(tmp_2, tmp$ret$1).ols(); var tmp_3; var tmp_4 = $this$shallowCopy.q8d_1; Companion_getInstance_2(); if (!tmp_4.equals(new Long(-1, 2147483647))) { var tmp_5 = $this$shallowCopy; var tmp_6 = Companion_getInstance_6().pls($initEntity.q8d_1); // Inline function 'com.ustadmobile.core.util.ext.effectiveTimeZone' call var tmp0_elvis_lhs_0 = $initEntity.z8d_1; var tmp$ret$2 = tmp0_elvis_lhs_0 == null ? 'UTC' : tmp0_elvis_lhs_0; tmp_5.q8d_1 = toLocalEndOfDay(tmp_6, tmp$ret$2).ols(); 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.eqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickSave..' call var nextValue = prevValue.rqv(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$onClickSave$slambda(this$0, $entity, $initEntity, resultContinuation) { this.ar8_1 = this$0; this.br8_1 = $entity; this.cr8_1 = $initEntity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onClickSave$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$onClickSave$slambda).m78 = function ($completion) { return this.z86($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_118(); suspendResult = this.ar8_1.fpn(this.ar8_1.cpm_1, 'initState', Companion_getInstance_125().n4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.dr8_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.dr8_1 == null) { return Unit_instance; } else { tmp_1 = this.dr8_1; } tmp_0.er8_1 = tmp_1; Napier_getInstance().i5e('onClickSave: start transaction'); this.fr8_1 = this.ar8_1.eqv_1.t2().pqv_1; this.gr8_1 = this.br8_1.b8g_1; var tmp_2 = this; var tmp_3; if (!(this.gr8_1 == null)) { Companion_getInstance_116(); var tmp_4 = this.ar8_1.cpm_1.ba('initPicUri'); var tmp1_safe_receiver = this.br8_1.b8g_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.i8g_1; tmp_3 = !(tmp_4 === (tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs)); } else { tmp_3 = false; } tmp_2.hr8_1 = tmp_3; var tmp_5 = this; var this_0 = this.fr8_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.kjm_1; var imageUriNow = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o7y_1; var tmp$ret$0; l$ret$1: do { var tmp0_iterator_0 = this.er8_1.pqv_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp0_safe_receiver_0 = element_0.kjm_1; var tmp_6 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.m7y_1; var tmp1_safe_receiver_0 = element.kjm_1; if (equals(tmp_6, tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.m7y_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.kjm_1; var initImageUri = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.o7y_1; var tmp3_safe_receiver = element.kjm_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.ir8_1 = destination; this.hd_1 = 2; var tmp_9 = this.ar8_1.vpm(); suspendResult = withDoorTransactionAsync(tmp_9, VOID, ClazzEditViewModel$onClickSave$slambda$slambda_0(this.ar8_1, this.cr8_1, this.hr8_1, this.gr8_1, this.br8_1, this.er8_1, this.fr8_1, this.ir8_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: Napier_getInstance().i5e('onClickSave: transaction done'); var tmp_10 = this; tmp_10.jr8_1 = this.fr8_1; this.kr8_1 = this.jr8_1.w(); this.hd_1 = 3; continue $sm; case 3: if (!this.kr8_1.f()) { this.hd_1 = 6; continue $sm; } this.lr8_1 = this.kr8_1.e(); var tmp_11 = this; tmp_11.mr8_1 = this.lr8_1; this.nr8_1 = this.mr8_1.ljm_1; if (this.nr8_1 == null) { this.or8_1 = null; this.hd_1 = 5; continue $sm; } else { var tmp_12 = this; tmp_12.pr8_1 = this.nr8_1; var tmp_13 = this; tmp_13.qr8_1 = this.pr8_1; this.hd_1 = 4; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_1 = this.er8_1.pqv_1.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); var tmp0_safe_receiver_2 = element_1.kjm_1; var tmp_14 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.m7y_1; var tmp1_safe_receiver_2 = this.mr8_1.kjm_1; if (equals(tmp_14, tmp1_safe_receiver_2 == null ? null : tmp1_safe_receiver_2.m7y_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.kjm_1; suspendResult = this.ar8_1.bqv_1.bog(this.qr8_1, null, this.mr8_1.mjm_1, tmp1_safe_receiver_3 == null ? null : tmp1_safe_receiver_3.o7y_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.or8_1 = this.pr8_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.ar8_1.dqv_1; var tmp_16; if (this.hr8_1) { tmp_16 = this_1; } else { tmp_16 = null; } tmp_15.rr8_1 = tmp_16; if (this.rr8_1 == null) { this.sr8_1 = null; this.hd_1 = 8; continue $sm; } else { this.hd_1 = 7; var tmp_17 = this.br8_1.h8d_1; var tmp3_safe_receiver_0 = this.gr8_1; suspendResult = this.rr8_1.enx(tmp_17, 125, tmp3_safe_receiver_0 == null ? null : tmp3_safe_receiver_0.i8g_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 7: var tmp_18 = this; tmp_18.sr8_1 = Unit_instance; this.hd_1 = 8; continue $sm; case 8: var tmp_19 = this; tmp_19.tr8_1 = this.ir8_1; this.ur8_1 = this.tr8_1.w(); this.hd_1 = 9; continue $sm; case 9: if (!this.ur8_1.f()) { this.hd_1 = 11; continue $sm; } this.vr8_1 = this.ur8_1.e(); var tmp_20 = this; tmp_20.wr8_1 = this.vr8_1; this.hd_1 = 10; var tmp_21 = this.wr8_1.m7y_1; suspendResult = this.ar8_1.dqv_1.enx(tmp_21, 6677, this.wr8_1.o7y_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: this.hd_1 = 9; continue $sm; case 11: var tmp_22 = Companion_getInstance_9(); var tmp0_elvis_lhs = this.br8_1.z8d_1; var entityTimeZone = tmp_22.fls(tmp0_elvis_lhs == null ? 'UTC' : tmp0_elvis_lhs); var fromLocalDate = toLocalMidnight_1(toLocalDateTime(System_instance.ilp(), entityTimeZone)); var this_2 = this.ar8_1.a57(); var tmp_23 = typeToken(createKType(getKClass(ClazzLogCreatorManager), arrayOf([]), false)); var clazzLogCreatorManager$delegate = Instance(this_2, isInterface(tmp_23, TypeToken) ? tmp_23 : THROW_CCE(), null).a5d(null, getLocalDelegateReference('clazzLogCreatorManager', KProperty0, false, function () { return THROW_ISE(); })); invoke$lambda_1(clazzLogCreatorManager$delegate).wpa(this.br8_1.h8d_1, this.ar8_1.spm().kng().akc_1, toInstant(fromLocalDate, entityTimeZone).ols(), toInstant(toLocalEndOfDay_1(fromLocalDate), entityTimeZone).ols()); Napier_getInstance().i5e('onClickSave: done'); this.ar8_1.kps('Course', this.br8_1.h8d_1, this.br8_1); return Unit_instance; case 12: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 12) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$onClickSave$slambda).l78 = function (completion) { return new ClazzEditViewModel$onClickSave$slambda(this.ar8_1, this.br8_1, this.cr8_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.z86($completion); }; l.$arity = 0; return l; } function ClazzEditViewModel$onCourseBlockMoved$slambda(this$0, $newList, resultContinuation) { this.hr9_1 = this$0; this.ir9_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.hr9_1, this.ir9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.hr9_1, this.ir9_1, completion); i.jr9_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.sr9_1 = this$0; this.tr9_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.sr9_1.eqv_1.t2().pqv_1; suspendResult = updateCourseBlockList(this.sr9_1, replace_0(tmp_0, this.tr9_1, ClazzEditViewModel$updateCourseBlock$slambda$lambda(this.tr9_1)), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.sr9_1, this.tr9_1, completion); i.ur9_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.dra_1 = this$0; this.era_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.dra_1.eqv_1.t2().pqv_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (!element.jjm_1.j7x_1.equals(this.era_1.jjm_1.j7x_1)) { destination.i1(element); } } suspendResult = updateCourseBlockList(this.dra_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.dra_1, this.era_1, completion); i.fra_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$58(_this__u8e3s4, newCourseBlockList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jr5_1 = _this__u8e3s4; this.kr5_1 = newCourseBlockList; } protoOf($updateCourseBlockListCOROUTINE$58).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.jr5_1.eqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.rqv(VOID, VOID, VOID, VOID, VOID, VOID, this.kr5_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.lr5_1 = this.jr5_1.cpm_1; this.hd_1 = 1; var tmp_0 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_0, ClazzEditViewModel$updateCourseBlockList$slambda_0(this.jr5_1, this.kr5_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.lr5_1.epi('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(onActiveEndpoint(di)).f58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instanceOrNull' call var tmp_3 = get_direct(onActiveEndpoint(di)).f58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = tmp_3.e58(tmp$ret$2, 2); // Inline function 'org.kodein.di.instance' call var tmp_6 = get_direct(onActiveEndpoint(di)).f58(); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp$ret$5 = tmp_6.d58(tmp$ret$4, null); tmp = new SaveContentEntryUseCase(tmp_2, tmp_5, tmp$ret$5); } else { tmp = saveContentEntryUseCase; } saveContentEntryUseCase = tmp; var tmp_8; if (importContentUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_9 = get_direct(onActiveEndpoint(di)).f58(); // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(EnqueueContentEntryImportUseCase), arrayOf([]), false)); var tmp$ret$0_0 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); tmp_8 = tmp_9.d58(tmp$ret$0_0, null); } else { tmp_8 = importContentUseCase; } importContentUseCase = tmp_8; var tmp_11; if (enqueueSavePictureUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_12 = get_direct(onActiveEndpoint(di)).f58(); // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$0_1 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); tmp_11 = tmp_12.d58(tmp$ret$0_1, null); } else { tmp_11 = enqueueSavePictureUseCase; } enqueueSavePictureUseCase = tmp_11; UstadEditViewModel.call(this, di, savedStateHandle, 'CourseEdit'); this.zqu_1 = addOrUpdateCourseBlockUseCase; this.aqv_1 = updateCourseBlocksOnReorderOrCommitUseCase; this.bqv_1 = saveContentEntryUseCase; this.cqv_1 = importContentUseCase; this.dqv_1 = enqueueSavePictureUseCase; this.eqv_1 = MutableStateFlow(new ClazzEditUiState()); this.fqv_1 = asStateFlow(this.eqv_1); var tmp_14 = this; Companion_getInstance_118(); 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.vpm()); Companion_getInstance_4(); tmp_15 = tmp_16.n62(6); } else { tmp_15 = tmp1_elvis_lhs; } tmp_14.gqv_1 = tmp_15; var tmp_17 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveEndpoint(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.hqv_1 = Instance(this_0, tmp$ret$10, null).a5d(this, createNewClazzUseCase$factory()); var tmp_19 = this; Companion_getInstance_108(); var tmp0_safe_receiver_0 = savedStateHandle.ba('clazzAction'); var tmp_20; if (tmp0_safe_receiver_0 == null) { tmp_20 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.clazzAction.' call tmp_20 = valueOf_0(tmp0_safe_receiver_0); } var tmp1_elvis_lhs_0 = tmp_20; tmp_19.iqv_1 = tmp1_elvis_lhs_0 == null ? ClazzAction_EDIT_getInstance() : tmp1_elvis_lhs_0; var title = this.mpt(strings_getInstance().gmu_1, this.iqv_1.equals(ClazzAction_COPY_getInstance()) ? strings_getInstance().zn0_1 : strings_getInstance().imu_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.gpm_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.' call var tmp0_loadingState = Companion_getInstance_91().hp6_1; var nextValue = new AppUiState(VOID, tmp0_loadingState, title, VOID, true); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_21 = ClazzEditViewModel$slambda_0(this, null); this.mpn(tmp_21, VOID, VOID, ClazzEditViewModel$slambda_2(savedStateHandle, this, null)); } protoOf(ClazzEditViewModel).iqz = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.eqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onEntityChanged.' call var tmp2_safe_receiver = prevValue.kqv_1; var tmp = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.q8d_1; var tmp6_clazzEndDateError = this.npt(tmp, entity == null ? null : entity.q8d_1, prevValue.mqv_1); var tmp0_safe_receiver = prevValue.kqv_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p8d_1; var tmp7_clazzStartDateError = this.npt(tmp_0, entity == null ? null : entity.p8d_1, prevValue.lqv_1); var tmp4_safe_receiver = prevValue.kqv_1; var tmp_1 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.i8d_1; var tmp8_clazzNameError = this.npt(tmp_1, entity == null ? null : entity.i8d_1, prevValue.nqv_1); var nextValue = prevValue.rqv(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_32.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.hps_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this; var tmp_3 = this.tpm(); tmp_2.hps_1 = launch(tmp_3, VOID, VOID, ClazzEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzEditViewModel).gra = function (checked) { var tmp0_safe_receiver = this.eqv_1.t2().kqv_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = shallowCopy_4(tmp0_safe_receiver, ClazzEditViewModel$onCheckedAttendanceChanged$lambda(checked)); } this.iqz(tmp); }; protoOf(ClazzEditViewModel).hra = function () { this.ipn('ScheduleEdit', 'Schedule', null, Companion_instance_28.n4r()); }; protoOf(ClazzEditViewModel).ira = function (schedule) { this.ipn('ScheduleEdit', 'Schedule', schedule, Companion_instance_28.n4r()); }; protoOf(ClazzEditViewModel).jra = function (schedule) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.eqv_1.t2().oqv_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.zgs_1.equals(schedule.zgs_1)) { destination.i1(element); } } var newSchedules = destination; this.cpm_1.epi('schedule', this.m4r().r45(ListSerializer(Companion_instance_28.n4r()), newSchedules)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.eqv_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickDeleteSchedule.' call var nextValue = prevValue.rqv(VOID, VOID, VOID, VOID, VOID, newSchedules); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzEditViewModel).kra = function (blockType) { if (blockType === 104) { Companion_getInstance_158(); var tmp = Companion_getInstance_13().n4r(); Companion_getInstance_108(); var tmp_0 = to('listMode', ListViewMode_PICKER_getInstance().toString()); Companion_getInstance_108(); var tmp_1 = to('clazzUid', this.gqv_1.toString()); Companion_getInstance_163(); var tmp_2 = to('blockType', (104).toString()); this.ipn('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.gqv_1.toString()); if (blockType === 103) { var tmp0_safe_receiver = this.eqv_1.t2().kqv_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a8g_1; if (tmp1_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onAddCourseBlock..' call this_0.s('terminology', this.m4r().r45(Companion_instance_33.n4r(), tmp1_safe_receiver)); } } var tmp2_args = this_0.f3(); var tmp3_serializer = Companion_getInstance_13().n4r(); this.ipn(viewName, keyName, null, tmp3_serializer, tmp2_args); }; protoOf(ClazzEditViewModel).ur3 = function () { var tmp0_elvis_lhs = this.eqv_1.t2().kqv_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var initEntity = tmp; if (this.dpn().equals(Companion_getInstance_91().hp6_1)) { Napier_getInstance().i5e('onClickSave: indeterminate'); return Unit_instance; } if (initEntity.p8d_1.equals(new Long(0, 0))) { Napier_getInstance().i5e('onClickSave: clazzstarttime = 0'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.eqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickSave.' call var nextValue = prevValue.rqv(VOID, VOID, this.apn().tno(strings_getInstance().dlz_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } if (initEntity.q8d_1.c7(initEntity.p8d_1) <= 0) { Napier_getInstance().i5e('onClickSave: endbeforestart'); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.eqv_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.rqv(VOID, VOID, VOID, this.apn().tno(strings_getInstance().mmw_1)); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } // Inline function 'kotlin.text.isNullOrBlank' call var this_2 = initEntity.i8d_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.eqv_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.rqv(VOID, VOID, VOID, VOID, this.apn().tno(strings_getInstance().wmw_1)); if (this_3.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } if (hasErrors(this.eqv_1.t2(), this)) { Napier_getInstance().i5e('onClickSave: hasErrors'); return Unit_instance; } var entity = shallowCopy_4(initEntity, ClazzEditViewModel$onClickSave$lambda(initEntity)); $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.eqv_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.rqv(VOID, entity); if (this_4.y1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } var tmp_0 = ClazzEditViewModel$onClickSave$lambda_0(this); this.ppt(tmp_0, ClazzEditViewModel$onClickSave$slambda_0(this, entity, initEntity, null)); }; protoOf(ClazzEditViewModel).lra = function (from, to) { // Inline function 'kotlin.apply' call var this_0 = toMutableList(this.eqv_1.t2().pqv_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.aqv_1.dog(reorderedList, to); var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzEditViewModel$onCourseBlockMoved$slambda_0(this, newList, null)); }; protoOf(ClazzEditViewModel).mra = function () { Companion_getInstance_108(); var tmp = to('result_key', 'timeZone'); Companion_getInstance_108(); this.epm_1.hob('TimeZoneList', mapOf([tmp, to('result_viewname', this.dpm_1)])); }; protoOf(ClazzEditViewModel).nra = function () { }; protoOf(ClazzEditViewModel).ora = function () { this.ipn('CourseTerminologyList', 'terminology', null, Companion_instance_33.n4r()); }; protoOf(ClazzEditViewModel).pra = function (block) { updateCourseBlock(this, block.vjm(block.jjm_1.tjz(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true))); }; protoOf(ClazzEditViewModel).qra = function (block) { updateCourseBlock(this, block.vjm(block.jjm_1.tjz(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false))); }; protoOf(ClazzEditViewModel).rra = function (block) { updateCourseBlock(this, block.vjm(block.jjm_1.tjz(VOID, VOID, block.jjm_1.l7x_1 + 1 | 0))); }; protoOf(ClazzEditViewModel).sra = function (block) { updateCourseBlock(this, block.vjm(block.jjm_1.tjz(VOID, VOID, block.jjm_1.l7x_1 - 1 | 0))); }; protoOf(ClazzEditViewModel).tra = function (block) { var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzEditViewModel$onClickDeleteCourseBlock$slambda_0(this, block, null)); }; protoOf(ClazzEditViewModel).ura = function (block) { var tmp0_subject = block.jjm_1.k7x_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().n4r(); this.ipn(tmp1_nextViewName, tmp2_key, block, tmp3_serializer); } else { if (tmp0_subject === 103) { var tmp4_nextViewName = 'CourseAssignmentEdit'; var tmp5_key = 'courseblock'; var tmp6_serializer = Companion_getInstance_13().n4r(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickEditCourseBlock.' call Companion_getInstance_108(); this_0.s('clazzUid', this.gqv_1.toString()); var tmp0_safe_receiver = this.eqv_1.t2().kqv_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a8g_1; if (tmp1_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickEditCourseBlock..' call this_0.s('terminology', this.m4r().r45(Companion_instance_33.n4r(), tmp1_safe_receiver)); } var tmp7_args = this_0.f3(); this.ipn(tmp4_nextViewName, tmp5_key, block, tmp6_serializer, tmp7_args); } } }; function CourseBlockUiState(block) { this.vra_1 = block; } protoOf(CourseBlockUiState).wra = function () { var tmp; var tmp_0 = this.vra_1.jjm_1.k7x_1; if (!(tmp_0 === 100)) { tmp = this.vra_1.jjm_1.l7x_1 < 3; } else { tmp = false; } return tmp; }; protoOf(CourseBlockUiState).xra = function () { return this.vra_1.jjm_1.l7x_1 > 0; }; protoOf(CourseBlockUiState).yra = function () { return !this.vra_1.jjm_1.a7y_1; }; protoOf(CourseBlockUiState).zra = function () { return this.vra_1.jjm_1.a7y_1; }; function Companion_108() { Companion_instance_156 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.xr8_1 = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_8()), new ArrayListSerializer($serializer_getInstance_7()), null]; this.yr8_1 = 3; } protoOf(Companion_108).n4r = function () { return $serializer_getInstance_65(); }; var Companion_instance_156; function Companion_getInstance_125() { if (Companion_instance_156 == null) new Companion_108(); return Companion_instance_156; } function $serializer_53() { $serializer_instance_53 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditUiState', this, 8); tmp0_serialDesc.t4f('fieldsEnabled', true); tmp0_serialDesc.t4f('entity', true); tmp0_serialDesc.t4f('clazzStartDateError', true); tmp0_serialDesc.t4f('clazzEndDateError', true); tmp0_serialDesc.t4f('clazzNameError', true); tmp0_serialDesc.t4f('clazzSchedules', true); tmp0_serialDesc.t4f('courseBlockList', true); tmp0_serialDesc.t4f('timeZone', true); this.arb_1 = tmp0_serialDesc; } protoOf($serializer_53).q44 = function () { return this.arb_1; }; protoOf($serializer_53).k4g = function () { var tmp0_cached = Companion_getInstance_125().xr8_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_53).s44 = function (decoder) { var tmp0_desc = this.arb_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = false; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_input = decoder.i48(tmp0_desc); var tmp13_cached = Companion_getInstance_125().xr8_1; if (tmp12_input.x48()) { tmp4_local0 = tmp12_input.k48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.w48(tmp0_desc, 1, $serializer_getInstance_9(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.u48(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.u48(tmp0_desc, 6, tmp13_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.s48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.k48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.w48(tmp0_desc, 1, $serializer_getInstance_9(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.u48(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.u48(tmp0_desc, 6, tmp13_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.s48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.j48(tmp0_desc); return ClazzEditUiState_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_53).brb = function (encoder, value) { var tmp0_desc = this.arb_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_125().xr8_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.jqv_1 === false)) { tmp1_output.o49(tmp0_desc, 0, value.jqv_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.kqv_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_9(), value.kqv_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.lqv_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.lqv_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.mqv_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.mqv_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.nqv_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.nqv_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !equals(value.oqv_1, emptyList())) { tmp1_output.y49(tmp0_desc, 5, tmp2_cached[5], value.oqv_1); } if (tmp1_output.e4a(tmp0_desc, 6) ? true : !equals(value.pqv_1, emptyList())) { tmp1_output.y49(tmp0_desc, 6, tmp2_cached[6], value.pqv_1); } if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.qqv_1 === 'UTC')) { tmp1_output.w49(tmp0_desc, 7, value.qqv_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_53).r44 = function (encoder, value) { return this.brb(encoder, value instanceof ClazzEditUiState ? value : THROW_CCE()); }; var $serializer_instance_53; function $serializer_getInstance_65() { if ($serializer_instance_53 == null) new $serializer_53(); return $serializer_instance_53; } function ClazzEditUiState_init_$Init$(seen1, fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_65().arb_1); } if (0 === (seen1 & 1)) $this.jqv_1 = false; else $this.jqv_1 = fieldsEnabled; if (0 === (seen1 & 2)) $this.kqv_1 = null; else $this.kqv_1 = entity; if (0 === (seen1 & 4)) $this.lqv_1 = null; else $this.lqv_1 = clazzStartDateError; if (0 === (seen1 & 8)) $this.mqv_1 = null; else $this.mqv_1 = clazzEndDateError; if (0 === (seen1 & 16)) $this.nqv_1 = null; else $this.nqv_1 = clazzNameError; if (0 === (seen1 & 32)) $this.oqv_1 = emptyList(); else $this.oqv_1 = clazzSchedules; if (0 === (seen1 & 64)) $this.pqv_1 = emptyList(); else $this.pqv_1 = courseBlockList; if (0 === (seen1 & 128)) $this.qqv_1 = 'UTC'; else $this.qqv_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.jqv_1 = fieldsEnabled; this.kqv_1 = entity; this.lqv_1 = clazzStartDateError; this.mqv_1 = clazzEndDateError; this.nqv_1 = clazzNameError; this.oqv_1 = clazzSchedules; this.pqv_1 = courseBlockList; this.qqv_1 = timeZone; } protoOf(ClazzEditUiState).crb = function () { var tmp; var tmp0_safe_receiver = this.kqv_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r8d_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).drb = function (courseBlockAndEditEntities) { return new CourseBlockUiState(courseBlockAndEditEntities); }; protoOf(ClazzEditUiState).erb = function (fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone) { return new ClazzEditUiState(fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone); }; protoOf(ClazzEditUiState).rqv = function (fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone, $super) { fieldsEnabled = fieldsEnabled === VOID ? this.jqv_1 : fieldsEnabled; entity = entity === VOID ? this.kqv_1 : entity; clazzStartDateError = clazzStartDateError === VOID ? this.lqv_1 : clazzStartDateError; clazzEndDateError = clazzEndDateError === VOID ? this.mqv_1 : clazzEndDateError; clazzNameError = clazzNameError === VOID ? this.nqv_1 : clazzNameError; clazzSchedules = clazzSchedules === VOID ? this.oqv_1 : clazzSchedules; courseBlockList = courseBlockList === VOID ? this.pqv_1 : courseBlockList; timeZone = timeZone === VOID ? this.qqv_1 : timeZone; return $super === VOID ? this.erb(fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone) : $super.erb.call(this, fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone); }; protoOf(ClazzEditUiState).toString = function () { return 'ClazzEditUiState(fieldsEnabled=' + this.jqv_1 + ', entity=' + this.kqv_1 + ', clazzStartDateError=' + this.lqv_1 + ', clazzEndDateError=' + this.mqv_1 + ', clazzNameError=' + this.nqv_1 + ', clazzSchedules=' + this.oqv_1 + ', courseBlockList=' + this.pqv_1 + ', timeZone=' + this.qqv_1 + ')'; }; protoOf(ClazzEditUiState).hashCode = function () { var result = getBooleanHashCode(this.jqv_1); result = imul(result, 31) + (this.kqv_1 == null ? 0 : this.kqv_1.hashCode()) | 0; result = imul(result, 31) + (this.lqv_1 == null ? 0 : getStringHashCode(this.lqv_1)) | 0; result = imul(result, 31) + (this.mqv_1 == null ? 0 : getStringHashCode(this.mqv_1)) | 0; result = imul(result, 31) + (this.nqv_1 == null ? 0 : getStringHashCode(this.nqv_1)) | 0; result = imul(result, 31) + hashCode(this.oqv_1) | 0; result = imul(result, 31) + hashCode(this.pqv_1) | 0; result = imul(result, 31) + getStringHashCode(this.qqv_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.jqv_1 === tmp0_other_with_cast.jqv_1)) return false; if (!equals(this.kqv_1, tmp0_other_with_cast.kqv_1)) return false; if (!(this.lqv_1 == tmp0_other_with_cast.lqv_1)) return false; if (!(this.mqv_1 == tmp0_other_with_cast.mqv_1)) return false; if (!(this.nqv_1 == tmp0_other_with_cast.nqv_1)) return false; if (!equals(this.oqv_1, tmp0_other_with_cast.oqv_1)) return false; if (!equals(this.pqv_1, tmp0_other_with_cast.pqv_1)) return false; if (!(this.qqv_1 === tmp0_other_with_cast.qqv_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.j7x_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.k7x_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.m7x_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.m7x_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.j7x_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.dak_1)) { var blockForStatus = moduleBlockUids.q(element_3.dak_1); if ((blockForStatus == null ? null : isCompleteable(blockForStatus)) === true) { numCompleteableBlocksInModule = numCompleteableBlocksInModule + 1 | 0; } var tmp3_safe_receiver = blockForStatus == null ? null : blockForStatus.u7x_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.hak_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.u7x_1; totalPointsScored = tmp_3 + tmp4_safe_receiver * (tmp1_elvis_lhs == null ? 0.0 : tmp1_elvis_lhs); numBlocksWithScoreResult = numBlocksWithScoreResult + 1 | 0; } if (element_3.fak_1) { numModsComplete = numModsComplete + 1 | 0; } var tmp6_safe_receiver = element_3.gak_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.cak_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.dak_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.k7x_1); } function markFor(_this__u8e3s4, maxPoints) { _init_properties_BlockStatusExt_kt__pb774u(); var scaledMarkVal = _this__u8e3s4.hak_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$59(_this__u8e3s4, params, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nrb_1 = _this__u8e3s4; this.orb_1 = params; } protoOf($loadCOROUTINE$59).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.nrb_1.j6c(); this.hd_1 = 1; suspendResult = this.nrb_1.vrb_1.p54(this.orb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.prb_1 = suspendResult; this.hd_1 = 2; var tmp_0 = this.nrb_1.wrb_1.j7e(); var tmp_1 = this.prb_1; var tmp0_safe_receiver = tmp_1 instanceof Page ? tmp_1 : null; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c54_1; var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { var destination = ArrayList_init_$Create$(); var tmp0_iterator = tmp1_safe_receiver.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp0_safe_receiver_0 = element.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.sis(this.nrb_1.xrb_1, tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs, this.nrb_1.yrb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var blockResults = suspendResult; var tmp3_subject = this.prb_1; var tmp_3; if (tmp3_subject instanceof Page) { var tmp_4 = this.prb_1; var studentListResultCasted = tmp_4 instanceof Page ? tmp_4 : THROW_CCE(); var this_0 = studentListResultCasted.c54_1; var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator_0 = this_0.w(); while (tmp0_iterator_0.f()) { var item = tmp0_iterator_0.e(); var destination_1 = ArrayList_init_$Create$(); var tmp0_iterator_1 = blockResults.w(); while (tmp0_iterator_1.f()) { var element_0 = tmp0_iterator_1.e(); var tmp_5 = element_0.cak_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.d54_1, studentListResultCasted.e54_1, studentListResultCasted.f54_1, studentListResultCasted.g54_1); } else { if (tmp3_subject instanceof Error_0) { tmp_3 = new Error_0(this.prb_1.b54_1); } else { if (tmp3_subject instanceof Invalid) { tmp_3 = new Invalid(); } else { throw IllegalStateException_init_$Create$("Cant get here really, but compiler doesn't know that"); } } } var tmp_6 = tmp_3; return tmp_6 instanceof LoadResult ? tmp_6 : THROW_CCE(); case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $loadHttpCOROUTINE$60(_this__u8e3s4, params, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hrc_1 = _this__u8e3s4; this.irc_1 = params; } protoOf($loadHttpCOROUTINE$60).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.hrc_1.vrb_1; tmp_0.jrc_1 = isInterface(tmp_1, PagingSourceWithHttpLoader) ? tmp_1 : null; if (this.jrc_1 == null) { this.krc_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.jrc_1.y6e(this.irc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.krc_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var tmp1_elvis_lhs = this.krc_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.vrb_1 = studentListPagingSource; this.wrb_1 = db; this.xrb_1 = clazzUid; this.yrb_1 = accountPersonUid; } protoOf(ClazzGradebookPagingSource).lrc = function (params, $completion) { var tmp = new $loadCOROUTINE$59(this, params, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookPagingSource).p54 = function (params, $completion) { return this.lrc(params, $completion); }; protoOf(ClazzGradebookPagingSource).x6e = function (params, $completion) { var tmp = new $loadHttpCOROUTINE$60(this, params, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookPagingSource).y6e = function (params, $completion) { return this.x6e(params, $completion); }; function ClazzGradebookViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.urc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda).wrc = function (courseBlockList, $completion) { var tmp = this.xrc(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.wrc((!(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.urc_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ere(this.vrc_1, this.urc_1.zrd_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).xrc = function (courseBlockList, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda$slambda(this.urc_1, completion); i.vrc_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.wrc(courseBlockList, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.nre_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1).vq8 = function (it, $completion) { var tmp = this.wq8(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.vq8((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.nre_1.gpm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ap6(VOID, VOID, this.ore_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).wq8 = function (it, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1(this.nre_1, completion); i.ore_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.vq8(it, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.xre_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.xre_1.wpm().p7d().uc7(this.xre_1.yrd_1)); var tmp_1 = ClazzGradebookViewModel$slambda$slambda$slambda$slambda_0(this.xre_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_11(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda(this.xre_1, completion); i.yre_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.hrf_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.hrf_1.wpm().o7d().r8c(this.hrf_1.yrd_1)); var tmp_1 = ClazzGradebookViewModel$slambda$slambda$slambda$slambda_2(this.hrf_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_11(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda_1(this.hrf_1, completion); i.irf_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.rrf_1 = $this_launch; this.srf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.rrf_1, VOID, VOID, ClazzGradebookViewModel$slambda$slambda$slambda_0(this.srf_1, null)); launch(this.rrf_1, VOID, VOID, ClazzGradebookViewModel$slambda$slambda$slambda_2(this.srf_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzGradebookViewModel$slambda$slambda).l78 = function (completion) { return new ClazzGradebookViewModel$slambda$slambda(this.rrf_1, this.srf_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.z86($completion); }; l.$arity = 0; return l; } function Companion_109() { this.trf_1 = 'Gradebook'; } var Companion_instance_157; function Companion_getInstance_126() { return Companion_instance_157; } function sam$kotlinx_coroutines_flow_FlowCollector$0_11(function_0) { this.urf_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_11).t1d = function (value, $completion) { return this.urf_1(value, $completion); }; function ClazzGradebookViewModel$studentPagingSource$lambda(this$0) { return function () { var tmp = this$0.wpm().t7d(); return new ClazzGradebookPagingSource(tmp.z92(this$0.yrd_1, 1000, 1, '%', 0, this$0.upm(), systemTimeInMillis()), this$0.vpm(), this$0.yrd_1, this$0.upm()); }; } function ClazzGradebookViewModel$slambda(this$0, resultContinuation) { this.drg_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.drg_1.xpu_1, ClazzGradebookViewModel$slambda$slambda_0(this.erg_1, this.drg_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.drg_1, completion); i.erg_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_118(); 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.yrd_1 = tmp_0; var tmp_1 = this; tmp_1.zrd_1 = ClazzGradebookViewModel$studentPagingSource$lambda(this); var tmp_2 = this.tpm(); launch(tmp_2, VOID, VOID, ClazzGradebookViewModel$slambda_0(this, null)); } protoOf(ClazzGradebookViewModel).rpv = function (searchText) { }; protoOf(ClazzGradebookViewModel).spv = 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.are_1 = courseBlocks; this.bre_1 = results; this.cre_1 = isFullScreen; this.dre_1 = scale; } protoOf(ClazzGradebookUiState).frg = function (courseBlocks, results, isFullScreen, scale) { return new ClazzGradebookUiState(courseBlocks, results, isFullScreen, scale); }; protoOf(ClazzGradebookUiState).ere = function (courseBlocks, results, isFullScreen, scale, $super) { courseBlocks = courseBlocks === VOID ? this.are_1 : courseBlocks; results = results === VOID ? this.bre_1 : results; isFullScreen = isFullScreen === VOID ? this.cre_1 : isFullScreen; scale = scale === VOID ? this.dre_1 : scale; return $super === VOID ? this.frg(courseBlocks, results, isFullScreen, scale) : $super.frg.call(this, courseBlocks, results, isFullScreen, scale); }; protoOf(ClazzGradebookUiState).toString = function () { return 'ClazzGradebookUiState(courseBlocks=' + this.are_1 + ', results=' + this.bre_1 + ', isFullScreen=' + this.cre_1 + ', scale=' + this.dre_1 + ')'; }; protoOf(ClazzGradebookUiState).hashCode = function () { var result = hashCode(this.are_1); result = imul(result, 31) + hashCode(this.bre_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.cre_1) | 0; result = imul(result, 31) + getNumberHashCode(this.dre_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.are_1, tmp0_other_with_cast.are_1)) return false; if (!equals(this.bre_1, tmp0_other_with_cast.bre_1)) return false; if (!(this.cre_1 === tmp0_other_with_cast.cre_1)) return false; if (!equals(this.dre_1, tmp0_other_with_cast.dre_1)) return false; return true; }; function get_thumbnailUri(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.ocb_1; var tmp2_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p7y_1; var tmp; if (tmp2_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.qcb_1; tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.maj_1; } else { tmp = tmp2_elvis_lhs; } return tmp; } function maxScoreForBlock(_this__u8e3s4, block) { var blockVal = block.ncb_1; var tmp; var tmp_0 = blockVal == null ? null : blockVal.k7x_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.ncb_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m7x_1, blockVal.j7x_1)) { var tmp1_safe_receiver = element.ncb_1; tmp_2 = !((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u7x_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.ncb_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.u7x_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.ncb_1; if (equals(tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.m7x_1, blockVal.j7x_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.u7x_1; } return tmp; } function _get_makeLinkUseCase__qbv742($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.drh_1; makeLinkUseCase$factory_0(); return this_0.t2(); } function _get_setClipboardStringUseCase__31i1s1_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.frh_1; setClipboardStringUseCase$factory_2(); return this_0.t2(); } function _get_shareTextUseCase__god44g($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.grh_1; shareTextUseCase$factory_0(); return this_0.t2(); } function Companion_110() { this.irh_1 = 'InviteWithLink'; } var Companion_instance_158; function Companion_getInstance_127() { return Companion_instance_158; } function InviteViaLinkViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'InviteWithLink'); this.brh_1 = MutableStateFlow(new InviteViaLinkUiState()); this.crh_1 = asStateFlow(this.brh_1); var tmp = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveEndpoint(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.drh_1 = Instance(this_0, tmp$ret$0, null).a5d(this, makeLinkUseCase$factory()); var tmp_1 = this; Companion_getInstance_118(); 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.erh_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.frh_1 = Instance(this, tmp$ret$2, null).a5d(this, setClipboardStringUseCase$factory_1()); var tmp_5 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(ShareTextUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_5.grh_1 = InstanceOrNull(this, tmp$ret$4, null).a5d(this, shareTextUseCase$factory()); var tmp_7 = this; var tmp_8 = _get_makeLinkUseCase__qbv742(this); Companion_getInstance_118(); tmp_7.hrh_1 = tmp_8.soi('JoinWithCode', mapOf_0(to('inviteCode', this.erh_1))); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.gpm_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.invitevialink.InviteViaLinkViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, this.apn().tno(strings_getInstance().xmj_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.brh_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.invitevialink.InviteViaLinkViewModel.' call var nextValue_0 = prevValue_0.lrh(this.hrh_1, !(_get_shareTextUseCase__god44g(this) == null)); if (this_2.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(InviteViaLinkViewModel).mrh = function () { _get_setClipboardStringUseCase__31i1s1_0(this).mo6(this.hrh_1); this.ypm().pp6(new Snack(this.apn().tno(strings_getInstance().smj_1))); }; function InviteViaLinkUiState(inviteLink, showShareLinkButton) { inviteLink = inviteLink === VOID ? null : inviteLink; showShareLinkButton = showShareLinkButton === VOID ? false : showShareLinkButton; this.jrh_1 = inviteLink; this.krh_1 = showShareLinkButton; } protoOf(InviteViaLinkUiState).lrh = function (inviteLink, showShareLinkButton) { return new InviteViaLinkUiState(inviteLink, showShareLinkButton); }; protoOf(InviteViaLinkUiState).toString = function () { return 'InviteViaLinkUiState(inviteLink=' + this.jrh_1 + ', showShareLinkButton=' + this.krh_1 + ')'; }; protoOf(InviteViaLinkUiState).hashCode = function () { var result = this.jrh_1 == null ? 0 : getStringHashCode(this.jrh_1); result = imul(result, 31) + getBooleanHashCode(this.krh_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.jrh_1 == tmp0_other_with_cast.jrh_1)) return false; if (!(this.krh_1 === tmp0_other_with_cast.krh_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.kri_1; requestEnrolmentUseCase$factory_0(); return this_0.t2(); } function Companion_111() { this.lri_1 = 'JoinWithCode'; } var Companion_instance_159; function Companion_getInstance_128() { return Companion_instance_159; } function JoinWithCodeViewModel$lambda(this$0) { return function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel..' call var nextValue = prevValue.ap6(VOID, VOID, this$0.apn().tno(strings_getInstance().hmu_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.iri_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel.onClickJoin..' call var nextValue = prevValue.pri(VOID, VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function JoinWithCodeViewModel$onClickJoin$slambda(this$0, resultContinuation) { this.yri_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(JoinWithCodeViewModel$onClickJoin$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(JoinWithCodeViewModel$onClickJoin$slambda).m78 = function ($completion) { return this.z86($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.yri_1); var tmp_1 = this.yri_1.iri_1.t2().nri_1; var tmp_2 = this.yri_1.spm().tnf().zn2_1; suspendResult = tmp_0.lo6(tmp_1, tmp_2, 1000, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.yri_1.ypm().pp6(new Snack(this.yri_1.apn().tno(strings_getInstance().hmy_1))); if (!(this.yri_1.bpn() == null)) { this.yri_1.lps(null); } else { Companion_getInstance_129(); this.yri_1.epm_1.rp8('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().nmz_1; } else { if (e instanceof AlreadyHasPendingRequestException) { tmp_4 = strings_getInstance().gmy_1; } else { if (e instanceof AlreadyEnroledInClassException) { tmp_4 = strings_getInstance().tml_1; } else { tmp_4 = strings_getInstance().alu_1; } } } var errorMessage = tmp_4; l$ret$1: do { var this_0 = this.yri_1.iri_1; while (true) { var prevValue = this_0.t2(); var tmp_5 = this.yri_1.apn().tno(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.pri(tmp_5 + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(JoinWithCodeViewModel$onClickJoin$slambda).l78 = function (completion) { return new JoinWithCodeViewModel$onClickJoin$slambda(this.yri_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.z86($completion); }; l.$arity = 0; return l; } function JoinWithCodeViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'JoinWithCode'); var tmp = this; Companion_getInstance_118(); var tmp0_elvis_lhs = savedStateHandle.ba('inviteCode'); tmp.iri_1 = MutableStateFlow(new JoinWithCodeUiState(VOID, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs)); this.jri_1 = asStateFlow(this.iri_1); var tmp_0 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveEndpoint(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.kri_1 = Instance(this_0, tmp$ret$0, null).a5d(this, requestEnrolmentUseCase$factory()); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_1 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel.' call Companion_getInstance_118(); this.npn(this_1, 'inviteCode'); var tmp_2 = this_1.f3(); this.qpn(VOID, tmp_2, JoinWithCodeViewModel$lambda(this)); } protoOf(JoinWithCodeViewModel).zri = function (codeVal) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.iri_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel.onCodeValueChange.' call var nextValue = prevValue.pri(null, codeVal); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(JoinWithCodeViewModel).arj = function () { var tmp = JoinWithCodeViewModel$onClickJoin$lambda(this); this.ppt(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.mri_1 = codeError; this.nri_1 = code; this.ori_1 = fieldsEnabled; } protoOf(JoinWithCodeUiState).brj = function (codeError, code, fieldsEnabled) { return new JoinWithCodeUiState(codeError, code, fieldsEnabled); }; protoOf(JoinWithCodeUiState).pri = function (codeError, code, fieldsEnabled, $super) { codeError = codeError === VOID ? this.mri_1 : codeError; code = code === VOID ? this.nri_1 : code; fieldsEnabled = fieldsEnabled === VOID ? this.ori_1 : fieldsEnabled; return $super === VOID ? this.brj(codeError, code, fieldsEnabled) : $super.brj.call(this, codeError, code, fieldsEnabled); }; protoOf(JoinWithCodeUiState).toString = function () { return 'JoinWithCodeUiState(codeError=' + this.mri_1 + ', code=' + this.nri_1 + ', fieldsEnabled=' + this.ori_1 + ')'; }; protoOf(JoinWithCodeUiState).hashCode = function () { var result = this.mri_1 == null ? 0 : getStringHashCode(this.mri_1); result = imul(result, 31) + getStringHashCode(this.nri_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ori_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.mri_1 == tmp0_other_with_cast.mri_1)) return false; if (!(this.nri_1 === tmp0_other_with_cast.nri_1)) return false; if (!(this.ori_1 === tmp0_other_with_cast.ori_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.krj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda$slambda).qpe = function (hasPermission, $completion) { var tmp = this.rpe(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.qpe((!(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.krj_1.xpu_1; while (true) { var prevValue = this_0.t2(); var tmp0_newClazzListOptionVisible = this.lrj_1 ? this.krj_1.cpv().equals(ListViewMode_PICKER_getInstance()) : false; var nextValue = prevValue.xrj(tmp0_newClazzListOptionVisible, VOID, VOID, VOID, VOID, VOID, this.lrj_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).rpe = function (hasPermission, completion) { var i = new ClazzListViewModel$slambda$slambda$slambda(this.krj_1, completion); i.lrj_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.qpe(hasPermission, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$slambda$slambda(this$0, resultContinuation) { this.grk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzListViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.grk_1.wpm().p7f(); var tmp_1 = this.grk_1.spm().kng().xkb_1; PermissionFlags_getInstance(); var tmp_2 = distinctUntilChanged(tmp_0.zhe(tmp_1, new Long(512, 0))); var tmp_3 = ClazzListViewModel$slambda$slambda$slambda_0(this.grk_1, null); suspendResult = tmp_2.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_12(tmp_3), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzListViewModel$slambda$slambda).l78 = function (completion) { return new ClazzListViewModel$slambda$slambda(this.grk_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.z86($completion); }; l.$arity = 0; return l; } function ClazzListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.prk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda$slambda_1).rrk = function (it, $completion) { var tmp = this.srk(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.rrk((!(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.prk_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xrj(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.qrk_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).srk = function (it, completion) { var i = new ClazzListViewModel$slambda$slambda$slambda_1(this.prk_1, completion); i.qrk_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.rrk(it, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.brl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda_1).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzListViewModel$slambda$slambda_1).m78 = function ($completion) { return this.z86($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.brl_1.wpm().n7f(); var tmp_1 = this.brl_1.upm(); var tmp_2 = tmp_0.zej(tmp_1, 1); var tmp_3 = ClazzListViewModel$slambda$slambda$slambda_2(this.brl_1, null); suspendResult = tmp_2.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_12(tmp_3), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzListViewModel$slambda$slambda_1).l78 = function (completion) { return new ClazzListViewModel$slambda$slambda_1(this.brl_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.z86($completion); }; l.$arity = 0; return l; } function Companion_112() { Companion_instance_160 = this; this.crl_1 = 'CourseList'; this.drl_1 = 'CourseListHome'; this.erl_1 = listOf(['CourseList', 'CourseListHome']); this.frl_1 = 'excludeAlreadySelectedClazzList'; } var Companion_instance_160; function Companion_getInstance_129() { if (Companion_instance_160 == null) new Companion_112(); return Companion_instance_160; } function sam$kotlinx_coroutines_flow_FlowCollector$0_12(function_0) { this.grl_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_12).t1d = function (value, $completion) { return this.grl_1(value, $completion); }; function ClazzListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.wpm().o7d().m8c(toQueryLikeParam(this$0.gpm_1.t2().sp5_1.hp5_1), this$0.spm().kng().xkb_1, this$0.hrm_1, this$0.xpu_1.t2().prj_1.ypb_1, this$0.xpu_1.t2().rrj_1, systemTimeInMillis(), this$0.irm_1); }; } function ClazzListViewModel$slambda(this$0, resultContinuation) { this.srm_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.srm_1.xpu_1, ClazzListViewModel$slambda$slambda_0(this.srm_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.srm_1, completion); i.trm_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.crn_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.crn_1.xpu_1, ClazzListViewModel$slambda$slambda_2(this.crn_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.crn_1, completion); i.drn_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.mrn_1 = this$0; this.nrn_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.mrn_1.wpm().n7f(); var tmp_1 = this.nrn_1.qek_1; suspendResult = tmp_0.aek(tmp_1, 4, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.mrn_1.ypm().pp6(new Snack(this.mrn_1.apn().tno(strings_getInstance().imy_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.mrn_1, this.nrn_1, completion); i.orn_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_129(); 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.hrm_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.irm_1 = tmp_4; var tmp_5 = this; tmp_5.jrm_1 = ClazzListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.' call var tmp0_searchState = this.gpw(); var tmp1_title = this.opw(strings_getInstance().tmt_1, strings_getInstance().tmt_1); var tmp2_fabState = this.jpw(!this.upm().equals(new Long(0, 0)), strings_getInstance().umt_1); var nextValue = prevValue.ap6(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.xpu_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.apn().tno(get_dayStringResource(element_0)); result.s(element_0, tmp$ret$11); } var tmp1_clazzList = this.jrm_1; var nextValue_0 = prevValue_0.xrj(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.tpm(); launch(tmp_6, VOID, VOID, ClazzListViewModel$slambda_0(this, null)); var tmp_7 = this.tpm(); launch(tmp_7, VOID, VOID, ClazzListViewModel$slambda_2(this, null)); } protoOf(ClazzListViewModel).rpv = function (searchText) { this.zpu_1.i1h(new RefreshCommand()); }; protoOf(ClazzListViewModel).spv = function () { this.lpw('CourseEdit'); }; protoOf(ClazzListViewModel).prn = function () { Companion_getInstance_108(); Companion_getInstance_4(); this.epm_1.hob('JoinWithCode', mapOf_0(to('argCodeTable', (6).toString()))); }; protoOf(ClazzListViewModel).qrn = function (entry) { this.npw('Course', entry.h8d_1, entry); }; protoOf(ClazzListViewModel).rrn = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.onSortOrderChanged.' call var nextValue = prevValue.xrj(VOID, VOID, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.zpu_1.i1h(new RefreshCommand()); }; protoOf(ClazzListViewModel).srn = function (filterOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.onClickFilterChip.' call var nextValue = prevValue.xrj(VOID, VOID, VOID, VOID, VOID, filterOption.dp7_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.zpu_1.i1h(new RefreshCommand()); }; protoOf(ClazzListViewModel).trn = function (enrolmentRequest) { var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzListViewModel$onClickCancelEnrolmentRequest$slambda_0(this, enrolmentRequest, null)); }; function Companion_113() { Companion_instance_161 = this; var tmp = this; var tmp_0 = strings_getInstance().xlv_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().xlv_1; var tmp_3 = new SortOrderOption(tmp_2, 2, false); var tmp_4 = strings_getInstance().tlw_1; var tmp_5 = new SortOrderOption(tmp_4, 3, true); var tmp_6 = strings_getInstance().tlw_1; tmp.urn_1 = listOf([tmp_1, tmp_3, tmp_5, new SortOrderOption(tmp_6, 4, false)]); } var Companion_instance_161; function Companion_getInstance_130() { if (Companion_instance_161 == null) new Companion_113(); return Companion_instance_161; } function ClazzListUiState$_init_$lambda_r0y0x0() { return new EmptyPagingSource(); } function ClazzListUiState(newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow) { Companion_getInstance_130(); 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_130().urn_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().jmu_1; tmp_1 = listOf([new MessageIdOption2(tmp_2, 5), new MessageIdOption2(strings_getInstance().wma_1, 0)]); } else { tmp_1 = filterOptions; } filterOptions = tmp_1; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.ilp(), Companion_getInstance_9().hlt()) : localDateTimeNow; this.mrj_1 = newClazzListOptionVisible; this.nrj_1 = clazzList; this.orj_1 = sortOptions; this.prj_1 = activeSortOrderOption; this.qrj_1 = fieldsEnabled; this.rrj_1 = selectedChipId; this.srj_1 = canAddNewCourse; this.trj_1 = pendingEnrolments; this.urj_1 = filterOptions; this.vrj_1 = dayOfWeekStrings; this.wrj_1 = localDateTimeNow; } protoOf(ClazzListUiState).vrn = 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).xrj = function (newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow, $super) { newClazzListOptionVisible = newClazzListOptionVisible === VOID ? this.mrj_1 : newClazzListOptionVisible; clazzList = clazzList === VOID ? this.nrj_1 : clazzList; sortOptions = sortOptions === VOID ? this.orj_1 : sortOptions; activeSortOrderOption = activeSortOrderOption === VOID ? this.prj_1 : activeSortOrderOption; fieldsEnabled = fieldsEnabled === VOID ? this.qrj_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.rrj_1 : selectedChipId; canAddNewCourse = canAddNewCourse === VOID ? this.srj_1 : canAddNewCourse; pendingEnrolments = pendingEnrolments === VOID ? this.trj_1 : pendingEnrolments; filterOptions = filterOptions === VOID ? this.urj_1 : filterOptions; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.vrj_1 : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? this.wrj_1 : localDateTimeNow; return $super === VOID ? this.vrn(newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow) : $super.vrn.call(this, newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow); }; protoOf(ClazzListUiState).toString = function () { return 'ClazzListUiState(newClazzListOptionVisible=' + this.mrj_1 + ', clazzList=' + this.nrj_1 + ', sortOptions=' + this.orj_1 + ', activeSortOrderOption=' + this.prj_1 + ', fieldsEnabled=' + this.qrj_1 + ', selectedChipId=' + this.rrj_1 + ', canAddNewCourse=' + this.srj_1 + ', pendingEnrolments=' + this.trj_1 + ', filterOptions=' + this.urj_1 + ', dayOfWeekStrings=' + this.vrj_1 + ', localDateTimeNow=' + this.wrj_1 + ')'; }; protoOf(ClazzListUiState).hashCode = function () { var result = getBooleanHashCode(this.mrj_1); result = imul(result, 31) + hashCode(this.nrj_1) | 0; result = imul(result, 31) + hashCode(this.orj_1) | 0; result = imul(result, 31) + this.prj_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.qrj_1) | 0; result = imul(result, 31) + this.rrj_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.srj_1) | 0; result = imul(result, 31) + hashCode(this.trj_1) | 0; result = imul(result, 31) + hashCode(this.urj_1) | 0; result = imul(result, 31) + hashCode(this.vrj_1) | 0; result = imul(result, 31) + this.wrj_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.mrj_1 === tmp0_other_with_cast.mrj_1)) return false; if (!equals(this.nrj_1, tmp0_other_with_cast.nrj_1)) return false; if (!equals(this.orj_1, tmp0_other_with_cast.orj_1)) return false; if (!this.prj_1.equals(tmp0_other_with_cast.prj_1)) return false; if (!(this.qrj_1 === tmp0_other_with_cast.qrj_1)) return false; if (!(this.rrj_1 === tmp0_other_with_cast.rrj_1)) return false; if (!(this.srj_1 === tmp0_other_with_cast.srj_1)) return false; if (!equals(this.trj_1, tmp0_other_with_cast.trj_1)) return false; if (!equals(this.urj_1, tmp0_other_with_cast.urj_1)) return false; if (!equals(this.vrj_1, tmp0_other_with_cast.vrj_1)) return false; if (!this.wrj_1.equals(tmp0_other_with_cast.wrj_1)) return false; return true; }; function CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda).gro = function (entity, permissions, $completion) { var tmp = this.hro(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.gro(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.ero_1; var tmp_0; if (this.fro_1.nd9_1) { tmp_0 = this_0; } else { tmp_0 = null; } return new Pair(tmp_0, this.fro_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda).hro = function (entity, permissions, completion) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda(completion); i.ero_1 = entity; i.fro_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.gro(entity, permissions, $completion); }; l.$arity = 2; return l; } function CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.qro_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1).xro = function (it, $completion) { var tmp = this.yro(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.xro(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.sro_1 = this.rro_1; this.tro_1 = this.sro_1.y6(); this.uro_1 = this.sro_1.z6(); this.vro_1 = this.uro_1; this.wro_1 = this.vro_1.z6(); l$ret$1: do { var this_0 = this.qro_1.vrp_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (!(this.tro_1 == null)) { tmp_0 = CoursePermissionConstants_getInstance().uq9_1; } else { tmp_0 = emptyList(); } var nextValue = prevValue.arq(this.tro_1, tmp_0); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.qro_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ap6(prevValue_0.lp5_1.gp6(this.wro_1)); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); if (!(this.tro_1 == null)) { this.hd_1 = 1; suspendResult = getTitleForCoursePermission(this.qro_1, this.tro_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.qro_1.gpm_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.ap6(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).yro = function (it, completion) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this.qro_1, completion); i.rro_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.xro(it, $completion); }; l.$arity = 1; return l; } function CoursePermissionDetailViewModel$slambda$slambda$slambda($entityFlow, $permissionFlow, this$0, resultContinuation) { this.jrq_1 = $entityFlow; this.krq_1 = $permissionFlow; this.lrq_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.jrq_1, this.krq_1, CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_0(null))); suspendResult = collectLatest(tmp_0, CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_2(this.lrq_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.jrq_1, this.krq_1, this.lrq_1, completion); i.mrq_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.vrq_1 = $this_launch; this.wrq_1 = $entityFlow; this.xrq_1 = $permissionFlow; this.yrq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.vrq_1, VOID, VOID, CoursePermissionDetailViewModel$slambda$slambda$slambda_0(this.wrq_1, this.xrq_1, this.yrq_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda).l78 = function (completion) { return new CoursePermissionDetailViewModel$slambda$slambda(this.vrq_1, this.wrq_1, this.xrq_1, this.yrq_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.z86($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_118(); var tmp0_safe_receiver = $this.vrp_1.t2().yrp_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fd7_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_118(); $this.npn(this_0, 'clazzUid'); var tmp$ret$2 = this_0.f3(); $this.epm_1.hob('CoursePermissionEdit', tmp$ret$2); } function Companion_114() { this.zrq_1 = 'CoursePermissionDetail'; } var Companion_instance_162; function Companion_getInstance_131() { return Companion_instance_162; } 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.irr_1 = this$0; this.jrr_1 = $entityFlow; this.krr_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.irr_1.vrp_1, CoursePermissionDetailViewModel$slambda$slambda_0(this.lrr_1, this.jrr_1, this.krr_1, this.irr_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.irr_1, this.jrr_1, this.krr_1, completion); i.lrr_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.vrp_1 = MutableStateFlow(new CoursePermissionDetailUiState()); this.wrp_1 = asStateFlow(this.vrp_1); var tmp = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.xrp_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var entityFlow = this.wpm().o7f().f7s(this.wpl_1, this.xrp_1); var tmp_0 = this.wpm().o7f(); var tmp_1 = this.upm(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var permissionFlow = tmp_0.md6(tmp_1, this.xrp_1, tmp_2, new Long(2, 0)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissiondetail.CoursePermissionDetailViewModel.' call var tmp_3 = this.apn().tno(strings_getInstance().qm6_1); var tmp_4 = FabIcon_EDIT_getInstance(); var nextValue = prevValue.ap6(new FabUiState(VOID, tmp_3, tmp_4, CoursePermissionDetailViewModel$onClickEdit$ref(this))); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_5 = this.tpm(); 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.yrp_1 = coursePermission; this.zrp_1 = permissionLabels; } protoOf(CoursePermissionDetailUiState).arq = function (coursePermission, permissionLabels) { return new CoursePermissionDetailUiState(coursePermission, permissionLabels); }; protoOf(CoursePermissionDetailUiState).toString = function () { return 'CoursePermissionDetailUiState(coursePermission=' + this.yrp_1 + ', permissionLabels=' + this.zrp_1 + ')'; }; protoOf(CoursePermissionDetailUiState).hashCode = function () { var result = this.yrp_1 == null ? 0 : this.yrp_1.hashCode(); result = imul(result, 31) + hashCode(this.zrp_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.yrp_1, tmp0_other_with_cast.yrp_1)) return false; if (!equals(this.zrp_1, tmp0_other_with_cast.zrp_1)) return false; return true; }; function CoursePermissionEditViewModel$slambda$slambda(this$0, resultContinuation) { this.urr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda$slambda).wrr = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.wrr(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.vrr_1.o7f().id6(this.urr_1.ips_1, this.urr_1.wrs_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).vn7 = function (db, completion) { var i = new CoursePermissionEditViewModel$slambda$slambda(this.urr_1, completion); i.vrr_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.wrr(db, $completion); }; l.$arity = 1; return l; } function CoursePermissionEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.frt_1 = this$0; this.grt_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda$slambda_1).ydc = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.ydc($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.frt_1.vpm()); Companion_getInstance_5(); suspendResult = tmp_0.o62(10012, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; Companion_getInstance_118(); var tmp0_safe_receiver = this.grt_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.grt_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_118(); var tmp4_safe_receiver = this.grt_1.ba('personUid'); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : toLong_0(tmp4_safe_receiver); return new CoursePermission(ARGUMENT, VOID, tmp_1, tmp_2, tmp5_elvis_lhs == null ? new Long(0, 0) : tmp5_elvis_lhs); case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CoursePermissionEditViewModel$slambda$slambda_1).l78 = function (completion) { return new CoursePermissionEditViewModel$slambda$slambda_1(this.frt_1, this.grt_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.ydc($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.urs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel...' call var nextValue = prevValue.krt(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CoursePermissionEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function CoursePermissionEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation) { this.trt_1 = this$0; this.urt_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$onClickSave$slambda$slambda).un7 = function (it, $completion) { var tmp = this.vn7(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.un7(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.trt_1.wpm().o7f().jd6(this.urt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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).vn7 = function (it, completion) { var i = new CoursePermissionEditViewModel$onClickSave$slambda$slambda(this.trt_1, this.urt_1, completion); i.vrt_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.un7(it, $completion); }; l.$arity = 1; return l; } function Companion_115() { this.wrt_1 = 'CoursePermissionEdit'; this.xrt_1 = 'grantToRole'; } var Companion_instance_163; function Companion_getInstance_132() { return Companion_instance_163; } function CoursePermissionEditViewModel$slambda(this$0, resultContinuation) { this.gru_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda).gr6 = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$slambda).he = function (p1, $completion) { return this.gr6(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.hru_1.o7f(); var tmp_1 = this.gru_1.upm(); PermissionFlags_getInstance(); suspendResult = tmp_0.pd6(tmp_1, this.gru_1.wrs_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).vn7 = function (it, completion) { var i = new CoursePermissionEditViewModel$slambda(this.gru_1, completion); i.hru_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.gr6(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.urs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel..' call var nextValue = prevValue.krt(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CoursePermissionEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.qru_1 = this$0; this.rru_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda_1).u1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.v1m($this$launchIfHasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$slambda_1).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionEditViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; var tmp_0 = Companion_getInstance_5().n4r(); var tmp_1 = CoursePermissionEditViewModel$slambda$slambda_0(this.qru_1, null); var tmp_2 = CoursePermissionEditViewModel$slambda$slambda_2(this.qru_1, this.rru_1, null); suspendResult = this.qru_1.kpn(tmp_0, VOID, VOID, tmp_1, tmp_2, CoursePermissionEditViewModel$slambda$lambda(this.qru_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.tru_1 = suspendResult; this.hd_1 = 2; suspendResult = getTitleForCoursePermission(this.qru_1, this.tru_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var title = suspendResult; l$ret$1: do { var this_0 = this.qru_1.gpm_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.qru_1.apn().tno(strings_getInstance().eme_1); var nextValue = prevValue.ap6(VOID, VOID, title, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, CoursePermissionEditViewModel$onClickSave$ref(this.qru_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.qru_1.urs_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.krt(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.qru_1, this.rru_1, completion); i.sru_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.urs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.onClickSave..' call var nextValue = prevValue.krt(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CoursePermissionEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.crv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$onClickSave$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda).m78 = function ($completion) { return this.z86($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.crv_1.urs_1.t2().hrt_1; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.drv_1 = tmp_1; this.hd_1 = 1; var tmp_2 = this.crv_1.wpm(); suspendResult = withDoorTransactionAsync(tmp_2, VOID, CoursePermissionEditViewModel$onClickSave$slambda$slambda_0(this.crv_1, this.drv_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Companion_getInstance_108(); var popUpToOnFinish = this.crv_1.cpm_1.ba('popUpToOnFinish'); if (!(popUpToOnFinish == null)) { this.crv_1.epm_1.sp8(popUpToOnFinish, false); } else { this.crv_1.kps('CoursePermissionDetail', this.drv_1.fd7_1, this.drv_1); } return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda).l78 = function (completion) { return new CoursePermissionEditViewModel$onClickSave$slambda(this.crv_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.z86($completion); }; l.$arity = 0; return l; } function CoursePermissionEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'CoursePermissionEdit'); this.urs_1 = MutableStateFlow(new CoursePermissionEditUiState()); this.vrs_1 = asStateFlow(this.urs_1); var tmp = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.wrs_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.urs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.' call var nextValue = prevValue.krt(VOID, VOID, CoursePermissionConstants_getInstance().uq9_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.gpm_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.' call var nextValue_0 = prevValue_0.ap6(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.mpn(tmp_0, VOID, tmp_1, CoursePermissionEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(CoursePermissionEditViewModel).erv = function (flag) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.urs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.onTogglePermission.' call var entityVal = prevValue.hrt_1; var tmp; if (!(entityVal == null)) { tmp = prevValue.krt(entityVal.ok0(VOID, VOID, VOID, VOID, VOID, VOID, toggleFlag(entityVal.ld7_1, flag))); } else { tmp = prevValue; } var nextValue = tmp; if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(CoursePermissionEditViewModel).ur3 = function () { var tmp = CoursePermissionEditViewModel$onClickSave$lambda(this); this.ppt(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.hrt_1 = entity; this.irt_1 = fieldsEnabled; this.jrt_1 = permissionLabels; } protoOf(CoursePermissionEditUiState).frv = function (entity, fieldsEnabled, permissionLabels) { return new CoursePermissionEditUiState(entity, fieldsEnabled, permissionLabels); }; protoOf(CoursePermissionEditUiState).krt = function (entity, fieldsEnabled, permissionLabels, $super) { entity = entity === VOID ? this.hrt_1 : entity; fieldsEnabled = fieldsEnabled === VOID ? this.irt_1 : fieldsEnabled; permissionLabels = permissionLabels === VOID ? this.jrt_1 : permissionLabels; return $super === VOID ? this.frv(entity, fieldsEnabled, permissionLabels) : $super.frv.call(this, entity, fieldsEnabled, permissionLabels); }; protoOf(CoursePermissionEditUiState).toString = function () { return 'CoursePermissionEditUiState(entity=' + this.hrt_1 + ', fieldsEnabled=' + this.irt_1 + ', permissionLabels=' + this.jrt_1 + ')'; }; protoOf(CoursePermissionEditUiState).hashCode = function () { var result = this.hrt_1 == null ? 0 : this.hrt_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.irt_1) | 0; result = imul(result, 31) + hashCode(this.jrt_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.hrt_1, tmp0_other_with_cast.hrt_1)) return false; if (!(this.irt_1 === tmp0_other_with_cast.irt_1)) return false; if (!equals(this.jrt_1, tmp0_other_with_cast.jrt_1)) return false; return true; }; function CoursePermissionListViewModel$slambda$slambda$slambda$lambda() { return new EmptyPagingSource(); } function CoursePermissionListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.orv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$slambda$slambda$slambda).qrv = function (it, $completion) { var tmp = this.rrv(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.qrv(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.prv_1; var hasViewPermission = tmp0_container.y6(); var hasEditPermission = tmp0_container.z6(); l$ret$1: do { var this_0 = this.orv_1.xpu_1; while (true) { var prevValue = this_0.t2(); var tmp1_permissionLabels = CoursePermissionConstants_getInstance().uq9_1; var this_1 = this.orv_1.trw_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.yrw(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.orv_1.gpm_1; while (true) { var prevValue_0 = this_2.t2(); var nextValue_0 = prevValue_0.ap6(prevValue_0.lp5_1.gp6(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).rrv = function (it, completion) { var i = new CoursePermissionListViewModel$slambda$slambda$slambda(this.orv_1, completion); i.prv_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.qrv(it, $completion); }; l.$arity = 1; return l; } function CoursePermissionListViewModel$slambda$slambda(this$0, resultContinuation) { this.hrx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionListViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.hrx_1.wpm().o7f(); var tmp_1 = this.hrx_1.upm(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.md6(tmp_1, this.hrx_1.srw_1, tmp_2, new Long(2, 0))); var tmp_4 = CoursePermissionListViewModel$slambda$slambda$slambda_0(this.hrx_1, null); suspendResult = tmp_3.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_13(tmp_4), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CoursePermissionListViewModel$slambda$slambda).l78 = function (completion) { return new CoursePermissionListViewModel$slambda$slambda(this.hrx_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.z86($completion); }; l.$arity = 0; return l; } function Companion_116() { this.irx_1 = 'CoursePermissionList'; this.jrx_1 = 'permissionResult'; } var Companion_instance_164; function Companion_getInstance_133() { return Companion_instance_164; } function sam$kotlinx_coroutines_flow_FlowCollector$0_13(function_0) { this.krx_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_13).t1d = function (value, $completion) { return this.krx_1(value, $completion); }; function CoursePermissionListViewModel$pagingSource$lambda(this$0) { return function () { return this$0.wpm().o7f().hd6(this$0.srw_1, false); }; } function CoursePermissionListViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.spv(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function CoursePermissionListViewModel$slambda(this$0, resultContinuation) { this.trx_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.trx_1.xpu_1, CoursePermissionListViewModel$slambda$slambda_0(this.trx_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.trx_1, completion); i.urx_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.dry_1 = this$0; this.ery_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.dry_1.wpm().o7f().kbw(this.ery_1.fd7_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.dry_1, this.ery_1, completion); i.fry_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.srw_1 = tmp_0; var tmp_1 = this; tmp_1.trw_1 = CoursePermissionListViewModel$pagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionlist.CoursePermissionListViewModel.' call var tmp3_title = this.apn().tno(strings_getInstance().imc_1); var tmp0_text = this.apn().tno(strings_getInstance().imc_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.ap6(tmp4_fabState, VOID, tmp3_title); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.tpm(); launch(tmp_2, VOID, VOID, CoursePermissionListViewModel$slambda_0(this, null)); } protoOf(CoursePermissionListViewModel).rpv = function (searchText) { }; protoOf(CoursePermissionListViewModel).spv = function () { Companion_getInstance_108(); var tmp = to('clazzUid', this.srw_1.toString()); Companion_getInstance_108(); var goToOnPersonSelectedArg = appendQueryArgs('CoursePermissionEdit', mapOf([tmp, to('popUpToOnFinish', this.dpm_1)])); Companion_getInstance_190(); var tmp_0 = Companion_getInstance_5().n4r(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionlist.CoursePermissionListViewModel.onClickAdd.' call Companion_getInstance_108(); this_0.s('listMode', ListViewMode_PICKER_getInstance().bpj_1); this_0.s('goToOnPersonSelected', goToOnPersonSelectedArg); var tmp$ret$2 = this_0.f3(); this.ipn('People', 'permissionResult', null, tmp_0, tmp$ret$2); }; protoOf(CoursePermissionListViewModel).gry = 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_118(); this_0.s('entityUid', coursePermission.fd7_1.toString()); Companion_getInstance_118(); this.npn(this_0, 'clazzUid'); var tmp$ret$2 = this_0.f3(); this.epm_1.hob('CoursePermissionDetail', tmp$ret$2); }; protoOf(CoursePermissionListViewModel).hry = function (coursePermission) { var tmp = this.tpm(); 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.urw_1 = permissionsList; this.vrw_1 = permissionLabels; this.wrw_1 = courseTerminology; this.xrw_1 = showDeleteOption; } protoOf(CoursePermissionListUiState).iry = function (permissionsList, permissionLabels, courseTerminology, showDeleteOption) { return new CoursePermissionListUiState(permissionsList, permissionLabels, courseTerminology, showDeleteOption); }; protoOf(CoursePermissionListUiState).yrw = function (permissionsList, permissionLabels, courseTerminology, showDeleteOption, $super) { permissionsList = permissionsList === VOID ? this.urw_1 : permissionsList; permissionLabels = permissionLabels === VOID ? this.vrw_1 : permissionLabels; courseTerminology = courseTerminology === VOID ? this.wrw_1 : courseTerminology; showDeleteOption = showDeleteOption === VOID ? this.xrw_1 : showDeleteOption; return $super === VOID ? this.iry(permissionsList, permissionLabels, courseTerminology, showDeleteOption) : $super.iry.call(this, permissionsList, permissionLabels, courseTerminology, showDeleteOption); }; protoOf(CoursePermissionListUiState).toString = function () { return 'CoursePermissionListUiState(permissionsList=' + this.urw_1 + ', permissionLabels=' + this.vrw_1 + ', courseTerminology=' + this.wrw_1 + ', showDeleteOption=' + this.xrw_1 + ')'; }; protoOf(CoursePermissionListUiState).hashCode = function () { var result = hashCode(this.urw_1); result = imul(result, 31) + hashCode(this.vrw_1) | 0; result = imul(result, 31) + (this.wrw_1 == null ? 0 : hashCode(this.wrw_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.xrw_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.urw_1, tmp0_other_with_cast.urw_1)) return false; if (!equals(this.vrw_1, tmp0_other_with_cast.vrw_1)) return false; if (!equals(this.wrw_1, tmp0_other_with_cast.wrw_1)) return false; if (!(this.xrw_1 === tmp0_other_with_cast.xrw_1)) return false; return true; }; function avatarName(_this__u8e3s4) { var tmp; var tmp_0 = _this__u8e3s4.h7v_1; Companion_getInstance_1(); if (tmp_0.c7(toLong(10000)) >= 0) { tmp = _this__u8e3s4.i7v_1; } else { tmp = _this__u8e3s4.h7v_1.toString(); } return tmp; } function avatarColorName(_this__u8e3s4) { var tmp; var tmp_0 = _this__u8e3s4.h7v_1; Companion_getInstance_1(); if (tmp_0.c7(toLong(10000)) >= 0) { tmp = _this__u8e3s4.i7v_1; } else { tmp = _this__u8e3s4.h7v_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().ymr_1; TextLimitType_LIMIT_WORDS_instance = new TextLimitType('LIMIT_WORDS', 0, tmp, 1); var tmp_0 = strings_getInstance().zmr_1; TextLimitType_LIMIT_CHARS_instance = new TextLimitType('LIMIT_CHARS', 1, tmp_0, 2); } var MarkingType_TEACHER_instance; var MarkingType_PEERS_instance; function Companion_117() { } protoOf(Companion_117).jjp = 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.lry_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_165; function Companion_getInstance_134() { return Companion_instance_165; } 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.ory_1 = stringResource; this.pry_1 = value; } function MarkingType(name, ordinal, value) { Enum.call(this, name, ordinal); this.lry_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().mmh_1); Companion_getInstance_1(); var tmp_1 = to(2, strings_getInstance().lmh_1); Companion_getInstance_1(); tmp.qry_1 = mapOf([tmp_0, tmp_1, to(0, strings_getInstance().nmh_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.r9z_1.c7(new Long(0, 0)) > 0) { var tmp_0 = _this__u8e3s4.r9z_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.lbx_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = _this__u8e3s4.jbx_1; var tmp_0 = tmp1_elvis_lhs == null ? 'application/octet-stream' : tmp1_elvis_lhs; var tmp2_elvis_lhs = _this__u8e3s4.kbx_1; return new OpenBlobItem(tmp, tmp_0, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs, toLong(_this__u8e3s4.mbx_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.xbi_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.obi_1; var tmp1_safe_receiver = element.xbi_1; if (equals(tmp, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.obi_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().xbi_1; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.ubi_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().xbi_1; var tmp1_elvis_lhs_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.ubi_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.xbi_1; if (equals(tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.ubi_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.xbi_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rbi_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.sjq_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.xbi_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.tbi_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.tjq_1 = roundToInt(tmp$ret$3 / latestUnique.u()); return this_0; } function _no_name_provided__qut3iv_6($this) { this.rry_1 = $this; } protoOf(_no_name_provided__qut3iv_6).o = function () { return this.rry_1.w(); }; protoOf(_no_name_provided__qut3iv_6).sry = function (element) { // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.hasUpdatedMarks.' call var tmp0_safe_receiver = element.xbi_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.obi_1; return tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; }; protoOf(_no_name_provided__qut3iv_6).p = function (element) { return this.sry(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.cby_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fbx_1, item.qbo_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.try_1 = block; this.ury_1 = assignmentMark; this.vry_1 = assignmentStatus; } protoOf(UstadAssignmentSubmissionHeaderUiState).toString = function () { return 'UstadAssignmentSubmissionHeaderUiState(block=' + this.try_1 + ', assignmentMark=' + this.ury_1 + ', assignmentStatus=' + this.vry_1 + ')'; }; protoOf(UstadAssignmentSubmissionHeaderUiState).hashCode = function () { var result = this.try_1 == null ? 0 : this.try_1.hashCode(); result = imul(result, 31) + (this.ury_1 == null ? 0 : this.ury_1.hashCode()) | 0; result = imul(result, 31) + (this.vry_1 == null ? 0 : this.vry_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.try_1, tmp0_other_with_cast.try_1)) return false; if (!equals(this.ury_1, tmp0_other_with_cast.ury_1)) return false; if (!(this.vry_1 == tmp0_other_with_cast.vry_1)) return false; return true; }; function UstadCourseAssignmentMarkListItemUiState(mark, localDateTimeNow, dayOfWeekStrings) { mark = mark === VOID ? new CourseAssignmentMarkAndMarkerName() : mark; this.wry_1 = mark; this.xry_1 = localDateTimeNow; this.yry_1 = dayOfWeekStrings; } protoOf(UstadCourseAssignmentMarkListItemUiState).zry = function () { var tmp0_safe_receiver = this.wry_1.xbi_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.obi_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).arz = function () { var tmp0_elvis_lhs = this.wry_1.ybi_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = this.wry_1.zbi_1; return tmp + ' ' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); }; protoOf(UstadCourseAssignmentMarkListItemUiState).brz = function () { return !(this.zry() === 0); }; protoOf(UstadCourseAssignmentMarkListItemUiState).crz = function () { // Inline function 'kotlin.let' call var tmp0_safe_receiver = this.wry_1.xbi_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.tbi_1; return !(it == null) ? !(it === 0.0) : false; }; protoOf(UstadCourseAssignmentMarkListItemUiState).toString = function () { return 'UstadCourseAssignmentMarkListItemUiState(mark=' + this.wry_1 + ', localDateTimeNow=' + this.xry_1 + ', dayOfWeekStrings=' + this.yry_1 + ')'; }; protoOf(UstadCourseAssignmentMarkListItemUiState).hashCode = function () { var result = this.wry_1.hashCode(); result = imul(result, 31) + this.xry_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.yry_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.wry_1.equals(tmp0_other_with_cast.wry_1)) return false; if (!this.xry_1.equals(tmp0_other_with_cast.xry_1)) return false; if (!equals(this.yry_1, tmp0_other_with_cast.yry_1)) return false; return true; }; function Companion_118() { this.drz_1 = 'CourseAssignment'; } var Companion_instance_166; function Companion_getInstance_135() { return Companion_instance_166; } function ClazzAssignmentDetailViewModel$slambda(this$0, resultContinuation) { this.mrz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailViewModel$slambda).prz = function (clazzAssignment, permissionPair, $completion) { var tmp = this.qrz(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.prz(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.orz_1; var hasCourseViewPermission = tmp0_container.y6(); var hasLearnerRecordPermission = tmp0_container.z6(); var tmp_0; if (hasCourseViewPermission) { var tmp_1; var tmp1_safe_receiver = this.nrz_1; var tmp_2 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q7t_1; if (tmp_2 === 2) { tmp_1 = true; } else { tmp_1 = hasLearnerRecordPermission; } var hasSubmissionsTab = tmp_1; Companion_getInstance_118(); var tmp_3 = to('entityUid', this.mrz_1.wpl_1.toString()); Companion_getInstance_118(); var tabArgs = mapOf([tmp_3, to('clazzUid', this.mrz_1.os0_1.toString())]); var tabs = mutableListOf([new TabItem('CourseAssignmentDetailOverviewView', tabArgs, this.mrz_1.apn().tno(strings_getInstance().umg_1))]); if (hasSubmissionsTab) { var tmp_4; var tmp_5; if (!hasLearnerRecordPermission) { var tmp2_safe_receiver = this.nrz_1; var tmp_6 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.q7t_1; tmp_5 = tmp_6 === 2; } else { tmp_5 = false; } if (tmp_5) { tmp_4 = this.mrz_1.apn().tno(strings_getInstance().omr_1); } else { tmp_4 = this.mrz_1.apn().tno(strings_getInstance().dms_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).qrz = function (clazzAssignment, permissionPair, completion) { var i = new ClazzAssignmentDetailViewModel$slambda(this.mrz_1, completion); i.nrz_1 = clazzAssignment; i.orz_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.prz(clazzAssignment, permissionPair, $completion); }; l.$arity = 2; return l; } function ClazzAssignmentDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CourseAssignment'); var tmp = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.os0_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var assignmentFlow = this.wpm().q7e().f7s(this.wpl_1, this.os0_1); var tmp_0 = this.wpm().o7f(); var tmp_1 = this.spm().kng().xkb_1; PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var permissionFlow = distinctUntilChanged(tmp_0.md6(tmp_1, this.os0_1, tmp_2, new Long(128, 0))); var tmp_3 = this; tmp_3.ns0_1 = combine(assignmentFlow, permissionFlow, ClazzAssignmentDetailViewModel$slambda_0(this, null)); } function ClazzAssignmentDetailUiState(tabs) { tabs = tabs === VOID ? emptyList() : tabs; this.ps0_1 = tabs; } protoOf(ClazzAssignmentDetailUiState).toString = function () { return 'ClazzAssignmentDetailUiState(tabs=' + this.ps0_1 + ')'; }; protoOf(ClazzAssignmentDetailUiState).hashCode = function () { return hashCode(this.ps0_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.ps0_1, tmp0_other_with_cast.ps0_1)) return false; return true; }; function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ys0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda).as1 = function (it, $completion) { var tmp = this.bs1(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.as1((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.ys0_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hs1(this.zs0_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).bs1 = function (it, completion) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda(this.ys0_1, completion); i.zs0_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.as1(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.qs1_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.qs1_1.wpm().q7e().a7s(this.qs1_1.ss2_1, this.qs1_1.ts2_1, this.qs1_1.upm(), this.qs1_1.apn().tno(strings_getInstance().ymq_1)); var tmp_1 = ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda_0(this.qs1_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_14(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.qs1_1, completion); i.rs1_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.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel....' call var nextValue = prevValue.ap6(VOID, VOID, title); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda(this$0, resultContinuation) { this.ds3_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.ds3_1.wpm().q7d().ldt(this.ds3_1.ss2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var terminology = suspendResult; l$ret$1: do { var this_0 = this.ds3_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hs1(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.ds3_1, completion); i.es3_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.ns3_1 = $this_launch; this.os3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1).m78 = function ($completion) { return this.z86($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.ns3_1, VOID, VOID, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda_0(this.os3_1, null)); launchSetTitleFromClazzUid(this.os3_1, this.os3_1.ts2_1, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$lambda(this.os3_1)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1).l78 = function (completion) { return new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1(this.ns3_1, this.os3_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.z86($completion); }; l.$arity = 0; return l; } function Companion_119() { this.ps3_1 = 'CourseAssignmentSubmissionsTab'; } var Companion_instance_167; function Companion_getInstance_136() { return Companion_instance_167; } function sam$kotlinx_coroutines_flow_FlowCollector$0_14(function_0) { this.qs3_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_14).t1d = function (value, $completion) { return this.qs3_1(value, $completion); }; function ClazzAssignmentDetailSubmissionsTabViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.wpm().q7e().b7s(this$0.ss2_1, this$0.ts2_1, this$0.upm(), this$0.apn().tno(strings_getInstance().ymq_1), toQueryLikeParam(this$0.gpm_1.t2().sp5_1.hp5_1), this$0.xpu_1.t2().fs1_1.ypb_1); }; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda(this$0, resultContinuation) { this.zs3_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.as4_1, VOID, VOID, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_0(this.zs3_1, null)); this.hd_1 = 1; suspendResult = whenSubscribed(this.zs3_1.xpu_1, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_2(this.as4_1, this.zs3_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.zs3_1, completion); i.as4_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.ss2_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_1 = this; Companion_getInstance_118(); 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.ts2_1 = tmp_2; var tmp_3 = this; tmp_3.us2_1 = ClazzAssignmentDetailSubmissionsTabViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel.' call var nextValue = prevValue.hs1(VOID, this.us2_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.gpm_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.ap6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.gpw()); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_4 = this.tpm(); launch(tmp_4, VOID, VOID, ClazzAssignmentDetailSubmissionsTabViewModel$slambda_0(this, null)); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).bs4 = function (assignmentSubmitter) { var tmp = to('assignmentUid', this.ss2_1.toString()); var tmp_0 = to('submitterUid', assignmentSubmitter.h7v_1.toString()); Companion_getInstance_118(); this.epm_1.hob('CourseAssignmentSubmitter', mapOf([tmp, tmp_0, to('clazzUid', this.ts2_1.toString())])); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).cs4 = function (sortOrderOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel.onChangeSortOption.' call var nextValue = prevValue.hs1(VOID, VOID, VOID, sortOrderOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.zpu_1.i1h(new RefreshCommand()); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).rpv = function (searchText) { this.zpu_1.i1h(new RefreshCommand()); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).spv = function () { }; function Companion_120() { Companion_instance_168 = this; var tmp = this; var tmp_0 = strings_getInstance().xlv_1; var tmp_1 = new SortOrderOption(tmp_0, 5, true); var tmp_2 = strings_getInstance().xlv_1; tmp.ds4_1 = listOf([tmp_1, new SortOrderOption(tmp_2, 6, false)]); } var Companion_instance_168; function Companion_getInstance_137() { if (Companion_instance_168 == null) new Companion_120(); return Companion_instance_168; } function ClazzAssignmentDetailSubmissionsTabUiState$_init_$lambda_ecu5q() { return new EmptyPagingSource(); } function ClazzAssignmentDetailSubmissionsTabUiState(progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology) { Companion_getInstance_137(); 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_137().ds4_1 : sortOptions; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; courseTerminology = courseTerminology === VOID ? null : courseTerminology; this.cs1_1 = progressSummary; this.ds1_1 = assignmentSubmitterList; this.es1_1 = sortOptions; this.fs1_1 = sortOption; this.gs1_1 = courseTerminology; } protoOf(ClazzAssignmentDetailSubmissionsTabUiState).es4 = function (progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology) { return new ClazzAssignmentDetailSubmissionsTabUiState(progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology); }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).hs1 = function (progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology, $super) { progressSummary = progressSummary === VOID ? this.cs1_1 : progressSummary; assignmentSubmitterList = assignmentSubmitterList === VOID ? this.ds1_1 : assignmentSubmitterList; sortOptions = sortOptions === VOID ? this.es1_1 : sortOptions; sortOption = sortOption === VOID ? this.fs1_1 : sortOption; courseTerminology = courseTerminology === VOID ? this.gs1_1 : courseTerminology; return $super === VOID ? this.es4(progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology) : $super.es4.call(this, progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology); }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).toString = function () { return 'ClazzAssignmentDetailSubmissionsTabUiState(progressSummary=' + this.cs1_1 + ', assignmentSubmitterList=' + this.ds1_1 + ', sortOptions=' + this.es1_1 + ', sortOption=' + this.fs1_1 + ', courseTerminology=' + this.gs1_1 + ')'; }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).hashCode = function () { var result = this.cs1_1 == null ? 0 : hashCode(this.cs1_1); result = imul(result, 31) + hashCode(this.ds1_1) | 0; result = imul(result, 31) + hashCode(this.es1_1) | 0; result = imul(result, 31) + this.fs1_1.hashCode() | 0; result = imul(result, 31) + (this.gs1_1 == null ? 0 : hashCode(this.gs1_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.cs1_1, tmp0_other_with_cast.cs1_1)) return false; if (!equals(this.ds1_1, tmp0_other_with_cast.ds1_1)) return false; if (!equals(this.es1_1, tmp0_other_with_cast.es1_1)) return false; if (!this.fs1_1.equals(tmp0_other_with_cast.fs1_1)) return false; if (!equals(this.gs1_1, tmp0_other_with_cast.gs1_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).l7v_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).k7v_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.fs4_1 : THROW_CCE(); if (!$this.equals(tmp0_other_with_cast)) return false; return true; } function AssignmentSubmitterSummaryUiState(person) { this.fs4_1 = person; } protoOf(AssignmentSubmitterSummaryUiState).toString = function () { return AssignmentSubmitterSummaryUiState__toString_impl_fdil8u(this.fs4_1); }; protoOf(AssignmentSubmitterSummaryUiState).hashCode = function () { return AssignmentSubmitterSummaryUiState__hashCode_impl_6dnbk1(this.fs4_1); }; protoOf(AssignmentSubmitterSummaryUiState).equals = function (other) { return AssignmentSubmitterSummaryUiState__equals_impl_zhk063(this.fs4_1, other); }; function get_listItemUiState(_this__u8e3s4) { return _AssignmentSubmitterSummaryUiState___init__impl__s3rgxm(_this__u8e3s4); } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.os4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda).wp9 = function (it, $completion) { var tmp = this.xp9(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.wp9(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.ps4_1.dp9_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.os4_1.hs6(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).xp9 = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda(this.os4_1, completion); i.ps4_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.wp9(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.qs6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda).ss6 = function (assignmentData, $completion) { var tmp = this.ts6(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.ss6((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.qs6_1.ns5_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.rs6_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k7y_1; Companion_getInstance_1(); var isEnrolledButNotInGroup = equals(tmp_0, new Long(-1, -1)); var tmp1_safe_receiver = this.rs6_1; var tmp9_assignment = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g7y_1; var tmp2_safe_receiver = this.rs6_1; var tmp10_courseBlock = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.h7y_1; var tmp3_safe_receiver = this.rs6_1; var tmp11_courseBlockPicture = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.i7y_1; var tmp5_safe_receiver = this.rs6_1; var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.k7y_1; var tmp12_submitterUid = tmp6_elvis_lhs == null ? new Long(0, 0) : tmp6_elvis_lhs; var tmp4_safe_receiver = this.rs6_1; var tmp13_courseGroupSet = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.j7y_1; var tmp_1; if (isEnrolledButNotInGroup) { tmp_1 = this.qs6_1.apn().tno(strings_getInstance().nmv_1); } else { tmp_1 = null; } var tmp14_unassignedError = tmp_1; var tmp7_safe_receiver = this.rs6_1; var tmp8_elvis_lhs = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.l7y_1; var tmp15_showModerateOptions = tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs; var nextValue = prevValue.vs7(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).ts6 = function (assignmentData, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda(this.qs6_1, completion); i.rs6_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.ss6(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).gs8 = function (submissions, submissionFiles, $completion) { var tmp = this.hs8(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.gs8(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.es8_1, this.fs8_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).hs8 = function (submissions, submissionFiles, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(completion); i.es8_1 = submissions; i.fs8_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.gs8(submissions, submissionFiles, $completion); }; l.$arity = 2; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.qs8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).ss8 = function (it, $completion) { var tmp = this.ts8(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.ss8((!(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.qs8_1.ns5_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vs7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.rs8_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).ts8 = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this.qs8_1, completion); i.rs8_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.ss8(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.cs9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).es9 = function (it, $completion) { var tmp = this.fs9(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.es9((!(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.cs9_1.ns5_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vs7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ds9_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).fs9 = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this.cs9_1, completion); i.ds9_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.es9(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.os9_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).ss9 = function (value, $completion) { var tmp = this.ts9(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.ss9(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.qs9_1 = this.os9_1; var tmp_1 = this; tmp_1.rs9_1 = this.ps9_1; this.hd_1 = 1; var tmp0_safe_receiver = this.rs9_1.us9_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qbo_1; suspendResult = this.qs9_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).ts9 = function (value, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda(this.os9_1, completion); i.ps9_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.ss9(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$61(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dsa_1 = _this__u8e3s4; this.esa_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.fsa_1 = this.esa_1; this.hd_1 = 1; var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_0(this.fsa_1, null); suspendResult = this.dsa_1.gsa_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_15(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.psa_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).rsa = function (it, $completion) { var tmp = this.ssa(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.rsa((!(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.psa_1.ns5_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vs7(VOID, VOID, VOID, VOID, VOID, this.qsa_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).ssa = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this.psa_1, completion); i.qsa_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.rsa(it, $completion); }; l.$arity = 1; return l; } function _no_name_provided__qut3iv_7($this) { this.gsa_1 = $this; } protoOf(_no_name_provided__qut3iv_7).tsa = 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_7).a1c = function (collector, $completion) { return this.tsa(collector, $completion); }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.csb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).esb = function (submissionUid, $completion) { var tmp = this.fsb(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.esb(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.csb_1.vpm().s7e().gbw(this.dsb_1)); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_0(this.csb_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_15(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).fsb = function (submissionUid, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this.csb_1, completion); i.dsb_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.esb(submissionUid, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1($entityFlow, this$0, resultContinuation) { this.osb_1 = $entityFlow; this.psb_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.psb_1, null); suspendResult = this.osb_1.h1h(new sam$kotlinx_coroutines_flow_FlowCollector$0_15(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.osb_1, this.psb_1, completion); i.qsb_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.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel....' call var nextValue = prevValue.ap6(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.zsb_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.bsc_1 = this.zsb_1.wpm().r7e().bbo(this.zsb_1.upm(), this.zsb_1.wpl_1); this.csc_1 = this.zsb_1.wpm().s7e().hbw(this.zsb_1.upm(), this.zsb_1.wpl_1); this.hd_1 = 1; var tmp_0 = distinctUntilChanged(combine(this.bsc_1, this.csc_1, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(null))); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this.zsb_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_15(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3(this.zsb_1, completion); i.asc_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.lsc_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.lsc_1.wpm().t7e().vbh(this.lsc_1.upm(), this.lsc_1.wpl_1); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this.lsc_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_15(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5(this.lsc_1, completion); i.msc_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.vsc_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.vsc_1.ps5_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_7(this_0)); suspendResult = collectLatest(tmp_0, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this.vsc_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.vsc_1, completion); i.wsc_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.fsd_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.fsd_1.epn(this.fsd_1.xpm(), 'submissionHtml'); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_0(this.fsd_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_15(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda(this.fsd_1, completion); i.gsd_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.psd_1 = $this_launch; this.qsd_1 = this$0; this.rsd_1 = $entityFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1).m78 = function ($completion) { return this.z86($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.psd_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_2(this.rsd_1, this.qsd_1, null)); launchSetTitleFromClazzUid(this.qsd_1, this.qsd_1.ys5_1, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$lambda(this.qsd_1)); launch(this.psd_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_4(this.qsd_1, null)); launch(this.psd_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_6(this.qsd_1, null)); launch(this.psd_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_8(this.qsd_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1).l78 = function (completion) { return new ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1(this.psd_1, this.qsd_1, this.rsd_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.z86($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda(this$0, $file, resultContinuation) { this.ase_1 = this$0; this.bse_1 = $file; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda).un7 = function (it, $completion) { var tmp = this.vn7(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.un7(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.ase_1.wpm().s7e(); var tmp0_safe_receiver = this.bse_1.cby_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ebx_1; suspendResult = tmp_0.kbw(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).vn7 = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda(this.ase_1, this.bse_1, completion); i.cse_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.un7(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.ns5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.openSubmissionFileAsBlob...' call var nextValue = prevValue.vs7(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.zs5_1; saveAndUploadUseCase$factory_0(); return this_0.t2(); } function _get_cancelTransferJobUseCase__o6e2y4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.as6_1; cancelTransferJobUseCase$factory_0(); return this_0.t2(); } function _get_openBlobUiUseCase__fzusqz($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.bs6_1; openBlobUiUseCase$factory_0(); return this_0.t2(); } function _get_ustadAccountManager__el9prc($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ds6_1; ustadAccountManager$factory_0(); return this_0.t2(); } function _get_showSocialWarningUseCase__ft8jc6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.es6_1; showSocialWarningUseCase$factory_0(); return this_0.t2(); } function _get_dismissSocialWarningUseCase__st8mv5($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.fs6_1; dismissSocialWarningUseCase$factory_0(); return this_0.t2(); } function _get_openExternalLinkUseCase__ku5z07($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.gs6_1; openExternalLinkUseCase$factory_0(); return this_0.t2(); } function newCourseAssignmentSubmission($this) { var tmp = get_doorPrimaryKeyManager($this.vpm()); Companion_getInstance_1(); var tmp0_casUid = tmp.n62(522); var tmp1_casAssignmentUid = $this.wpl_1; var tmp2_casClazzUid = $this.ys5_1; var tmp3_casSubmitterPersonUid = $this.spm().tnf().zn2_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.cby_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var submissionFile = tmp; var tmp1_safe_receiver = $this.cs6_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.mr(); } var tmp_0 = $this; var tmp_1 = $this.tpm(); tmp_0.cs6_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda_0($this, submissionFile, intent, null)); } function Companion_121() { this.dse_1 = 'latestSubmission'; this.ese_1 = 'submissionHtml'; this.fse_1 = 'CourseAssignmentDetailOverviewView'; } var Companion_instance_169; function Companion_getInstance_138() { return Companion_instance_169; } function sam$kotlinx_coroutines_flow_FlowCollector$0_15(function_0) { this.gse_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_15).t1d = function (value, $completion) { return this.gse_1(value, $completion); }; function ClazzAssignmentDetailOverviewViewModel$privateCommentsPagingSourceFactory$lambda(this$0) { return function () { return this$0.wpm().u7e().u9y(this$0.upm(), this$0.wpl_1, false); }; } function ClazzAssignmentDetailOverviewViewModel$courseCommentsPagingSourceFactory$lambda(this$0) { return function () { return this$0.wpm().u7e().w9y(this$0.wpl_1, false); }; } function ClazzAssignmentDetailOverviewViewModel$slambda(this$0, $savedStateHandle, $entityFlow, resultContinuation) { this.pse_1 = this$0; this.qse_1 = $savedStateHandle; this.rse_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.pse_1.fpn(this.qse_1, 'latestSubmission', Companion_getInstance_1().n4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.tse_1 = suspendResult; this.use_1 = this.tse_1 == null ? newCourseAssignmentSubmission(this.pse_1) : this.tse_1; l$ret$1: do { var this_0 = this.pse_1.ps5_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vse(this.use_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.sse_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda_0(this.pse_1, null)); this.hd_1 = 2; suspendResult = whenSubscribed(this.pse_1.ns5_1, ClazzAssignmentDetailOverviewViewModel$slambda$slambda_2(this.sse_1, this.pse_1, this.rse_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.pse_1, this.qse_1, this.rse_1, completion); i.sse_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.esf_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.esf_1).mo6(toString_0(_get_ustadAccountManager__el9prc(this.esf_1).tnf().zn2_1.t95_1)); l$ret$1: do { var this_0 = this.esf_1.ns5_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vs7(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.esf_1, completion); i.fsf_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.ubo_1 = $text; return Unit_instance; }; } function ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda($submissionToSave, this$0, resultContinuation) { this.osf_1 = $submissionToSave; this.psf_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.osf_1 == null)) { this.hd_1 = 2; suspendResult = this.psf_1.gpn(this.psf_1.cpm_1, 'latestSubmission', Companion_getInstance_1().n4r(), this.osf_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.osf_1, this.psf_1, completion); i.qsf_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.zsf_1 = this$0; this.asg_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.zsf_1.wpm().u7e(); var this_0 = new Comments(); this_0.q9z_1 = this.asg_1; this_0.p9z_1 = this.zsf_1.upm(); this_0.r9z_1 = this.zsf_1.ns5_1.t2().ys6_1; this_0.n9z_1 = this.zsf_1.wpl_1; this_0.m9z_1 = this.zsf_1.rs5_1.t2(); this_0.u9z_1 = systemTimeInMillis(); suspendResult = tmp_0.s9y(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_1 = this; this.zsf_1.rs5_1.x1k(''); tmp_1.csg_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.zsf_1.cpn(Companion_getInstance_91().ip6_1); return Unit_instance; case 4: this.id_1 = 5; var t = this.kd_1; this.zsf_1.cpn(Companion_getInstance_91().ip6_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.zsf_1, this.asg_1, completion); i.bsg_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.lsg_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.lsg_1.wpm().u7e(); var this_0 = new Comments(); this_0.q9z_1 = new Long(0, 0); this_0.p9z_1 = this.lsg_1.upm(); this_0.n9z_1 = this.lsg_1.wpl_1; this_0.m9z_1 = this.lsg_1.ts5_1.t2(); this_0.u9z_1 = systemTimeInMillis(); suspendResult = tmp_0.s9y(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_1 = this; this.lsg_1.ts5_1.x1k(''); tmp_1.nsg_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.lsg_1.cpn(Companion_getInstance_91().ip6_1); return Unit_instance; case 4: this.id_1 = 5; var t = this.kd_1; this.lsg_1.cpn(Companion_getInstance_91().ip6_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.lsg_1, completion); i.msg_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.wsg_1 = this$0; this.xsg_1 = $size; this.ysg_1 = $mimeType; this.zsg_1 = $fileName; this.ash_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.wsg_1.vpm()); suspendResult = tmp_0.o62(90, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.csh_1 = suspendResult; var tmp_1 = this; var tmp0_safe_receiver = this.wsg_1.ps5_1.t2().us9_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qbo_1; tmp_1.dsh_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.esh_1 = this.wsg_1.ns5_1.t2().ys6_1; this.fsh_1 = this.xsg_1.mb(); this.gsh_1 = this.wsg_1.wpl_1; this.hsh_1 = this.wsg_1.ys5_1; this.ish_1 = new CourseAssignmentSubmissionFile(this.csh_1, this.dsh_1, this.esh_1, this.gsh_1, this.hsh_1, this.ysg_1, this.zsg_1, this.ash_1, this.fsh_1); this.hd_1 = 2; suspendResult = this.wsg_1.vpm().s7e().fbw(listOf_0(this.ish_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.wsg_1); var tmp_3 = this.ish_1.ebx_1; suspendResult = tmp_2.rnw(listOf_0(new SaveLocalUriAsBlobItem(this.ash_1, tmp_3, 90, this.ysg_1, VOID, true)), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.id_1 = 6; this.hd_1 = 5; continue $sm; case 4: this.id_1 = 6; var tmp_4 = this.kd_1; if (tmp_4 instanceof Error) { var e = this.kd_1; Napier_getInstance().m5e('WARNING: Exception attempting to save/enqueue submission file', e); this.hd_1 = 5; continue $sm; } else { throw this.kd_1; } case 5: this.id_1 = 6; return Unit_instance; case 6: throw this.kd_1; } } catch ($p) { var e_0 = $p; if (this.id_1 === 6) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda(this.wsg_1, this.xsg_1, this.ysg_1, this.zsg_1, this.ash_1, completion); i.bsh_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.rsh_1 = this$0; this.ssh_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.rsh_1.ms5_1.vno(this.rsh_1.wpm(), this.rsh_1.ns5_1.t2().ys6_1, this.rsh_1.wpl_1, this.rsh_1.spm().tnf().zn2_1.s95_1, this.ssh_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.rsh_1.ps5_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vse(newCourseAssignmentSubmission(this.rsh_1)); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); tmp_0.vsh_1 = tmp$ret$0.us9_1; l$ret$3: do { var this_1 = this.rsh_1.ns5_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.vs7(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.vsh_1 == null)) { this.hd_1 = 3; suspendResult = this.rsh_1.gpn(this.rsh_1.cpm_1, 'latestSubmission', Companion_getInstance_1().n4r(), this.vsh_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.rsh_1.ypm().pp6(new Snack(this.rsh_1.apn().tno(strings_getInstance().mmh_1))); tmp_1.ush_1 = Unit_instance; this.id_1 = 7; this.hd_1 = 8; continue $sm; case 5: this.id_1 = 6; var tmp_2 = this.kd_1; if (tmp_2 instanceof Exception) { var e = this.kd_1; var tmp_3 = this; Napier_getInstance().q5e('Exception submitting assignment: ' + e, e); l$ret$7: do { var this_2 = this.rsh_1.ns5_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.vs7(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.ush_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.rsh_1.ns5_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.vs7(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.rsh_1.cpn(Companion_getInstance_91().ip6_1); throw t; case 7: throw this.kd_1; case 8: this.id_1 = 7; l$ret$11: do { var this_4 = this.rsh_1.ns5_1; while (true) { var prevValue_3 = this_4.t2(); var nextValue_3 = prevValue_3.vs7(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.rsh_1.cpn(Companion_getInstance_91().ip6_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.rsh_1, this.ssh_1, completion); i.tsh_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.esi_1 = this$0; this.fsi_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.esi_1.wpm(); suspendResult = withDoorTransactionAsync(tmp_0, VOID, ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda_0(this.esi_1, this.fsi_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this; var tmp0_safe_receiver = this.fsi_1.dby_1; tmp_1.hsi_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fby_1; if (this.hsi_1 == null) { this.isi_1 = null; this.hd_1 = 4; continue $sm; } else { var tmp_2 = this; tmp_2.jsi_1 = this.hsi_1; var tmp_3 = this; tmp_3.ksi_1 = this.jsi_1; this.lsi_1 = _get_cancelTransferJobUseCase__o6e2y4(this.esi_1); if (this.lsi_1 == null) { this.msi_1 = null; this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = this.lsi_1.i1i(this.ksi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 2: var tmp_4 = this; tmp_4.msi_1 = Unit_instance; this.hd_1 = 3; continue $sm; case 3: this.isi_1 = this.jsi_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.esi_1, this.fsi_1, completion); i.gsi_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.vsi_1 = this$0; this.wsi_1 = $submissionFile; this.xsi_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.zsi_1 = _get_openBlobUiUseCase__fzusqz(this.vsi_1); if (this.zsi_1 == null) { this.asj_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = asBlobOpenItem(this.wsi_1); suspendResult = this.zsi_1.vnu(tmp_0, ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda$lambda(this.vsi_1), this.xsi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_1 = this; tmp_1.asj_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.vsi_1, this.wsi_1, this.xsi_1, completion); i.ysi_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.jsj_1 = this$0; this.ksj_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.jsj_1.wpm().u7e().t9y(this.ksj_1.l9z_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.jsj_1.ypm().pp6(new Snack(this.jsj_1.apn().tno(strings_getInstance().tlu_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.jsj_1, this.ksj_1, completion); i.lsj_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda_0(this$0, $comments, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda(this$0, $comments, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel(di, savedStateHandle, submitAssignmentUseCase) { var tmp; if (submitAssignmentUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(di).f58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.d58(tmp$ret$0, null); tmp = new SubmitAssignmentUseCase(tmp$ret$1); } else { tmp = submitAssignmentUseCase; } submitAssignmentUseCase = tmp; DetailViewModel.call(this, di, savedStateHandle, 'CourseAssignment'); this.ms5_1 = submitAssignmentUseCase; this.ns5_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.apn().vp4())); this.os5_1 = asStateFlow(this.ns5_1); this.ps5_1 = MutableStateFlow(new ClazzAssignmentDetailoverviewSubmissionUiState()); this.qs5_1 = asStateFlow(this.ps5_1); this.rs5_1 = MutableStateFlow(''); this.ss5_1 = asStateFlow(this.rs5_1); this.ts5_1 = MutableStateFlow(''); this.us5_1 = asStateFlow(this.ts5_1); var tmp_2 = this; tmp_2.vs5_1 = ClazzAssignmentDetailOverviewViewModel$privateCommentsPagingSourceFactory$lambda(this); var tmp_3 = this; tmp_3.ws5_1 = ClazzAssignmentDetailOverviewViewModel$courseCommentsPagingSourceFactory$lambda(this); this.xs5_1 = null; var tmp_4 = this; Companion_getInstance_118(); 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.ys5_1 = tmp_5; var tmp_6 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveEndpoint(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.zs5_1 = Instance(this_0, tmp$ret$2, null).a5d(this, saveAndUploadUseCase$factory()); var tmp_8 = this; // Inline function 'org.kodein.di.instanceOrNull' call var this_1 = onActiveEndpoint(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.as6_1 = InstanceOrNull(this_1, tmp$ret$4, null).a5d(this, cancelTransferJobUseCase$factory()); var tmp_10 = this; // Inline function 'org.kodein.di.instanceOrNull' call var this_2 = onActiveEndpoint(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.bs6_1 = InstanceOrNull(this_2, tmp$ret$6, null).a5d(this, openBlobUiUseCase$factory()); this.cs6_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.ds6_1 = Instance(di, tmp$ret$8, null).a5d(this, ustadAccountManager$factory()); var tmp_14 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_15 = typeToken(createKType(getKClass(ShowSocialWarningUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_15, TypeToken) ? tmp_15 : THROW_CCE(); tmp_14.es6_1 = Instance(di, tmp$ret$10, null).a5d(this, showSocialWarningUseCase$factory()); var tmp_16 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_17 = typeToken(createKType(getKClass(DismissSocialWarningUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE(); tmp_16.fs6_1 = Instance(di, tmp$ret$12, null).a5d(this, dismissSocialWarningUseCase$factory()); var tmp_18 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_19 = typeToken(createKType(getKClass(OpenExternalLinkUseCase), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_19, TypeToken) ? tmp_19 : THROW_CCE(); tmp_18.gs6_1 = Instance(di, tmp$ret$14, null).a5d(this, openExternalLinkUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.ns5_1; while (true) { var prevValue = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.' call var tmp_20 = this.upm(); var tmp_21 = this.spm().tnf().zn2_1.ok4(); var tmp0_safe_receiver_0 = this.spm().tnf().bn3_1; var nextValue = prevValue.vs7(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.s96_1, VOID, VOID, VOID, VOID, VOID, VOID, _get_showSocialWarningUseCase__ft8jc6(this).koe(toString_0(_get_ustadAccountManager__el9prc(this).tnf().zn2_1.t95_1))); if (this_3.y1k(prevValue, nextValue)) { break $l$block; } } } var entityFlow = shareIn(this.wpm().q7e().j7s(this.wpl_1, this.ys5_1, this.spm().kng().xkb_1), this.tpm(), Companion_getInstance_12().v1h()); var tmp_22 = this.tpm(); 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.ns5_1; while (true) { var prevValue_0 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.' call var tmp0_privateComments = this.vs5_1; var tmp1_courseComments = this.ws5_1; var nextValue_0 = prevValue_0.vs7(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).msj = function () { var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda_0(this, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).nsj = function (option) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ns5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onClickMarksFilterChip.' call var nextValue = prevValue.vs7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, option.dp7_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentDetailOverviewViewModel).hs6 = function (text) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.ps5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onChangeSubmissionText.' call var tmp0_safe_receiver = prevValue.us9_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = shallowCopy_0(tmp0_safe_receiver, ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$lambda(text)); } var nextValue = prevValue.vse(tmp); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var submissionToSave = tmp$ret$1.us9_1; var tmp0_safe_receiver_0 = this.xs5_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.tpm(); tmp_0.xs5_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda_0(submissionToSave, this, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).osj = function (text) { this.rs5_1.x1k(text); }; protoOf(ClazzAssignmentDetailOverviewViewModel).psj = function () { var submitterUid = this.ns5_1.t2().ys6_1; if (submitterUid.c7(new Long(0, 0)) <= 0) return Unit_instance; if (this.dpn().equals(Companion_getInstance_91().hp6_1)) return Unit_instance; this.cpn(Companion_getInstance_91().hp6_1); var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda_0(this, submitterUid, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).qsj = function (text) { this.ts5_1.x1k(text); }; protoOf(ClazzAssignmentDetailOverviewViewModel).rsj = function () { if (this.dpn().equals(Companion_getInstance_91().hp6_1)) return Unit_instance; this.cpn(Companion_getInstance_91().hp6_1); var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda_0(this, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).ssj = function (uri, fileName, mimeType, size) { var tmp0_safe_receiver = this.ns5_1.t2().us6_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n7t_1; var assignmentSizeLimit = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; if (size.c7(toLong(imul(imul(assignmentSizeLimit, 1024), 1024))) > 0) { this.ypm().pp6(new Snack(this.apn().tno(strings_getInstance().ym4_1))); return Unit_instance; } var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda_0(this, size, mimeType, fileName, uri, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).tsj = function () { if (!this.ns5_1.t2().fs7_1) return Unit_instance; var tmp0_elvis_lhs = this.ps5_1.t2().us9_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.ns5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onClickSubmit.' call var nextValue = prevValue.vs7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.cpn(Companion_getInstance_91().hp6_1); var tmp_0 = this.tpm(); launch(tmp_0, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda_0(this, submission, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).usj = function (submission) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ns5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onToggleSubmissionExpandCollapse.' call var nextValue = prevValue.vs7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toggle_0(prevValue.rs7_1, submission.qbo_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentDetailOverviewViewModel).vsj = function () { Companion_getInstance_118(); var tmp0_safe_receiver = this.ns5_1.t2().xs6_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q7y_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_118(); this.epm_1.hob('CourseGroupSet', mapOf([tmp, to('clazzUid', this.ys5_1.toString())])); }; protoOf(ClazzAssignmentDetailOverviewViewModel).wsj = function (file) { var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda_0(this, file, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).xsj = function (file) { openSubmissionFileAsBlob(this, file, OpenBlobIntent_VIEW_getInstance()); }; protoOf(ClazzAssignmentDetailOverviewViewModel).ysj = function (comments) { var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda_0(this, comments, null)); }; function _get_latestUniqueMarksByMarker__e0a3pq($this) { return latestUniqueMarksByMarker($this.cs7_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().gmw_1; var tmp_4 = new MessageIdOption2(tmp_3, 1); var tmp_5 = strings_getInstance().wma_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.ilp(), Companion_getInstance_9().hlt()) : 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.us6_1 = assignment; this.vs6_1 = courseBlock; this.ws6_1 = courseBlockPicture; this.xs6_1 = courseGroupSet; this.ys6_1 = submitterUid; this.zs6_1 = editableSubmissionFiles; this.as7_1 = submissionTooLong; this.bs7_1 = submissions; this.cs7_1 = markList; this.ds7_1 = courseComments; this.es7_1 = privateComments; this.fs7_1 = fieldsEnabled; this.gs7_1 = selectedChipId; this.hs7_1 = gradeFilterChips; this.is7_1 = submissionHeaderUiState; this.js7_1 = unassignedError; this.ks7_1 = submissionError; this.ls7_1 = activeUserPersonUid; this.ms7_1 = activeUserPersonName; this.ns7_1 = activeUserPictureUri; this.os7_1 = courseTerminology; this.ps7_1 = localDateTimeNow; this.qs7_1 = dayOfWeekStringMap; this.rs7_1 = collapsedSubmissions; this.ss7_1 = openingFileSubmissionState; this.ts7_1 = showModerateOptions; this.us7_1 = showSocialWarning; } protoOf(ClazzAssignmentDetailOverviewUiState).zsj = function () { var tmp0_safe_receiver = this.vs6_1; return isDateSet(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r7x_1); }; protoOf(ClazzAssignmentDetailOverviewUiState).ask = function () { return this.bsk(); }; protoOf(ClazzAssignmentDetailOverviewUiState).csk = function () { // Inline function 'kotlin.text.isNullOrBlank' call var this_0 = this.js7_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ClazzAssignmentDetailOverviewUiState).dsk = function () { var tmp0_safe_receiver = this.us6_1; return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i7t_1) === true; }; protoOf(ClazzAssignmentDetailOverviewUiState).esk = function () { return this.ys6_1.c7(new Long(0, 0)) > 0; }; protoOf(ClazzAssignmentDetailOverviewUiState).fsk = function () { var tmp; if (this.esk()) { var tmp0_safe_receiver = this.us6_1; tmp = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j7t_1) === true; } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).gsk = function () { var timeNow = systemTimeInMillis(); var tmp0_safe_receiver = this.vs6_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r7x_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.vs6_1; if (isDateSet(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.t7x_1)) { var tmp3_safe_receiver = this.vs6_1; var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.t7x_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).bsk = function () { if (!this.esk()) return false; if (!this.gsk()) return false; var tmp; var tmp0_safe_receiver = this.us6_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p7t_1; if (tmp_0 === 1) { // Inline function 'kotlin.collections.isNotEmpty' call tmp = !this.bs7_1.c1(); } else { tmp = false; } if (tmp) { return false; } return true; }; protoOf(ClazzAssignmentDetailOverviewUiState).hsk = function () { var tmp; var tmp_0; if (this.bsk()) { var tmp0_safe_receiver = this.us6_1; tmp_0 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l7t_1) === true; } else { tmp_0 = false; } if (tmp_0) { tmp = this.zs6_1.u() < this.us6_1.o7t_1; } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).isk = function () { return this.esk() ? submissionStatusFor(this.cs7_1, this.bs7_1) : null; }; protoOf(ClazzAssignmentDetailOverviewUiState).jsk = function () { return !(this.ksk() == null); }; protoOf(ClazzAssignmentDetailOverviewUiState).lsk = 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.ksk(); return !(it == null) ? !(it.tjq_1 === 0) : false; }; protoOf(ClazzAssignmentDetailOverviewUiState).msk = function () { var tmp; var tmp0_safe_receiver = this.us6_1; if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r7t_1) === true) { tmp = this.bsk(); } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).nsk = function () { var tmp; if (this.gs7_1 === 1) { tmp = _get_latestUniqueMarksByMarker__e0a3pq(this); } else { tmp = this.cs7_1; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).ksk = function () { return averageMark(this.cs7_1); }; protoOf(ClazzAssignmentDetailOverviewUiState).osk = function () { var tmp0_safe_receiver = this.us6_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g7t_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).psk = 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).vs7 = 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.us6_1 : assignment; courseBlock = courseBlock === VOID ? this.vs6_1 : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? this.ws6_1 : courseBlockPicture; courseGroupSet = courseGroupSet === VOID ? this.xs6_1 : courseGroupSet; submitterUid = submitterUid === VOID ? this.ys6_1 : submitterUid; editableSubmissionFiles = editableSubmissionFiles === VOID ? this.zs6_1 : editableSubmissionFiles; submissionTooLong = submissionTooLong === VOID ? this.as7_1 : submissionTooLong; submissions = submissions === VOID ? this.bs7_1 : submissions; markList = markList === VOID ? this.cs7_1 : markList; courseComments = courseComments === VOID ? this.ds7_1 : courseComments; privateComments = privateComments === VOID ? this.es7_1 : privateComments; fieldsEnabled = fieldsEnabled === VOID ? this.fs7_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.gs7_1 : selectedChipId; gradeFilterChips = gradeFilterChips === VOID ? this.hs7_1 : gradeFilterChips; submissionHeaderUiState = submissionHeaderUiState === VOID ? this.is7_1 : submissionHeaderUiState; unassignedError = unassignedError === VOID ? this.js7_1 : unassignedError; submissionError = submissionError === VOID ? this.ks7_1 : submissionError; activeUserPersonUid = activeUserPersonUid === VOID ? this.ls7_1 : activeUserPersonUid; activeUserPersonName = activeUserPersonName === VOID ? this.ms7_1 : activeUserPersonName; activeUserPictureUri = activeUserPictureUri === VOID ? this.ns7_1 : activeUserPictureUri; courseTerminology = courseTerminology === VOID ? this.os7_1 : courseTerminology; localDateTimeNow = localDateTimeNow === VOID ? this.ps7_1 : localDateTimeNow; dayOfWeekStringMap = dayOfWeekStringMap === VOID ? this.qs7_1 : dayOfWeekStringMap; collapsedSubmissions = collapsedSubmissions === VOID ? this.rs7_1 : collapsedSubmissions; openingFileSubmissionState = openingFileSubmissionState === VOID ? this.ss7_1 : openingFileSubmissionState; showModerateOptions = showModerateOptions === VOID ? this.ts7_1 : showModerateOptions; showSocialWarning = showSocialWarning === VOID ? this.us7_1 : showSocialWarning; return $super === VOID ? this.psk(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.psk.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.us6_1 + ', courseBlock=' + this.vs6_1 + ', courseBlockPicture=' + this.ws6_1 + ', courseGroupSet=' + this.xs6_1 + ', submitterUid=' + this.ys6_1.toString() + ', editableSubmissionFiles=' + this.zs6_1 + ', submissionTooLong=' + this.as7_1 + ', submissions=' + this.bs7_1 + ', markList=' + this.cs7_1 + ', courseComments=' + this.ds7_1 + ', privateComments=' + this.es7_1 + ', fieldsEnabled=' + this.fs7_1 + ', selectedChipId=' + this.gs7_1 + ', gradeFilterChips=' + this.hs7_1 + ', submissionHeaderUiState=' + this.is7_1 + ', unassignedError=' + this.js7_1 + ', submissionError=' + this.ks7_1 + ', activeUserPersonUid=' + this.ls7_1.toString() + ', activeUserPersonName=' + this.ms7_1 + ', activeUserPictureUri=' + this.ns7_1 + ', courseTerminology=' + this.os7_1 + ', localDateTimeNow=' + this.ps7_1 + ', dayOfWeekStringMap=' + this.qs7_1 + ', collapsedSubmissions=' + this.rs7_1 + ', openingFileSubmissionState=' + this.ss7_1 + ', showModerateOptions=' + this.ts7_1 + ', showSocialWarning=' + this.us7_1 + ')'; }; protoOf(ClazzAssignmentDetailOverviewUiState).hashCode = function () { var result = this.us6_1 == null ? 0 : this.us6_1.hashCode(); result = imul(result, 31) + (this.vs6_1 == null ? 0 : this.vs6_1.hashCode()) | 0; result = imul(result, 31) + (this.ws6_1 == null ? 0 : this.ws6_1.hashCode()) | 0; result = imul(result, 31) + (this.xs6_1 == null ? 0 : hashCode(this.xs6_1)) | 0; result = imul(result, 31) + this.ys6_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.zs6_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.as7_1) | 0; result = imul(result, 31) + hashCode(this.bs7_1) | 0; result = imul(result, 31) + hashCode(this.cs7_1) | 0; result = imul(result, 31) + hashCode(this.ds7_1) | 0; result = imul(result, 31) + hashCode(this.es7_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.fs7_1) | 0; result = imul(result, 31) + this.gs7_1 | 0; result = imul(result, 31) + hashCode(this.hs7_1) | 0; result = imul(result, 31) + this.is7_1.hashCode() | 0; result = imul(result, 31) + (this.js7_1 == null ? 0 : getStringHashCode(this.js7_1)) | 0; result = imul(result, 31) + (this.ks7_1 == null ? 0 : getStringHashCode(this.ks7_1)) | 0; result = imul(result, 31) + this.ls7_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.ms7_1) | 0; result = imul(result, 31) + (this.ns7_1 == null ? 0 : getStringHashCode(this.ns7_1)) | 0; result = imul(result, 31) + (this.os7_1 == null ? 0 : hashCode(this.os7_1)) | 0; result = imul(result, 31) + this.ps7_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.qs7_1) | 0; result = imul(result, 31) + hashCode(this.rs7_1) | 0; result = imul(result, 31) + (this.ss7_1 == null ? 0 : this.ss7_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.ts7_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.us7_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.us6_1, tmp0_other_with_cast.us6_1)) return false; if (!equals(this.vs6_1, tmp0_other_with_cast.vs6_1)) return false; if (!equals(this.ws6_1, tmp0_other_with_cast.ws6_1)) return false; if (!equals(this.xs6_1, tmp0_other_with_cast.xs6_1)) return false; if (!this.ys6_1.equals(tmp0_other_with_cast.ys6_1)) return false; if (!equals(this.zs6_1, tmp0_other_with_cast.zs6_1)) return false; if (!(this.as7_1 === tmp0_other_with_cast.as7_1)) return false; if (!equals(this.bs7_1, tmp0_other_with_cast.bs7_1)) return false; if (!equals(this.cs7_1, tmp0_other_with_cast.cs7_1)) return false; if (!equals(this.ds7_1, tmp0_other_with_cast.ds7_1)) return false; if (!equals(this.es7_1, tmp0_other_with_cast.es7_1)) return false; if (!(this.fs7_1 === tmp0_other_with_cast.fs7_1)) return false; if (!(this.gs7_1 === tmp0_other_with_cast.gs7_1)) return false; if (!equals(this.hs7_1, tmp0_other_with_cast.hs7_1)) return false; if (!this.is7_1.equals(tmp0_other_with_cast.is7_1)) return false; if (!(this.js7_1 == tmp0_other_with_cast.js7_1)) return false; if (!(this.ks7_1 == tmp0_other_with_cast.ks7_1)) return false; if (!this.ls7_1.equals(tmp0_other_with_cast.ls7_1)) return false; if (!(this.ms7_1 === tmp0_other_with_cast.ms7_1)) return false; if (!(this.ns7_1 == tmp0_other_with_cast.ns7_1)) return false; if (!equals(this.os7_1, tmp0_other_with_cast.os7_1)) return false; if (!this.ps7_1.equals(tmp0_other_with_cast.ps7_1)) return false; if (!equals(this.qs7_1, tmp0_other_with_cast.qs7_1)) return false; if (!equals(this.rs7_1, tmp0_other_with_cast.rs7_1)) return false; if (!equals(this.ss7_1, tmp0_other_with_cast.ss7_1)) return false; if (!(this.ts7_1 === tmp0_other_with_cast.ts7_1)) return false; if (!(this.us7_1 === tmp0_other_with_cast.us7_1)) return false; return true; }; function ClazzAssignmentDetailoverviewSubmissionUiState(editableSubmission) { editableSubmission = editableSubmission === VOID ? null : editableSubmission; this.us9_1 = editableSubmission; } protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).vse = function (editableSubmission) { return new ClazzAssignmentDetailoverviewSubmissionUiState(editableSubmission); }; protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).toString = function () { return 'ClazzAssignmentDetailoverviewSubmissionUiState(editableSubmission=' + this.us9_1 + ')'; }; protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).hashCode = function () { return this.us9_1 == null ? 0 : this.us9_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.us9_1, tmp0_other_with_cast.us9_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.ysk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda).qpe = function (noSubmissions, $completion) { var tmp = this.rpe(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.qpe((!(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.zsk_1 ? this.ysk_1.ysl_1.t2().esm_1 : false) { l$ret$1: do { var this_0 = this.ysk_1.ysl_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.msm(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).rpe = function (noSubmissions, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda(this.ysk_1, completion); i.zsk_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.qpe(noSubmissions, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.vsm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda).m78 = function ($completion) { return this.z86($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.vsm_1.vpm().r7e(); var tmp0_safe_receiver = this.vsm_1.ysl_1.t2().wsm(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qjm_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d7t_1; var tmp_1 = tmp_0.abo(tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs); var tmp_2 = ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_0(this.vsm_1, null); suspendResult = tmp_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_16(tmp_2), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda).l78 = function (completion) { return new ClazzAssignmentEditViewModel$slambda$slambda$slambda(this.vsm_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.z86($completion); }; l.$arity = 0; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.fsn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_1).wp9 = function (result, $completion) { var tmp = this.xp9(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.wp9(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.gsn_1.dp9_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.fsn_1.ysl_1.t2().wsm(); var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.jjm_1; this.fsn_1.hsn(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.tjz(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).xp9 = function (result, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_1(this.fsn_1, completion); i.gsn_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.wp9(result, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$lambda($groupSet) { return function ($this$shallowCopy) { $this$shallowCopy.g7t_1 = $groupSet.q7y_1; return Unit_instance; }; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.qsn_1 = $commitDelay; this.rsn_1 = $entity; this.ssn_1 = $this; this.tsn_1 = $key; this.usn_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.qsn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.rsn_1 == null)) { this.hd_1 = 2; suspendResult = this.ssn_1.gpn(this.ssn_1.cpm_1, this.tsn_1, this.usn_1, this.rsn_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.qsn_1, this.rsn_1, this.ssn_1, this.tsn_1, this.usn_1, completion); i.vsn_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.eso_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_3).wp9 = function (result, $completion) { var tmp = this.xp9(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.wp9(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.fso_1.dp9_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.eso_1.ysl_1; while (true) { var prevValue = this_0.t2(); var tmp3_safe_receiver = prevValue.wsm(); var tmp_2; if (tmp3_safe_receiver == null) { tmp_2 = null; } else { var tmp0_safe_receiver = prevValue.wsm(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qjm_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.q7y_1.equals(new Long(0, 0))) { tmp_5 = groupSet; } else { tmp_5 = null; } var tmp2_safe_receiver = tmp_5; tmp_2 = tmp3_safe_receiver.vjm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_4, tmp2_safe_receiver == null ? null : tmp2_safe_receiver.r7y_1); } var nextValue = prevValue.msm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.jsm_1.rso(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.eso_1; var entity = newState.wsm(); var serializer = Companion_getInstance_13().n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver_0 = this_1.hps_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_6 = this_1; var tmp_7 = this_1.tpm(); tmp_6.hps_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).xp9 = function (result, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_3(this.eso_1, completion); i.fso_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.wp9(result, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.asp_1 = $commitDelay; this.bsp_1 = $entity; this.csp_1 = $this; this.dsp_1 = $key; this.esp_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.asp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.bsp_1 == null)) { this.hd_1 = 2; suspendResult = this.csp_1.gpn(this.csp_1.cpm_1, this.dsp_1, this.esp_1, this.bsp_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.asp_1, this.bsp_1, this.csp_1, this.dsp_1, this.esp_1, completion); i.fsp_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.osp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_5).wp9 = function (result, $completion) { var tmp = this.xp9(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.wp9(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.psp_1.dp9_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.osp_1.ysl_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = prevValue.jsm_1.gso_1; var nextValue = prevValue.msm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.jsm_1.rso(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vjm(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.osp_1; var entity = newState.wsm(); var serializer = Companion_getInstance_13().n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver_0 = this_1.hps_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this_1; var tmp_3 = this_1.tpm(); tmp_2.hps_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).xp9 = function (result, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_5(this.osp_1, completion); i.psp_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.wp9(result, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda).zsp = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.zsp(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).vn7 = function (it, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda(completion); i.ysp_1 = it; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda_0(resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.zsp(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.isq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_1).jsq = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.jsq($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.isq_1.vpm()); var assignmentUid = tmp_0.n62(520); var this_0 = new CourseBlock(); var tmp_1 = this_0; var tmp_2 = get_doorPrimaryKeyManager(this.isq_1.vpm()); tmp_1.j7x_1 = tmp_2.n62(124); var tmp_3 = this_0; tmp_3.k7x_1 = 103; this_0.b7y_1 = assignmentUid; var tmp_4 = this_0; tmp_4.p7x_1 = 102; this_0.u7x_1 = 10.0; this_0.v7x_1 = 0.0; var this_1 = new ClazzAssignment(); this_1.d7t_1 = assignmentUid; this_1.v7t_1 = this.isq_1.bsm_1; return new CourseBlockAndEditEntities(this_0, VOID, VOID, VOID, VOID, VOID, VOID, this_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_1).l78 = function (completion) { return new ClazzAssignmentEditViewModel$slambda$slambda_1(this.isq_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.jsq($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.ysl_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel...' call var tmp = prevValue.jsm_1.rso(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.qjm_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.g7t_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.msm(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.ssq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_3).ppz = 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.ppz((!(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.ssq_1.m4r(); var value = this.ssq_1.ysl_1.t2(); var this_1 = this_0.t45(); var this_2 = serializer(this_1, createKType(getKClass(ClazzAssignmentEditUiState), arrayOf([]), false)); return this_0.r45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), value); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_3).v1m = function ($this$withContext, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_3(this.ssq_1, completion); i.tsq_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.ppz($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_5(this$0, resultContinuation) { this.csr_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.csr_1.ysl_1, ClazzAssignmentEditViewModel$slambda$slambda$slambda_0(this.csr_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.csr_1, completion); i.dsr_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.msr_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.msr_1.xpm(); Companion_getInstance_163(); var tmp_1 = this.msr_1.epn(tmp_0, 'courseBlockDesc'); var tmp_2 = ClazzAssignmentEditViewModel$slambda$slambda$slambda_2(this.msr_1, null); suspendResult = tmp_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_16(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.msr_1, completion); i.nsr_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.wsr_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.wsr_1.epn(this.wsr_1.xpm(), 'groupSet'); var tmp_1 = ClazzAssignmentEditViewModel$slambda$slambda$slambda_4(this.wsr_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_16(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_9).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_9(this.wsr_1, completion); i.xsr_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.gss_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.gss_1.epn(this.gss_1.xpm(), 'peerAllocationsResult'); var tmp_1 = ClazzAssignmentEditViewModel$slambda$slambda$slambda_6(this.gss_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_16(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_11).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_11(this.gss_1, completion); i.hss_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.qss_1 = this$0; this.rss_1 = $initStateJson; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda$slambda).tss = 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.tss((!(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.qss_1.m4r().s45(Companion_getInstance_140().n4r(), this.rss_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.qss_1, this.rss_1, completion); i.sss_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.tss($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onClickSave$slambda$lambda($this$shallowCopy) { $this$shallowCopy.g7t_1 = new Long(0, 0); return Unit_instance; } function _get_snackDisaptcher__bp310a($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.asm_1; snackDisaptcher$factory_0(); return this_0.t2(); } function hasErrors_0(_this__u8e3s4, $this) { return ((((((!(_this__u8e3s4.hsm_1 == null) ? true : !(_this__u8e3s4.jsm_1.nso_1 == null)) ? true : !(_this__u8e3s4.jsm_1.mso_1 == null)) ? true : !(_this__u8e3s4.jsm_1.pso_1 == null)) ? true : !(_this__u8e3s4.fsm_1 == null)) ? true : !(_this__u8e3s4.ism_1 == null)) ? true : !(_this__u8e3s4.lsm_1 == null)) ? true : _this__u8e3s4.jsm_1.vss(); } function checkNoSubmissionsMade($this, $completion) { var tmp = $this.vpm().r7e(); var tmp0_safe_receiver = $this.ysl_1.t2().wsm(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qjm_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d7t_1; return tmp.zbn(tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs, $completion); } function Companion_122() { this.wss_1 = 'groupSet'; this.xss_1 = 'peerAllocationsResult'; this.yss_1 = 'terminology'; this.zss_1 = 'CourseAssignmentEdit'; this.ast_1 = 5; this.bst_1 = 100; this.cst_1 = 'groupSubmissionOn'; } var Companion_instance_170; function Companion_getInstance_139() { return Companion_instance_170; } function sam$kotlinx_coroutines_flow_FlowCollector$0_16(function_0) { this.dst_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_16).t1d = function (value, $completion) { return this.dst_1(value, $completion); }; function ClazzAssignmentEditViewModel$_init_$lambda_wdhfey(db, systemImpl) { return new UpdatePeerReviewAllocationUseCase(db, systemImpl); } function ClazzAssignmentEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.mst_1 = this$0; this.nst_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.mst_1.fpn(this.nst_1, 'terminology', Companion_instance_33.n4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.pst_1 = suspendResult; this.hd_1 = 2; var tmp_0 = Companion_getInstance_13().n4r(); var tmp_1 = ClazzAssignmentEditViewModel$slambda$slambda_0(null); var tmp_2 = ClazzAssignmentEditViewModel$slambda$slambda_2(this.mst_1, null); suspendResult = this.mst_1.kpn(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzAssignmentEditViewModel$slambda$lambda(this.nst_1, this.mst_1, this.pst_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: Companion_getInstance_118(); if (this.nst_1.ba('initState') == null) { var tmp_3 = this; Companion_getInstance_118(); tmp_3.qst_1 = 'initState'; this.hd_1 = 3; var tmp_4 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_4, ClazzAssignmentEditViewModel$slambda$slambda_4(this.mst_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.nst_1.epi(this.qst_1, ARGUMENT); this.hd_1 = 4; continue $sm; case 4: l$ret$1: do { var this_0 = this.mst_1.ysl_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.rst(true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.mst_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_5 = Companion_getInstance_91().ip6_1; var tmp_6 = this.mst_1.apn().tno(strings_getInstance().qm2_1); var nextValue_0 = prevValue_0.ap6(VOID, tmp_5, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_6, VOID, ClazzAssignmentEditViewModel$onClickSave$ref(this.mst_1))); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); launch(this.ost_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_6(this.mst_1, null)); launch(this.ost_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_8(this.mst_1, null)); launch(this.ost_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_10(this.mst_1, null)); launch(this.ost_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_12(this.mst_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.mst_1, this.nst_1, completion); i.ost_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.asu_1 = $commitDelay; this.bsu_1 = $entity; this.csu_1 = $this; this.dsu_1 = $key; this.esu_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.asu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.bsu_1 == null)) { this.hd_1 = 2; suspendResult = this.csu_1.gpn(this.csu_1.cpm_1, this.dsu_1, this.esu_1, this.bsu_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.asu_1, this.bsu_1, this.csu_1, this.dsu_1, this.esu_1, completion); i.fsu_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.osu_1 = $commitDelay; this.psu_1 = $entity; this.qsu_1 = $this; this.rsu_1 = $key; this.ssu_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.osu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.psu_1 == null)) { this.hd_1 = 2; suspendResult = this.qsu_1.gpn(this.qsu_1.cpm_1, this.rsu_1, this.ssu_1, this.psu_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.osu_1, this.psu_1, this.qsu_1, this.rsu_1, this.ssu_1, completion); i.tsu_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.csv_1 = $commitDelay; this.dsv_1 = $entity; this.esv_1 = $this; this.fsv_1 = $key; this.gsv_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.csv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.dsv_1 == null)) { this.hd_1 = 2; suspendResult = this.esv_1.gpn(this.esv_1.cpm_1, this.fsv_1, this.gsv_1, this.dsv_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.csv_1, this.dsv_1, this.esv_1, this.fsv_1, this.gsv_1, completion); i.hsv_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.ysl_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onClickSave..' call var nextValue = prevValue.rst(true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.qsv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda).m78 = function ($completion) { return this.z86($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_118(); tmp_0.rsv_1 = this.qsv_1.cpm_1.ba('initState'); if (this.rsv_1 == null) { this.ssv_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_1 = this; tmp_1.tsv_1 = this.rsv_1; var tmp_2 = this; tmp_2.usv_1 = this.tsv_1; this.hd_1 = 1; var tmp_3 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_3, ClazzAssignmentEditViewModel$onClickSave$slambda$slambda_0(this.qsv_1, this.usv_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.ssv_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.vsv_1 = this.ssv_1; var tmp_4 = this; var tmp_5; if (this.vsv_1 == null) { return Unit_instance; } else { tmp_5 = this.vsv_1; } tmp_4.wsv_1 = tmp_5; var tmp_6 = this; var tmp2_safe_receiver = this.qsv_1.ysl_1.t2().wsm(); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.qjm_1; var tmp_7; if (tmp3_elvis_lhs == null) { return Unit_instance; } else { tmp_7 = tmp3_elvis_lhs; } tmp_6.xsv_1 = tmp_7; var tmp_8 = this; var tmp4_safe_receiver = this.qsv_1.ysl_1.t2().wsm(); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.jjm_1; var tmp_9; if (tmp5_elvis_lhs == null) { return Unit_instance; } else { tmp_9 = tmp5_elvis_lhs; } tmp_8.ysv_1 = tmp_9; if (!this.xsv_1.l7t_1 ? !this.xsv_1.r7t_1 : false) { l$ret$1: do { var this_0 = this.qsv_1.ysl_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.msm(VOID, VOID, VOID, VOID, VOID, this.qsv_1.apn().tno(strings_getInstance().xmu_1)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } var it = this.ysv_1.u7x_1; if (it == null ? true : it <= 0.0) { l$ret$3: do { var this_1 = this.qsv_1.ysl_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.msm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.jsm_1.rso(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.qsv_1.apn().tno(strings_getInstance().dlz_1))); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } if (this.ysv_1.r7x_1.c7(this.ysv_1.q7x_1) <= 0) { l$ret$5: do { var this_2 = this.qsv_1.ysl_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.msm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_1.jsm_1.rso(VOID, VOID, VOID, VOID, VOID, VOID, this.qsv_1.apn().tno(strings_getInstance().pmk_1))); if (this_2.y1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); } if (this.ysv_1.t7x_1.c7(this.ysv_1.r7x_1) < 0) { l$ret$7: do { var this_3 = this.qsv_1.ysl_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.msm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_2.jsm_1.rso(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.qsv_1.apn().tno(strings_getInstance().dmh_1))); if (this_3.y1k(prevValue_2, nextValue_2)) { break l$ret$7; } } } while (false); } var containsArg = this.xsv_1.n7t_1; if (!(5 <= containsArg ? containsArg <= 100 : false)) { l$ret$9: do { var this_4 = this.qsv_1.ysl_1; while (true) { var prevValue_3 = this_4.t2(); var nextValue_3 = prevValue_3.msm(VOID, VOID, VOID, VOID, VOID, VOID, this.qsv_1.apn().uno(strings_getInstance().fmr_1, ['5', '100'])); if (this_4.y1k(prevValue_3, nextValue_3)) { break l$ret$9; } } } while (false); } var this_5 = this.ysv_1.n7x_1; if (this_5 == null ? true : isBlank(this_5)) { l$ret$11: do { var this_6 = this.qsv_1.ysl_1; while (true) { var prevValue_4 = this_6.t2(); var nextValue_4 = prevValue_4.msm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_4.jsm_1.rso(VOID, VOID, VOID, VOID, VOID, this.qsv_1.apn().tno(strings_getInstance().wmw_1))); if (this_6.y1k(prevValue_4, nextValue_4)) { break l$ret$11; } } } while (false); } if (this.qsv_1.ysl_1.t2().ksm_1 ? this.xsv_1.g7t_1.equals(new Long(0, 0)) : false) { l$ret$13: do { var this_7 = this.qsv_1.ysl_1; while (true) { var prevValue_5 = this_7.t2(); var nextValue_5 = prevValue_5.msm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.qsv_1.apn().tno(strings_getInstance().dlz_1)); if (this_7.y1k(prevValue_5, nextValue_5)) { break l$ret$13; } } } while (false); } this.zsv_1 = null; var tmp6_safe_receiver = this.wsv_1.wsm(); var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.qjm_1; if (!equals(tmp7_safe_receiver == null ? null : tmp7_safe_receiver.g7t_1, this.xsv_1.g7t_1)) { this.hd_1 = 3; suspendResult = checkNoSubmissionsMade(this.qsv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.asw_1 = false; this.hd_1 = 4; continue $sm; } case 3: this.bsw_1 = suspendResult; this.asw_1 = !this.bsw_1; this.hd_1 = 4; continue $sm; case 4: if (this.asw_1) { this.zsv_1 = this.qsv_1.apn().tno(strings_getInstance().alu_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.wsv_1.wsm(); var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.qjm_1; if (!((tmp9_safe_receiver == null ? null : tmp9_safe_receiver.q7t_1) === this.xsv_1.q7t_1)) { tmp_10 = this.zsv_1 == null; } else { tmp_10 = false; } if (tmp_10) { this.hd_1 = 6; suspendResult = checkNoSubmissionsMade(this.qsv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.csw_1 = false; this.hd_1 = 7; continue $sm; } case 6: this.dsw_1 = suspendResult; this.csw_1 = !this.dsw_1; this.hd_1 = 7; continue $sm; case 7: if (this.csw_1) { this.zsv_1 = this.qsv_1.apn().tno(strings_getInstance().alu_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.xsv_1.q7t_1; if (tmp_12 === 2) { tmp_11 = this.xsv_1.w7t_1 < 1; } else { tmp_11 = false; } if (tmp_11) { l$ret$15: do { var this_8 = this.qsv_1.ysl_1; while (true) { var prevValue_6 = this_8.t2(); var nextValue_6 = prevValue_6.msm(VOID, VOID, VOID, this.qsv_1.apn().tno(strings_getInstance().xmr_1)); if (this_8.y1k(prevValue_6, nextValue_6)) { break l$ret$15; } } } while (false); } this.esw_1 = this.zsv_1; if (hasErrors_0(this.qsv_1.ysl_1.t2(), this.qsv_1) ? true : !(this.esw_1 == null)) { var tmp10_safe_receiver = this.esw_1; if (tmp10_safe_receiver == null) null; else { _get_snackDisaptcher__bp310a(this.qsv_1).pp6(new Snack(tmp10_safe_receiver)); } return Unit_instance; } var tmp_13; var tmp_14 = this.xsv_1.q7t_1; if (tmp_14 === 2) { var tmp11_safe_receiver = this.wsv_1.wsm(); var tmp12_safe_receiver = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.qjm_1; tmp_13 = !((tmp12_safe_receiver == null ? null : tmp12_safe_receiver.w7t_1) === this.xsv_1.w7t_1); } else { tmp_13 = false; } if (tmp_13) { this.hd_1 = 9; var tmp_15 = this.qsv_1.xsl_1(this.qsv_1.vpm(), this.qsv_1.apn()); var tmp13_safe_receiver = this.qsv_1.ysl_1.t2().wsm(); var tmp14_elvis_lhs = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.sjm_1; suspendResult = tmp_15.mok(tmp14_elvis_lhs == null ? emptyList() : tmp14_elvis_lhs, this.xsv_1.g7t_1, this.xsv_1.v7t_1, this.xsv_1.d7t_1, this.xsv_1.w7t_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.qsv_1.ysl_1; while (true) { var prevValue_7 = this_9.t2(); var tmp0_safe_receiver = prevValue_7.jsm_1.gso_1; var nextValue_7 = prevValue_7.msm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_7.jsm_1.rso(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vjm(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.qsv_1.ysl_1; var tmp_16; var tmp_17; var tmp0_safe_receiver_0 = this_10.t2().wsm(); var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.qjm_1; if (!equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g7t_1, new Long(0, 0))) { tmp_17 = !this_10.t2().ksm_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.jsm_1.gso_1; var tmp_18; if (tmp1_safe_receiver_0 == null) { tmp_18 = null; } else { var tmp0_safe_receiver_1 = prevValue_8.jsm_1.gso_1.qjm_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.vjm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_19, null); } var nextValue_8 = prevValue_8.msm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_8.jsm_1.rso(tmp_18)); if (tmp15_safe_receiver.y1k(prevValue_8, nextValue_8)) { break l$ret$19; } } } while (false); } this.qsv_1.lps(this.qsv_1.ysl_1.t2().wsm()); return Unit_instance; case 11: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 11) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda).l78 = function (completion) { return new ClazzAssignmentEditViewModel$onClickSave$slambda(this.qsv_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.z86($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.xsl_1 = peerReviewAllocationUseCaseFactory; var tmp_0 = this; var tmp0_completionCriteriaOptions = Companion_getInstance_140().uss_1; var tmp1_timeZone = Companion_getInstance_9().hlt().ils(); tmp_0.ysl_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.zsl_1 = asStateFlow(this.ysl_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.asm_1 = Instance(this, tmp$ret$0, null).a5d(this, snackDisaptcher$factory()); var tmp_3 = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_3.bsm_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.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.' call var tmp0_loadingState = Companion_getInstance_91().hp6_1; var tmp1_title = this.mpt(strings_getInstance().vmg_1, strings_getInstance().wmg_1); var nextValue = prevValue.ap6(VOID, tmp0_loadingState, tmp1_title, VOID, true, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_4 = this.tpm(); launch(tmp_4, VOID, VOID, ClazzAssignmentEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(ClazzAssignmentEditViewModel).fsw = function (groupSubmissionOn) { this.cpm_1.epi('groupSubmissionOn', groupSubmissionOn.toString()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ysl_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onGroupSubmissionOnChanged.' call var tmp; if (!(prevValue.lsm_1 == null) ? groupSubmissionOn : false) { tmp = prevValue.lsm_1; } else { tmp = null; } var nextValue = prevValue.msm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, groupSubmissionOn, tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentEditViewModel).gsw = function (assignment) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.ysl_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onAssignmentChanged.' call var tmp8_safe_receiver = prevValue.jsm_1.gso_1; var tmp9_courseBlockEditUiState = prevValue.jsm_1.rso(tmp8_safe_receiver == null ? null : tmp8_safe_receiver.vjm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, assignment)); var tmp; var tmp_0; if (!(prevValue.ism_1 == null)) { var tmp_1 = assignment == null ? null : assignment.n7t_1; var tmp6_safe_receiver = prevValue.wsm(); var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.qjm_1; tmp_0 = tmp_1 == (tmp7_safe_receiver == null ? null : tmp7_safe_receiver.n7t_1); } else { tmp_0 = false; } if (tmp_0) { tmp = prevValue.ism_1; } else { tmp = null; } var tmp10_sizeLimitError = tmp; var tmp_2; var tmp_3; var tmp_4; if (!(prevValue.hsm_1 == null)) { tmp_4 = (assignment == null ? null : assignment.l7t_1) === false; } else { tmp_4 = false; } if (tmp_4) { tmp_3 = !assignment.r7t_1; } else { tmp_3 = false; } if (tmp_3) { tmp_2 = prevValue.hsm_1; } else { tmp_2 = null; } var tmp11_submissionRequiredError = tmp_2; var tmp_5; var tmp_6; var tmp_7; if (!(prevValue.fsm_1 == null)) { var tmp_8 = assignment == null ? null : assignment.w7t_1; var tmp1_safe_receiver = prevValue.wsm(); var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qjm_1; tmp_7 = tmp_8 == (tmp2_safe_receiver == null ? null : tmp2_safe_receiver.w7t_1); } else { tmp_7 = false; } if (tmp_7) { var tmp_9 = assignment == null ? null : assignment.q7t_1; tmp_6 = tmp_9 === 2; } else { tmp_6 = false; } if (tmp_6) { tmp_5 = prevValue.fsm_1; } else { tmp_5 = null; } var tmp12_reviewerCountError = tmp_5; var nextValue = prevValue.msm(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.wsm(); var serializer = Companion_getInstance_13().n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver = this.hps_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp_10 = this; var tmp_11 = this.tpm(); tmp_10.hps_1 = launch(tmp_11, VOID, VOID, ClazzAssignmentEditViewModel$onAssignmentChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzAssignmentEditViewModel).hsn = function (courseBlock) { if (courseBlock == null) { Napier_getInstance().m5e('Change courseblock shoudl not really be null'); return Unit_instance; } var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.ysl_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onCourseBlockChanged.' call var tmp0_safe_receiver = prevValue.wsm(); var prevBlock = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jjm_1; var tmp8_$this = prevValue.jsm_1; var tmp1_safe_receiver = prevValue.wsm(); var tmp9_block = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.vjm(courseBlock); var tmp5_safe_receiver = prevValue.jsm_1.gso_1; var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.jjm_1; var tmp10_caMaxPointsError = this.npt(tmp6_safe_receiver == null ? null : tmp6_safe_receiver.u7x_1, courseBlock.u7x_1, prevValue.jsm_1.nso_1); var tmp; var tmp_0; var tmp_1; if (!(prevValue.jsm_1.mso_1 == null)) { tmp_1 = equals(prevBlock == null ? null : prevBlock.r7x_1, courseBlock.r7x_1); } else { tmp_1 = false; } if (tmp_1) { tmp_0 = prevBlock.q7x_1.equals(courseBlock.q7x_1); } else { tmp_0 = false; } if (tmp_0) { tmp = prevValue.jsm_1.mso_1; } else { tmp = null; } var tmp11_caDeadlineError = tmp; var tmp_2; var tmp_3; var tmp_4; if (!(prevValue.jsm_1.pso_1 == null)) { tmp_4 = equals(prevBlock == null ? null : prevBlock.r7x_1, courseBlock.r7x_1); } else { tmp_4 = false; } if (tmp_4) { tmp_3 = prevBlock.t7x_1.equals(courseBlock.t7x_1); } else { tmp_3 = false; } if (tmp_3) { tmp_2 = prevValue.jsm_1.pso_1; } else { tmp_2 = null; } var tmp12_caGracePeriodError = tmp_2; var tmp2_safe_receiver = prevValue.jsm_1.gso_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.jjm_1; var tmp13_caTitleError = this.npt(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.n7x_1, courseBlock.n7x_1, prevValue.jsm_1.lso_1); var nextValue = prevValue.msm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp8_$this.rso(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.wsm(); var serializer = Companion_getInstance_13().n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.hps_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_5 = this; var tmp_6 = this.tpm(); tmp_5.hps_1 = launch(tmp_6, VOID, VOID, ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzAssignmentEditViewModel).hsw = function (pictureUri) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.ysl_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onPictureChanged.' call var tmp1_safe_receiver = prevValue.jsm_1.gso_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.jsm_1.gso_1.kjm_1; tmp = tmp1_safe_receiver.vjm(VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xjz(VOID, VOID, pictureUri)); } var nextValue = prevValue.msm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.jsm_1.rso(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.wsm(); var serializer = Companion_getInstance_13().n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.hps_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.tpm(); tmp_0.hps_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentEditViewModel$onPictureChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzAssignmentEditViewModel).isw = function () { var tmp = serializer_0(StringCompanionObject_instance); Companion_getInstance_118(); var tmp0_safe_receiver = this.ysl_1.t2().wsm(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qjm_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v7t_1; this.ipn('CourseGroups', 'groupSet', null, tmp, mapOf_0(to('clazzUid', (tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs).toString()))); }; protoOf(ClazzAssignmentEditViewModel).jsw = function () { var tmp0_safe_receiver = this.ysl_1.t2().wsm(); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qjm_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_17.n4r()); var tmp_1 = this.m4r(); var tmp_2 = ListSerializer(Companion_instance_17.n4r()); var tmp2_safe_receiver = this.ysl_1.t2().wsm(); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.sjm_1; var tmp_3 = to('allocations', tmp_1.r45(tmp_2, tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs)); var tmp_4 = to('groupSetUid', assignmentVal.g7t_1.toString()); Companion_getInstance_118(); var tmp_5 = to('clazzUid', assignmentVal.v7t_1.toString()); var tmp_6 = to('numReviewers', assignmentVal.w7t_1.toString()); Companion_getInstance_108(); this.ipn('PeerReviewerAllocationEdit', 'peerAllocationsResult', null, tmp_0, mapOf([tmp_3, tmp_4, tmp_5, tmp_6, to('clazzAssignmentUid', assignmentVal.d7t_1.toString())])); }; protoOf(ClazzAssignmentEditViewModel).ur3 = function () { if (!this.ysl_1.t2().csm_1) return Unit_instance; var tmp = ClazzAssignmentEditViewModel$onClickSave$lambda(this); this.ppt(tmp, ClazzAssignmentEditViewModel$onClickSave$slambda_0(this, null)); }; function Companion_123() { Companion_instance_171 = this; this.uss_1 = listOf([CompletionCriteria_ASSIGNMENT_SUBMITTED_getInstance(), CompletionCriteria_ASSIGNMENT_GRADED_getInstance()]); } protoOf(Companion_123).n4r = function () { return $serializer_getInstance_66(); }; var Companion_instance_171; function Companion_getInstance_140() { if (Companion_instance_171 == null) new Companion_123(); return Companion_instance_171; } function $serializer_54() { $serializer_instance_54 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditUiState', this, 10); tmp0_serialDesc.t4f('fieldsEnabled', true); tmp0_serialDesc.t4f('markingTypeEnabled', true); tmp0_serialDesc.t4f('groupSetEnabled', true); tmp0_serialDesc.t4f('reviewerCountError', true); tmp0_serialDesc.t4f('courseTerminology', true); tmp0_serialDesc.t4f('submissionRequiredError', true); tmp0_serialDesc.t4f('sizeLimitError', true); tmp0_serialDesc.t4f('courseBlockEditUiState', true); tmp0_serialDesc.t4f('groupSubmissionOn', true); tmp0_serialDesc.t4f('groupSetError', true); this.ksw_1 = tmp0_serialDesc; } protoOf($serializer_54).q44 = function () { return this.ksw_1; }; protoOf($serializer_54).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_10()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), $serializer_getInstance_68(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_54).s44 = function (decoder) { var tmp0_desc = this.ksw_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = false; var tmp5_local1 = false; var tmp6_local2 = false; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = false; var tmp13_local9 = null; var tmp14_input = decoder.i48(tmp0_desc); if (tmp14_input.x48()) { tmp4_local0 = tmp14_input.k48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.k48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.k48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.w48(tmp0_desc, 4, $serializer_getInstance_10(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.u48(tmp0_desc, 7, $serializer_getInstance_68(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.k48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.k48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.k48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.k48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.w48(tmp0_desc, 4, $serializer_getInstance_10(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.u48(tmp0_desc, 7, $serializer_getInstance_68(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.k48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.j48(tmp0_desc); return ClazzAssignmentEditUiState_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); }; protoOf($serializer_54).lsw = function (encoder, value) { var tmp0_desc = this.ksw_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.csm_1 === false)) { tmp1_output.o49(tmp0_desc, 0, value.csm_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.dsm_1 === true)) { tmp1_output.o49(tmp0_desc, 1, value.dsm_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.esm_1 === true)) { tmp1_output.o49(tmp0_desc, 2, value.esm_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.fsm_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.fsm_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.gsm_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, $serializer_getInstance_10(), value.gsm_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.hsm_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.hsm_1); } if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.ism_1 == null)) { tmp1_output.a4a(tmp0_desc, 6, StringSerializer_getInstance(), value.ism_1); } if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.jsm_1.equals(new CourseBlockEditUiState(VOID, VOID, Companion_getInstance_140().uss_1))) { tmp1_output.y49(tmp0_desc, 7, $serializer_getInstance_68(), value.jsm_1); } if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.ksm_1 === false)) { tmp1_output.o49(tmp0_desc, 8, value.ksm_1); } if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.lsm_1 == null)) { tmp1_output.a4a(tmp0_desc, 9, StringSerializer_getInstance(), value.lsm_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_54).r44 = function (encoder, value) { return this.lsw(encoder, value instanceof ClazzAssignmentEditUiState ? value : THROW_CCE()); }; var $serializer_instance_54; function $serializer_getInstance_66() { if ($serializer_instance_54 == null) new $serializer_54(); return $serializer_instance_54; } 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_66().ksw_1); } if (0 === (seen1 & 1)) $this.csm_1 = false; else $this.csm_1 = fieldsEnabled; if (0 === (seen1 & 2)) $this.dsm_1 = true; else $this.dsm_1 = markingTypeEnabled; if (0 === (seen1 & 4)) $this.esm_1 = true; else $this.esm_1 = groupSetEnabled; if (0 === (seen1 & 8)) $this.fsm_1 = null; else $this.fsm_1 = reviewerCountError; if (0 === (seen1 & 16)) $this.gsm_1 = null; else $this.gsm_1 = courseTerminology; if (0 === (seen1 & 32)) $this.hsm_1 = null; else $this.hsm_1 = submissionRequiredError; if (0 === (seen1 & 64)) $this.ism_1 = null; else $this.ism_1 = sizeLimitError; if (0 === (seen1 & 128)) $this.jsm_1 = new CourseBlockEditUiState(VOID, VOID, Companion_getInstance_140().uss_1); else $this.jsm_1 = courseBlockEditUiState; if (0 === (seen1 & 256)) $this.ksm_1 = false; else $this.ksm_1 = groupSubmissionOn; if (0 === (seen1 & 512)) $this.lsm_1 = null; else $this.lsm_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_140(); 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_140().uss_1) : courseBlockEditUiState; groupSubmissionOn = groupSubmissionOn === VOID ? false : groupSubmissionOn; groupSetError = groupSetError === VOID ? null : groupSetError; this.csm_1 = fieldsEnabled; this.dsm_1 = markingTypeEnabled; this.esm_1 = groupSetEnabled; this.fsm_1 = reviewerCountError; this.gsm_1 = courseTerminology; this.hsm_1 = submissionRequiredError; this.ism_1 = sizeLimitError; this.jsm_1 = courseBlockEditUiState; this.ksm_1 = groupSubmissionOn; this.lsm_1 = groupSetError; } protoOf(ClazzAssignmentEditUiState).wsm = function () { return this.jsm_1.gso_1; }; protoOf(ClazzAssignmentEditUiState).msw = function () { var tmp0_safe_receiver = this.wsm(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qjm_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q7t_1; return tmp === 2; }; protoOf(ClazzAssignmentEditUiState).nsw = function () { var tmp0_safe_receiver = this.wsm(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qjm_1; return (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r7t_1) === true; }; protoOf(ClazzAssignmentEditUiState).osw = function () { var tmp0_safe_receiver = this.wsm(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qjm_1; return (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l7t_1) === true; }; protoOf(ClazzAssignmentEditUiState).rst = function (fieldsEnabled) { return this.msm(fieldsEnabled, VOID, VOID, VOID, VOID, VOID, VOID, this.jsm_1.rso(VOID, VOID, VOID, fieldsEnabled)); }; protoOf(ClazzAssignmentEditUiState).psw = 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).msm = function (fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError, $super) { fieldsEnabled = fieldsEnabled === VOID ? this.csm_1 : fieldsEnabled; markingTypeEnabled = markingTypeEnabled === VOID ? this.dsm_1 : markingTypeEnabled; groupSetEnabled = groupSetEnabled === VOID ? this.esm_1 : groupSetEnabled; reviewerCountError = reviewerCountError === VOID ? this.fsm_1 : reviewerCountError; courseTerminology = courseTerminology === VOID ? this.gsm_1 : courseTerminology; submissionRequiredError = submissionRequiredError === VOID ? this.hsm_1 : submissionRequiredError; sizeLimitError = sizeLimitError === VOID ? this.ism_1 : sizeLimitError; courseBlockEditUiState = courseBlockEditUiState === VOID ? this.jsm_1 : courseBlockEditUiState; groupSubmissionOn = groupSubmissionOn === VOID ? this.ksm_1 : groupSubmissionOn; groupSetError = groupSetError === VOID ? this.lsm_1 : groupSetError; return $super === VOID ? this.psw(fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError) : $super.psw.call(this, fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError); }; protoOf(ClazzAssignmentEditUiState).toString = function () { return 'ClazzAssignmentEditUiState(fieldsEnabled=' + this.csm_1 + ', markingTypeEnabled=' + this.dsm_1 + ', groupSetEnabled=' + this.esm_1 + ', reviewerCountError=' + this.fsm_1 + ', courseTerminology=' + this.gsm_1 + ', submissionRequiredError=' + this.hsm_1 + ', sizeLimitError=' + this.ism_1 + ', courseBlockEditUiState=' + this.jsm_1 + ', groupSubmissionOn=' + this.ksm_1 + ', groupSetError=' + this.lsm_1 + ')'; }; protoOf(ClazzAssignmentEditUiState).hashCode = function () { var result = getBooleanHashCode(this.csm_1); result = imul(result, 31) + getBooleanHashCode(this.dsm_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.esm_1) | 0; result = imul(result, 31) + (this.fsm_1 == null ? 0 : getStringHashCode(this.fsm_1)) | 0; result = imul(result, 31) + (this.gsm_1 == null ? 0 : hashCode(this.gsm_1)) | 0; result = imul(result, 31) + (this.hsm_1 == null ? 0 : getStringHashCode(this.hsm_1)) | 0; result = imul(result, 31) + (this.ism_1 == null ? 0 : getStringHashCode(this.ism_1)) | 0; result = imul(result, 31) + this.jsm_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.ksm_1) | 0; result = imul(result, 31) + (this.lsm_1 == null ? 0 : getStringHashCode(this.lsm_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.csm_1 === tmp0_other_with_cast.csm_1)) return false; if (!(this.dsm_1 === tmp0_other_with_cast.dsm_1)) return false; if (!(this.esm_1 === tmp0_other_with_cast.esm_1)) return false; if (!(this.fsm_1 == tmp0_other_with_cast.fsm_1)) return false; if (!equals(this.gsm_1, tmp0_other_with_cast.gsm_1)) return false; if (!(this.hsm_1 == tmp0_other_with_cast.hsm_1)) return false; if (!(this.ism_1 == tmp0_other_with_cast.ism_1)) return false; if (!this.jsm_1.equals(tmp0_other_with_cast.jsm_1)) return false; if (!(this.ksm_1 === tmp0_other_with_cast.ksm_1)) return false; if (!(this.lsm_1 == tmp0_other_with_cast.lsm_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.ysw_1 = this$0; this.zsw_1 = $savedStateHandle; this.asx_1 = $primaryKeyManager; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda).usx = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.usx(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.ysw_1.fpn(this.zsw_1, 'allocations', ListSerializer(Companion_instance_17.n4r()), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.csx_1 = suspendResult; this.hd_1 = 2; suspendResult = this.bsx_1.q7e().d7s(this.ysw_1.vsy_1, this.ysw_1.ysy_1, systemTimeInMillis(), this.ysw_1.apn().tno(strings_getInstance().ymq_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.dsx_1 = suspendResult; Napier_getInstance().i5e('Number of submitters: ' + this.dsx_1.u()); var tmp_0 = this; tmp_0.esx_1 = this.dsx_1; var tmp_1 = this; tmp_1.fsx_1 = this.esx_1; var tmp_2 = this; tmp_2.gsx_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.esx_1, 10)); this.hsx_1 = this.fsx_1.w(); this.hd_1 = 3; continue $sm; case 3: if (!this.hsx_1.f()) { this.hd_1 = 8; continue $sm; } this.isx_1 = this.hsx_1.e(); var tmp_3 = this; tmp_3.jsx_1 = this.isx_1; this.ksx_1 = new AssignmentSubmitterSummary(this.jsx_1.u7w_1, this.jsx_1.t7w_1); var tmp_4 = this; var tmp0_safe_receiver = this.csx_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.vfg_1.equals(this.jsx_1.u7w_1)) { destination.i1(element); } } tmp_5 = destination; } var tmp1_elvis_lhs = tmp_5; tmp_4.lsx_1 = trimToSize(tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs, this.ysw_1.wsy_1); var tmp_6 = this; tmp_6.msx_1 = this.ysw_1.wsy_1; if (this.lsx_1.u() < this.msx_1) { var tmp_7 = this; tmp_7.osx_1 = until(this.lsx_1.u(), this.msx_1); var tmp_8 = this; tmp_8.psx_1 = this.osx_1; var tmp_9 = this; tmp_9.qsx_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.osx_1, 10)); this.rsx_1 = this.psx_1.w(); this.hd_1 = 4; continue $sm; } else { var tmp_10 = this; tmp_10.nsx_1 = this.lsx_1; this.hd_1 = 7; continue $sm; } case 4: if (!this.rsx_1.f()) { this.hd_1 = 6; continue $sm; } this.ssx_1 = this.rsx_1.e(); var tmp_11 = this; tmp_11.tsx_1 = this.ssx_1; this.hd_1 = 5; suspendResult = this.asx_1.o62(140, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var ARGUMENT = suspendResult; var ARGUMENT_0 = new PeerReviewerAllocation(ARGUMENT, VOID, this.jsx_1.u7w_1, this.ysw_1.xsy_1); this.qsx_1.i1(ARGUMENT_0); this.hd_1 = 4; continue $sm; case 6: var ARGUMENT_1 = this.qsx_1; this.nsx_1 = plus(this.lsx_1, ARGUMENT_1); this.hd_1 = 7; continue $sm; case 7: var ARGUMENT_2 = this.nsx_1; var ARGUMENT_3 = new AssignmentSubmitterAndAllocations(this.ksx_1, ARGUMENT_2); this.gsx_1.i1(ARGUMENT_3); this.hd_1 = 3; continue $sm; case 8: return this.gsx_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).vn7 = function (db, completion) { var i = new PeerReviewerAllocationEditViewModel$slambda$slambda(this.ysw_1, this.zsw_1, this.asx_1, completion); i.bsx_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.usx(db, $completion); }; l.$arity = 1; return l; } function PeerReviewerAllocationEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).hsz = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.hsz($completion); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).l78 = function (completion) { return new PeerReviewerAllocationEditViewModel$slambda$slambda_1(completion); }; function PeerReviewerAllocationEditViewModel$slambda$slambda_2(resultContinuation) { var i = new PeerReviewerAllocationEditViewModel$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.hsz($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.tsy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditViewModel...' call var nextValue = prevValue.jsz(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.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function Companion_124() { this.ksz_1 = 'allocations'; this.lsz_1 = 'groupSetUid'; this.msz_1 = 'numReviewers'; this.nsz_1 = 'PeerReviewerAllocationEdit'; } var Companion_instance_172; function Companion_getInstance_141() { return Companion_instance_172; } function PeerReviewerAllocationEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.wsz_1 = this$0; this.xsz_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.zsz_1 = get_doorPrimaryKeyManager(this.wsz_1.vpm()); this.hd_1 = 1; var tmp_0 = ListSerializer(Companion_getInstance_14().n4r()); var tmp_1 = PeerReviewerAllocationEditViewModel$slambda$slambda_0(this.wsz_1, this.xsz_1, this.zsz_1, null); var tmp_2 = PeerReviewerAllocationEditViewModel$slambda$slambda_2(null); suspendResult = this.wsz_1.kpn(tmp_0, VOID, VOID, tmp_1, tmp_2, PeerReviewerAllocationEditViewModel$slambda$lambda(this.wsz_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.wsz_1.gpm_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.wsz_1.apn().tno(strings_getInstance().qm2_1); var nextValue = prevValue.ap6(VOID, VOID, VOID, VOID, true, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, PeerReviewerAllocationEditViewModel$onClickSave$ref(this.wsz_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.wsz_1, this.xsz_1, completion); i.ysz_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.tfg_1.equals($allocation.tfg_1); }; } function PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda(this$0, resultContinuation) { this.it0_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.it0_1.tsy_1.t2().isz_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var list = element.ljq_1; addAll(destination, list); } suspendResult = this.it0_1.ssy_1.lok(destination, this.it0_1.ysy_1, this.it0_1.vsy_1, this.it0_1.xsy_1, this.it0_1.wsy_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.it0_1.tsy_1; while (true) { var prevValue = this_1.t2(); var this_2 = prevValue.isz_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.vfg_1.equals(item.kjq_1.h7v_1)) { destination_1.i1(element_0); } } destination_0.i1(new AssignmentSubmitterAndAllocations(item.kjq_1, destination_1)); } var nextValue = prevValue.jsz(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.it0_1, completion); i.jt0_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(onActiveEndpoint(di)).f58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(di).f58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp$ret$3 = tmp_3.d58(tmp$ret$2, null); tmp = new UpdatePeerReviewAllocationUseCase(tmp_2, tmp$ret$3); } else { tmp = updatePeerReviewAllocationUseCase; } updatePeerReviewAllocationUseCase = tmp; UstadEditViewModel.call(this, di, savedStateHandle, 'PeerReviewerAllocationEdit'); this.ssy_1 = updatePeerReviewAllocationUseCase; this.tsy_1 = MutableStateFlow(new PeerReviewerAllocationEditUIState()); this.usy_1 = asStateFlow(this.tsy_1); var tmp_5 = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_5.vsy_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.wsy_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.xsy_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.ysy_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.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, this.apn().tno(strings_getInstance().rmv_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_9 = this.tpm(); launch(tmp_9, VOID, VOID, PeerReviewerAllocationEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(PeerReviewerAllocationEditViewModel).kt0 = function (allocation) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tsy_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.isz_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.kjq_1.h7v_1.equals(allocation.vfg_1)) { tmp = item.njq(VOID, replace_0(item.ljq_1, allocation, PeerReviewerAllocationEditViewModel$onAllocationChanged$lambda(allocation))); } else { tmp = item; } var tmp$ret$0 = tmp; destination.i1(tmp$ret$0); } var nextValue = prevValue.jsz(destination); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(PeerReviewerAllocationEditViewModel).lt0 = function () { var tmp = this.tpm(); launch(tmp, VOID, VOID, PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda_0(this, null)); }; protoOf(PeerReviewerAllocationEditViewModel).ur3 = function () { // Inline function 'kotlin.collections.flatMap' call // Inline function 'kotlin.collections.flatMapTo' call var this_0 = this.tsy_1.t2().isz_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.ljq_1; addAll(destination, list); } this.lps(destination); }; function PeerReviewerAllocationEditUIState(submitterListWithAllocations) { submitterListWithAllocations = submitterListWithAllocations === VOID ? emptyList() : submitterListWithAllocations; this.isz_1 = submitterListWithAllocations; } protoOf(PeerReviewerAllocationEditUIState).mt0 = function (allocation) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.isz_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditUIState.reviewerOptionsForAllocation.' call if (element.kjq_1.h7v_1.equals(allocation.vfg_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.ljq_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.tfg_1.equals(allocation.tfg_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.ufg_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.isz_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.kjq_1.h7v_1.equals(allocation.vfg_1) ? !otherMarkersAlreadySelected.a1(element_1.kjq_1.h7v_1) : false) { destination_1.i1(element_1); } } return destination_1; }; protoOf(PeerReviewerAllocationEditUIState).jsz = function (submitterListWithAllocations) { return new PeerReviewerAllocationEditUIState(submitterListWithAllocations); }; protoOf(PeerReviewerAllocationEditUIState).toString = function () { return 'PeerReviewerAllocationEditUIState(submitterListWithAllocations=' + this.isz_1 + ')'; }; protoOf(PeerReviewerAllocationEditUIState).hashCode = function () { return hashCode(this.isz_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.isz_1, tmp0_other_with_cast.isz_1)) return false; return true; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.vt0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda).xt0 = function (it, $completion) { var tmp = this.yt0(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.xt0((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.vt0_1.vt1_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.et3(VOID, this.wt0_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).yt0 = function (it, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda(this.vt0_1, completion); i.wt0_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.xt0(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.nt3_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.nt3_1.wpm().p7d().tc7(this.nt3_1.zt1_1); var tmp_1 = ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda_0(this.nt3_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_17(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this.nt3_1, completion); i.ot3_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).gs8 = function (submissions, submissionFiles, $completion) { var tmp = this.hs8(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.gs8(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.xt3_1, this.yt3_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).hs8 = function (submissions, submissionFiles, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(completion); i.xt3_1 = submissions; i.yt3_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.gs8(submissions, submissionFiles, $completion); }; l.$arity = 2; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.ht4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).ss8 = function (it, $completion) { var tmp = this.ts8(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.ss8((!(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.ht4_1.vt1_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.et3(VOID, VOID, VOID, this.it4_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).ts8 = function (it, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this.ht4_1, completion); i.it4_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.ss8(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.rt4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5).es9 = function (it, $completion) { var tmp = this.fs9(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.es9((!(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.rt4_1.vt1_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.et3(VOID, VOID, VOID, VOID, VOID, this.st4_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).fs9 = function (it, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5(this.rt4_1, completion); i.st4_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.es9(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.bt5_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.bt5_1).pnt(this.bt5_1.at2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var submitterName = suspendResult; l$ret$1: do { var this_0 = this.bt5_1.gpm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ap6(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.bt5_1, completion); i.ct5_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.lt5_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.mt5_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_0(this.lt5_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.lt5_1, completion); i.mt5_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.vt5_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.xt5_1 = this.vt5_1.wpm().r7e().xbn(this.vt5_1.at2_1, this.vt5_1.zt1_1); this.yt5_1 = this.vt5_1.wpm().s7e().ibw(this.vt5_1.at2_1, this.vt5_1.zt1_1); this.hd_1 = 1; var tmp_0 = distinctUntilChanged(combine(this.xt5_1, this.yt5_1, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_2(null))); var tmp_1 = ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_4(this.vt5_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_17(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3(this.vt5_1, completion); i.wt5_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.ht6_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.ht6_1.wpm().t7e().wbh(this.ht6_1.at2_1, this.ht6_1.zt1_1); var tmp_1 = ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_6(this.ht6_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_17(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5(this.ht6_1, completion); i.it6_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.rt6_1 = this$0; this.st6_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda).ut6 = function (permissionPair, $completion) { var tmp = this.vt6(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.ut6(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.tt6_1.wda_1) { l$ret$1: do { var this_0 = this.rt6_1.vt1_1; while (true) { var prevValue = this_0.t2(); var tmp0_privateCommentsList = this.rt6_1.ct2_1; var tmp1_activeUserPersonUid = this.rt6_1.upm(); var tmp2_activeUserSubmitterId = this.tt6_1.yda_1; var tmp_0; if (this.tt6_1.vda_1) { var this_1 = new CourseAssignmentMark(); this_1.rbi_1 = -1.0; tmp_0 = this_1; } else { tmp_0 = null; } var tmp3_draftMark = tmp_0; var tmp4_showModerateOptions = this.tt6_1.xda_1; var nextValue = prevValue.et3(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.st6_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_0(this.rt6_1, null)); launch(this.st6_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_2(this.rt6_1, null)); launch(this.st6_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_4(this.rt6_1, null)); launch(this.st6_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_6(this.rt6_1, null)); } else { l$ret$3: do { var this_2 = this.rt6_1.vt1_1; while (true) { var prevValue_0 = this_2.t2(); var tmp0_submissionList = emptyList(); var tmp1_marks = emptyList(); var nextValue_0 = prevValue_0.et3(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).vt6 = function (permissionPair, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda(this.rt6_1, this.st6_1, completion); i.tt6_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.ut6(permissionPair, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda($permissionFlow, this$0, resultContinuation) { this.et7_1 = $permissionFlow; this.ft7_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.et7_1); suspendResult = collectLatest(tmp_0, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda_0(this.ft7_1, this.gt7_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.et7_1, this.ft7_1, completion); i.gt7_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.pt7_1 = $this_launch; this.qt7_1 = $permissionFlow; this.rt7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.pt7_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda_0(this.qt7_1, this.rt7_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda).l78 = function (completion) { return new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda(this.pt7_1, this.qt7_1, this.rt7_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.z86($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.vt1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.openSubmissionFileAsBlob...' call var nextValue = prevValue.et3(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.dt2_1; assignmentSubmitterNameUseCase$factory_0(); return this_0.t2(); } function _get_openBlobUiUseCase__fzusqz_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ft2_1; openBlobUiUseCase$factory_2(); return this_0.t2(); } function _get_submitMarkUseCase__y8b5kx($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.gt2_1; submitMarkUseCase$factory_0(); return this_0.t2(); } function openSubmissionFileAsBlob_0($this, file, intent) { var tmp0_elvis_lhs = file.cby_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var submissionFile = tmp; var tmp1_safe_receiver = $this.et2_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.mr(); } var tmp_0 = $this; var tmp_1 = $this.tpm(); tmp_0.et2_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda_0($this, submissionFile, intent, null)); } function Companion_125() { this.st7_1 = 'assignmentUid'; this.tt7_1 = 'submitterUid'; this.ut7_1 = 'CourseAssignmentSubmitter'; } var Companion_instance_173; function Companion_getInstance_142() { return Companion_instance_173; } function sam$kotlinx_coroutines_flow_FlowCollector$0_17(function_0) { this.vt7_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_17).t1d = function (value, $completion) { return this.vt7_1(value, $completion); }; function ClazzAssignmentSubmitterDetailViewModel$privateCommentsPagingSourceFactory$lambda(this$0) { return function () { return this$0.wpm().u7e().v9y(this$0.at2_1, this$0.zt1_1, false); }; } function ClazzAssignmentSubmitterDetailViewModel$slambda(this$0, $permissionFlow, resultContinuation) { this.et8_1 = this$0; this.ft8_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.et8_1.vt1_1, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda_0(this.gt8_1, this.ft8_1, this.et8_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.et8_1, this.ft8_1, completion); i.gt8_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.pt8_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.pt8_1.wpm().u7e(); var this_0 = new Comments(); this_0.q9z_1 = this.pt8_1.at2_1; this_0.r9z_1 = this.pt8_1.vt1_1.t2().wt2_1; this_0.p9z_1 = this.pt8_1.upm(); this_0.n9z_1 = this.pt8_1.zt1_1; this_0.m9z_1 = this.pt8_1.xt1_1.t2(); this_0.u9z_1 = systemTimeInMillis(); suspendResult = tmp_0.s9y(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_1 = this; this.pt8_1.xt1_1.x1k(''); tmp_1.rt8_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.pt8_1.cpn(Companion_getInstance_91().ip6_1); return Unit_instance; case 4: this.id_1 = 5; var t = this.kd_1; this.pt8_1.cpn(Companion_getInstance_91().ip6_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.pt8_1, completion); i.qt8_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.at9_1 = this$0; this.bt9_1 = $assignment; this.ct9_1 = $draftMark; this.dt9_1 = $submissions; this.et9_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.at9_1); var tmp_1 = this.at9_1.spm().tnf().zn2_1; var this_0 = this.dt9_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.ajp_1); } suspendResult = tmp_0.ynr(tmp_1, this.bt9_1, this.at9_1.bt2_1, this.at9_1.at2_1, this.ct9_1, destination, this.et9_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.at9_1.vt1_1; while (true) { var prevValue = this_1.t2(); var this_2 = new CourseAssignmentMark(); this_2.rbi_1 = -1.0; var nextValue = prevValue.et3(VOID, VOID, VOID, VOID, VOID, VOID, this_2); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); tmp_2.gt9_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.at9_1.ypm().pp6(new Snack('Error: ' + e.message)); Napier_getInstance().m5e('Exception submitting mark:', e); tmp_4.gt9_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.at9_1.vt1_1; while (true) { var prevValue_0 = this_3.t2(); var nextValue_0 = prevValue_0.et3(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.at9_1.vt1_1; while (true) { var prevValue_1 = this_4.t2(); var nextValue_1 = prevValue_1.et3(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.at9_1, this.bt9_1, this.ct9_1, this.dt9_1, this.et9_1, completion); i.ft9_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.pt9_1 = this$0; this.qt9_1 = $submissionFile; this.rt9_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.tt9_1 = _get_openBlobUiUseCase__fzusqz_0(this.pt9_1); if (this.tt9_1 == null) { this.ut9_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = asBlobOpenItem(this.qt9_1); suspendResult = this.tt9_1.vnu(tmp_0, ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda$lambda(this.pt9_1), this.rt9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_1 = this; tmp_1.ut9_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.pt9_1, this.qt9_1, this.rt9_1, completion); i.st9_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.dta_1 = this$0; this.eta_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.dta_1.wpm().u7e().t9y(this.eta_1.l9z_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.dta_1.ypm().pp6(new Snack(this.dta_1.apn().tno(strings_getInstance().tlu_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.dta_1, this.eta_1, completion); i.fta_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.vt1_1 = MutableStateFlow(new ClazzAssignmentSubmitterDetailUiState(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.apn().vp4())); this.wt1_1 = asStateFlow(this.vt1_1); this.xt1_1 = MutableStateFlow(''); this.yt1_1 = asStateFlow(this.xt1_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.zt1_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.at2_1 = tmp_2; var tmp_3 = this; Companion_getInstance_118(); 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.bt2_1 = tmp_4; var tmp_5 = this; tmp_5.ct2_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.spm().mng(); var trigger = this.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_7 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); var tmp$ret$1 = tmp_7.h57(tmp$ret$0, context); var this_0 = On(this, tmp$ret$1, trigger); // Inline function 'org.kodein.type.generic' call var tmp_9 = typeToken(createKType(getKClass(GetAssignmentSubmitterNameUseCase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); tmp_6.dt2_1 = Instance(this_0, tmp$ret$3, null).a5d(this, assignmentSubmitterNameUseCase$factory()); this.et2_1 = null; var tmp_10 = this; // Inline function 'org.kodein.di.instanceOrNull' call var this_1 = onActiveEndpoint(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.ft2_1 = InstanceOrNull(this_1, tmp$ret$5, null).a5d(this, openBlobUiUseCase$factory_1()); var tmp_12 = this; // Inline function 'org.kodein.di.instance' call var this_2 = onActiveEndpoint(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.gt2_1 = Instance(this_2, tmp$ret$7, null).a5d(this, submitMarkUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.vt1_1; while (true) { var prevValue = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.' call var tmp_14 = this.spm().tnf().zn2_1.ok4(); var tmp0_safe_receiver_2 = this.spm().tnf().bn3_1; var nextValue = prevValue.et3(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.t96_1); if (this_3.y1k(prevValue, nextValue)) { break $l$block; } } } var permissionFlow = this.wpm().o7f().qd6(this.upm(), this.zt1_1, this.bt2_1, this.at2_1); var tmp_15 = this.tpm(); launch(tmp_15, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda_0(this, permissionFlow, null)); } protoOf(ClazzAssignmentSubmitterDetailViewModel).gta = function (text) { this.xt1_1.x1k(text); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).hta = function () { if (this.dpn().equals(Companion_getInstance_91().hp6_1)) return Unit_instance; this.cpn(Companion_getInstance_91().hp6_1); var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda_0(this, null)); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).ita = function (draftMark) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vt1_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.nt2_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rbi_1; if (tmp_0 == (draftMark == null ? null : draftMark.rbi_1)) { tmp = prevValue.ht2_1; } else { tmp = null; } var tmp2_submitMarkError = tmp; var nextValue = prevValue.et3(tmp2_submitMarkError, VOID, VOID, VOID, VOID, VOID, draftMark); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentSubmitterDetailViewModel).jta = function () { if (!this.vt1_1.t2().kta()) return Unit_instance; var tmp0_elvis_lhs = this.vt1_1.t2().nt2_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var draftMark = tmp; var submissions = this.vt1_1.t2().kt2_1; var tmp1_elvis_lhs = this.vt1_1.t2().it2_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.acb_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.bcb_1; var tmp_2; if (tmp3_elvis_lhs == null) { return Unit_instance; } else { tmp_2 = tmp3_elvis_lhs; } var assignment = tmp_2; if (draftMark.rbi_1 === -1.0) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vt1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onClickSubmitMark.' call var nextValue = prevValue.et3(this.apn().tno(strings_getInstance().dlz_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } else { if (draftMark.rbi_1 < 0.0) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.vt1_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.et3(this.apn().tno(strings_getInstance().xmr_1)); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } else { var tmp_3 = draftMark.rbi_1; var tmp4_elvis_lhs = courseBlock.u7x_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.vt1_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.et3(this.apn().tno(strings_getInstance().vmw_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.vt1_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.et3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_3.y1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } var tmp_4 = this.tpm(); launch(tmp_4, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda_0(this, assignment, draftMark, submissions, courseBlock, null)); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).lta = function (option) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vt1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onClickGradeFilterChip.' call var nextValue = prevValue.et3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, option.dp7_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentSubmitterDetailViewModel).usj = function (submission) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vt1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onToggleSubmissionExpandCollapse.' call var nextValue = prevValue.et3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toggle_0(prevValue.bt3_1, submission.qbo_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentSubmitterDetailViewModel).xsj = function (file) { openSubmissionFileAsBlob_0(this, file, OpenBlobIntent_VIEW_getInstance()); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).ysj = function (comments) { var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda_0(this, comments, null)); }; function _get_latestUniqueMarksByMarker__e0a3pq_0($this) { return latestUniqueMarksByMarker($this.mt2_1); } function sam$kotlin_Comparator$0_1(function_0) { this.mta_1 = function_0; } protoOf(sam$kotlin_Comparator$0_1).pa = function (a, b) { return this.mta_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.xbi_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ubi_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.xbi_1; var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.ubi_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().gmw_1; var tmp_2 = new MessageIdOption2(tmp_1, 1); var tmp_3 = strings_getInstance().wma_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.ilp(), Companion_getInstance_9().hlt()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; collapsedSubmissions = collapsedSubmissions === VOID ? emptySet() : collapsedSubmissions; openingFileState = openingFileState === VOID ? null : openingFileState; showModerateOptions = showModerateOptions === VOID ? false : showModerateOptions; this.ht2_1 = submitMarkError; this.it2_1 = block; this.jt2_1 = gradeFilterChips; this.kt2_1 = submissionList; this.lt2_1 = submissionAttachments; this.mt2_1 = marks; this.nt2_1 = draftMark; this.ot2_1 = markSubmissionInProgress; this.pt2_1 = markNextStudentVisible; this.qt2_1 = fieldsEnabled; this.rt2_1 = markListSelectedChipId; this.st2_1 = markListFilterOptions; this.tt2_1 = privateCommentsList; this.ut2_1 = newPrivateCommentTextVisible; this.vt2_1 = activeUserPersonUid; this.wt2_1 = activeUserSubmitterId; this.xt2_1 = activeUserPersonName; this.yt2_1 = activeUserPictureUri; this.zt2_1 = localDateTimeNow; this.at3_1 = dayOfWeekStrings; this.bt3_1 = collapsedSubmissions; this.ct3_1 = openingFileState; this.dt3_1 = showModerateOptions; } protoOf(ClazzAssignmentSubmitterDetailUiState).kta = function () { var tmp; if (!this.ot2_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.it2_1; var tmp_0; if (!((it == null ? null : it.bcb_1) == null)) { tmp_0 = !(it.acb_1 == null); } else { tmp_0 = false; } tmp = tmp_0; } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).isk = function () { return submissionStatusFor(this.mt2_1, this.kt2_1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).nta = 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.xbi_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rbi_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).ota = function (mark) { return new UstadCourseAssignmentMarkListItemUiState(mark, this.zt2_1, this.at3_1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).pta = function () { var tmp; var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = this.mt2_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.xbi_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.obi_1, this.wt2_1)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) { tmp = strings_getInstance().emv_1; } else { tmp = strings_getInstance().umr_1; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).qta = function () { var tmp; var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = this.mt2_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.xbi_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.obi_1, this.wt2_1)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) { tmp = strings_getInstance().fmv_1; } else { tmp = strings_getInstance().vmr_1; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).nsk = function () { var tmp; if (this.rt2_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.mt2_1; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).rta = function () { return hasUpdatedMarks(this.mt2_1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).sta = function () { // Inline function 'kotlin.collections.isNotEmpty' call return !this.mt2_1.c1(); }; protoOf(ClazzAssignmentSubmitterDetailUiState).tta = 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).et3 = 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.ht2_1 : submitMarkError; block = block === VOID ? this.it2_1 : block; gradeFilterChips = gradeFilterChips === VOID ? this.jt2_1 : gradeFilterChips; submissionList = submissionList === VOID ? this.kt2_1 : submissionList; submissionAttachments = submissionAttachments === VOID ? this.lt2_1 : submissionAttachments; marks = marks === VOID ? this.mt2_1 : marks; draftMark = draftMark === VOID ? this.nt2_1 : draftMark; markSubmissionInProgress = markSubmissionInProgress === VOID ? this.ot2_1 : markSubmissionInProgress; markNextStudentVisible = markNextStudentVisible === VOID ? this.pt2_1 : markNextStudentVisible; fieldsEnabled = fieldsEnabled === VOID ? this.qt2_1 : fieldsEnabled; markListSelectedChipId = markListSelectedChipId === VOID ? this.rt2_1 : markListSelectedChipId; markListFilterOptions = markListFilterOptions === VOID ? this.st2_1 : markListFilterOptions; privateCommentsList = privateCommentsList === VOID ? this.tt2_1 : privateCommentsList; newPrivateCommentTextVisible = newPrivateCommentTextVisible === VOID ? this.ut2_1 : newPrivateCommentTextVisible; activeUserPersonUid = activeUserPersonUid === VOID ? this.vt2_1 : activeUserPersonUid; activeUserSubmitterId = activeUserSubmitterId === VOID ? this.wt2_1 : activeUserSubmitterId; activeUserPersonName = activeUserPersonName === VOID ? this.xt2_1 : activeUserPersonName; activeUserPictureUri = activeUserPictureUri === VOID ? this.yt2_1 : activeUserPictureUri; localDateTimeNow = localDateTimeNow === VOID ? this.zt2_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.at3_1 : dayOfWeekStrings; collapsedSubmissions = collapsedSubmissions === VOID ? this.bt3_1 : collapsedSubmissions; openingFileState = openingFileState === VOID ? this.ct3_1 : openingFileState; showModerateOptions = showModerateOptions === VOID ? this.dt3_1 : showModerateOptions; return $super === VOID ? this.tta(submitMarkError, block, gradeFilterChips, submissionList, submissionAttachments, marks, draftMark, markSubmissionInProgress, markNextStudentVisible, fieldsEnabled, markListSelectedChipId, markListFilterOptions, privateCommentsList, newPrivateCommentTextVisible, activeUserPersonUid, activeUserSubmitterId, activeUserPersonName, activeUserPictureUri, localDateTimeNow, dayOfWeekStrings, collapsedSubmissions, openingFileState, showModerateOptions) : $super.tta.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.ht2_1 + ', block=' + this.it2_1 + ', gradeFilterChips=' + this.jt2_1 + ', submissionList=' + this.kt2_1 + ', submissionAttachments=' + this.lt2_1 + ', marks=' + this.mt2_1 + ', draftMark=' + this.nt2_1 + ', markSubmissionInProgress=' + this.ot2_1 + ', markNextStudentVisible=' + this.pt2_1 + ', fieldsEnabled=' + this.qt2_1 + ', markListSelectedChipId=' + this.rt2_1 + ', markListFilterOptions=' + this.st2_1 + ', privateCommentsList=' + this.tt2_1 + ', newPrivateCommentTextVisible=' + this.ut2_1 + ', activeUserPersonUid=' + this.vt2_1.toString() + ', activeUserSubmitterId=' + this.wt2_1.toString() + ', activeUserPersonName=' + this.xt2_1 + ', activeUserPictureUri=' + this.yt2_1 + ', localDateTimeNow=' + this.zt2_1 + ', dayOfWeekStrings=' + this.at3_1 + ', collapsedSubmissions=' + this.bt3_1 + ', openingFileState=' + this.ct3_1 + ', showModerateOptions=' + this.dt3_1 + ')'; }; protoOf(ClazzAssignmentSubmitterDetailUiState).hashCode = function () { var result = this.ht2_1 == null ? 0 : getStringHashCode(this.ht2_1); result = imul(result, 31) + (this.it2_1 == null ? 0 : this.it2_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.jt2_1) | 0; result = imul(result, 31) + hashCode(this.kt2_1) | 0; result = imul(result, 31) + hashCode(this.lt2_1) | 0; result = imul(result, 31) + hashCode(this.mt2_1) | 0; result = imul(result, 31) + (this.nt2_1 == null ? 0 : hashCode(this.nt2_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.ot2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.pt2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.qt2_1) | 0; result = imul(result, 31) + this.rt2_1 | 0; result = imul(result, 31) + hashCode(this.st2_1) | 0; result = imul(result, 31) + hashCode(this.tt2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ut2_1) | 0; result = imul(result, 31) + this.vt2_1.hashCode() | 0; result = imul(result, 31) + this.wt2_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.xt2_1) | 0; result = imul(result, 31) + (this.yt2_1 == null ? 0 : getStringHashCode(this.yt2_1)) | 0; result = imul(result, 31) + this.zt2_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.at3_1) | 0; result = imul(result, 31) + hashCode(this.bt3_1) | 0; result = imul(result, 31) + (this.ct3_1 == null ? 0 : this.ct3_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.dt3_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.ht2_1 == tmp0_other_with_cast.ht2_1)) return false; if (!equals(this.it2_1, tmp0_other_with_cast.it2_1)) return false; if (!equals(this.jt2_1, tmp0_other_with_cast.jt2_1)) return false; if (!equals(this.kt2_1, tmp0_other_with_cast.kt2_1)) return false; if (!equals(this.lt2_1, tmp0_other_with_cast.lt2_1)) return false; if (!equals(this.mt2_1, tmp0_other_with_cast.mt2_1)) return false; if (!equals(this.nt2_1, tmp0_other_with_cast.nt2_1)) return false; if (!(this.ot2_1 === tmp0_other_with_cast.ot2_1)) return false; if (!(this.pt2_1 === tmp0_other_with_cast.pt2_1)) return false; if (!(this.qt2_1 === tmp0_other_with_cast.qt2_1)) return false; if (!(this.rt2_1 === tmp0_other_with_cast.rt2_1)) return false; if (!equals(this.st2_1, tmp0_other_with_cast.st2_1)) return false; if (!equals(this.tt2_1, tmp0_other_with_cast.tt2_1)) return false; if (!(this.ut2_1 === tmp0_other_with_cast.ut2_1)) return false; if (!this.vt2_1.equals(tmp0_other_with_cast.vt2_1)) return false; if (!this.wt2_1.equals(tmp0_other_with_cast.wt2_1)) return false; if (!(this.xt2_1 === tmp0_other_with_cast.xt2_1)) return false; if (!(this.yt2_1 == tmp0_other_with_cast.yt2_1)) return false; if (!this.zt2_1.equals(tmp0_other_with_cast.zt2_1)) return false; if (!equals(this.at3_1, tmp0_other_with_cast.at3_1)) return false; if (!equals(this.bt3_1, tmp0_other_with_cast.bt3_1)) return false; if (!equals(this.ct3_1, tmp0_other_with_cast.ct3_1)) return false; if (!(this.dt3_1 === tmp0_other_with_cast.dt3_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.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel......' call var nextValue = prevValue.htb(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.qtb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda).stb = function (nameAndTerminology, $completion) { var tmp = this.ttb(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.stb((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.qtb_1.xpu_1.t2().etb_1; var tmp0_safe_receiver = this.rtb_1; var tmp2_terminology = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j8l_1; var tmp3_json = this.qtb_1.m4r(); var tmp4_systemImpl = this.qtb_1.apn(); parseAndUpdateTerminologyStringsIfNeeded(tmp1_currentTerminologyStrings, tmp2_terminology, tmp4_systemImpl, tmp3_json, ClazzMemberListViewModel$slambda$slambda$slambda$slambda$lambda(this.qtb_1)); l$ret$1: do { var this_0 = this.qtb_1.gpm_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver_0 = this.rtb_1; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.i8l_1; var nextValue = prevValue.ap6(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).ttb = function (nameAndTerminology, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda$slambda(this.qtb_1, completion); i.rtb_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.stb(nameAndTerminology, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.ctc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1).qrv = function (it, $completion) { var tmp = this.rrv(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.qrv(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.ctc_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.htb(VOID, VOID, VOID, this.dtc_1.nd9_1, this.dtc_1.od9_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).rrv = function (it, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1(this.ctc_1, completion); i.dtc_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.qrv(it, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.mtc_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.mtc_1.wpm().o7d().q8c(this.mtc_1.ptd_1); var tmp_1 = ClazzMemberListViewModel$slambda$slambda$slambda$slambda_0(this.mtc_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_18(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda(this.mtc_1, completion); i.ntc_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.bte_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.bte_1.vpm().o7f(); var tmp_1 = this.bte_1.upm(); PermissionFlags_getInstance(); var tmp_2 = new Long(16, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.md6(tmp_1, this.bte_1.ptd_1, tmp_2, new Long(8, 0))); var tmp_4 = ClazzMemberListViewModel$slambda$slambda$slambda$slambda_2(this.bte_1, null); suspendResult = tmp_3.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_18(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.bte_1, completion); i.cte_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.lte_1 = $this_launch; this.mte_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzMemberListViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.lte_1, VOID, VOID, ClazzMemberListViewModel$slambda$slambda$slambda_0(this.mte_1, null)); launch(this.lte_1, VOID, VOID, ClazzMemberListViewModel$slambda$slambda$slambda_2(this.mte_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzMemberListViewModel$slambda$slambda).l78 = function (completion) { return new ClazzMemberListViewModel$slambda$slambda(this.lte_1, this.mte_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.z86($completion); }; l.$arity = 0; return l; } function ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda(this$0, resultContinuation) { this.vte_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda).dqb = function (it, $completion) { var tmp = this.vn7(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.dqb(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.wte_1.o7d().i8c(this.vte_1.ptd_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.e8e_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).vn7 = function (it, completion) { var i = new ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda(this.vte_1, completion); i.wte_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.dqb(it, $completion); }; l.$arity = 1; return l; } function _get_approveOrDeclinePendingEnrolmentUseCase__jyai0d($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.otd_1; approveOrDeclinePendingEnrolmentUseCase$factory_0(); return this_0.t2(); } function getMembersAsPagingSource($this, roleId) { var tmp0_$this = $this.wpm().t7d(); var tmp1_clazzUid = $this.ptd_1; var tmp2_sortOrder = $this.xpu_1.t2().atb_1.ypb_1; var tmp3_filter = $this.xpu_1.t2().ctb_1; var tmp4_searchText = toQueryLikeParam($this.gpm_1.t2().sp5_1.hp5_1); var tmp5_accountPersonUid = $this.upm(); var tmp6_currentTime = systemTimeInMillis(); PermissionFlags_getInstance(); var tmp7_permission = new Long(8192, 0); return tmp0_$this.y92(tmp1_clazzUid, roleId, tmp2_sortOrder, tmp4_searchText, tmp3_filter, tmp5_accountPersonUid, tmp6_currentTime, tmp7_permission); } function Companion_126() { this.xte_1 = 'CourseMembers'; } var Companion_instance_174; function Companion_getInstance_143() { return Companion_instance_174; } function sam$kotlinx_coroutines_flow_FlowCollector$0_18(function_0) { this.yte_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_18).t1d = function (value, $completion) { return this.yte_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.wpm().n7f(); var tmp1_clazzUid = this$0.ptd_1; var tmp2_searchText = toQueryLikeParam(this$0.gpm_1.t2().sp5_1.hp5_1); var tmp4_sortOrder = this$0.xpu_1.t2().atb_1.ypb_1; return tmp0_$this.bek(tmp1_clazzUid, false, 1, tmp2_searchText, tmp4_sortOrder); }; } function ClazzMemberListViewModel$slambda(this$0, resultContinuation) { this.htf_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.htf_1.xpu_1, ClazzMemberListViewModel$slambda$slambda_0(this.itf_1, this.htf_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.htf_1, completion); i.itf_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.rtf_1 = this$0; this.stf_1 = $enrolmentDetails; this.ttf_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.rtf_1).jo5(this.stf_1, this.ttf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_0 = this.rtf_1.ypm(); var tmp_1 = this.rtf_1.apn(); var tmp_2 = this.ttf_1 ? strings_getInstance().jmy_1 : strings_getInstance().kmy_1; var tmp0_elvis_lhs = this.stf_1.uek_1; tmp_0.pp6(new Snack(tmp_1.uno(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.rtf_1.ypm(); var tmp_5 = this.rtf_1.apn().tno(strings_getInstance().alu_1); var tmp1_elvis_lhs = e.message; tmp_4.pp6(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.rtf_1, this.stf_1, this.ttf_1, completion); i.utf_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.dtg_1 = this$0; this.etg_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.dtg_1.wpm(); var tmp_1; if (this.etg_1 === 1000) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.gtg_1 = tmp_1; if (this.gtg_1 == null) { this.htg_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = localFirstThenRepoIfNull(this.gtg_1, ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda_0(this.dtg_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.htg_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var clazzCode = this.htg_1; var tmp_2; if (this.etg_1 === 1000) { tmp_2 = strings_getInstance().blx_1; } else { tmp_2 = strings_getInstance().sm9_1; } var titleStringResource = tmp_2; var tmp1_safe_receiver = this.dtg_1.xpu_1.t2().etb_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.up7(titleStringResource); var title = tmp2_elvis_lhs == null ? this.dtg_1.apn().tno(titleStringResource) : tmp2_elvis_lhs; Companion_getInstance_108(); var tmp_3 = to('clazzUid', this.dtg_1.ptd_1.toString()); Companion_getInstance_108(); var tmp_4 = to('popUpToOnFinish', this.dtg_1.dpm_1); var goToOnPersonSelectedArg = appendQueryArgs('EnrolmentEdit', mapOf([tmp_3, tmp_4, to('role', this.etg_1.toString())])); var this_1 = LinkedHashMap_init_$Create$(); Companion_getInstance_190(); this_1.s('exlcudeFromClazz', this.dtg_1.ptd_1.toString()); Companion_getInstance_108(); this_1.s('listMode', ListViewMode_PICKER_getInstance().bpj_1); this_1.s('goToOnPersonSelected', goToOnPersonSelectedArg); Companion_getInstance_118(); this_1.s('t', title); Companion_getInstance_190(); PermissionFlags_getInstance(); this_1.s('rptsl', (new Long(2048, 0)).toString()); if (!(clazzCode == null)) { Companion_getInstance_190(); this_1.s('showAddViaInviteLink', clazzCode); } var args = this_1.f3(); Companion_getInstance_190(); this.dtg_1.epm_1.hob('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.dtg_1, this.etg_1, completion); i.ftg_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.spm().mng(); var trigger = this.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_1 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); var tmp$ret$1 = tmp_1.h57(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.otd_1 = Instance(this_0, tmp$ret$3, null).a5d(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.ptd_1 = tmp_5; var tmp_6 = this; tmp_6.qtd_1 = ClazzMemberListViewModel$teacherListPagingSource$lambda(this); var tmp_7 = this; tmp_7.rtd_1 = ClazzMemberListViewModel$studentListPagingSource$lambda(this); var tmp_8 = this; tmp_8.std_1 = ClazzMemberListViewModel$pendingStudentListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.xpu_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.apn().tno(get_dayStringResource(element)); result.s(element, tmp$ret$5); } var nextValue = prevValue.htb(this.rtd_1, this.qtd_1, this.std_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.gpm_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.' call var nextValue_0 = prevValue_0.ap6(VOID, VOID, VOID, true, VOID, VOID, VOID, this.gpw(), new ActionBarButtonUiState(false)); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_9 = this.tpm(); launch(tmp_9, VOID, VOID, ClazzMemberListViewModel$slambda_0(this, null)); } protoOf(ClazzMemberListViewModel).rpv = function (searchText) { this.zpu_1.i1h(new RefreshCommand()); }; protoOf(ClazzMemberListViewModel).spv = function () { }; protoOf(ClazzMemberListViewModel).srn = function (filterOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.onClickFilterChip.' call var nextValue = prevValue.htb(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, filterOption.dp7_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.zpu_1.i1h(new RefreshCommand()); }; protoOf(ClazzMemberListViewModel).itg = function (enrolmentDetails, approved) { var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda_0(this, enrolmentDetails, approved, null)); }; protoOf(ClazzMemberListViewModel).jtg = function (role) { var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzMemberListViewModel$onClickAddNewMember$slambda_0(this, role, null)); }; protoOf(ClazzMemberListViewModel).ktg = 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.epm_1.hob('CourseEnrolments', mapOf([tmp, to('clazzUid', this.ptd_1.toString())])); }; protoOf(ClazzMemberListViewModel).rrn = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.onSortOrderChanged.' call var nextValue = prevValue.htb(VOID, VOID, VOID, VOID, VOID, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.zpu_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().klv_1; var tmp_4 = new SortOrderOption(tmp_3, 1, true); var tmp_5 = strings_getInstance().klv_1; var tmp_6 = new SortOrderOption(tmp_5, 2, false); var tmp_7 = strings_getInstance().jlv_1; var tmp_8 = new SortOrderOption(tmp_7, 3, true); var tmp_9 = strings_getInstance().jlv_1; var tmp_10 = new SortOrderOption(tmp_9, 4, false); var tmp_11 = strings_getInstance().mm8_1; var tmp_12 = new SortOrderOption(tmp_11, 7, true); var tmp_13 = strings_getInstance().mm8_1; var tmp_14 = new SortOrderOption(tmp_13, 8, false); var tmp_15 = strings_getInstance().nm8_1; var tmp_16 = new SortOrderOption(tmp_15, 9, true); var tmp_17 = strings_getInstance().nm8_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().dmb_1; tmp_19 = listOf([new MessageIdOption2(tmp_20, 1), new MessageIdOption2(strings_getInstance().wma_1, 0)]); } else { tmp_19 = filterOptions; } filterOptions = tmp_19; terminologyStrings = terminologyStrings === VOID ? null : terminologyStrings; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.ilp(), Companion_getInstance_9().hlt()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.uta_1 = studentList; this.vta_1 = teacherList; this.wta_1 = pendingStudentList; this.xta_1 = addTeacherVisible; this.yta_1 = addStudentVisible; this.zta_1 = sortOptions; this.atb_1 = activeSortOrderOption; this.btb_1 = fieldsEnabled; this.ctb_1 = selectedChipId; this.dtb_1 = filterOptions; this.etb_1 = terminologyStrings; this.ftb_1 = localDateTimeNow; this.gtb_1 = dayOfWeekStrings; } protoOf(ClazzMemberListUiState).ltg = 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).htb = function (studentList, teacherList, pendingStudentList, addTeacherVisible, addStudentVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings, $super) { studentList = studentList === VOID ? this.uta_1 : studentList; teacherList = teacherList === VOID ? this.vta_1 : teacherList; pendingStudentList = pendingStudentList === VOID ? this.wta_1 : pendingStudentList; addTeacherVisible = addTeacherVisible === VOID ? this.xta_1 : addTeacherVisible; addStudentVisible = addStudentVisible === VOID ? this.yta_1 : addStudentVisible; sortOptions = sortOptions === VOID ? this.zta_1 : sortOptions; activeSortOrderOption = activeSortOrderOption === VOID ? this.atb_1 : activeSortOrderOption; fieldsEnabled = fieldsEnabled === VOID ? this.btb_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.ctb_1 : selectedChipId; filterOptions = filterOptions === VOID ? this.dtb_1 : filterOptions; terminologyStrings = terminologyStrings === VOID ? this.etb_1 : terminologyStrings; localDateTimeNow = localDateTimeNow === VOID ? this.ftb_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.gtb_1 : dayOfWeekStrings; return $super === VOID ? this.ltg(studentList, teacherList, pendingStudentList, addTeacherVisible, addStudentVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings) : $super.ltg.call(this, studentList, teacherList, pendingStudentList, addTeacherVisible, addStudentVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings); }; protoOf(ClazzMemberListUiState).toString = function () { return 'ClazzMemberListUiState(studentList=' + this.uta_1 + ', teacherList=' + this.vta_1 + ', pendingStudentList=' + this.wta_1 + ', addTeacherVisible=' + this.xta_1 + ', addStudentVisible=' + this.yta_1 + ', sortOptions=' + this.zta_1 + ', activeSortOrderOption=' + this.atb_1 + ', fieldsEnabled=' + this.btb_1 + ', selectedChipId=' + this.ctb_1 + ', filterOptions=' + this.dtb_1 + ', terminologyStrings=' + this.etb_1 + ', localDateTimeNow=' + this.ftb_1 + ', dayOfWeekStrings=' + this.gtb_1 + ')'; }; protoOf(ClazzMemberListUiState).hashCode = function () { var result = hashCode(this.uta_1); result = imul(result, 31) + hashCode(this.vta_1) | 0; result = imul(result, 31) + hashCode(this.wta_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.xta_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.yta_1) | 0; result = imul(result, 31) + hashCode(this.zta_1) | 0; result = imul(result, 31) + this.atb_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.btb_1) | 0; result = imul(result, 31) + this.ctb_1 | 0; result = imul(result, 31) + hashCode(this.dtb_1) | 0; result = imul(result, 31) + (this.etb_1 == null ? 0 : this.etb_1.hashCode()) | 0; result = imul(result, 31) + this.ftb_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.gtb_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.uta_1, tmp0_other_with_cast.uta_1)) return false; if (!equals(this.vta_1, tmp0_other_with_cast.vta_1)) return false; if (!equals(this.wta_1, tmp0_other_with_cast.wta_1)) return false; if (!(this.xta_1 === tmp0_other_with_cast.xta_1)) return false; if (!(this.yta_1 === tmp0_other_with_cast.yta_1)) return false; if (!equals(this.zta_1, tmp0_other_with_cast.zta_1)) return false; if (!this.atb_1.equals(tmp0_other_with_cast.atb_1)) return false; if (!(this.btb_1 === tmp0_other_with_cast.btb_1)) return false; if (!(this.ctb_1 === tmp0_other_with_cast.ctb_1)) return false; if (!equals(this.dtb_1, tmp0_other_with_cast.dtb_1)) return false; if (!equals(this.etb_1, tmp0_other_with_cast.etb_1)) return false; if (!this.ftb_1.equals(tmp0_other_with_cast.ftb_1)) return false; if (!equals(this.gtb_1, tmp0_other_with_cast.gtb_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.utg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda$slambda).ytg = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.ytg(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.vtg_1.t7d(); var tmp_1; if (!this.utg_1.ips_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.wtg_1 = tmp_1; if (this.wtg_1 == null) { this.xtg_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.wtg_1.u92(this.utg_1.ips_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.xtg_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.xtg_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).vn7 = function (db, completion) { var i = new ClazzEnrolmentEditViewModel$slambda$slambda(this.utg_1, completion); i.vtg_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.ytg(db, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation) { this.hth_1 = $savedStateHandle; this.ith_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_1).lth = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.lth($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.jth_1 = new ClazzEnrolmentWithLeavingReason(); var tmp_1 = this; tmp_1.kth_1 = this.jth_1; var tmp_2 = this.kth_1; Companion_getInstance_108(); var tmp0_safe_receiver = this.hth_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.t8h_1 = tmp_3; var tmp_4 = this.kth_1; Companion_getInstance_108(); var tmp2_safe_receiver = this.hth_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.s8h_1 = tmp_5; this.kth_1.u8h_1 = systemTimeInMillis(); var tmp_6 = this.kth_1; var tmp4_safe_receiver = this.hth_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.w8h_1 = tmp_7; this.hd_1 = 1; suspendResult = this.ith_1.wpm().o7d().s8c(this.kth_1.t8h_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.kth_1.f94_1 = ARGUMENT; return this.jth_1; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_1).l78 = function (completion) { return new ClazzEnrolmentEditViewModel$slambda$slambda_1(this.hth_1, this.ith_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.lth($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.jti_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel...' call var nextValue = prevValue.tti(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEnrolmentEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.ctj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_3).etj = 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.etj((!(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.ctj_1.wpm().q7d(); var tmp0_safe_receiver = this.ctj_1.jti_1.t2().mti_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t8h_1; suspendResult = tmp_0.kdt(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.ctj_1, completion); i.dtj_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.etj($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function _get_enrolIntoCourseUseCase__jh2n4b($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lti_1; enrolIntoCourseUseCase$factory_0(); return this_0.t2(); } function hasErrors_1(_this__u8e3s4, $this) { return (!(_this__u8e3s4.nti_1 == null) ? true : !(_this__u8e3s4.oti_1 == null)) ? true : !(_this__u8e3s4.pti_1 == null); } function Companion_127() { this.ftj_1 = 'EnrolmentEdit'; this.gtj_1 = 'role'; } var Companion_instance_175; function Companion_getInstance_144() { return Companion_instance_175; } function ClazzEnrolmentEditViewModel$slambda(this$0, resultContinuation) { this.ptj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda).gr6 = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$slambda).he = function (p1, $completion) { return this.gr6(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.qtj_1.o7f().kd6(this.ptj_1.upm(), this.ptj_1.ips_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).vn7 = function (db, completion) { var i = new ClazzEnrolmentEditViewModel$slambda(this.ptj_1, completion); i.qtj_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.gr6(db, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.ztj_1 = this$0; this.atk_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_34.n4r(); var tmp_1 = ClazzEnrolmentEditViewModel$slambda$slambda_0(this.ztj_1, null); var tmp_2 = ClazzEnrolmentEditViewModel$slambda$slambda_2(this.atk_1, this.ztj_1, null); suspendResult = this.ztj_1.kpn(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzEnrolmentEditViewModel$slambda$lambda(this.ztj_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_3 = this.ztj_1.vpm().o7f(); var tmp_4 = this.ztj_1.upm(); var tmp0_safe_receiver = this.ztj_1.jti_1.t2().mti_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t8h_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.nd6(tmp_4, tmp_5, tmp_6, new Long(16, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ctk_1 = suspendResult; this.dtk_1 = this.ctk_1.y6(); this.etk_1 = this.ctk_1.z6(); var tmp_7 = this; tmp_7.ftk_1 = async(this.btk_1, VOID, VOID, ClazzEnrolmentEditViewModel$slambda$slambda_4(this.ztj_1, null)); var tmp_8 = this; var this_0 = ArrayList_init_$Create$(); if (this.dtk_1) { this_0.i1(1000); } if (this.etk_1) { this_0.i1(1001); } tmp_8.gtk_1 = this_0.f3(); this.hd_1 = 3; suspendResult = this.ftk_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.ztj_1.apn(), this.ztj_1.m4r()); } var terminologyStrings = tmp_9; l$ret$1: do { var this_1 = this.ztj_1.jti_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.tti(VOID, VOID, VOID, VOID, true, terminologyStrings, this.gtk_1); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.ztj_1.gpm_1; while (true) { var prevValue_0 = this_2.t2(); var tmp_10 = Companion_getInstance_91().ip6_1; var tmp_11 = this.ztj_1.apn().tno(strings_getInstance().eme_1); var nextValue_0 = prevValue_0.ap6(VOID, tmp_10, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_11, VOID, ClazzEnrolmentEditViewModel$onClickSave$ref(this.ztj_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.ztj_1, this.atk_1, completion); i.btk_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.ptk_1 = $commitDelay; this.qtk_1 = $entity; this.rtk_1 = $this; this.stk_1 = $key; this.ttk_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.ptk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.qtk_1 == null)) { this.hd_1 = 2; suspendResult = this.rtk_1.gpn(this.rtk_1.cpm_1, this.stk_1, this.ttk_1, this.qtk_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.ptk_1, this.qtk_1, this.rtk_1, this.stk_1, this.ttk_1, completion); i.utk_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.dtl_1 = this$0; this.etl_1 = $entity; this.ftl_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.dtl_1.ips_1.equals(new Long(0, 0))) { this.hd_1 = 2; suspendResult = _get_enrolIntoCourseUseCase__jh2n4b(this.dtl_1).vo4(this.etl_1, this.ftl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; suspendResult = this.dtl_1.vpm().t7d().v92(this.etl_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.dtl_1.cpm_1.ba('popUpToOnFinish'); if (!(popUpToOnFinish == null)) { this.dtl_1.epm_1.sp8(popUpToOnFinish, false); } else { this.dtl_1.lps(this.etl_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.dtl_1, this.etl_1, this.ftl_1, completion); i.gtl_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.jti_1 = MutableStateFlow(new ClazzEnrolmentEditUiState(VOID, VOID, VOID, VOID, false)); this.kti_1 = asStateFlow(this.jti_1); var tmp = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveEndpoint(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.lti_1 = Instance(this_0, tmp$ret$0, null).a5d(this, enrolIntoCourseUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.gpm_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.' call var nextValue = prevValue.ap6(VOID, Companion_getInstance_91().hp6_1, this.mpt(strings_getInstance().wm8_1, strings_getInstance().vm8_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = ClazzEnrolmentEditViewModel$slambda_0(this, null); this.mpn(tmp_1, VOID, VOID, ClazzEnrolmentEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(ClazzEnrolmentEditViewModel).htl = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jti_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.mti_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w8h_1; var tmp_0 = this.npt(tmp, entity == null ? null : entity.w8h_1, prevValue.nti_1); var tmp2_safe_receiver = prevValue.mti_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.u8h_1; var nextValue = prevValue.tti(entity, tmp_0, this.npt(tmp_1, entity == null ? null : entity.u8h_1, prevValue.oti_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_34.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.hps_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this; var tmp_3 = this.tpm(); tmp_2.hps_1 = launch(tmp_3, VOID, VOID, ClazzEnrolmentEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzEnrolmentEditViewModel).ur3 = function () { if (this.dpn().equals(Companion_getInstance_91().hp6_1)) return Unit_instance; var tmp0_elvis_lhs = this.jti_1.t2().mti_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.ypm().pp6(new Snack('Error: no time zone for course')); return Unit_instance; } this.cpn(Companion_getInstance_91().hp6_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jti_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.onClickSave.' call var nextValue = prevValue.tti(VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (entity.w8h_1 === 0) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.jti_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.tti(VOID, this.apn().tno(strings_getInstance().dlz_1)); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } if (entity.u8h_1.c7(toLong(imul(get_MS_PER_HOUR(), 24))) <= 0) { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.jti_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.tti(VOID, VOID, this.apn().tno(strings_getInstance().dlz_1)); if (this_2.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } if (entity.v8h_1.c7(entity.u8h_1) <= 0) { $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.jti_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.tti(VOID, VOID, VOID, this.apn().tno(strings_getInstance().pmk_1)); if (this_3.y1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } } if (hasErrors_1(this.jti_1.t2(), this)) { $l$block_3: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.jti_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.tti(VOID, VOID, VOID, VOID, true); if (this_4.y1k(prevValue_3, nextValue_3)) { break $l$block_3; } } } return Unit_instance; } var tmp_0 = this.tpm(); 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.mti_1 = clazzEnrolment; this.nti_1 = roleSelectedError; this.oti_1 = startDateError; this.pti_1 = endDateError; this.qti_1 = fieldsEnabled; this.rti_1 = courseTerminology; this.sti_1 = roleOptions; } protoOf(ClazzEnrolmentEditUiState).itl = function () { var tmp0_safe_receiver = this.mti_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w8h_1; return tmp === 1000; }; protoOf(ClazzEnrolmentEditUiState).jtl = function (clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions) { return new ClazzEnrolmentEditUiState(clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions); }; protoOf(ClazzEnrolmentEditUiState).tti = function (clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions, $super) { clazzEnrolment = clazzEnrolment === VOID ? this.mti_1 : clazzEnrolment; roleSelectedError = roleSelectedError === VOID ? this.nti_1 : roleSelectedError; startDateError = startDateError === VOID ? this.oti_1 : startDateError; endDateError = endDateError === VOID ? this.pti_1 : endDateError; fieldsEnabled = fieldsEnabled === VOID ? this.qti_1 : fieldsEnabled; courseTerminology = courseTerminology === VOID ? this.rti_1 : courseTerminology; roleOptions = roleOptions === VOID ? this.sti_1 : roleOptions; return $super === VOID ? this.jtl(clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions) : $super.jtl.call(this, clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions); }; protoOf(ClazzEnrolmentEditUiState).toString = function () { return 'ClazzEnrolmentEditUiState(clazzEnrolment=' + this.mti_1 + ', roleSelectedError=' + this.nti_1 + ', startDateError=' + this.oti_1 + ', endDateError=' + this.pti_1 + ', fieldsEnabled=' + this.qti_1 + ', courseTerminology=' + this.rti_1 + ', roleOptions=' + this.sti_1 + ')'; }; protoOf(ClazzEnrolmentEditUiState).hashCode = function () { var result = this.mti_1 == null ? 0 : hashCode(this.mti_1); result = imul(result, 31) + (this.nti_1 == null ? 0 : getStringHashCode(this.nti_1)) | 0; result = imul(result, 31) + (this.oti_1 == null ? 0 : getStringHashCode(this.oti_1)) | 0; result = imul(result, 31) + (this.pti_1 == null ? 0 : getStringHashCode(this.pti_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.qti_1) | 0; result = imul(result, 31) + (this.rti_1 == null ? 0 : this.rti_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.sti_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.mti_1, tmp0_other_with_cast.mti_1)) return false; if (!(this.nti_1 == tmp0_other_with_cast.nti_1)) return false; if (!(this.oti_1 == tmp0_other_with_cast.oti_1)) return false; if (!(this.pti_1 == tmp0_other_with_cast.pti_1)) return false; if (!(this.qti_1 === tmp0_other_with_cast.qti_1)) return false; if (!equals(this.rti_1, tmp0_other_with_cast.rti_1)) return false; if (!equals(this.sti_1, tmp0_other_with_cast.sti_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.stl_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$o$collect$slambda).oqg = function (value, $completion) { var tmp = this.pqg(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.oqg(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.utl_1 = this.stl_1; var tmp_1 = this; tmp_1.vtl_1 = this.ttl_1; this.hd_1 = 1; var it = this.vtl_1; suspendResult = this.utl_1.t1d(it.fda_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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).pqg = function (value, completion) { var i = new ClazzEnrolmentListViewModel$slambda$o$collect$slambda(this.stl_1, completion); i.ttl_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.oqg(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$62(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.etm_1 = _this__u8e3s4; this.ftm_1 = collector; } protoOf($collectCOROUTINE$62).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.gtm_1 = this.ftm_1; this.hd_1 = 1; var tmp_1 = ClazzEnrolmentListViewModel$slambda$o$collect$slambda_0(this.gtm_1, null); suspendResult = this.etm_1.htm_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_19(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.qtm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda).oqg = function (it, $completion) { var tmp = this.pqg(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.oqg(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.rtm_1; var canEditTeacherEnrolments = tmp0_container.y6(); var canEditStudentEnrolments = tmp0_container.z6(); l$ret$1: do { var this_0 = this.qtm_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ztm(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).pqg = function (it, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda(this.qtm_1, completion); i.rtm_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.oqg(it, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.itn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda).ktn = function (it, $completion) { var tmp = this.ltn(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.ktn((!(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.itn_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ztm(this.jtn_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).ltn = function (it, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda(this.itn_1, completion); i.jtn_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.ktn(it, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.utn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1).qpe = function (canViewMembers, $completion) { var tmp = this.rpe(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.qpe((!(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.vtn_1) { tmp_1 = this.utn_1.wpm().t7d().t92(this.utn_1.yto_1, this.utn_1.xto_1); } else { tmp_1 = flowOf(emptyList()); } tmp_0.wtn_1 = tmp_1; this.hd_1 = 1; var tmp_2 = ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda_0(this.utn_1, null); suspendResult = this.wtn_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_19(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).rpe = function (canViewMembers, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1(this.utn_1, completion); i.vtn_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.qpe(canViewMembers, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.htp_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda).qpe = function (value, $completion) { var tmp = this.rpe(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.qpe((!(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.ktp_1 = this.htp_1; var tmp_1 = this; tmp_1.ltp_1 = this.itp_1; if (this.ltp_1) { this.hd_1 = 3; suspendResult = this.ktp_1.t1d(this.ltp_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.jtp_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).rpe = function (value, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda(this.htp_1, completion); i.itp_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.qpe(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$63(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.utp_1 = _this__u8e3s4; this.vtp_1 = collector; } protoOf($collectCOROUTINE$63).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.wtp_1 = this.vtp_1; this.hd_1 = 1; var tmp_1 = ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda_0(this.wtp_1, null); suspendResult = this.utp_1.xtp_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_19(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function _no_name_provided__qut3iv_8($this) { this.xtp_1 = $this; } protoOf(_no_name_provided__qut3iv_8).fpe = function (collector, $completion) { var tmp = new $collectCOROUTINE$63(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_8).a1c = function (collector, $completion) { return this.fpe(collector, $completion); }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.gtq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3).qpe = function (canViewMembers, $completion) { var tmp = this.rpe(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.qpe((!(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.htq_1) { this.hd_1 = 1; suspendResult = this.gtq_1.wpm().t7d().a93(this.gtq_1.yto_1, this.gtq_1.xto_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.q99_1; var personName = '' + tmp_0 + ' ' + (courseAndPersonName == null ? null : courseAndPersonName.r99_1); l$ret$1: do { var this_0 = this.gtq_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ztm(VOID, personName, courseAndPersonName == null ? null : courseAndPersonName.p99_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.gtq_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ap6(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).rpe = function (canViewMembers, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3(this.gtq_1, completion); i.htq_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.qpe(canViewMembers, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.qtq_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.qtq_1.wpm().q7d().kdt(this.qtq_1.xto_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var terminology = suspendResult; l$ret$1: do { var this_0 = this.qtq_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ztm(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.qtq_1, completion); i.rtq_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.atr_1 = $permissionFlow; this.btr_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.atr_1); var tmp_1 = ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_0(this.btr_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_19(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda_1(this.atr_1, this.btr_1, completion); i.ctr_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.ltr_1 = $canViewMembersFlow; this.mtr_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.ltr_1); suspendResult = collectLatest(tmp_0, ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_2(this.mtr_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.ltr_1, this.mtr_1, completion); i.ntr_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.wtr_1 = $canViewMembersFlow; this.xtr_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.wtr_1); var tmp_0 = new _no_name_provided__qut3iv_8(this_0); suspendResult = collectLatest(tmp_0, ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_4(this.xtr_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.wtr_1, this.xtr_1, completion); i.ytr_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.htm_1 = $this; } protoOf(_no_name_provided__qut3iv_9).fpe = function (collector, $completion) { var tmp = new $collectCOROUTINE$62(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_9).a1c = function (collector, $completion) { return this.fpe(collector, $completion); }; function ClazzEnrolmentListViewModel$slambda$slambda($this_launch, this$0, $permissionFlow, $canViewMembersFlow, resultContinuation) { this.hts_1 = $this_launch; this.its_1 = this$0; this.jts_1 = $permissionFlow; this.kts_1 = $canViewMembersFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.hts_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_0(this.its_1, null)); launch(this.hts_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_2(this.jts_1, this.its_1, null)); launch(this.hts_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_4(this.kts_1, this.its_1, null)); launch(this.hts_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_6(this.kts_1, this.its_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda).l78 = function (completion) { return new ClazzEnrolmentListViewModel$slambda$slambda(this.hts_1, this.its_1, this.jts_1, this.kts_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.z86($completion); }; l.$arity = 0; return l; } function Companion_128() { this.lts_1 = 'CourseEnrolments'; } var Companion_instance_176; function Companion_getInstance_145() { return Companion_instance_176; } function sam$kotlinx_coroutines_flow_FlowCollector$0_19(function_0) { this.mts_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_19).t1d = function (value, $completion) { return this.mts_1(value, $completion); }; function ClazzEnrolmentListViewModel$slambda(this$0, resultContinuation) { this.vts_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.vts_1.vpm().o7f(); var tmp_2 = this.vts_1.upm(); PermissionFlags_getInstance(); var tmp_3 = new Long(16, 0); PermissionFlags_getInstance(); var tmp_4 = new Long(8, 0); PermissionFlags_getInstance(); tmp_0.xts_1 = shareIn(tmp_1.od6(tmp_2, this.vts_1.xto_1, tmp_3, tmp_4, new Long(8192, 0)), this.vts_1.tpm(), Companion_getInstance_12().v1h()); var tmp_5 = this; var this_0 = this.xts_1; tmp_5.yts_1 = new _no_name_provided__qut3iv_9(this_0); this.hd_1 = 1; suspendResult = whenSubscribed(this.vts_1.xpu_1, ClazzEnrolmentListViewModel$slambda$slambda_0(this.wts_1, this.vts_1, this.xts_1, this.yts_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.vts_1, completion); i.wts_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.xto_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.yto_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this.tpm(); launch(tmp_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda_0(this, null)); } protoOf(ClazzEnrolmentListViewModel).zts = function (enrolment) { var tmp = Companion_instance_34.n4r(); Companion_getInstance_108(); this.ipn('EnrolmentEdit', '', null, tmp, mapOf_0(to('entityUid', enrolment.r8h_1.toString())), VOID, true); }; protoOf(ClazzEnrolmentListViewModel).att = function () { Companion_getInstance_108(); this.epm_1.hob('PersonDetailView', mapOf_0(to('entityUid', this.yto_1.toString()))); }; protoOf(ClazzEnrolmentListViewModel).rpv = function (searchText) { }; protoOf(ClazzEnrolmentListViewModel).spv = 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.stm_1 = enrolmentList; this.ttm_1 = personName; this.utm_1 = courseName; this.vtm_1 = canEditTeacherEnrolments; this.wtm_1 = canEditStudentEnrolments; this.xtm_1 = courseTerminology; this.ytm_1 = timeZone; } protoOf(ClazzEnrolmentListUiState).btt = function (enrolment) { var tmp; var tmp_0 = enrolment.w8h_1; if (tmp_0 === 1001) { tmp = this.vtm_1; } else { tmp = this.vtm_1; } var tmp0_canEdit = tmp; var tmp1_timeZone = this.ytm_1; return new ClazzEnrolmentListItemUiState(tmp0_canEdit, enrolment, tmp1_timeZone); }; protoOf(ClazzEnrolmentListUiState).ctt = function (enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone) { return new ClazzEnrolmentListUiState(enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone); }; protoOf(ClazzEnrolmentListUiState).ztm = function (enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone, $super) { enrolmentList = enrolmentList === VOID ? this.stm_1 : enrolmentList; personName = personName === VOID ? this.ttm_1 : personName; courseName = courseName === VOID ? this.utm_1 : courseName; canEditTeacherEnrolments = canEditTeacherEnrolments === VOID ? this.vtm_1 : canEditTeacherEnrolments; canEditStudentEnrolments = canEditStudentEnrolments === VOID ? this.wtm_1 : canEditStudentEnrolments; courseTerminology = courseTerminology === VOID ? this.xtm_1 : courseTerminology; timeZone = timeZone === VOID ? this.ytm_1 : timeZone; return $super === VOID ? this.ctt(enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone) : $super.ctt.call(this, enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone); }; protoOf(ClazzEnrolmentListUiState).toString = function () { return 'ClazzEnrolmentListUiState(enrolmentList=' + this.stm_1 + ', personName=' + this.ttm_1 + ', courseName=' + this.utm_1 + ', canEditTeacherEnrolments=' + this.vtm_1 + ', canEditStudentEnrolments=' + this.wtm_1 + ', courseTerminology=' + this.xtm_1 + ', timeZone=' + this.ytm_1 + ')'; }; protoOf(ClazzEnrolmentListUiState).hashCode = function () { var result = hashCode(this.stm_1); result = imul(result, 31) + (this.ttm_1 == null ? 0 : getStringHashCode(this.ttm_1)) | 0; result = imul(result, 31) + (this.utm_1 == null ? 0 : getStringHashCode(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) + (this.xtm_1 == null ? 0 : hashCode(this.xtm_1)) | 0; result = imul(result, 31) + getStringHashCode(this.ytm_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.stm_1, tmp0_other_with_cast.stm_1)) return false; if (!(this.ttm_1 == tmp0_other_with_cast.ttm_1)) return false; if (!(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 === tmp0_other_with_cast.ytm_1)) return false; return true; }; function ClazzEnrolmentListItemUiState(canEdit, enrolment, timeZone) { canEdit = canEdit === VOID ? false : canEdit; this.dtt_1 = canEdit; this.ett_1 = enrolment; this.ftt_1 = timeZone; } protoOf(ClazzEnrolmentListItemUiState).toString = function () { return 'ClazzEnrolmentListItemUiState(canEdit=' + this.dtt_1 + ', enrolment=' + this.ett_1 + ', timeZone=' + this.ftt_1 + ')'; }; protoOf(ClazzEnrolmentListItemUiState).hashCode = function () { var result = getBooleanHashCode(this.dtt_1); result = imul(result, 31) + hashCode(this.ett_1) | 0; result = imul(result, 31) + getStringHashCode(this.ftt_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.dtt_1 === tmp0_other_with_cast.dtt_1)) return false; if (!equals(this.ett_1, tmp0_other_with_cast.ett_1)) return false; if (!(this.ftt_1 === tmp0_other_with_cast.ftt_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().qmk_1); RecordAttendanceOption_RECORD_ATTENDANCE_NEW_SCHEDULE_instance = new RecordAttendanceOption('RECORD_ATTENDANCE_NEW_SCHEDULE', 1, strings_getInstance().rmk_1); } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ott_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda).qtt = function (clazz, $completion) { var tmp = this.rtt(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.qtt((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.ott_1.xpu_1; var tmp_0; var tmp_1 = this_0.t2().ttt_1; var tmp0_safe_receiver = this.ptt_1; if (!(tmp_1 === (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z8d_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.ptt_1; var tmp1_elvis_lhs = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.z8d_1; var nextValue = prevValue.atu(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.ott_1.gpm_1; var tmp_2; var tmp_3 = this_1.t2().np5_1; var tmp0_safe_receiver_2 = this.ptt_1; if (!(tmp_3 == (tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.i8d_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.ptt_1; var nextValue_0 = prevValue_0.ap6(VOID, VOID, tmp0_safe_receiver_3 == null ? null : tmp0_safe_receiver_3.i8d_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).rtt = function (clazz, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda(this.ott_1, completion); i.ptt_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.qtt(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.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.attendancelist.ClazzLogListAttendanceViewModel.......' call var nextValue = prevValue.atu(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.dtv(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).otv = function (hasPermission, hasLogs, $completion) { var tmp = this.ptv(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.otv(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.mtv_1, this.ntv_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).ptv = function (hasPermission, hasLogs, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1(completion); i.mtv_1 = hasPermission; i.ntv_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.otv(hasPermission, hasLogs, $completion); }; l.$arity = 2; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.ytv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3).atw = function (it, $completion) { var tmp = this.btw(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.atw(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.ztv_1.ctw_1) { this_0.i1(RecordAttendanceOption_RECORD_ATTENDANCE_NEW_SCHEDULE_getInstance()); } if (this.ztv_1.ctw_1 ? this.ztv_1.dtw_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.ytv_1.xpu_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.atu(VOID, VOID, options); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.ytv_1.gpm_1; while (true) { var prevValue_0 = this_2.t2(); var tmp_0 = !options.c1(); var tmp_1 = this.ytv_1.apn().tno(strings_getInstance().tm5_1); var tmp_2 = FabIcon_ADD_getInstance(); var nextValue_0 = prevValue_0.ap6(new FabUiState(tmp_0, tmp_1, tmp_2, ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda$lambda(options, this.ytv_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).btw = function (it, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3(this.ytv_1, completion); i.ztv_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.atw(it, $completion); }; l.$arity = 1; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.mtw_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.mtw_1.wpm().o7d().j8c(this.mtw_1.btv_1); var tmp_1 = ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_0(this.mtw_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_20(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda(this.mtw_1, completion); i.ntw_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.wtw_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.wtw_1.wpm().o7f(); var tmp_2 = this.wtw_1.upm(); PermissionFlags_getInstance(); tmp_0.ytw_1 = tmp_1.ld6(tmp_2, this.wtw_1.btv_1, new Long(64, 0)); var tmp_3 = this; var tmp_4 = this.wtw_1.wpm().m7e(); tmp_3.ztw_1 = tmp_4.q9p(this.wtw_1.btv_1, 8); this.hd_1 = 1; var tmp_5 = combine(this.ytw_1, this.ztw_1, ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_2(null)); var tmp_6 = ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_4(this.wtw_1, null); suspendResult = tmp_5.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_20(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.wtw_1, completion); i.xtw_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.itx_1 = $this_launch; this.jtx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.itx_1, VOID, VOID, ClazzLogListAttendanceViewModel$slambda$slambda$slambda_0(this.jtx_1, null)); launch(this.itx_1, VOID, VOID, ClazzLogListAttendanceViewModel$slambda$slambda$slambda_2(this.jtx_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda).l78 = function (completion) { return new ClazzLogListAttendanceViewModel$slambda$slambda(this.itx_1, this.jtx_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.z86($completion); }; l.$arity = 0; return l; } function RecordAttendanceOption(name, ordinal, stringResource) { Enum.call(this, name, ordinal); this.mtx_1 = stringResource; } function PermissionAndExistingLogs(hasRecordPermission, hasExistingLogs) { this.ctw_1 = hasRecordPermission; this.dtw_1 = hasExistingLogs; } protoOf(PermissionAndExistingLogs).toString = function () { return 'PermissionAndExistingLogs(hasRecordPermission=' + this.ctw_1 + ', hasExistingLogs=' + this.dtw_1 + ')'; }; protoOf(PermissionAndExistingLogs).hashCode = function () { var result = getBooleanHashCode(this.ctw_1); result = imul(result, 31) + getBooleanHashCode(this.dtw_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.ctw_1 === tmp0_other_with_cast.ctw_1)) return false; if (!(this.dtw_1 === tmp0_other_with_cast.dtw_1)) return false; return true; }; function Companion_129() { this.ntx_1 = 'CourseLogListAttendanceView'; } var Companion_instance_177; function Companion_getInstance_146() { return Companion_instance_177; } function sam$kotlinx_coroutines_flow_FlowCollector$0_20(function_0) { this.otx_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_20).t1d = function (value, $completion) { return this.otx_1(value, $completion); }; function ClazzLogListAttendanceViewModel$pagingSourceFactory$lambda(this$0) { return function () { var tmp = this$0.wpm().m7e(); return tmp.o9p(this$0.btv_1, 8); }; } function ClazzLogListAttendanceViewModel$slambda(this$0, resultContinuation) { this.xtx_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.xtx_1.xpu_1, ClazzLogListAttendanceViewModel$slambda$slambda_0(this.ytx_1, this.xtx_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.xtx_1, completion); i.ytx_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.hty_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.hty_1.wpm().m7e().r9p(this.hty_1.btv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var mostRecentLogUid = suspendResult; var this_0 = this.hty_1.epm_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.hob('EditAttendance', mapOf_0(to('entityUid', mostRecentLogUid.toString()))); } this.hty_1.jty(); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.hty_1, completion); i.ity_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.btv_1 = tmp_1; var tmp_2 = this; tmp_2.ctv_1 = ClazzLogListAttendanceViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.attendancelist.ClazzLogListAttendanceViewModel.' call var nextValue = prevValue.atu(VOID, VOID, VOID, this.ctv_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.tpm(); launch(tmp_3, VOID, VOID, ClazzLogListAttendanceViewModel$slambda_0(this, null)); } protoOf(ClazzLogListAttendanceViewModel).jty = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.attendancelist.ClazzLogListAttendanceViewModel.onDismissCreateNewOptions.' call var nextValue = prevValue.atu(VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzLogListAttendanceViewModel).rpv = function (searchText) { }; protoOf(ClazzLogListAttendanceViewModel).spv = function () { }; protoOf(ClazzLogListAttendanceViewModel).dtv = function (option) { var tmp0 = option.za_1; if (tmp0 === 1) { Companion_getInstance_118(); var tmp = to('timeZone', this.xpu_1.t2().ttt_1); Companion_getInstance_108(); this.kpw('ClazzLogEdit', mapOf([tmp, to('clazzUid', this.btv_1.toString())])); this.jty(); } else if (tmp0 === 0) { if (this.dpn().equals(Companion_getInstance_91().hp6_1)) return Unit_instance; this.cpn(Companion_getInstance_91().hp6_1); var tmp_0 = this.tpm(); launch(tmp_0, VOID, VOID, ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda_0(this, null)); } }; protoOf(ClazzLogListAttendanceViewModel).kty = function (clazzLog) { Companion_getInstance_108(); var tmp = to('entityUid', clazzLog.m9q_1.toString()); Companion_getInstance_118(); this.epm_1.hob('EditAttendance', mapOf([tmp, to('clazzUid', this.btv_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().hlt().ils() : 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().cm6_1, 7), new MessageIdOption2(strings_getInstance().cm8_1, 30), new MessageIdOption2(strings_getInstance().oma_1, 90)]) : viewIdToNumDays; createNewOptionsVisible = createNewOptionsVisible === VOID ? false : createNewOptionsVisible; this.stt_1 = graphData; this.ttt_1 = timeZoneId; this.utt_1 = recordAttendanceOptions; this.vtt_1 = clazzLogsList; this.wtt_1 = fieldsEnabled; this.xtt_1 = selectedChipId; this.ytt_1 = viewIdToNumDays; this.ztt_1 = createNewOptionsVisible; } protoOf(ClazzLogListAttendanceUiState).lty = function (graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible) { return new ClazzLogListAttendanceUiState(graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible); }; protoOf(ClazzLogListAttendanceUiState).atu = function (graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible, $super) { graphData = graphData === VOID ? this.stt_1 : graphData; timeZoneId = timeZoneId === VOID ? this.ttt_1 : timeZoneId; recordAttendanceOptions = recordAttendanceOptions === VOID ? this.utt_1 : recordAttendanceOptions; clazzLogsList = clazzLogsList === VOID ? this.vtt_1 : clazzLogsList; fieldsEnabled = fieldsEnabled === VOID ? this.wtt_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.xtt_1 : selectedChipId; viewIdToNumDays = viewIdToNumDays === VOID ? this.ytt_1 : viewIdToNumDays; createNewOptionsVisible = createNewOptionsVisible === VOID ? this.ztt_1 : createNewOptionsVisible; return $super === VOID ? this.lty(graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible) : $super.lty.call(this, graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible); }; protoOf(ClazzLogListAttendanceUiState).toString = function () { return 'ClazzLogListAttendanceUiState(graphData=' + this.stt_1 + ', timeZoneId=' + this.ttt_1 + ', recordAttendanceOptions=' + this.utt_1 + ', clazzLogsList=' + this.vtt_1 + ', fieldsEnabled=' + this.wtt_1 + ', selectedChipId=' + this.xtt_1 + ', viewIdToNumDays=' + this.ytt_1 + ', createNewOptionsVisible=' + this.ztt_1 + ')'; }; protoOf(ClazzLogListAttendanceUiState).hashCode = function () { var result = this.stt_1 == null ? 0 : this.stt_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.ttt_1) | 0; result = imul(result, 31) + hashCode(this.utt_1) | 0; result = imul(result, 31) + hashCode(this.vtt_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.wtt_1) | 0; result = imul(result, 31) + this.xtt_1 | 0; result = imul(result, 31) + hashCode(this.ytt_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ztt_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.stt_1, tmp0_other_with_cast.stt_1)) return false; if (!(this.ttt_1 === tmp0_other_with_cast.ttt_1)) return false; if (!equals(this.utt_1, tmp0_other_with_cast.utt_1)) return false; if (!equals(this.vtt_1, tmp0_other_with_cast.vtt_1)) return false; if (!(this.wtt_1 === tmp0_other_with_cast.wtt_1)) return false; if (!(this.xtt_1 === tmp0_other_with_cast.xtt_1)) return false; if (!equals(this.ytt_1, tmp0_other_with_cast.ytt_1)) return false; if (!(this.ztt_1 === tmp0_other_with_cast.ztt_1)) return false; return true; }; function ClazzLogEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$slambda$slambda).vty = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.vty(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).vn7 = function (it, completion) { var i = new ClazzLogEditViewModel$slambda$slambda(completion); i.uty_1 = it; return i; }; function ClazzLogEditViewModel$slambda$slambda_0(resultContinuation) { var i = new ClazzLogEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.vty(it, $completion); }; l.$arity = 1; return l; } function ClazzLogEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.etz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$slambda$slambda_1).ftz = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.ftz($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.n9q_1 = this.etz_1.gu0_1; this_0.o9q_1 = systemTimeInMillis(); return this_0; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogEditViewModel$slambda$slambda_1).l78 = function (completion) { return new ClazzLogEditViewModel$slambda$slambda_1(this.etz_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.ftz($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.eu0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel...' call var nextValue = prevValue.lu0(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzLogEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function Companion_130() { this.mu0_1 = 'ClazzLogEdit'; } var Companion_instance_178; function Companion_getInstance_147() { return Companion_instance_178; } function ClazzLogEditViewModel$slambda(this$0, resultContinuation) { this.vu0_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_35.n4r(); var tmp_1 = ClazzLogEditViewModel$slambda$slambda_0(null); var tmp_2 = ClazzLogEditViewModel$slambda$slambda_2(this.vu0_1, null); suspendResult = this.vu0_1.kpn(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzLogEditViewModel$slambda$lambda(this.vu0_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.vu0_1.gpm_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.vu0_1.apn().tno(strings_getInstance().dlv_1); var nextValue = prevValue.ap6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, ClazzLogEditViewModel$onClickSave$ref(this.vu0_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.vu0_1.eu0_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.lu0(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.vu0_1, completion); i.wu0_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.fu1_1 = $commitDelay; this.gu1_1 = $entity; this.hu1_1 = $this; this.iu1_1 = $key; this.ju1_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.fu1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.gu1_1 == null)) { this.hd_1 = 2; suspendResult = this.hu1_1.gpn(this.hu1_1.cpm_1, this.iu1_1, this.ju1_1, this.gu1_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.fu1_1, this.gu1_1, this.hu1_1, this.iu1_1, this.ju1_1, completion); i.ku1_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.m9q_1 = generateUid($this$shallowCopy); return Unit_instance; } function ClazzLogEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'ClazzLogEdit'); var tmp = this; Companion_getInstance_118(); var tmp0_elvis_lhs = savedStateHandle.ba('timeZone'); tmp.du0_1 = tmp0_elvis_lhs == null ? 'UTC' : tmp0_elvis_lhs; this.eu0_1 = MutableStateFlow(new ClazzLogEditUiState(VOID, VOID, this.du0_1)); this.fu0_1 = asStateFlow(this.eu0_1); var tmp_0 = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.gu0_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.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, this.apn().tno(strings_getInstance().rmk_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = this.tpm(); launch(tmp_1, VOID, VOID, ClazzLogEditViewModel$slambda_0(this, null)); } protoOf(ClazzLogEditViewModel).lu1 = function (clazzLog) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.eu0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.iu0_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o9q_1; var nextValue = prevValue.lu0(VOID, clazzLog, VOID, this.npt(tmp, clazzLog == null ? null : clazzLog.o9q_1, prevValue.ku0_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_35.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.hps_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.tpm(); tmp_0.hps_1 = launch(tmp_1, VOID, VOID, ClazzLogEditViewModel$onEntityChanged$slambda_0(commitDelay, clazzLog, this, key, serializer, null)); }; protoOf(ClazzLogEditViewModel).ur3 = function () { var tmp0_elvis_lhs = this.eu0_1.t2().iu0_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var clazzLog = tmp; var errorMsg = !isDateSet(clazzLog.o9q_1) ? strings_getInstance().dlz_1 : clazzLog.o9q_1.c7(systemTimeInMillis()) > 0 ? strings_getInstance().tmx_1 : null; if (!(errorMsg == null)) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.eu0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel.onClickSave.' call var nextValue = prevValue.lu0(VOID, VOID, VOID, this.apn().tno(errorMsg)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } var clazzLogWithUid = shallowCopy_6(clazzLog, ClazzLogEditViewModel$onClickSave$lambda); var newClazzLogJson = this.m4r().r45(Companion_instance_35.n4r(), clazzLogWithUid); var tmp_0 = to('newclazzlog', newClazzLogJson); Companion_getInstance_118(); this.epm_1.hob('EditAttendance', mapOf([tmp_0, to('clazzUid', this.gu0_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.hu0_1 = fieldsEnabled; this.iu0_1 = clazzLog; this.ju0_1 = timeZone; this.ku0_1 = dateError; } protoOf(ClazzLogEditUiState).mu1 = function (fieldsEnabled, clazzLog, timeZone, dateError) { return new ClazzLogEditUiState(fieldsEnabled, clazzLog, timeZone, dateError); }; protoOf(ClazzLogEditUiState).lu0 = function (fieldsEnabled, clazzLog, timeZone, dateError, $super) { fieldsEnabled = fieldsEnabled === VOID ? this.hu0_1 : fieldsEnabled; clazzLog = clazzLog === VOID ? this.iu0_1 : clazzLog; timeZone = timeZone === VOID ? this.ju0_1 : timeZone; dateError = dateError === VOID ? this.ku0_1 : dateError; return $super === VOID ? this.mu1(fieldsEnabled, clazzLog, timeZone, dateError) : $super.mu1.call(this, fieldsEnabled, clazzLog, timeZone, dateError); }; protoOf(ClazzLogEditUiState).toString = function () { return 'ClazzLogEditUiState(fieldsEnabled=' + this.hu0_1 + ', clazzLog=' + this.iu0_1 + ', timeZone=' + this.ju0_1 + ', dateError=' + this.ku0_1 + ')'; }; protoOf(ClazzLogEditUiState).hashCode = function () { var result = getBooleanHashCode(this.hu0_1); result = imul(result, 31) + (this.iu0_1 == null ? 0 : this.iu0_1.hashCode()) | 0; result = imul(result, 31) + getStringHashCode(this.ju0_1) | 0; result = imul(result, 31) + (this.ku0_1 == null ? 0 : getStringHashCode(this.ku0_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.hu0_1 === tmp0_other_with_cast.hu0_1)) return false; if (!equals(this.iu0_1, tmp0_other_with_cast.iu0_1)) return false; if (!(this.ju0_1 === tmp0_other_with_cast.ju0_1)) return false; if (!(this.ku0_1 == tmp0_other_with_cast.ku0_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.o9q_1; // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel...' call var tmp$ret$1 = b.o9q_1; return compareValues(tmp, tmp$ret$1); } function ClazzLogEditAttendanceViewModel$slambda$slambda(this$0, $newClazzLogVal, resultContinuation) { this.vu1_1 = this$0; this.wu1_1 = $newClazzLogVal; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda).yu1 = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda).he = function (p1, $completion) { return this.yu1(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.xu1_1.m7e(); suspendResult = tmp_0.p9p(this.vu1_1.bu3_1, 8, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var dbLogList = suspendResult; var tmp_1; if (!(this.wu1_1 == null)) { var this_0 = plus(dbLogList, listOf_0(this.wu1_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).vn7 = function (db, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda$slambda(this.vu1_1, this.wu1_1, completion); i.xu1_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.yu1(db, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).ku3 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).m78 = function ($completion) { return this.ku3($completion); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).l78 = function (completion) { return new ClazzLogEditAttendanceViewModel$slambda$slambda_1(completion); }; function ClazzLogEditAttendanceViewModel$slambda$slambda_2(resultContinuation) { var i = new ClazzLogEditAttendanceViewModel$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.ku3($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.wu2_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel...' call var nextValue = prevValue.ru3(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.au4_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.au4_1.wpm().o7d().s8c(this.au4_1.wu2_1.t2().cu4().n9q_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var timeZone = suspendResult; l$ret$1: do { var this_0 = this.au4_1.wu2_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ru3(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.au4_1, completion); i.bu4_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.ur3(); 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.j9l_1; if (tmp_1 === 1) { count = count + 1 | 0; checkCountOverflow(count); } } tmp$ret$0 = count; } tmp.t9q_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.j9l_1; if (tmp_4 === 2) { count_0 = count_0 + 1 | 0; checkCountOverflow(count_0); } } tmp$ret$2 = count_0; } tmp_2.u9q_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.j9l_1; if (tmp_7 === 4) { count_1 = count_1 + 1 | 0; checkCountOverflow(count_1); } } tmp$ret$4 = count_1; } tmp_5.v9q_1 = tmp$ret$4; return Unit_instance; }; } function ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda(this$0, $clazzLogsToSave, $attendanceRecordsToSave, resultContinuation) { this.lu4_1 = this$0; this.mu4_1 = $clazzLogsToSave; this.nu4_1 = $attendanceRecordsToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda).un7 = function (it, $completion) { var tmp = this.vn7(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.un7(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.lu4_1.wpm().m7e().s9p(this.mu4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.lu4_1.wpm().l7e().m9k(this.nu4_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).vn7 = function (it, completion) { var i = new ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda(this.lu4_1, this.mu4_1, this.nu4_1, completion); i.ou4_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.un7(it, $completion); }; l.$arity = 1; return l; } function _get_newClazzLog__zdra0r($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yu2_1; newClazzLog$factory(); return this_0.t2(); } function _set_currentClazzLogIndex__l00dbq($this, value) { $this.cpm_1.epi('activeIndex', toString_0(value)); } function _get_currentClazzLogIndex__yy31c2($this) { var tmp0_safe_receiver = $this.cpm_1.ba('activeIndex'); return tmp0_safe_receiver == null ? null : toInt(tmp0_safe_receiver); } function savePersonAndAttendanceRecords($this, clazzLogUid, records, $completion) { var tmp = new $savePersonAndAttendanceRecordsCOROUTINE$64($this, clazzLogUid, records, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function commitAttendanceRecordsToState($this, $completion) { var tmp = new $commitAttendanceRecordsToStateCOROUTINE$65($this, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_131() { this.ru5_1 = 'newclazzlog'; this.su5_1 = 'EditAttendance'; this.tu5_1 = 'activeIndex'; this.uu5_1 = 'log_'; this.vu5_1 = 'logsToSave'; } var Companion_instance_179; function Companion_getInstance_148() { return Companion_instance_179; } function sam$kotlin_Comparator$0_2(function_0) { this.wu5_1 = function_0; } protoOf(sam$kotlin_Comparator$0_2).pa = function (a, b) { return this.wu5_1(a, b); }; protoOf(sam$kotlin_Comparator$0_2).compare = function (a, b) { return this.pa(a, b); }; function ClazzLogEditAttendanceViewModel$newClazzLog$delegate$lambda($savedStateHandle, this$0) { return function () { var tmp0_safe_receiver = $savedStateHandle.ba('newclazzlog'); var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.newClazzLog$delegate..' call tmp = this$0.m4r().s45(Companion_instance_35.n4r(), tmp0_safe_receiver); } return tmp; }; } function ClazzLogEditAttendanceViewModel$slambda(this$0, resultContinuation) { this.fu6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda).gr6 = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda).he = function (p1, $completion) { return this.gr6(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.gu6_1.o7f(); var tmp_1 = this.fu6_1.upm(); PermissionFlags_getInstance(); suspendResult = tmp_0.pd6(tmp_1, this.fu6_1.bu3_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).vn7 = function (db, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda(this.fu6_1, completion); i.gu6_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.gr6(db, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$slambda_1(this$0, resultContinuation) { this.pu6_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.ru6_1 = _get_newClazzLog__zdra0r(this.pu6_1); this.hd_1 = 1; var tmp_0 = this.pu6_1.vpm().o7f(); var tmp_1 = this.pu6_1.upm(); PermissionFlags_getInstance(); suspendResult = tmp_0.pd6(tmp_1, this.pu6_1.bu3_1, new Long(64, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.su6_1 = suspendResult; this.hd_1 = 2; var tmp_2 = ListSerializer(Companion_instance_35.n4r()); var tmp_3 = ClazzLogEditAttendanceViewModel$slambda$slambda_0(this.pu6_1, this.ru6_1, null); var tmp_4 = ClazzLogEditAttendanceViewModel$slambda$slambda_2(null); suspendResult = this.pu6_1.kpn(tmp_2, VOID, VOID, tmp_3, tmp_4, ClazzLogEditAttendanceViewModel$slambda$lambda(this.pu6_1, this.su6_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: launch(this.qu6_1, VOID, VOID, ClazzLogEditAttendanceViewModel$slambda$slambda_4(this.pu6_1, null)); var currentClazzLogIndexVal = _get_currentClazzLogIndex__yy31c2(this.pu6_1); var tmp_5; if (!(currentClazzLogIndexVal == null)) { tmp_5 = currentClazzLogIndexVal; } else if (!(this.ru6_1 == null)) { var tmp0_elvis_lhs = this.pu6_1.wu2_1.t2().tu6(this.ru6_1.m9q_1); tmp_5 = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs; } else if (!this.pu6_1.ips_1.equals(new Long(0, 0))) { var tmp1_elvis_lhs = this.pu6_1.wu2_1.t2().tu6(this.pu6_1.ips_1); tmp_5 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; } else { tmp_5 = this.pu6_1.wu2_1.t2().nu3_1.u() - 1 | 0; } var startIndex = tmp_5; this.pu6_1.uu6(this.pu6_1.wu2_1.t2().nu3_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.pu6_1, completion); i.qu6_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.du7_1 = $clazzLog; this.eu7_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.gu7_1 = 'log_' + this.du7_1.m9q_1.toString(); this.hd_1 = 1; suspendResult = this.eu7_1.fpn(this.eu7_1.cpm_1, this.gu7_1, ListSerializer(Companion_instance_37.n4r()), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hu7_1 = suspendResult; if (this.hu7_1 == null) { this.hd_1 = 2; suspendResult = this.eu7_1.wpm().l7e().l9k(this.du7_1.n9q_1, this.du7_1.m9q_1, this.du7_1.o9q_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.iu7_1 = this.hu7_1; this.hd_1 = 8; continue $sm; } case 2: this.ju7_1 = suspendResult; var tmp_0 = this; tmp_0.ku7_1 = this.ju7_1; var tmp_1 = this; tmp_1.lu7_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.ju7_1, 10)); this.mu7_1 = this.ku7_1.w(); this.hd_1 = 3; continue $sm; case 3: if (!this.mu7_1.f()) { this.hd_1 = 6; continue $sm; } this.nu7_1 = this.mu7_1.e(); var tmp_2 = this; tmp_2.ou7_1 = this.nu7_1; if (this.ou7_1.d9m_1 == null) { this.qu7_1 = this.ou7_1.b9m_1; var tmp_3 = this; tmp_3.ru7_1 = new ClazzLogAttendanceRecord(); var tmp_4 = this; tmp_4.su7_1 = this.ru7_1; this.hd_1 = 4; var tmp_5 = get_doorPrimaryKeyManager(this.eu7_1.vpm()); suspendResult = tmp_5.o62(15, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_6 = this; tmp_6.pu7_1 = this.ou7_1; this.hd_1 = 5; continue $sm; } case 4: this.tu7_1 = suspendResult; this.su7_1.g9l_1 = this.tu7_1; var tmp_7 = this.su7_1; var tmp0_safe_receiver = this.ou7_1.b9m_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s95_1; tmp_7.i9l_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.su7_1.h9l_1 = this.du7_1.m9q_1; this.uu7_1 = this.ru7_1; this.vu7_1 = this.ou7_1.c9m_1; this.pu7_1 = new PersonAndClazzLogAttendanceRecord(this.qu7_1, this.vu7_1, this.uu7_1); this.hd_1 = 5; continue $sm; case 5: this.wu7_1 = this.pu7_1; this.lu7_1.i1(this.wu7_1); this.hd_1 = 3; continue $sm; case 6: this.xu7_1 = this.lu7_1; var tmp_8 = this; tmp_8.yu7_1 = this.xu7_1; this.hd_1 = 7; suspendResult = savePersonAndAttendanceRecords(this.eu7_1, this.du7_1.m9q_1, this.yu7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.iu7_1 = this.xu7_1; this.hd_1 = 8; continue $sm; case 8: var personAndAttendanceRecords = this.iu7_1; l$ret$1: do { var this_0 = this.eu7_1.wu2_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ru3(personAndAttendanceRecords, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.eu7_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_9; if (!prevValue_0.tp5_1.wp4_1) { var tmp_10 = this.eu7_1.wu2_1.t2().pu3_1; var tmp_11 = this.eu7_1.apn().tno(strings_getInstance().eme_1); tmp_9 = prevValue_0.ap6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(tmp_10, tmp_11, VOID, ClazzLogEditAttendanceViewModel$onClickSave$ref(this.eu7_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.du7_1, this.eu7_1, completion); i.fu7_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.b9m_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s95_1; var tmp1_safe_receiver = $record.b9m_1; return equals(tmp, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s95_1); }; } function ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda(this$0, resultContinuation) { this.hu8_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.hu8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.hu8_1, completion); i.iu8_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.j9l_1 = $status; return Unit_instance; }; } function ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda(this$0, resultContinuation) { this.ru8_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.ru8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.ru8_1, completion); i.su8_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.bu9_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.du9_1 = this.bu9_1.au3_1; var tmp_1 = this; tmp_1.eu9_1 = null; this.hd_1 = 2; suspendResult = this.du9_1.a24(this.eu9_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.gu9_1 = ArrayList_init_$Create$(); var tmp_3 = this; tmp_3.hu9_1 = ArrayList_init_$Create$(); this.hd_1 = 4; suspendResult = this.bu9_1.fpn(this.bu9_1.cpm_1, 'logsToSave', ListSerializer(serializer_1(Companion_getInstance_2())), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.iu9_1 = suspendResult; this.ju9_1 = this.iu9_1 == null ? emptyList() : this.iu9_1; var tmp_4 = this; tmp_4.ku9_1 = this.ju9_1; this.lu9_1 = this.ku9_1.w(); this.hd_1 = 5; continue $sm; case 5: if (!this.lu9_1.f()) { this.hd_1 = 7; continue $sm; } this.mu9_1 = this.lu9_1.e(); var tmp_5 = this; tmp_5.nu9_1 = this.mu9_1; var tmp_6 = this; var tmp$ret$0; l$ret$1: do { var tmp0_iterator = this.bu9_1.wu2_1.t2().nu3_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.m9q_1.equals(this.nu9_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.ou9_1 = tmp$ret$0; this.hd_1 = 6; suspendResult = this.bu9_1.fpn(this.bu9_1.cpm_1, 'log_' + this.nu9_1.toString(), ListSerializer(Companion_instance_37.n4r()), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.pu9_1 = suspendResult; var tmp_7 = this; var tmp_8; if (this.pu9_1 == null) { tmp_8 = null; } else { var this_0 = this.pu9_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.d9m_1; if (tmp0_safe_receiver == null) null; else { destination.i1(tmp0_safe_receiver); } } tmp_8 = destination; } tmp_7.qu9_1 = tmp_8; this.ru9_1 = this.qu9_1 == null ? emptyList() : this.qu9_1; var this_1 = this.gu9_1; var element_1 = shallowCopy_6(this.ou9_1, ClazzLogEditAttendanceViewModel$onClickSave$slambda$lambda(this.ru9_1)); this_1.i1(element_1); var this_2 = this.hu9_1; var elements = this.ru9_1; addAll(this_2, elements); this.hd_1 = 5; continue $sm; case 7: this.hd_1 = 8; var tmp_9 = this.bu9_1.wpm(); suspendResult = withDoorTransactionAsync(tmp_9, VOID, ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda_0(this.bu9_1, this.gu9_1, this.hu9_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: this.fu9_1 = suspendResult; this.id_1 = 11; this.hd_1 = 9; continue $sm; case 9: this.id_1 = 11; this.du9_1.l23(this.eu9_1); if (!(_get_newClazzLog__zdra0r(this.bu9_1) == null)) { this.bu9_1.epm_1.sp8('ClazzLogEdit', true); } else { this.bu9_1.lps(this.bu9_1.wu2_1.t2().cu4()); } return Unit_instance; case 10: this.id_1 = 11; var t = this.kd_1; this.du9_1.l23(this.eu9_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.bu9_1, completion); i.cu9_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$64(_this__u8e3s4, clazzLogUid, records, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xu4_1 = _this__u8e3s4; this.yu4_1 = clazzLogUid; this.zu4_1 = records; } protoOf($savePersonAndAttendanceRecordsCOROUTINE$64).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.au5_1 = 'log_' + this.yu4_1.toString(); this.hd_1 = 1; suspendResult = this.xu4_1.gpn(this.xu4_1.cpm_1, this.au5_1, ListSerializer(Companion_instance_37.n4r()), this.zu4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.xu4_1.fpn(this.xu4_1.cpm_1, 'logsToSave', ListSerializer(serializer_1(Companion_getInstance_2())), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.bu5_1 = suspendResult; this.cu5_1 = this.bu5_1 == null ? null : toSet(this.bu5_1); this.du5_1 = this.cu5_1 == null ? emptySet() : this.cu5_1; if (!this.du5_1.a1(this.yu4_1)) { this.eu5_1 = plus_2(this.du5_1, this.yu4_1); this.hd_1 = 3; suspendResult = this.xu4_1.gpn(this.xu4_1.cpm_1, 'logsToSave', ListSerializer(serializer_1(Companion_getInstance_2())), toList(this.eu5_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$65(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nu5_1 = _this__u8e3s4; } protoOf($commitAttendanceRecordsToStateCOROUTINE$65).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.ou5_1 = this.nu5_1.au3_1; var tmp_1 = this; tmp_1.pu5_1 = null; this.hd_1 = 1; suspendResult = this.ou5_1.a24(this.pu5_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.nu5_1, this.nu5_1.wu2_1.t2().cu4().m9q_1, this.nu5_1.wu2_1.t2().lu3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.qu5_1 = suspendResult; this.id_1 = 6; this.hd_1 = 4; continue $sm; case 4: this.id_1 = 6; this.ou5_1.l23(this.pu5_1); return Unit_instance; case 5: this.id_1 = 6; var t = this.kd_1; this.ou5_1.l23(this.pu5_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.wu2_1 = MutableStateFlow(new ClazzLogEditAttendanceUiState()); this.xu2_1 = asStateFlow(this.wu2_1); var tmp = this; tmp.yu2_1 = lazy_0(ClazzLogEditAttendanceViewModel$newClazzLog$delegate$lambda(savedStateHandle, this)); this.zu2_1 = null; this.au3_1 = Mutex(); var tmp_0 = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.bu3_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.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, this.apn().tno(strings_getInstance().tm5_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = ClazzLogEditAttendanceViewModel$slambda_0(this, null); this.mpn(tmp_1, VOID, VOID, ClazzLogEditAttendanceViewModel$slambda_2(this, null)); } protoOf(ClazzLogEditAttendanceViewModel).uu6 = function (clazzLog, forceLoad) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.indexOfFirst' call var index = 0; var tmp0_iterator = this.wu2_1.t2().nu3_1.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onChangeClazzLog.' call if (item.m9q_1.equals(clazzLog.m9q_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.wu2_1.t2().mu3_1 : false) return Unit_instance; $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.wu2_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.nu3_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.m9q_1.equals(clazzLog.m9q_1)) { tmp$ret$3 = index_0; break $l$block_0; } index_0 = index_0 + 1 | 0; } tmp$ret$3 = -1; } var nextValue = prevValue.ru3(VOID, tmp$ret$3, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block_1; } } } var tmp0_safe_receiver = this.zu2_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.tpm(); tmp.zu2_1 = launch(tmp_0, VOID, VOID, ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda_0(clazzLog, this, null)); }; protoOf(ClazzLogEditAttendanceViewModel).su9 = function (clazzLog, forceLoad, $super) { forceLoad = forceLoad === VOID ? false : forceLoad; var tmp; if ($super === VOID) { this.uu6(clazzLog, forceLoad); tmp = Unit_instance; } else { tmp = $super.uu6.call(this, clazzLog, forceLoad); } return tmp; }; protoOf(ClazzLogEditAttendanceViewModel).tu9 = function (record) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.wu2_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onClazzLogAttendanceChanged.' call var nextValue = prevValue.ru3(replace_0(prevValue.lu3_1, record, ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$lambda(record))); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.tpm(); launch(tmp, VOID, VOID, ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda_0(this, null)); }; protoOf(ClazzLogEditAttendanceViewModel).uu9 = function (status) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.wu2_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.lu3_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.d9m_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.xjn(VOID, VOID, tmp); destination.i1(tmp$ret$0); } var nextValue = prevValue.ru3(destination); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.tpm(); launch(tmp_0, VOID, VOID, ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda_0(this, null)); }; protoOf(ClazzLogEditAttendanceViewModel).ur3 = function () { var tmp = this.tpm(); 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.lu3_1 = clazzLogAttendanceRecordList; this.mu3_1 = currentClazzLogIndex; this.nu3_1 = clazzLogsList; this.ou3_1 = fieldsEnabled; this.pu3_1 = canEdit; this.qu3_1 = timeZone; } protoOf(ClazzLogEditAttendanceUiState).tu6 = 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.nu3_1.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceUiState.indexOfClazzLogUid.' call if (item.m9q_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).cu4 = function () { return this.nu3_1.v(this.mu3_1); }; protoOf(ClazzLogEditAttendanceUiState).vu9 = function (clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone) { return new ClazzLogEditAttendanceUiState(clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone); }; protoOf(ClazzLogEditAttendanceUiState).ru3 = function (clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone, $super) { clazzLogAttendanceRecordList = clazzLogAttendanceRecordList === VOID ? this.lu3_1 : clazzLogAttendanceRecordList; currentClazzLogIndex = currentClazzLogIndex === VOID ? this.mu3_1 : currentClazzLogIndex; clazzLogsList = clazzLogsList === VOID ? this.nu3_1 : clazzLogsList; fieldsEnabled = fieldsEnabled === VOID ? this.ou3_1 : fieldsEnabled; canEdit = canEdit === VOID ? this.pu3_1 : canEdit; timeZone = timeZone === VOID ? this.qu3_1 : timeZone; return $super === VOID ? this.vu9(clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone) : $super.vu9.call(this, clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone); }; protoOf(ClazzLogEditAttendanceUiState).toString = function () { return 'ClazzLogEditAttendanceUiState(clazzLogAttendanceRecordList=' + this.lu3_1 + ', currentClazzLogIndex=' + this.mu3_1 + ', clazzLogsList=' + this.nu3_1 + ', fieldsEnabled=' + this.ou3_1 + ', canEdit=' + this.pu3_1 + ', timeZone=' + this.qu3_1 + ')'; }; protoOf(ClazzLogEditAttendanceUiState).hashCode = function () { var result = hashCode(this.lu3_1); result = imul(result, 31) + this.mu3_1 | 0; result = imul(result, 31) + hashCode(this.nu3_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ou3_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.pu3_1) | 0; result = imul(result, 31) + getStringHashCode(this.qu3_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.lu3_1, tmp0_other_with_cast.lu3_1)) return false; if (!(this.mu3_1 === tmp0_other_with_cast.mu3_1)) return false; if (!equals(this.nu3_1, tmp0_other_with_cast.nu3_1)) return false; if (!(this.ou3_1 === tmp0_other_with_cast.ou3_1)) return false; if (!(this.pu3_1 === tmp0_other_with_cast.pu3_1)) return false; if (!(this.qu3_1 === tmp0_other_with_cast.qu3_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().xmz_1; break; case 4: tmp = strings_getInstance().ymz_1; break; case 3: tmp = strings_getInstance().zmz_1; break; case 2: tmp = strings_getInstance().an0_1; break; case 1: tmp = strings_getInstance().bn0_1; break; case 0: tmp = strings_getInstance().cn0_1; break; default: noWhenBranchMatchedException(); break; } return tmp; } function get_contentTypeStringResource(_this__u8e3s4) { var tmp; if (!_this__u8e3s4.iai_1) { tmp = strings_getInstance().emo_1; } else { var tmp0_subject = _this__u8e3s4.nai_1; var tmp_0; if (tmp0_subject === 1) { tmp_0 = strings_getInstance().jly_1; } else { if (tmp0_subject === 2) { tmp_0 = strings_getInstance().hly_1; } else { if (tmp0_subject === 3) { tmp_0 = strings_getInstance().ily_1; } else { if (tmp0_subject === 4) { tmp_0 = strings_getInstance().jml_1; } else { if (tmp0_subject === 5) { tmp_0 = strings_getInstance().mly_1; } else { if (tmp0_subject === 6) { tmp_0 = strings_getInstance().kly_1; } else { if (tmp0_subject === 7) { tmp_0 = strings_getInstance().lly_1; } else { tmp_0 = strings_getInstance().rlt_1; } } } } } } } tmp = tmp_0; } return tmp; } function Companion_132() { Companion_instance_180 = this; this.wu9_1 = 'ContentEntry'; var tmp = this; Companion_getInstance_118(); Companion_getInstance_118(); Companion_getInstance_118(); Companion_getInstance_118(); tmp.xu9_1 = listOf(['entityUid', 'clazzUid', 'parentUid', 'courseBlockUid']); } var Companion_instance_180; function Companion_getInstance_149() { if (Companion_instance_180 == null) new Companion_132(); return Companion_instance_180; } function ContentEntryDetailViewModel(di, savedStateHandle) { Companion_getInstance_149(); 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.opn(this_0, Companion_getInstance_149().xu9_1); var tmp$ret$2 = this_0.f3(); var tmp_0 = new TabItem('ContentEntryDetailOverviewView', tmp$ret$2, this.apn().tno(strings_getInstance().ymf_1)); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_1 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.detail.ContentEntryDetailViewModel._uiState.' call this.opn(this_1, Companion_getInstance_149().xu9_1); var tmp$ret$5 = this_1.f3(); tmp.uua_1 = MutableStateFlow(new ContentEntryDetailUiState(listOf([tmp_0, new TabItem('ContentEntryDetailAttemptsPersonList', tmp$ret$5, this.apn().tno(strings_getInstance().tly_1))]))); this.vua_1 = asStateFlow(this.uua_1); } function ContentEntryDetailUiState(tabs) { tabs = tabs === VOID ? emptyList() : tabs; this.wua_1 = tabs; } protoOf(ContentEntryDetailUiState).toString = function () { return 'ContentEntryDetailUiState(tabs=' + this.wua_1 + ')'; }; protoOf(ContentEntryDetailUiState).hashCode = function () { return hashCode(this.wua_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.wua_1, tmp0_other_with_cast.wua_1)) return false; return true; }; function ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.fub_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda).hub = function (contentEntry, $completion) { var tmp = this.iub(contentEntry, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.hub((p1 == null ? true : p1 instanceof ContentEntry) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.fub_1.gpm_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.gub_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.uah_1; var nextValue = prevValue.ap6(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda).iub = function (contentEntry, completion) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda(this.fub_1, completion); i.gub_1 = contentEntry; return i; }; function ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (contentEntry, $completion) { return i.hub(contentEntry, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda(this$0, resultContinuation) { this.rub_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($completion); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.rub_1.wpm().v7d().eah(this.rub_1.suc_1); var tmp_1 = ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda_0(this.rub_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_21(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda).l78 = function (completion) { return new ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda(this.rub_1, completion); }; function ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($completion) { return i.z86($completion); }; l.$arity = 0; return l; } function buildSortOptions($this, db, $completion) { var tmp = new $buildSortOptionsCOROUTINE$66($this, db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_133() { this.eud_1 = 'ContentEntryDetailAttemptsPersonList'; } var Companion_instance_181; function Companion_getInstance_150() { return Companion_instance_181; } function sam$kotlinx_coroutines_flow_FlowCollector$0_21(function_0) { this.fud_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_21).t1d = function (value, $completion) { return this.fud_1(value, $completion); }; function ContentEntryDetailAttemptsPersonListViewModel$attemptsPersonListPagingSource$lambda(this$0) { return function () { return this$0.wpm().j7e().uis(this$0.suc_1, this$0.upm(), toQueryLikeParam(this$0.gpm_1.t2().sp5_1.hp5_1), this$0.xpu_1.t2().iud_1.ypb_1); }; } function ContentEntryDetailAttemptsPersonListViewModel$slambda(this$0, resultContinuation) { this.sud_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; tmp_0.uud_1 = listOf([this.sud_1.vpm(), this.sud_1.wpm()]); this.vud_1 = this.uud_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.vud_1.f()) { this.hd_1 = 3; continue $sm; } this.wud_1 = this.vud_1.e(); var tmp_1 = this; tmp_1.xud_1 = this.wud_1; this.hd_1 = 2; suspendResult = buildSortOptions(this.sud_1, this.xud_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var sortOptions = suspendResult; l$ret$1: do { var this_0 = this.sud_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.yud(VOID, sortOptions); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 1; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda(this.sud_1, completion); i.tud_1 = $this$launch; return i; }; function ContentEntryDetailAttemptsPersonListViewModel$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsPersonListViewModel$slambda_1(this$0, resultContinuation) { this.hue_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda_1).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.hue_1.xpu_1, ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda_0(this.hue_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda_1).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda_1(this.hue_1, completion); i.iue_1 = $this$launch; return i; }; function ContentEntryDetailAttemptsPersonListViewModel$slambda_2(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function $buildSortOptionsCOROUTINE$66(_this__u8e3s4, db, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cud_1 = _this__u8e3s4; this.dud_1 = db; } protoOf($buildSortOptionsCOROUTINE$66).ud = function () { var suspendResult = 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.dud_1.j7e().yis(this.cud_1.suc_1, this.cud_1.upm(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var list = suspendResult; var tmp$ret$0; l$ret$1: do { var tmp_0; if (isInterface(list, Collection)) { tmp_0 = list.c1(); } else { tmp_0 = false; } if (tmp_0) { tmp$ret$0 = false; break l$ret$1; } var tmp0_iterator = list.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (!(element.ciu_1 == null)) { tmp$ret$0 = true; break l$ret$1; } } tmp$ret$0 = false; } while (false); var tmp_1 = tmp$ret$0; var tmp$ret$2; l$ret$3: do { var tmp_2; if (isInterface(list, Collection)) { tmp_2 = list.c1(); } else { tmp_2 = false; } if (tmp_2) { tmp$ret$2 = false; break l$ret$3; } var tmp0_iterator_0 = list.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); if (!(element_0.nit_1 == null)) { tmp$ret$2 = true; break l$ret$3; } } tmp$ret$2 = false; } while (false); var tmp0_container = new Pair(tmp_1, tmp$ret$2); var hasProgressData = tmp0_container.y6(); var hasScoreData = tmp0_container.z6(); var this_0 = ArrayList_init_$Create$(); var tmp_3 = strings_getInstance().klv_1; var tmp_4 = new SortOrderOption(tmp_3, 1, true); var tmp_5 = strings_getInstance().klv_1; var tmp_6 = new SortOrderOption(tmp_5, 2, false); var tmp_7 = strings_getInstance().jlv_1; var tmp_8 = new SortOrderOption(tmp_7, 3, true); var tmp_9 = strings_getInstance().jlv_1; this_0.m1(listOf([tmp_4, tmp_6, tmp_8, new SortOrderOption(tmp_9, 4, false)])); if (hasScoreData) { var tmp_10 = strings_getInstance().mlv_1; var tmp_11 = new SortOrderOption(tmp_10, 5, true); var tmp_12 = strings_getInstance().mlv_1; this_0.m1(listOf([tmp_11, new SortOrderOption(tmp_12, 6, false)])); } if (hasProgressData) { var tmp_13 = strings_getInstance().un0_1; var tmp_14 = new SortOrderOption(tmp_13, 7, true); var tmp_15 = strings_getInstance().un0_1; this_0.m1(listOf([tmp_14, new SortOrderOption(tmp_15, 8, false)])); } var tmp_16 = strings_getInstance().gmw_1; var tmp_17 = new SortOrderOption(tmp_16, 10, null); var tmp_18 = strings_getInstance().llv_1; this_0.m1(listOf([tmp_17, new SortOrderOption(tmp_18, 9, null)])); return this_0.f3(); case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function ContentEntryDetailAttemptsPersonListViewModel(di, savedStateHandle, destinationName) { destinationName = destinationName === VOID ? 'ContentEntryDetailAttemptsPersonList' : destinationName; UstadListViewModel.call(this, di, savedStateHandle, new ContentEntryDetailAttemptsPersonListUiState(), destinationName); var tmp = this; Companion_getInstance_108(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.suc_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; tmp_0.tuc_1 = ContentEntryDetailAttemptsPersonListViewModel$attemptsPersonListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsPersonListViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.gpw()); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.xpu_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsPersonListViewModel.' call var nextValue_0 = prevValue_0.yud(this.tuc_1); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_1 = this.tpm(); launch(tmp_1, VOID, VOID, ContentEntryDetailAttemptsPersonListViewModel$slambda_0(this, null)); var tmp_2 = this.tpm(); launch(tmp_2, VOID, VOID, ContentEntryDetailAttemptsPersonListViewModel$slambda_2(this, null)); } protoOf(ContentEntryDetailAttemptsPersonListViewModel).jue = function (entry) { Companion_getInstance_108(); var tmp = to('personUid', entry.xiu_1.s95_1.toString()); Companion_getInstance_108(); this.epm_1.hob('ContentEntryDetailAttemptsSessionList', mapOf([tmp, to('entryid', this.suc_1.toString())])); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel).rpv = function (searchText) { this.zpu_1.i1h(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel).spv = function () { }; protoOf(ContentEntryDetailAttemptsPersonListViewModel).rrn = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsPersonListViewModel.onSortOrderChanged.' call var nextValue = prevValue.yud(VOID, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.zpu_1.i1h(new RefreshCommand()); }; function ContentEntryDetailAttemptsPersonListUiState$_init_$lambda_s6nk3z() { return new EmptyPagingSource(); } function ContentEntryDetailAttemptsPersonListUiState(attemptsPersonList, sortOptions, sortOption, showSortOptions) { var tmp; if (attemptsPersonList === VOID) { tmp = ContentEntryDetailAttemptsPersonListUiState$_init_$lambda_s6nk3z; } else { tmp = attemptsPersonList; } attemptsPersonList = tmp; var tmp_0; if (sortOptions === VOID) { var tmp_1 = strings_getInstance().gmw_1; var tmp_2 = new SortOrderOption(tmp_1, 10, null); var tmp_3 = strings_getInstance().llv_1; tmp_0 = listOf([tmp_2, new SortOrderOption(tmp_3, 9, null)]); } else { tmp_0 = sortOptions; } sortOptions = tmp_0; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; showSortOptions = showSortOptions === VOID ? true : showSortOptions; this.gud_1 = attemptsPersonList; this.hud_1 = sortOptions; this.iud_1 = sortOption; this.jud_1 = showSortOptions; } protoOf(ContentEntryDetailAttemptsPersonListUiState).kue = function (attemptsPersonList, sortOptions, sortOption, showSortOptions) { return new ContentEntryDetailAttemptsPersonListUiState(attemptsPersonList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsPersonListUiState).yud = function (attemptsPersonList, sortOptions, sortOption, showSortOptions, $super) { attemptsPersonList = attemptsPersonList === VOID ? this.gud_1 : attemptsPersonList; sortOptions = sortOptions === VOID ? this.hud_1 : sortOptions; sortOption = sortOption === VOID ? this.iud_1 : sortOption; showSortOptions = showSortOptions === VOID ? this.jud_1 : showSortOptions; return $super === VOID ? this.kue(attemptsPersonList, sortOptions, sortOption, showSortOptions) : $super.kue.call(this, attemptsPersonList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsPersonListUiState).toString = function () { return 'ContentEntryDetailAttemptsPersonListUiState(attemptsPersonList=' + this.gud_1 + ', sortOptions=' + this.hud_1 + ', sortOption=' + this.iud_1 + ', showSortOptions=' + this.jud_1 + ')'; }; protoOf(ContentEntryDetailAttemptsPersonListUiState).hashCode = function () { var result = hashCode(this.gud_1); result = imul(result, 31) + hashCode(this.hud_1) | 0; result = imul(result, 31) + this.iud_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.jud_1) | 0; return result; }; protoOf(ContentEntryDetailAttemptsPersonListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryDetailAttemptsPersonListUiState)) return false; var tmp0_other_with_cast = other instanceof ContentEntryDetailAttemptsPersonListUiState ? other : THROW_CCE(); if (!equals(this.gud_1, tmp0_other_with_cast.gud_1)) return false; if (!equals(this.hud_1, tmp0_other_with_cast.hud_1)) return false; if (!this.iud_1.equals(tmp0_other_with_cast.iud_1)) return false; if (!(this.jud_1 === tmp0_other_with_cast.jud_1)) return false; return true; }; function ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda(this$0, resultContinuation) { this.tue_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda).vue = function ($this$async, $completion) { var tmp = this.v1m($this$async, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda).he = function (p1, $completion) { return this.vue((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = firstOrNull_1(this.tue_1.wpm().n7d().ffp(this.tue_1.xuf_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda).v1m = function ($this$async, completion) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda(this.tue_1, completion); i.uue_1 = $this$async; return i; }; function ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($this$async, $completion) { return i.vue($this$async, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.hug_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1).jug = function ($this$async, $completion) { var tmp = this.v1m($this$async, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1).he = function (p1, $completion) { return this.jug((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = firstOrNull_1(this.hug_1.wpm().v7d().eah(this.hug_1.wuf_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1).v1m = function ($this$async, completion) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1(this.hug_1, completion); i.iug_1 = $this$async; return i; }; function ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_2(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1(this$0, resultContinuation); var l = function ($this$async, $completion) { return i.jug($this$async, $completion); }; l.$arity = 1; return l; } function getAttemptsSessionListAsPagingSource($this, contentEntryUid, personUid) { return $this.wpm().j7e().vis(contentEntryUid, personUid, $this.upm(), $this.xpu_1.t2().mug_1.ypb_1); } function Companion_134() { this.oug_1 = 'ContentEntryDetailAttemptsSessionList'; } var Companion_instance_182; function Companion_getInstance_151() { return Companion_instance_182; } function ContentEntryDetailAttemptsSessionListViewModel$attemptsSessionListPagingSource$lambda(this$0) { return function () { return getAttemptsSessionListAsPagingSource(this$0, this$0.wuf_1, this$0.xuf_1); }; } function ContentEntryDetailAttemptsSessionListViewModel$slambda(this$0, resultContinuation) { this.xug_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; tmp_0.zug_1 = async(this.yug_1, VOID, VOID, ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_0(this.xug_1, null)); var tmp_1 = this; tmp_1.auh_1 = async(this.yug_1, VOID, VOID, ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_2(this.xug_1, null)); this.hd_1 = 1; suspendResult = this.zug_1.nv(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.buh_1 = suspendResult; this.hd_1 = 2; suspendResult = this.auh_1.nv(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var contentEntry = suspendResult; var tmp0_safe_receiver = this.buh_1; var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xfs_1; var tmp1_safe_receiver = this.buh_1; var tmp_3 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.yfs_1; var tmp3_elvis_lhs = contentEntry == null ? null : contentEntry.uah_1; var combinedTitle = '' + tmp_2 + ' ' + tmp_3 + ' - ' + (tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs); l$ret$1: do { var this_0 = this.xug_1.gpm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ap6(VOID, VOID, combinedTitle); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda(this.xug_1, completion); i.yug_1 = $this$launch; return i; }; function ContentEntryDetailAttemptsSessionListViewModel$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsSessionListViewModel$onSortOrderChanged$lambda(this$0) { return function () { return getAttemptsSessionListAsPagingSource(this$0, this$0.wuf_1, this$0.xuf_1); }; } function ContentEntryDetailAttemptsSessionListViewModel(di, savedStateHandle, destinationName) { destinationName = destinationName === VOID ? 'ContentEntryDetailAttemptsSessionList' : destinationName; UstadListViewModel.call(this, di, savedStateHandle, new ContentEntryDetailAttemptsSessionListUiState(), destinationName); var tmp = this; Companion_getInstance_108(); var tmp0_safe_receiver = savedStateHandle.ba('entryid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.wuf_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.xuf_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this; tmp_1.yuf_1 = ContentEntryDetailAttemptsSessionListViewModel$attemptsSessionListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsSessionListViewModel.' call var nextValue = prevValue.cuh(this.yuf_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.tpm(); launch(tmp_2, VOID, VOID, ContentEntryDetailAttemptsSessionListViewModel$slambda_0(this, null)); } protoOf(ContentEntryDetailAttemptsSessionListViewModel).duh = function (entry) { Companion_getInstance_108(); var tmp = to('personUid', this.xuf_1.toString()); Companion_getInstance_108(); var tmp_0 = to('entryid', this.wuf_1.toString()); Companion_getInstance_108(); var tmp_1 = to('contextRegistrationIdHi', entry.hiw_1.toString()); Companion_getInstance_108(); this.epm_1.hob('ContentEntryDetailAttemptsStatementList', mapOf([tmp, tmp_0, tmp_1, to('contextRegistrationIdLo', entry.iiw_1.toString())])); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel).rrn = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsSessionListViewModel.onSortOrderChanged.' call var nextValue = prevValue.cuh(ContentEntryDetailAttemptsSessionListViewModel$onSortOrderChanged$lambda(this), VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.zpu_1.i1h(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel).rpv = function (searchText) { // Inline function 'kotlin.TODO' call var reason = 'Not yet implemented'; throw new NotImplementedError('An operation is not implemented: ' + reason); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel).spv = function () { // Inline function 'kotlin.TODO' call var reason = 'Not yet implemented'; throw new NotImplementedError('An operation is not implemented: ' + reason); }; function ContentEntryDetailAttemptsSessionListUiState$_init_$lambda_970utq() { return new EmptyPagingSource(); } function ContentEntryDetailAttemptsSessionListUiState(attemptsSessionList, sortOptions, sortOption, showSortOptions) { var tmp; if (attemptsSessionList === VOID) { tmp = ContentEntryDetailAttemptsSessionListUiState$_init_$lambda_970utq; } else { tmp = attemptsSessionList; } attemptsSessionList = tmp; var tmp_0; if (sortOptions === VOID) { var tmp_1 = strings_getInstance().gmw_1; var tmp_2 = new SortOrderOption(tmp_1, 1, null); var tmp_3 = strings_getInstance().llv_1; var tmp_4 = new SortOrderOption(tmp_3, 2, null); var tmp_5 = strings_getInstance().mlv_1; var tmp_6 = new SortOrderOption(tmp_5, 3, true); var tmp_7 = strings_getInstance().mlv_1; var tmp_8 = new SortOrderOption(tmp_7, 4, false); var tmp_9 = strings_getInstance().nlv_1; var tmp_10 = new SortOrderOption(tmp_9, 5, true); var tmp_11 = strings_getInstance().nlv_1; tmp_0 = listOf([tmp_2, tmp_4, tmp_6, tmp_8, tmp_10, new SortOrderOption(tmp_11, 6, false)]); } else { tmp_0 = sortOptions; } sortOptions = tmp_0; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; showSortOptions = showSortOptions === VOID ? true : showSortOptions; this.kug_1 = attemptsSessionList; this.lug_1 = sortOptions; this.mug_1 = sortOption; this.nug_1 = showSortOptions; } protoOf(ContentEntryDetailAttemptsSessionListUiState).euh = function (attemptsSessionList, sortOptions, sortOption, showSortOptions) { return new ContentEntryDetailAttemptsSessionListUiState(attemptsSessionList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsSessionListUiState).cuh = function (attemptsSessionList, sortOptions, sortOption, showSortOptions, $super) { attemptsSessionList = attemptsSessionList === VOID ? this.kug_1 : attemptsSessionList; sortOptions = sortOptions === VOID ? this.lug_1 : sortOptions; sortOption = sortOption === VOID ? this.mug_1 : sortOption; showSortOptions = showSortOptions === VOID ? this.nug_1 : showSortOptions; return $super === VOID ? this.euh(attemptsSessionList, sortOptions, sortOption, showSortOptions) : $super.euh.call(this, attemptsSessionList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsSessionListUiState).toString = function () { return 'ContentEntryDetailAttemptsSessionListUiState(attemptsSessionList=' + this.kug_1 + ', sortOptions=' + this.lug_1 + ', sortOption=' + this.mug_1 + ', showSortOptions=' + this.nug_1 + ')'; }; protoOf(ContentEntryDetailAttemptsSessionListUiState).hashCode = function () { var result = hashCode(this.kug_1); result = imul(result, 31) + hashCode(this.lug_1) | 0; result = imul(result, 31) + this.mug_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.nug_1) | 0; return result; }; protoOf(ContentEntryDetailAttemptsSessionListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryDetailAttemptsSessionListUiState)) return false; var tmp0_other_with_cast = other instanceof ContentEntryDetailAttemptsSessionListUiState ? other : THROW_CCE(); if (!equals(this.kug_1, tmp0_other_with_cast.kug_1)) return false; if (!equals(this.lug_1, tmp0_other_with_cast.lug_1)) return false; if (!this.mug_1.equals(tmp0_other_with_cast.mug_1)) return false; if (!(this.nug_1 === tmp0_other_with_cast.nug_1)) return false; return true; }; function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.nuh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda).puh = function (verbs, $completion) { var tmp = this.quh(verbs, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.puh((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.nuh_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xuh(VOID, VOID, VOID, VOID, this.ouh_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda).quh = function (verbs, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda(this.nuh_1, completion); i.ouh_1 = verbs; return i; }; function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (verbs, $completion) { return i.puh(verbs, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.gui_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1).hub = function (contentEntry, $completion) { var tmp = this.iub(contentEntry, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.hub((p1 == null ? true : p1 instanceof ContentEntry) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.gui_1.gpm_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.hui_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.uah_1; var nextValue = prevValue.ap6(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1).iub = function (contentEntry, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1(this.gui_1, completion); i.hui_1 = contentEntry; return i; }; function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (contentEntry, $completion) { return i.hub(contentEntry, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.qui_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.qui_1.wpm().j7e().xis(this.qui_1.tuj_1, this.qui_1.uuj_1, this.qui_1.suj_1, this.qui_1.vuj_1); var tmp_1 = ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_0(this.qui_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_22(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda(this.qui_1, completion); i.rui_1 = $this$launch; return i; }; function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.guk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.guk_1.wpm().v7d().eah(this.guk_1.vuj_1); var tmp_1 = ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_2(this.guk_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_22(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1(this.guk_1, completion); i.huk_1 = $this$launch; return i; }; function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.quk_1 = $this_launch; this.ruk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.quk_1, VOID, VOID, ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_0(this.ruk_1, null)); launch(this.quk_1, VOID, VOID, ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_2(this.ruk_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda).l78 = function (completion) { return new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda(this.quk_1, this.ruk_1, completion); }; function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda_0($this_launch, this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda($this_launch, this$0, resultContinuation); var l = function ($completion) { return i.z86($completion); }; l.$arity = 0; return l; } function _get_formatStatementResponseUseCase__m72qwj($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wuj_1; formatStatementResponseUseCase$factory_0(); return this_0.t2(); } function Companion_135() { this.suk_1 = 'ContentEntryDetailAttemptsStatementList'; } var Companion_instance_183; function Companion_getInstance_152() { return Companion_instance_183; } function sam$kotlinx_coroutines_flow_FlowCollector$0_22(function_0) { this.tuk_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_22).t1d = function (value, $completion) { return this.tuk_1(value, $completion); }; function ContentEntryDetailAttemptsStatementListViewModel$attemptsStatementListPagingSource$lambda(this$0) { return function () { return this$0.wpm().j7e().wis(this$0.tuj_1, this$0.uuj_1, this$0.upm(), this$0.suj_1, this$0.vuj_1, toQueryLikeParam(this$0.gpm_1.t2().sp5_1.hp5_1), this$0.xpu_1.t2().tuh_1.ypb_1, this$0.xpu_1.t2().wuh_1); }; } function ContentEntryDetailAttemptsStatementListViewModel$slambda(this$0, resultContinuation) { this.cul_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.cul_1.xpu_1, ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda_0(this.dul_1, this.cul_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda(this.cul_1, completion); i.dul_1 = $this$launch; return i; }; function ContentEntryDetailAttemptsStatementListViewModel$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel(di, savedStateHandle, destinationName) { destinationName = destinationName === VOID ? 'ContentEntryDetailAttemptsStatementList' : destinationName; UstadListViewModel.call(this, di, savedStateHandle, new ContentEntryDetailAttemptsStatementListUiState(), destinationName); var tmp = this; Companion_getInstance_108(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.suj_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('contextRegistrationIdHi'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); tmp_0.tuj_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this; Companion_getInstance_108(); var tmp0_safe_receiver_1 = savedStateHandle.ba('contextRegistrationIdLo'); var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : toLong_0(tmp0_safe_receiver_1); tmp_1.uuj_1 = tmp1_elvis_lhs_1 == null ? new Long(0, 0) : tmp1_elvis_lhs_1; var tmp_2 = this; Companion_getInstance_108(); var tmp0_safe_receiver_2 = savedStateHandle.ba('entryid'); var tmp1_elvis_lhs_2 = tmp0_safe_receiver_2 == null ? null : toLong_0(tmp0_safe_receiver_2); tmp_2.vuj_1 = tmp1_elvis_lhs_2 == null ? new Long(0, 0) : tmp1_elvis_lhs_2; var tmp_3 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveEndpoint(di); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(FormatStatementResponseUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.wuj_1 = Instance(this_0, tmp$ret$0, null).a5d(this, formatStatementResponseUseCase$factory()); var tmp_5 = this; tmp_5.xuj_1 = ContentEntryDetailAttemptsStatementListViewModel$attemptsStatementListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.xpu_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.' call var nextValue = prevValue.xuh(this.xuj_1); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.gpm_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.' call var nextValue_0 = prevValue_0.ap6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.fpw(true)); if (this_2.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_6 = this.tpm(); launch(tmp_6, VOID, VOID, ContentEntryDetailAttemptsStatementListViewModel$slambda_0(this, null)); } protoOf(ContentEntryDetailAttemptsStatementListViewModel).rpv = function (searchText) { this.zpu_1.i1h(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).rrn = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.onSortOrderChanged.' call var tmp0_attemptsStatementList = this.xuj_1; var nextValue = prevValue.xuh(tmp0_attemptsStatementList, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.zpu_1.i1h(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).eul = function (verbEntity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.onVerbFilterToggled.' call var nextValue = prevValue.xuh(VOID, VOID, VOID, VOID, VOID, toggle(prevValue.wuh_1, verbEntity.yix_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.zpu_1.i1h(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).spv = function () { }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).ful = function (statementEntity) { return _get_formatStatementResponseUseCase__m72qwj(this).xow(statementEntity.six_1, statementEntity.vix_1); }; function ContentEntryDetailAttemptsStatementListUiState$_init_$lambda_o4i91x() { return new EmptyPagingSource(); } function ContentEntryDetailAttemptsStatementListUiState(attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids) { var tmp; if (attemptsStatementList === VOID) { tmp = ContentEntryDetailAttemptsStatementListUiState$_init_$lambda_o4i91x; } else { tmp = attemptsStatementList; } attemptsStatementList = tmp; var tmp_0; if (sortOptions === VOID) { var tmp_1 = strings_getInstance().plv_1; var tmp_2 = new SortOrderOption(tmp_1, 1, true); var tmp_3 = strings_getInstance().plv_1; var tmp_4 = new SortOrderOption(tmp_3, 2, false); var tmp_5 = strings_getInstance().mlv_1; var tmp_6 = new SortOrderOption(tmp_5, 3, false); var tmp_7 = strings_getInstance().mlv_1; tmp_0 = listOf([tmp_2, tmp_4, tmp_6, new SortOrderOption(tmp_7, 4, true)]); } else { tmp_0 = sortOptions; } sortOptions = tmp_0; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; showSortOptions = showSortOptions === VOID ? true : showSortOptions; availableVerbs = availableVerbs === VOID ? emptyList() : availableVerbs; deselectedVerbUids = deselectedVerbUids === VOID ? emptyList() : deselectedVerbUids; this.ruh_1 = attemptsStatementList; this.suh_1 = sortOptions; this.tuh_1 = sortOption; this.uuh_1 = showSortOptions; this.vuh_1 = availableVerbs; this.wuh_1 = deselectedVerbUids; } protoOf(ContentEntryDetailAttemptsStatementListUiState).gul = function (attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids) { return new ContentEntryDetailAttemptsStatementListUiState(attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids); }; protoOf(ContentEntryDetailAttemptsStatementListUiState).xuh = function (attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids, $super) { attemptsStatementList = attemptsStatementList === VOID ? this.ruh_1 : attemptsStatementList; sortOptions = sortOptions === VOID ? this.suh_1 : sortOptions; sortOption = sortOption === VOID ? this.tuh_1 : sortOption; showSortOptions = showSortOptions === VOID ? this.uuh_1 : showSortOptions; availableVerbs = availableVerbs === VOID ? this.vuh_1 : availableVerbs; deselectedVerbUids = deselectedVerbUids === VOID ? this.wuh_1 : deselectedVerbUids; return $super === VOID ? this.gul(attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids) : $super.gul.call(this, attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids); }; protoOf(ContentEntryDetailAttemptsStatementListUiState).toString = function () { return 'ContentEntryDetailAttemptsStatementListUiState(attemptsStatementList=' + this.ruh_1 + ', sortOptions=' + this.suh_1 + ', sortOption=' + this.tuh_1 + ', showSortOptions=' + this.uuh_1 + ', availableVerbs=' + this.vuh_1 + ', deselectedVerbUids=' + this.wuh_1 + ')'; }; protoOf(ContentEntryDetailAttemptsStatementListUiState).hashCode = function () { var result = hashCode(this.ruh_1); result = imul(result, 31) + hashCode(this.suh_1) | 0; result = imul(result, 31) + this.tuh_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.uuh_1) | 0; result = imul(result, 31) + hashCode(this.vuh_1) | 0; result = imul(result, 31) + hashCode(this.wuh_1) | 0; return result; }; protoOf(ContentEntryDetailAttemptsStatementListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryDetailAttemptsStatementListUiState)) return false; var tmp0_other_with_cast = other instanceof ContentEntryDetailAttemptsStatementListUiState ? other : THROW_CCE(); if (!equals(this.ruh_1, tmp0_other_with_cast.ruh_1)) return false; if (!equals(this.suh_1, tmp0_other_with_cast.suh_1)) return false; if (!this.tuh_1.equals(tmp0_other_with_cast.tuh_1)) return false; if (!(this.uuh_1 === tmp0_other_with_cast.uuh_1)) return false; if (!equals(this.vuh_1, tmp0_other_with_cast.vuh_1)) return false; if (!equals(this.wuh_1, tmp0_other_with_cast.wuh_1)) return false; return true; }; function formatStatementResponseUseCase$factory() { return getPropertyCallableRef('formatStatementResponseUseCase', 1, KProperty1, function (receiver) { return _get_formatStatementResponseUseCase__m72qwj(receiver); }, null); } function formatStatementResponseUseCase$factory_0() { return getPropertyCallableRef('formatStatementResponseUseCase', 1, KProperty1, function (receiver) { return _get_formatStatementResponseUseCase__m72qwj(receiver); }, null); } function get_statementSummary(_this__u8e3s4) { return new StatementSummaryEntity(_this__u8e3s4.biv_1, _this__u8e3s4.aiv_1); } function get_statementSummary_0(_this__u8e3s4) { return new StatementSummaryEntity(_this__u8e3s4.niw_1, _this__u8e3s4.miw_1); } function get_verbDisplayName(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.uix_1; var tmp3_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fiy_1; var tmp; if (tmp3_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.tix_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.zix_1; tmp = tmp2_safe_receiver == null ? null : substringAfterLast(tmp2_safe_receiver, '/'); } else { tmp = tmp3_elvis_lhs; } var tmp4_elvis_lhs = tmp; return tmp4_elvis_lhs == null ? '' : tmp4_elvis_lhs; } function StatementSummaryEntity(successful, completed) { this.hul_1 = successful; this.iul_1 = completed; } protoOf(StatementSummaryEntity).toString = function () { return 'StatementSummaryEntity(successful=' + this.hul_1 + ', completed=' + this.iul_1 + ')'; }; protoOf(StatementSummaryEntity).hashCode = function () { var result = this.hul_1 == null ? 0 : getBooleanHashCode(this.hul_1); result = imul(result, 31) + getBooleanHashCode(this.iul_1) | 0; return result; }; protoOf(StatementSummaryEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof StatementSummaryEntity)) return false; var tmp0_other_with_cast = other instanceof StatementSummaryEntity ? other : THROW_CCE(); if (!(this.hul_1 == tmp0_other_with_cast.hul_1)) return false; if (!(this.iul_1 === tmp0_other_with_cast.iul_1)) return false; return true; }; function get_descriptionStringRes(_this__u8e3s4) { return _this__u8e3s4.hul_1 === true ? strings_getInstance().olx_1 : _this__u8e3s4.hul_1 === false ? strings_getInstance().nlx_1 : _this__u8e3s4.iul_1 ? strings_getInstance().slx_1 : strings_getInstance().rlx_1; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.rul_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda).tul = function (it, $completion) { var tmp = this.uul(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.tul((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.rul_1.rum_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.uun(VOID, this.sul_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).uul = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda(this.rul_1, completion); i.sul_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.tul(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.duo_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).dqb = function (db, $completion) { var tmp = this.vn7(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.dqb(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.euo_1.v7d().aah(this.duo_1.fun_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).vn7 = function (db, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(this.duo_1, completion); i.euo_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.dqb(db, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.nuo_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).puo = function (it, $completion) { var tmp = this.quo(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.puo((p1 == null ? true : p1 instanceof ContentEntryVersion) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.nuo_1.rum_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.uun(VOID, VOID, this.ouo_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).quo = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this.nuo_1, completion); i.ouo_1 = it; return i; }; function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (it, $completion) { return i.puo(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.zuo_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).bup = function (it, $completion) { var tmp = this.cup(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.bup((!(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.zuo_1.rum_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.uun(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.aup_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).cup = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this.zuo_1, completion); i.aup_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.bup(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.lup_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).nup = function (it, $completion) { var tmp = this.oup(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.nup((!(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.lup_1.rum_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.uun(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.mup_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).oup = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this.lup_1, completion); i.mup_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.nup(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9(this$0, resultContinuation) { this.xup_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9).zup = function (it, $completion) { var tmp = this.auq(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.zup((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.xup_1.rum_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.uun(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.yup_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).auq = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9(this.xup_1, completion); i.yup_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.zup(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$lambda() { return 'Could not get list of jobs'; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda(this$0, $savedStateHandle, resultContinuation) { this.juq_1 = this$0; this.kuq_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.juq_1.wpm().v7d(); Companion_getInstance_118(); var tmp0_safe_receiver = this.kuq_1.ba('courseBlockUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp_1 = tmp_0.zag(this.juq_1.wpl_1, this.juq_1.eun_1, tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs, this.juq_1.upm()); var tmp_2 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_0(this.juq_1, null); suspendResult = tmp_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_23(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.juq_1, this.kuq_1, completion); i.luq_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.uuq_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.uuq_1.fun_1.equals(new Long(1, 0))) { var tmp_0 = this; tmp_0.wuq_1 = this.uuq_1.apn().tno(strings_getInstance().smt_1); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_1 = this.uuq_1.wpm(); suspendResult = localFirstThenRepoIfNull(tmp_1, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(this.uuq_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.wuq_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var parentTitle = this.wuq_1; l$ret$1: do { var this_0 = this.uuq_1.gpm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ap6(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.uuq_1, completion); i.vuq_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.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailoverviewtab.ContentEntryDetailOverviewViewModel....' call var nextValue = prevValue.ap6(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.fur_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.fur_1.wpm().i7f().nbc(this.fur_1.wpl_1); var tmp_1 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this.fur_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_23(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3(this.fur_1, completion); i.gur_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.pur_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.pur_1.vpm().j7f(); var tmp_1 = tmp_0.rhq(this.pur_1.wpl_1, 1); var tmp_2 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this.pur_1, null); suspendResult = tmp_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_23(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.pur_1, completion); i.qur_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.zur_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.zur_1.vpm().c7f().uax(this.zur_1.wpl_1); var tmp_1 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this.zur_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_23(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7(this.zur_1, completion); i.aus_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.jus_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.jus_1.vpm().l7f().jfd(this.jus_1.wpl_1, this.jus_1.lus().q64_1); var tmp_1 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_10(this.jus_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_23(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9(this.jus_1, completion); i.kus_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.uus_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.wus_1 = _get_httpClient__2ty1zc_0(this.uus_1); var tmp_1 = this; tmp_1.xus_1 = this.uus_1.spm().mng().jn2_1 + 'api/contententryimportjob/importjobs'; var tmp_2 = this; tmp_2.yus_1 = this.wus_1; var tmp_3 = this; tmp_3.zus_1 = this.yus_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.xus_1); parameter(this_0, 'contententryuid', this.uus_1.wpl_1.toString()); header(this_0, 'cache-control', 'no-store'); tmp_4.aut_1 = this_0; this.aut_1.w38_1 = Companion_getInstance().l2x_1; var tmp_5 = this; tmp_5.but_1 = this.zus_1; var tmp_6 = this; tmp_6.cut_1 = this.aut_1; this.hd_1 = 2; suspendResult = (new HttpStatement(this.cut_1, this.but_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.dut_1 = suspendResult; this.hd_1 = 3; suspendResult = bodyAsDecodedText(this.dut_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var remoteImportJobsJson = suspendResult; var remoteImportJobs = this.uus_1.m4r().s45(ListSerializer(Companion_instance_39.n4r()), remoteImportJobsJson); var tmp$ret$0; l$ret$1: do { var this_1 = this.uus_1.rum_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.uun(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.pun_1.c1()) { this.hd_1 = 1; continue $sm; } this.hd_1 = 4; continue $sm; case 4: this.id_1 = 6; this.hd_1 = 7; continue $sm; case 5: this.id_1 = 6; var tmp_7 = this.kd_1; if (tmp_7 instanceof Error) { var e = this.kd_1; var tmp_8 = Napier_getInstance(); tmp_8.k5e(VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$lambda); this.hd_1 = 7; continue $sm; } else { throw this.kd_1; } case 6: throw this.kd_1; case 7: this.id_1 = 6; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 6) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11(this.uus_1, completion); i.vus_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.mut_1 = $this_launch; this.nut_1 = this$0; this.out_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.mut_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_0(this.nut_1, this.out_1, null)); if (this.nut_1.eun_1.equals(new Long(0, 0)) ? !this.nut_1.fun_1.equals(new Long(0, 0)) : false) { launch(this.mut_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_2(this.nut_1, null)); } launchSetTitleFromClazzUid(this.nut_1, this.nut_1.eun_1, ContentEntryDetailOverviewViewModel$slambda$slambda$lambda(this.nut_1)); launch(this.mut_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_4(this.nut_1, null)); launch(this.mut_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_6(this.nut_1, null)); launch(this.mut_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_8(this.nut_1, null)); launch(this.mut_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_10(this.nut_1, null)); launch(this.mut_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_12(this.nut_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda).l78 = function (completion) { return new ContentEntryDetailOverviewViewModel$slambda$slambda(this.mut_1, this.nut_1, this.out_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.z86($completion); }; l.$arity = 0; return l; } function ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda(this$0, resultContinuation) { this.xut_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda).yob = function (it, $completion) { var tmp = this.vn7(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.yob(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.yut_1.i7f().mbc(this.xut_1.wpl_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).vn7 = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda(this.xut_1, completion); i.yut_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.yob(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.sum_1; makeContentEntryAvailableOfflineUseCase$factory_0(); return this_0.t2(); } function _get_cancelDownloadUseCase__t8wbc4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.tum_1; cancelDownloadUseCase$factory_0(); return this_0.t2(); } function _get_defaultLaunchContentEntryUseCase__lyydsx($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wum_1; defaultLaunchContentEntryUseCase$factory_0(); return this_0.t2(); } function _get_launchXapiUseCase__jmtlap($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xum_1; launchXapiUseCase$factory_0(); return this_0.t2(); } function _get_launchEpubUseCase__sunqd7($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yum_1; launchEpubUseCase$factory_0(); return this_0.t2(); } function _get_cancelImportContentEntryUseCase__kqom1e($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.aun_1; cancelImportContentEntryUseCase$factory_0(); return this_0.t2(); } function _get_cancelRemoteContentEntryImportUseCase__8yb0xk($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.bun_1; cancelRemoteContentEntryImportUseCase$factory_0(); return this_0.t2(); } function _get_dismissRemoteContentEntryImportErrorUseCase__x9kppo($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.cun_1; dismissRemoteContentEntryImportErrorUseCase$factory_0(); return this_0.t2(); } function _get_httpClient__2ty1zc_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.dun_1; httpClient$factory_2(); return this_0.t2(); } function Companion_136() { this.zut_1 = 'ContentEntryDetailOverviewView'; this.auu_1 = 'target'; } var Companion_instance_184; function Companion_getInstance_153() { return Companion_instance_184; } function sam$kotlinx_coroutines_flow_FlowCollector$0_23(function_0) { this.buu_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_23).t1d = function (value, $completion) { return this.buu_1(value, $completion); }; function ContentEntryDetailOverviewViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.kuu_1 = this$0; this.luu_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.kuu_1.rum_1, ContentEntryDetailOverviewViewModel$slambda$slambda_0(this.muu_1, this.kuu_1, this.luu_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.kuu_1, this.luu_1, completion); i.muu_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.vuu_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.vuu_1.cpn(Companion_getInstance_91().hp6_1); Napier_getInstance().i5e('ContentEntryDetailOverviewViewModel: onClickOpen launched'); l$ret$1: do { var this_0 = this.vuu_1.rum_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.uun(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.vuu_1.wpm(); suspendResult = localFirstThenRepoIfNull(tmp_0, ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda_0(this.vuu_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.yuu_1 = suspendResult; var tmp_1 = this; var tmp0_safe_receiver = this.vuu_1.zum_1; var tmp_2; if (tmp0_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = Companion_instance_91.fls(tmp0_safe_receiver); } var tmp1_elvis_lhs = tmp_2; tmp_1.zuu_1 = tmp1_elvis_lhs == null ? LinkTarget_DEFAULT_getInstance() : tmp1_elvis_lhs; if (!(this.yuu_1 == null)) { var tmp_3 = this; var tmp2_subject = this.yuu_1.uaj_1; var tmp_4; if (tmp2_subject === 'xapi') { tmp_4 = _get_launchXapiUseCase__jmtlap(this.vuu_1); } else { if (tmp2_subject === 'epub') { tmp_4 = _get_launchEpubUseCase__sunqd7(this.vuu_1); } else { tmp_4 = null; } } tmp_3.auv_1 = tmp_4; var tmp_5 = this; var tmp3_elvis_lhs = this.auv_1; tmp_5.buv_1 = tmp3_elvis_lhs == null ? _get_defaultLaunchContentEntryUseCase__lyydsx(this.vuu_1) : tmp3_elvis_lhs; Napier_getInstance().i5e('ContentEntryDetailOverviewViewModel: onClickOpen : Launching using ' + this.buv_1); this.hd_1 = 3; Companion_getInstance_118(); var tmp4_safe_receiver = this.vuu_1.cpm_1.ba('courseBlockUid'); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : toLong_0(tmp4_safe_receiver); suspendResult = this.buv_1.iob(this.yuu_1, this.vuu_1.epm_1, this.vuu_1.eun_1, tmp5_elvis_lhs == null ? new Long(0, 0) : tmp5_elvis_lhs, this.zuu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { Napier_getInstance().i5e('ContentEntryDetailOverviewViewModel: onClickOpen: latestContentEntryVersion = null'); this.vuu_1.ypm().pp6(new Snack(this.vuu_1.apn().tno(strings_getInstance().qmx_1))); this.hd_1 = 4; continue $sm; } case 3: this.hd_1 = 4; continue $sm; case 4: this.xuu_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.vuu_1.ypm().pp6(new Snack(this.vuu_1.apn().tno(strings_getInstance().alu_1) + (':' + e.message))); Napier_getInstance().m5e('ContentEntryDetailOverview: Exception opening content', e); tmp_7.xuu_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.vuu_1.cpn(Companion_getInstance_91().ip6_1); l$ret$5: do { var this_1 = this.vuu_1.rum_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.uun(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.vuu_1.cpn(Companion_getInstance_91().ip6_1); l$ret$7: do { var this_2 = this.vuu_1.rum_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.uun(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.vuu_1, completion); i.wuu_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.kuv_1 = this$0; this.luv_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.kuv_1).lo9(this.luv_1, this.kuv_1.upm(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.kuv_1.ypm().pp6(new Snack(this.kuv_1.apn().tno(strings_getInstance().rlu_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.kuv_1.ypm().pp6(new Snack(this.kuv_1.apn().tno(strings_getInstance().alu_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.kuv_1, this.luv_1, completion); i.muv_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.vuv_1 = this$0; this.wuv_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.vuv_1).lo9(this.wuv_1, this.vuv_1.upm(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_0 = this.kd_1; if (tmp_0 instanceof Error) { var e = this.kd_1; var tmp_1 = Napier_getInstance(); tmp_1.o5e(VOID, VOID, ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda$lambda); this.vuv_1.ypm().pp6(new Snack(this.vuv_1.apn().tno(strings_getInstance().alu_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.vuv_1, this.wuv_1, completion); i.xuv_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.rum_1 = MutableStateFlow(new ContentEntryDetailOverviewUiState()); var tmp = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveEndpoint(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.sum_1 = Instance(this_0, tmp$ret$0, null).a5d(this, makeContentEntryAvailableOfflineUseCase$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call var this_1 = onActiveEndpoint(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.tum_1 = Instance(this_1, tmp$ret$2, null).a5d(this, cancelDownloadUseCase$factory()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call var this_2 = onActiveEndpoint(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.uum_1 = Instance(this_2, tmp$ret$4, null).a5d(this, nodeIdAndAuth$factory()); this.vum_1 = asStateFlow(this.rum_1); var tmp_5 = this; // Inline function 'org.kodein.di.instance' call var this_3 = onActiveEndpoint(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.wum_1 = Instance(this_3, tmp$ret$6, null).a5d(this, defaultLaunchContentEntryUseCase$factory()); var tmp_7 = this; // Inline function 'org.kodein.di.instanceOrNull' call var this_4 = onActiveEndpoint(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.xum_1 = InstanceOrNull(this_4, tmp$ret$8, null).a5d(this, launchXapiUseCase$factory()); var tmp_9 = this; // Inline function 'org.kodein.di.instanceOrNull' call var this_5 = onActiveEndpoint(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.yum_1 = InstanceOrNull(this_5, tmp$ret$10, null).a5d(this, launchEpubUseCase$factory()); this.zum_1 = savedStateHandle.ba('target'); var tmp_11 = this; // Inline function 'org.kodein.di.instanceOrNull' call var this_6 = onActiveEndpoint(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.aun_1 = InstanceOrNull(this_6, tmp$ret$12, null).a5d(this, cancelImportContentEntryUseCase$factory()); var tmp_13 = this; // Inline function 'org.kodein.di.instance' call var this_7 = onActiveEndpoint(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.bun_1 = Instance(this_7, tmp$ret$14, null).a5d(this, cancelRemoteContentEntryImportUseCase$factory()); var tmp_15 = this; // Inline function 'org.kodein.di.instance' call var this_8 = onActiveEndpoint(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.cun_1 = Instance(this_8, tmp$ret$16, null).a5d(this, dismissRemoteContentEntryImportErrorUseCase$factory()); var tmp_17 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_18 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE(); tmp_17.dun_1 = Instance(di, tmp$ret$18, null).a5d(this, httpClient$factory_1()); var tmp_19 = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_19.eun_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_20 = this; Companion_getInstance_118(); 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.fun_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_9 = this.rum_1; while (true) { var prevValue = this_9.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailoverviewtab.ContentEntryDetailOverviewViewModel.' call var nextValue = prevValue.uun(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.upm()); if (this_9.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_21 = this.tpm(); launch(tmp_21, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(ContentEntryDetailOverviewViewModel).lus = function () { // Inline function 'kotlin.getValue' call var this_0 = this.uum_1; nodeIdAndAuth$factory_0(); return this_0.t2(); }; protoOf(ContentEntryDetailOverviewViewModel).yuv = function () { Napier_getInstance().i5e('ContentEntryDetailOverviewViewModel: onClickOpen'); var tmp = this.tpm(); launch(tmp, VOID, VOID, ContentEntryDetailOverviewViewModel$onClickOpen$slambda_0(this, null)); }; protoOf(ContentEntryDetailOverviewViewModel).zuv = function (jobUid) { var tmp = this.tpm(); launch(tmp, VOID, VOID, ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda_0(this, jobUid, null)); }; protoOf(ContentEntryDetailOverviewViewModel).auw = function (jobUid) { var tmp = this.tpm(); launch(tmp, VOID, VOID, ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda_0(this, jobUid, null)); }; function ContentEntryDetailOverviewUiState(scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid) { scoreProgress = scoreProgress === VOID ? null : scoreProgress; contentEntry = contentEntry === VOID ? null : contentEntry; latestContentEntryVersion = latestContentEntryVersion === VOID ? null : latestContentEntryVersion; contentEntryButtons = contentEntryButtons === VOID ? null : contentEntryButtons; locallyAvailable = locallyAvailable === VOID ? false : locallyAvailable; markCompleteVisible = markCompleteVisible === VOID ? false : markCompleteVisible; translationVisibile = translationVisibile === VOID ? false : translationVisibile; availableTranslations = availableTranslations === VOID ? emptyList() : availableTranslations; activeImportJobs = activeImportJobs === VOID ? emptyList() : activeImportJobs; remoteImportJobs = remoteImportJobs === VOID ? emptyList() : remoteImportJobs; activeUploadJobs = activeUploadJobs === VOID ? emptyList() : activeUploadJobs; offlineItemAndState = offlineItemAndState === VOID ? null : offlineItemAndState; openButtonEnabled = openButtonEnabled === VOID ? true : openButtonEnabled; activeUserPersonUid = activeUserPersonUid === VOID ? new Long(0, 0) : activeUserPersonUid; this.gun_1 = scoreProgress; this.hun_1 = contentEntry; this.iun_1 = latestContentEntryVersion; this.jun_1 = contentEntryButtons; this.kun_1 = locallyAvailable; this.lun_1 = markCompleteVisible; this.mun_1 = translationVisibile; this.nun_1 = availableTranslations; this.oun_1 = activeImportJobs; this.pun_1 = remoteImportJobs; this.qun_1 = activeUploadJobs; this.run_1 = offlineItemAndState; this.sun_1 = openButtonEnabled; this.tun_1 = activeUserPersonUid; } protoOf(ContentEntryDetailOverviewUiState).buw = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.hun_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.naj_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.xah_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ContentEntryDetailOverviewUiState).cuw = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.hun_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.naj_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.yah_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ContentEntryDetailOverviewUiState).duw = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.hun_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.naj_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.aai_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ContentEntryDetailOverviewUiState).euw = function () { return false; }; protoOf(ContentEntryDetailOverviewUiState).fuw = function () { return !(this.gun_1 == null); }; protoOf(ContentEntryDetailOverviewUiState).guw = function () { var tmp0_safe_receiver = this.iun_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.aak_1.c7(new Long(0, 0)) > 0 ? tmp0_safe_receiver.aak_1.c7(new Long(0, 0)) > 0 : false) ? tmp0_safe_receiver.aak_1.c7(tmp0_safe_receiver.bak_1) < 0 : false; } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; }; protoOf(ContentEntryDetailOverviewUiState).huw = function () { var tmp0_safe_receiver = this.iun_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.aak_1.c7(new Long(0, 0)) > 0; } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; }; protoOf(ContentEntryDetailOverviewUiState).iuw = function (importJobProgress) { return importJobProgress.aay_1.equals(this.tun_1); }; protoOf(ContentEntryDetailOverviewUiState).juw = function (scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid) { return new ContentEntryDetailOverviewUiState(scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid); }; protoOf(ContentEntryDetailOverviewUiState).uun = function (scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid, $super) { scoreProgress = scoreProgress === VOID ? this.gun_1 : scoreProgress; contentEntry = contentEntry === VOID ? this.hun_1 : contentEntry; latestContentEntryVersion = latestContentEntryVersion === VOID ? this.iun_1 : latestContentEntryVersion; contentEntryButtons = contentEntryButtons === VOID ? this.jun_1 : contentEntryButtons; locallyAvailable = locallyAvailable === VOID ? this.kun_1 : locallyAvailable; markCompleteVisible = markCompleteVisible === VOID ? this.lun_1 : markCompleteVisible; translationVisibile = translationVisibile === VOID ? this.mun_1 : translationVisibile; availableTranslations = availableTranslations === VOID ? this.nun_1 : availableTranslations; activeImportJobs = activeImportJobs === VOID ? this.oun_1 : activeImportJobs; remoteImportJobs = remoteImportJobs === VOID ? this.pun_1 : remoteImportJobs; activeUploadJobs = activeUploadJobs === VOID ? this.qun_1 : activeUploadJobs; offlineItemAndState = offlineItemAndState === VOID ? this.run_1 : offlineItemAndState; openButtonEnabled = openButtonEnabled === VOID ? this.sun_1 : openButtonEnabled; activeUserPersonUid = activeUserPersonUid === VOID ? this.tun_1 : activeUserPersonUid; return $super === VOID ? this.juw(scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid) : $super.juw.call(this, scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid); }; protoOf(ContentEntryDetailOverviewUiState).toString = function () { return 'ContentEntryDetailOverviewUiState(scoreProgress=' + this.gun_1 + ', contentEntry=' + this.hun_1 + ', latestContentEntryVersion=' + this.iun_1 + ', contentEntryButtons=' + this.jun_1 + ', locallyAvailable=' + this.kun_1 + ', markCompleteVisible=' + this.lun_1 + ', translationVisibile=' + this.mun_1 + ', availableTranslations=' + this.nun_1 + ', activeImportJobs=' + this.oun_1 + ', remoteImportJobs=' + this.pun_1 + ', activeUploadJobs=' + this.qun_1 + ', offlineItemAndState=' + this.run_1 + ', openButtonEnabled=' + this.sun_1 + ', activeUserPersonUid=' + this.tun_1.toString() + ')'; }; protoOf(ContentEntryDetailOverviewUiState).hashCode = function () { var result = this.gun_1 == null ? 0 : this.gun_1.hashCode(); result = imul(result, 31) + (this.hun_1 == null ? 0 : this.hun_1.hashCode()) | 0; result = imul(result, 31) + (this.iun_1 == null ? 0 : this.iun_1.hashCode()) | 0; result = imul(result, 31) + (this.jun_1 == null ? 0 : hashCode(this.jun_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.kun_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.lun_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.mun_1) | 0; result = imul(result, 31) + hashCode(this.nun_1) | 0; result = imul(result, 31) + hashCode(this.oun_1) | 0; result = imul(result, 31) + hashCode(this.pun_1) | 0; result = imul(result, 31) + hashCode(this.qun_1) | 0; result = imul(result, 31) + (this.run_1 == null ? 0 : this.run_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.sun_1) | 0; result = imul(result, 31) + this.tun_1.hashCode() | 0; return result; }; protoOf(ContentEntryDetailOverviewUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryDetailOverviewUiState)) return false; var tmp0_other_with_cast = other instanceof ContentEntryDetailOverviewUiState ? other : THROW_CCE(); if (!equals(this.gun_1, tmp0_other_with_cast.gun_1)) return false; if (!equals(this.hun_1, tmp0_other_with_cast.hun_1)) return false; if (!equals(this.iun_1, tmp0_other_with_cast.iun_1)) return false; if (!equals(this.jun_1, tmp0_other_with_cast.jun_1)) return false; if (!(this.kun_1 === tmp0_other_with_cast.kun_1)) return false; if (!(this.lun_1 === tmp0_other_with_cast.lun_1)) return false; if (!(this.mun_1 === tmp0_other_with_cast.mun_1)) return false; if (!equals(this.nun_1, tmp0_other_with_cast.nun_1)) return false; if (!equals(this.oun_1, tmp0_other_with_cast.oun_1)) return false; if (!equals(this.pun_1, tmp0_other_with_cast.pun_1)) return false; if (!equals(this.qun_1, tmp0_other_with_cast.qun_1)) return false; if (!equals(this.run_1, tmp0_other_with_cast.run_1)) return false; if (!(this.sun_1 === tmp0_other_with_cast.sun_1)) return false; if (!this.tun_1.equals(tmp0_other_with_cast.tun_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.lus(); }, null); } function defaultLaunchContentEntryUseCase$factory() { return getPropertyCallableRef('defaultLaunchContentEntryUseCase', 1, KProperty1, function (receiver) { return _get_defaultLaunchContentEntryUseCase__lyydsx(receiver); }, null); } function launchXapiUseCase$factory() { return getPropertyCallableRef('launchXapiUseCase', 1, KProperty1, function (receiver) { return _get_launchXapiUseCase__jmtlap(receiver); }, null); } function launchEpubUseCase$factory() { return getPropertyCallableRef('launchEpubUseCase', 1, KProperty1, function (receiver) { return _get_launchEpubUseCase__sunqd7(receiver); }, null); } function cancelImportContentEntryUseCase$factory() { return getPropertyCallableRef('cancelImportContentEntryUseCase', 1, KProperty1, function (receiver) { return _get_cancelImportContentEntryUseCase__kqom1e(receiver); }, null); } function cancelRemoteContentEntryImportUseCase$factory() { return getPropertyCallableRef('cancelRemoteContentEntryImportUseCase', 1, KProperty1, function (receiver) { return _get_cancelRemoteContentEntryImportUseCase__8yb0xk(receiver); }, null); } function dismissRemoteContentEntryImportErrorUseCase$factory() { return getPropertyCallableRef('dismissRemoteContentEntryImportErrorUseCase', 1, KProperty1, function (receiver) { return _get_dismissRemoteContentEntryImportErrorUseCase__x9kppo(receiver); }, null); } function httpClient$factory_1() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_0(receiver); }, null); } function makeContentEntryAvailableOfflineUseCase$factory_0() { return getPropertyCallableRef('makeContentEntryAvailableOfflineUseCase', 1, KProperty1, function (receiver) { return _get_makeContentEntryAvailableOfflineUseCase__dvw4p1(receiver); }, null); } function cancelDownloadUseCase$factory_0() { return getPropertyCallableRef('cancelDownloadUseCase', 1, KProperty1, function (receiver) { return _get_cancelDownloadUseCase__t8wbc4(receiver); }, null); } function nodeIdAndAuth$factory_0() { return getPropertyCallableRef('nodeIdAndAuth', 1, KProperty1, function (receiver) { return receiver.lus(); }, null); } function defaultLaunchContentEntryUseCase$factory_0() { return getPropertyCallableRef('defaultLaunchContentEntryUseCase', 1, KProperty1, function (receiver) { return _get_defaultLaunchContentEntryUseCase__lyydsx(receiver); }, null); } function launchXapiUseCase$factory_0() { return getPropertyCallableRef('launchXapiUseCase', 1, KProperty1, function (receiver) { return _get_launchXapiUseCase__jmtlap(receiver); }, null); } function launchEpubUseCase$factory_0() { return getPropertyCallableRef('launchEpubUseCase', 1, KProperty1, function (receiver) { return _get_launchEpubUseCase__sunqd7(receiver); }, null); } function cancelImportContentEntryUseCase$factory_0() { return getPropertyCallableRef('cancelImportContentEntryUseCase', 1, KProperty1, function (receiver) { return _get_cancelImportContentEntryUseCase__kqom1e(receiver); }, null); } function cancelRemoteContentEntryImportUseCase$factory_0() { return getPropertyCallableRef('cancelRemoteContentEntryImportUseCase', 1, KProperty1, function (receiver) { return _get_cancelRemoteContentEntryImportUseCase__8yb0xk(receiver); }, null); } function dismissRemoteContentEntryImportErrorUseCase$factory_0() { return getPropertyCallableRef('dismissRemoteContentEntryImportErrorUseCase', 1, KProperty1, function (receiver) { return _get_dismissRemoteContentEntryImportErrorUseCase__x9kppo(receiver); }, null); } function httpClient$factory_2() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_0(receiver); }, null); } function get_progress(_this__u8e3s4) { var tmp; if (_this__u8e3s4.xax_1.c7(new Long(0, 0)) > 0) { tmp = _this__u8e3s4.wax_1.zc() / _this__u8e3s4.xax_1.zc(); } else { tmp = 0.0; } return tmp; } function ContentEntryEditViewModel$slambda$slambda$lambda($newContentEntryUid, this$0, $savedStateHandle) { return function ($this$shallowCopy) { $this$shallowCopy.tah_1 = $newContentEntryUid; var tmp; if (this$0.mux_1) { var tmp_0 = $this$shallowCopy; tmp_0.pai_1 = 2; var tmp_1 = $this$shallowCopy; Companion_getInstance_118(); var tmp0_safe_receiver = $savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_1.oai_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; tmp = Unit_instance; } else { var tmp_2 = $this$shallowCopy; tmp_2.pai_1 = 1; $this$shallowCopy.oai_1 = this$0.upm(); tmp = Unit_instance; } return Unit_instance; }; } function ContentEntryEditViewModel$slambda$slambda$slambda$lambda($newDecription) { return function ($this$shallowCopy) { $this$shallowCopy.vah_1 = $newDecription; return Unit_instance; }; } function ContentEntryEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.vux_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda$slambda).wp9 = function (it, $completion) { var tmp = this.xp9(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.wp9(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.wux_1.dp9_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.vux_1.jux_1.t2().xux_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.kjl_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.vux_1.juy(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).xp9 = function (it, completion) { var i = new ContentEntryEditViewModel$slambda$slambda$slambda(this.vux_1, completion); i.wux_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.wp9(it, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda$slambda$lambda$lambda($newSubtitleTrack) { return function (it) { return it.unm_1 === $newSubtitleTrack.unm_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.suy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda$slambda_1).wp9 = function (navResult, $completion) { var tmp = this.xp9(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.wp9(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.tuy_1.dp9_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.suy_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).xp9 = function (navResult, completion) { var i = new ContentEntryEditViewModel$slambda$slambda$slambda_1(this.suy_1, completion); i.tuy_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.wp9(navResult, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda(this$0, resultContinuation) { this.cuz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda).guz = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.guz(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.duz_1; var tmp_1; if (!this.cuz_1.ips_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } var tmp0_safe_receiver = tmp_1; tmp_0.euz_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v7d(); if (this.euz_1 == null) { this.fuz_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.euz_1.yag(this.cuz_1.ips_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.fuz_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var tmp2_safe_receiver = this.fuz_1; var tmp_2; if (tmp2_safe_receiver == null) { tmp_2 = null; } else { var tmp_3; if (!(tmp2_safe_receiver.haj_1 == null)) { var tmp_4 = tmp2_safe_receiver.haj_1; var tmp0_elvis_lhs = tmp2_safe_receiver.iaj_1; tmp_3 = new ContentEntryAndContentJob(tmp_4, VOID, VOID, tmp0_elvis_lhs == null ? new ContentEntryPicture2(this.cuz_1.ips_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).vn7 = function (db, completion) { var i = new ContentEntryEditViewModel$slambda$slambda(this.cuz_1, completion); i.duz_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.guz(db, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.puz_1 = this$0; this.quz_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda_1).suz = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.suz($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.puz_1.vpm()); tmp_0.ruz_1 = tmp_1.n62(42); this.hd_1 = 1; suspendResult = this.puz_1.fpn(this.quz_1, 'metadata', Companion_instance_80.n4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var importedMetaData = suspendResult; var tmp_2; if (!(importedMetaData == null)) { var tmp0_safe_receiver = importedMetaData.hnn_1; var pictureUri = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.laj_1; if (!(pictureUri == null)) { Companion_getInstance_116(); this.quz_1.epi('initPicUri', ''); } var tmp_3 = shallowCopy_8(importedMetaData.enn_1, ContentEntryEditViewModel$slambda$slambda$lambda(this.ruz_1, this.puz_1, this.quz_1)); var tmp1_cjiPluginId = importedMetaData.fnn_1; var tmp2_sourceUri = importedMetaData.enn_1.cai_1; var tmp3_cjiOriginalFilename = importedMetaData.gnn_1; var tmp4_cjiOwnerPersonUid = this.puz_1.upm(); var tmp_4 = new ContentEntryImportJob(VOID, tmp2_sourceUri, tmp3_cjiOriginalFilename, this.ruz_1, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_cjiPluginId, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_cjiOwnerPersonUid); var tmp5_safe_receiver = importedMetaData.hnn_1; var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.qjv(this.ruz_1); var this_0 = new ContentEntryAndContentJob(tmp_3, VOID, tmp_4, tmp6_elvis_lhs == null ? new ContentEntryPicture2(this.ruz_1) : tmp6_elvis_lhs); var tmp_5 = this.puz_1.apn(); var tmp_6 = strings_getInstance().kmn_1; var tmp0_elvis_lhs = importedMetaData.gnn_1; var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? importedMetaData.enn_1.cai_1 : tmp0_elvis_lhs; this.quz_1.epi('savedTitle', tmp_5.uno(tmp_6, [tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs])); tmp_2 = this_0; } else { var this_1 = new ContentEntry(); this_1.tah_1 = this.ruz_1; var tmp_7 = this_1; var tmp0_safe_receiver_0 = this.quz_1.ba('leaf'); tmp_7.iai_1 = (tmp0_safe_receiver_0 == null ? null : toBoolean(tmp0_safe_receiver_0)) === true; this_1.oai_1 = this.puz_1.upm(); tmp_2 = new ContentEntryAndContentJob(this_1, VOID, VOID, new ContentEntryPicture2(this.ruz_1)); } return tmp_2; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$slambda$slambda_1).l78 = function (completion) { return new ContentEntryEditViewModel$slambda$slambda_1(this.puz_1, this.quz_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.suz($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.jux_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.mjl_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : paramSubtitles(tmp1_safe_receiver, this$0.m4r()); var nextValue = prevValue.tuz(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.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ContentEntryEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.cv0_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.cv0_1.epn(this.cv0_1.xpm(), 'contentEntryDesc'); var tmp_1 = ContentEntryEditViewModel$slambda$slambda$slambda_0(this.cv0_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_24(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$slambda$slambda_3).v1m = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$slambda$slambda_3(this.cv0_1, completion); i.dv0_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.mv0_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.mv0_1.epn(this.mv0_1.xpm(), 'subtitleKey'); var tmp_1 = ContentEntryEditViewModel$slambda$slambda$slambda_2(this.mv0_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_24(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$slambda$slambda_5).v1m = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$slambda$slambda_5(this.mv0_1, completion); i.nv0_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.jux_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.updateSubtitles.' call var updatedSubtitles = function_0(prevValue.iuy_1); var tmp0_safe_receiver = prevValue.xux_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mjl_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : paramMap(tmp1_safe_receiver, $this.m4r()); var prevContentJobParamMap = tmp2_elvis_lhs == null ? emptyMap() : tmp2_elvis_lhs; // Inline function 'kotlin.also' call var this_1 = toMutableMap(prevContentJobParamMap); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.updateSubtitles..' call // Inline function 'kotlin.collections.set' call var key = 'subtitles'; var value = $this.m4r().r45(ListSerializer(Companion_instance_79.n4r()), updatedSubtitles); this_1.s(key, value); var contentJobParam = this_1; var tmp4_safe_receiver = prevValue.xux_1; var tmp; if (tmp4_safe_receiver == null) { tmp = null; } else { var tmp3_safe_receiver = prevValue.xux_1.mjl_1; tmp = tmp4_safe_receiver.pjl(VOID, VOID, tmp3_safe_receiver == null ? null : tmp3_safe_receiver.fjv(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.m4r().r45(MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)), contentJobParam))); } var tmp5_entity = tmp; var nextValue = prevValue.tuz(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.xux_1); } function scheduleEntityCommit($this, entity) { // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_40.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver = $this.hps_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = $this; var tmp_0 = $this.tpm(); tmp.hps_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.euy_1 == null); } function Companion_137() { this.ov0_1 = 'leaf'; this.pv0_1 = 'courseBlock'; this.qv0_1 = 'ContentEntryEdit'; this.rv0_1 = 'metadata'; this.sv0_1 = 'savedTitle'; this.tv0_1 = 'goToOnContentEntryDone'; this.uv0_1 = 'contentEntryDesc'; this.vv0_1 = 'subtitleKey'; this.wv0_1 = 1; this.xv0_1 = 2; } var Companion_instance_185; function Companion_getInstance_154() { return Companion_instance_185; } function sam$kotlinx_coroutines_flow_FlowCollector$0_24(function_0) { this.yv0_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_24).t1d = function (value, $completion) { return this.yv0_1(value, $completion); }; function ContentEntryEditViewModel$slambda(this$0, resultContinuation) { this.hv1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda).gr6 = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda).he = function (p1, $completion) { return this.gr6(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.hv1_1.mux_1) { this.jv1_1 = true; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = this.iv1_1.p7f(); var tmp_1 = this.hv1_1.upm(); PermissionFlags_getInstance(); suspendResult = tmp_0.yhe(tmp_1, new Long(65536, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.jv1_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.jv1_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).vn7 = function (db, completion) { var i = new ContentEntryEditViewModel$slambda(this.hv1_1, completion); i.iv1_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.gr6(db, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.sv1_1 = this$0; this.tv1_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_40.n4r(); var tmp_1 = ContentEntryEditViewModel$slambda$slambda_0(this.sv1_1, null); var tmp_2 = ContentEntryEditViewModel$slambda$slambda_2(this.sv1_1, this.tv1_1, null); suspendResult = this.sv1_1.kpn(tmp_0, VOID, VOID, tmp_1, tmp_2, ContentEntryEditViewModel$slambda$lambda(this.sv1_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var it = suspendResult; Companion_getInstance_116(); var tmp1_safe_receiver = it == null ? null : it.njl_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.laj_1; setIfNoValueSetYet(this.tv1_1, 'initPicUri', tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); var tmp0_safe_receiver = this.sv1_1.jux_1.t2().xux_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kjl_1; var isLeaf = (tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.iai_1) === true; var savedStateTitle = this.tv1_1.ba('savedTitle'); var title = !(savedStateTitle == null) ? savedStateTitle : (this.sv1_1.ips_1.equals(new Long(0, 0)) ? !isLeaf : false) ? this.sv1_1.apn().tno(strings_getInstance().kml_1) : (!this.sv1_1.ips_1.equals(new Long(0, 0)) ? !isLeaf : false) ? this.sv1_1.apn().tno(strings_getInstance().qmw_1) : this.sv1_1.apn().tno(strings_getInstance().pmw_1); l$ret$1: do { var this_0 = this.sv1_1.gpm_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.sv1_1.apn(); var tmp0_subject = this.sv1_1.lux_1; var tmp_4 = tmp_3.tno(tmp0_subject === 1 ? strings_getInstance().dlv_1 : tmp0_subject === 2 ? strings_getInstance().qm2_1 : strings_getInstance().eme_1); var nextValue = prevValue.ap6(VOID, VOID, title, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_4, VOID, ContentEntryEditViewModel$onClickSave$ref(this.sv1_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.sv1_1.jux_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.tuz(VOID, VOID, VOID, VOID, true); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); launch(this.uv1_1, VOID, VOID, ContentEntryEditViewModel$slambda$slambda_4(this.sv1_1, null)); launch(this.uv1_1, VOID, VOID, ContentEntryEditViewModel$slambda$slambda_6(this.sv1_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.sv1_1, this.tv1_1, completion); i.uv1_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.dv2_1 = $commitDelay; this.ev2_1 = $entity; this.fv2_1 = $this; this.gv2_1 = $key; this.hv2_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.dv2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.ev2_1 == null)) { this.hd_1 = 2; suspendResult = this.fv2_1.gpn(this.fv2_1.cpm_1, this.gv2_1, this.hv2_1, this.ev2_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.dv2_1, this.ev2_1, this.fv2_1, this.gv2_1, this.hv2_1, completion); i.iv2_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.unm_1 === $subtitleTrack.unm_1)) { destination.i1(element); } } return destination; }; } function ContentEntryEditViewModel$onClickSave$slambda(this$0, $contentEntryVal, $entityVal, resultContinuation) { this.rv2_1 = this$0; this.sv2_1 = $contentEntryVal; this.tv2_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_118(); var tmp0_safe_receiver = this.rv2_1.cpm_1.ba('parentUid'); tmp_0.vv2_1 = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); this.hd_1 = 1; var tmp_1 = this.rv2_1.ips_1.equals(new Long(0, 0)) ? this.vv2_1 : null; Companion_getInstance_116(); suspendResult = this.rv2_1.hux_1.bog(this.sv2_1, tmp_1, this.tv2_1.njl_1, this.rv2_1.cpm_1.ba('initPicUri'), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.wv2_1 = this.tv2_1.mjl_1; if (!(this.wv2_1 == null)) { this.hd_1 = 2; suspendResult = this.rv2_1.iux_1.ioa(this.wv2_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_118(); var popUpToOnFinish = this.rv2_1.cpm_1.ba('popUpToOnFinish'); if (!(this.rv2_1.bpn() == null)) { this.rv2_1.lps(this.sv2_1); } else { this.rv2_1.epm_1.sp8(popUpToOnFinish == null ? this.rv2_1.dpm_1 : popUpToOnFinish, true); } if (hasErrors_2(this.rv2_1.jux_1.t2(), this.rv2_1)) { this.rv2_1.cpn(Companion_getInstance_91().ip6_1); l$ret$1: do { var this_0 = this.rv2_1.jux_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.tuz(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.rv2_1, this.sv2_1, this.tv2_1, completion); i.uv2_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(onActiveEndpoint(di)).f58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(SaveContentEntryUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp = tmp_0.d58(tmp$ret$0, null); } else { tmp = saveContentEntryUseCase; } saveContentEntryUseCase = tmp; var tmp_2; if (enqueueContentEntryImportUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(onActiveEndpoint(di)).f58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(EnqueueContentEntryImportUseCase), arrayOf([]), false)); var tmp$ret$0_0 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_2 = tmp_3.d58(tmp$ret$0_0, null); } else { tmp_2 = enqueueContentEntryImportUseCase; } enqueueContentEntryImportUseCase = tmp_2; UstadEditViewModel.call(this, di, savedStateHandle, 'ContentEntryEdit'); this.hux_1 = saveContentEntryUseCase; this.iux_1 = enqueueContentEntryImportUseCase; this.jux_1 = MutableStateFlow(new ContentEntryEditUiState()); this.kux_1 = asStateFlow(this.jux_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.lux_1 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; this.mux_1 = this.lux_1 === 1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_6 = ContentEntryEditViewModel$slambda_0(this, null); this.mpn(tmp_6, VOID, VOID, ContentEntryEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(ContentEntryEditViewModel).juy = function (contentEntry) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.jux_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onContentEntryChanged.' call var tmp0_safe_receiver = prevValue.xux_1; var nextValue = prevValue.tuz(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pjl(contentEntry)); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var updatedState = tmp$ret$1; scheduleEntityCommit(this, updatedState.xux_1); }; protoOf(ContentEntryEditViewModel).hsw = function (pictureUri) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.jux_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onPictureChanged.' call var tmp1_safe_receiver = prevValue.xux_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.xux_1.njl_1; tmp = tmp1_safe_receiver.pjl(VOID, VOID, VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qjv(VOID, VOID, pictureUri)); } var nextValue = prevValue.tuz(tmp); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var updatedState = tmp$ret$1; scheduleEntityCommit(this, updatedState.xux_1); }; protoOf(ContentEntryEditViewModel).xv2 = function (compressionLevel) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jux_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onSetCompressionLevel.' call var tmp1_safe_receiver = prevValue.xux_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.xux_1.mjl_1; tmp = tmp1_safe_receiver.pjl(VOID, VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fjv(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, compressionLevel.xo6_1)); } var nextValue = prevValue.tuz(tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ContentEntryEditViewModel).yv2 = function (uri, fileName) { var tmp = Companion_instance_79.n4r(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onSubtitleFileAdded.' call // Inline function 'kotlin.collections.set' call this_0.s('uri', uri); // Inline function 'kotlin.collections.set' call var key = 'filename'; this_0.s(key, fileName); var tmp$ret$2 = this_0.f3(); this.ipn('GetSubtitle', 'subtitleKey', null, tmp, tmp$ret$2); }; protoOf(ContentEntryEditViewModel).zv2 = function (subtitleTrack) { this.ipn('SubtitleEdit', 'subtitleKey', subtitleTrack, Companion_instance_79.n4r()); }; protoOf(ContentEntryEditViewModel).av3 = function (subtitleTrack) { updateSubtitles(this, ContentEntryEditViewModel$onClickDeleteSubtitleTrack$lambda(subtitleTrack)); }; protoOf(ContentEntryEditViewModel).ur3 = function () { var entityVal = this.jux_1.t2().xux_1; var tmp0_safe_receiver = this.jux_1.t2().xux_1; var contentEntry = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kjl_1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jux_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.uah_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : isBlank(this_1)) { tmp = this.apn().tno(strings_getInstance().wmw_1); } else { tmp = null; } var nextValue = prevValue.tuz(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_2(this.jux_1.t2(), this)) { this.cpn(Companion_getInstance_91().ip6_1); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.jux_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.tuz(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.kjl_1; var tmp_0; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp_0 = tmp2_elvis_lhs; } var contentEntryVal = tmp_0; if (!this.jux_1.t2().buy_1) { return Unit_instance; } $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.jux_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.tuz(VOID, VOID, VOID, VOID, false); if (this_3.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } if (this.lux_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.m4r().r45(Companion_instance_40.n4r(), entityVal); this_4.s(key, value); this.opn(this_4, Companion_getInstance_163().hv3_1); var tmp$ret$9 = this_4.f3(); this.epm_1.hob('CourseBlockEdit', tmp$ret$9); } else if (this.lux_1 === 2) { this.lps(entityVal); } else { var tmp_1 = this.tpm(); 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.xux_1 = entity; this.yux_1 = licenceOptions; this.zux_1 = storageOptions; this.auy_1 = courseBlockEditUiState; this.buy_1 = fieldsEnabled; this.cuy_1 = updateContentVisible; this.duy_1 = importError; this.euy_1 = titleError; this.fuy_1 = selectedContainerStorageDir; this.guy_1 = metadataResult; this.huy_1 = compressionEnabled; this.iuy_1 = subtitles; } protoOf(ContentEntryEditUiState).iv3 = function () { var tmp0_safe_receiver = this.xux_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mjl_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.baz_1; return tmp === 101; }; protoOf(ContentEntryEditUiState).jv3 = 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).tuz = function (entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles, $super) { entity = entity === VOID ? this.xux_1 : entity; licenceOptions = licenceOptions === VOID ? this.yux_1 : licenceOptions; storageOptions = storageOptions === VOID ? this.zux_1 : storageOptions; courseBlockEditUiState = courseBlockEditUiState === VOID ? this.auy_1 : courseBlockEditUiState; fieldsEnabled = fieldsEnabled === VOID ? this.buy_1 : fieldsEnabled; updateContentVisible = updateContentVisible === VOID ? this.cuy_1 : updateContentVisible; importError = importError === VOID ? this.duy_1 : importError; titleError = titleError === VOID ? this.euy_1 : titleError; selectedContainerStorageDir = selectedContainerStorageDir === VOID ? this.fuy_1 : selectedContainerStorageDir; metadataResult = metadataResult === VOID ? this.guy_1 : metadataResult; compressionEnabled = compressionEnabled === VOID ? this.huy_1 : compressionEnabled; subtitles = subtitles === VOID ? this.iuy_1 : subtitles; return $super === VOID ? this.jv3(entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles) : $super.jv3.call(this, entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles); }; protoOf(ContentEntryEditUiState).toString = function () { return 'ContentEntryEditUiState(entity=' + this.xux_1 + ', licenceOptions=' + this.yux_1 + ', storageOptions=' + this.zux_1 + ', courseBlockEditUiState=' + this.auy_1 + ', fieldsEnabled=' + this.buy_1 + ', updateContentVisible=' + this.cuy_1 + ', importError=' + this.duy_1 + ', titleError=' + this.euy_1 + ', selectedContainerStorageDir=' + this.fuy_1 + ', metadataResult=' + this.guy_1 + ', compressionEnabled=' + this.huy_1 + ', subtitles=' + this.iuy_1 + ')'; }; protoOf(ContentEntryEditUiState).hashCode = function () { var result = this.xux_1 == null ? 0 : this.xux_1.hashCode(); result = imul(result, 31) + hashCode(this.yux_1) | 0; result = imul(result, 31) + hashCode(this.zux_1) | 0; result = imul(result, 31) + this.auy_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.buy_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.cuy_1) | 0; result = imul(result, 31) + (this.duy_1 == null ? 0 : getStringHashCode(this.duy_1)) | 0; result = imul(result, 31) + (this.euy_1 == null ? 0 : getStringHashCode(this.euy_1)) | 0; result = imul(result, 31) + (this.fuy_1 == null ? 0 : hashCode(this.fuy_1)) | 0; result = imul(result, 31) + (this.guy_1 == null ? 0 : this.guy_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.huy_1) | 0; result = imul(result, 31) + hashCode(this.iuy_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.xux_1, tmp0_other_with_cast.xux_1)) return false; if (!equals(this.yux_1, tmp0_other_with_cast.yux_1)) return false; if (!equals(this.zux_1, tmp0_other_with_cast.zux_1)) return false; if (!this.auy_1.equals(tmp0_other_with_cast.auy_1)) return false; if (!(this.buy_1 === tmp0_other_with_cast.buy_1)) return false; if (!(this.cuy_1 === tmp0_other_with_cast.cuy_1)) return false; if (!(this.duy_1 == tmp0_other_with_cast.duy_1)) return false; if (!(this.euy_1 == tmp0_other_with_cast.euy_1)) return false; if (!equals(this.fuy_1, tmp0_other_with_cast.fuy_1)) return false; if (!equals(this.guy_1, tmp0_other_with_cast.guy_1)) return false; if (!(this.huy_1 === tmp0_other_with_cast.huy_1)) return false; if (!equals(this.iuy_1, tmp0_other_with_cast.iuy_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.gv4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.getmetadata.ContentEntryGetMetadataViewModel...' call var nextValue = prevValue.jv4(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_138() { this.kv4_1 = 'uri'; this.lv4_1 = 'filename'; this.mv4_1 = 'ContentEntryGetMetadata'; } var Companion_instance_186; function Companion_getInstance_155() { return Companion_instance_186; } function ContentEntryGetMetadataViewModel$slambda(this$0, $uriArg, $fileName, resultContinuation) { this.vv4_1 = this$0; this.wv4_1 = $uriArg; this.xv4_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.zv4_1 = this.vv4_1.fv4_1; this.av5_1 = Companion_getInstance_3().o2r(this.wv4_1); this.bv5_1 = this.vv4_1.spm().mng(); this.hd_1 = 1; suspendResult = this.zv4_1.bo8(this.av5_1, this.xv4_1, this.bv5_1, ContentEntryGetMetadataViewModel$slambda$lambda(this.vv4_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.vv4_1.m4r().r45(Companion_instance_80.n4r(), metadataResult)); this.vv4_1.opn(this_0, Companion_getInstance_163().hv3_1); Companion_getInstance_108(); this.vv4_1.npn(this_0, 'result_viewname'); Companion_getInstance_108(); this.vv4_1.npn(this_0, 'result_key'); Companion_getInstance_118(); this.vv4_1.npn(this_0, 'parentUid'); this.vv4_1.epm_1.rp8('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.vv4_1.apn().tno(strings_getInstance().vm4_1) + ' : ' + e.message; } else { if (e instanceof UnsupportedContentException) { var tmp_2 = this.vv4_1.apn(); var tmp_3 = strings_getInstance().xm4_1; var tmp3_elvis_lhs = e.message; tmp_1 = tmp_2.uno(tmp_3, [tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs]); } else { tmp_1 = this.vv4_1.apn().tno(strings_getInstance().alu_1) + ' : other: ' + e.message; } } var errorMessage = tmp_1; l$ret$1: do { var this_1 = this.vv4_1.gv4_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.jv4(prevValue.iv4_1.io8(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.vv4_1, this.wv4_1, this.xv4_1, completion); i.yv4_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(onActiveEndpoint(di)).f58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(ContentEntryGetMetaDataFromUriUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp = tmp_0.d58(tmp$ret$0, null); } else { tmp = contentEntryGetMetaDataFromUriUseCase; } contentEntryGetMetaDataFromUriUseCase = tmp; UstadViewModel.call(this, di, savedStateHandle, 'ContentEntryGetMetadata'); this.fv4_1 = contentEntryGetMetaDataFromUriUseCase; this.gv4_1 = MutableStateFlow(new ContentEntryGetMetadataUiState()); this.hv4_1 = asStateFlow(this.gv4_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.tpm(); launch(tmp_3, VOID, VOID, ContentEntryGetMetadataViewModel$slambda_0(this, uriArg, fileName, null)); } function ContentEntryGetMetadataUiState(status) { status = status === VOID ? new ContentEntryGetMetadataStatus() : status; this.iv4_1 = status; } protoOf(ContentEntryGetMetadataUiState).jv4 = function (status) { return new ContentEntryGetMetadataUiState(status); }; protoOf(ContentEntryGetMetadataUiState).toString = function () { return 'ContentEntryGetMetadataUiState(status=' + this.iv4_1 + ')'; }; protoOf(ContentEntryGetMetadataUiState).hashCode = function () { return this.iv4_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.iv4_1.equals(tmp0_other_with_cast.iv4_1)) return false; return true; }; function _get_getSubtitleTrackUseCase__ux9onr($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zv5_1; getSubtitleTrackUseCase$factory_0(); return this_0.t2(); } function Companion_139() { this.av6_1 = 'GetSubtitle'; } var Companion_instance_187; function Companion_getInstance_156() { return Companion_instance_187; } function GetSubtitleViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.jv6_1 = this$0; this.kv6_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.jv6_1); var tmp_1 = Companion_getInstance_3(); var tmp_2 = tmp_1.o2r(require_0(this.kv6_1, 'uri')); suspendResult = tmp_0.oo8(tmp_2, require_0(this.kv6_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_118(); this_0.s('entityState', this.jv6_1.m4r().r45(Companion_instance_79.n4r(), subtitleTrack)); Companion_getInstance_118(); this.jv6_1.npn(this_0, 'result_viewname'); Companion_getInstance_118(); this.jv6_1.npn(this_0, 'result_key'); this.jv6_1.epm_1.rp8('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.jv6_1.xv5_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.nv6(this.jv6_1.apn().tno(strings_getInstance().alu_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.jv6_1, this.kv6_1, completion); i.lv6_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.xv5_1 = MutableStateFlow(new GetSubtitleUiState()); this.yv5_1 = asStateFlow(this.xv5_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.spm().mng(); var trigger = this.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_0 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.h57(tmp$ret$0, context); var this_0 = On(this, tmp$ret$1, trigger); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(GetSubtitleTrackFromUriUseCase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp.zv5_1 = Instance(this_0, tmp$ret$3, null).a5d(this, getSubtitleTrackUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.gpm_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.getsubtitle.GetSubtitleViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, this.apn().tno(strings_getInstance().kmn_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.tpm(); launch(tmp_3, VOID, VOID, GetSubtitleViewModel$slambda_0(this, savedStateHandle, null)); } function GetSubtitleUiState(error) { error = error === VOID ? null : error; this.mv6_1 = error; } protoOf(GetSubtitleUiState).nv6 = function (error) { return new GetSubtitleUiState(error); }; protoOf(GetSubtitleUiState).toString = function () { return 'GetSubtitleUiState(error=' + this.mv6_1 + ')'; }; protoOf(GetSubtitleUiState).hashCode = function () { return this.mv6_1 == null ? 0 : getStringHashCode(this.mv6_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.mv6_1 == tmp0_other_with_cast.mv6_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.lv7_1; httpClient$factory_4(); return this_0.t2(); } function Companion_140() { this.ov7_1 = 'ContentEntryImportLink'; this.pv7_1 = 'importUrl'; } var Companion_instance_188; function Companion_getInstance_157() { return Companion_instance_188; } function ContentEntryImportLinkViewModel$onClickNext$ref($boundThis) { var l = function () { $boundThis.qv7(); return Unit_instance; }; l.callableName = 'onClickNext'; return l; } function ContentEntryImportLinkViewModel$onChangeLink$slambda(this$0, $url, resultContinuation) { this.zv7_1 = this$0; this.av8_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.zv7_1.cpm_1.epi('importUrl', this.av8_1); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.zv7_1, this.av8_1, completion); i.bv8_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.kv8_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.ov8_1 = _get_httpClient__2ty1zc_1(this.kv8_1); var tmp_1 = this; tmp_1.pv8_1 = this.ov8_1; var tmp_2 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.kv8_1.spm().mng().jn2_1 + 'api/import/validateLink'); parameter(this_0, 'url', this.kv8_1.jv7_1.t2().vv8_1); set_expectSuccess(this_0, false); tmp_2.qv8_1 = this_0; this.qv8_1.w38_1 = Companion_getInstance().m2x_1; var tmp_3 = this; tmp_3.rv8_1 = this.pv8_1; var tmp_4 = this; tmp_4.sv8_1 = this.qv8_1; this.hd_1 = 3; suspendResult = (new HttpStatement(this.sv8_1, this.rv8_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tv8_1 = suspendResult; if (!this.tv8_1.j3b().equals(Companion_getInstance_0().f2y_1)) { l$ret$1: do { var this_1 = this.kv8_1.jv7_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.yv8(VOID, this.kv8_1.apn().tno(strings_getInstance().um4_1), true); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.nv8_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.uv8_1 = this.kv8_1.m4r(); this.hd_1 = 5; suspendResult = bodyAsText(this.tv8_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var string = suspendResult; var this_2 = this.uv8_1.t45(); var this_3 = serializer(this_2, createKType(getKClass(MetadataResult), arrayOf([]), false)); var metadataResult = this.uv8_1.s45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), string); var tmp_6 = this; var tmp_7; if (this.kv8_1.nv7_1 === 'ContentEntryEdit') { var this_4 = LinkedHashMap_init_$Create$(); this_4.s('metadata', this.kv8_1.m4r().r45(Companion_instance_80.n4r(), metadataResult)); this.kv8_1.npn(this_4, 'courseBlock'); this.kv8_1.npn(this_4, 'goToOnContentEntryDone'); Companion_getInstance_108(); this.kv8_1.npn(this_4, 'result_viewname'); Companion_getInstance_108(); this.kv8_1.npn(this_4, 'result_key'); Companion_getInstance_118(); this.kv8_1.npn(this_4, 'parentUid'); Companion_getInstance_118(); this_4.s('popUpToOnFinish', 'ContentEntryImportLink'); this.kv8_1.epm_1.hob('ContentEntryEdit', this_4.f3()); tmp_7 = Unit_instance; } else { this.kv8_1.lps(metadataResult); tmp_7 = Unit_instance; } tmp_6.mv8_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.kv8_1.jv7_1; while (true) { var prevValue_0 = this_5.t2(); var nextValue_0 = prevValue_0.yv8(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.kv8_1.ypm().pp6(new Snack(this.kv8_1.apn().tno(strings_getInstance().alu_1) + (': ' + e))); tmp_9.mv8_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.kv8_1.jv7_1; while (true) { var prevValue_1 = this_6.t2(); var nextValue_1 = prevValue_1.yv8(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.kv8_1.jv7_1; while (true) { var prevValue_2 = this_7.t2(); var nextValue_2 = prevValue_2.yv8(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.kv8_1, completion); i.lv8_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.jv7_1 = MutableStateFlow(new ContentEntryImportLinkUiState()); this.kv7_1 = asStateFlow(this.jv7_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.lv7_1 = Instance(this, tmp$ret$0, null).a5d(this, httpClient$factory_3()); this.mv7_1 = null; var tmp_1 = this; Companion_getInstance_118(); tmp_1.nv7_1 = savedStateHandle.ba('next'); var tmp_2 = this.apn().tno(strings_getInstance().im4_1); var tmp_3 = this.apn().tno(strings_getInstance().dlv_1); this.gpm_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.jv7_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.yv8(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } protoOf(ContentEntryImportLinkViewModel).zv8 = function (url) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jv7_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.importlink.ContentEntryImportLinkViewModel.onChangeLink.' call var nextValue = prevValue.yv8(url, !(url === prevValue.vv8_1) ? null : prevValue.wv8_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_safe_receiver = this.mv7_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.tpm(); tmp.mv7_1 = launch(tmp_0, VOID, VOID, ContentEntryImportLinkViewModel$onChangeLink$slambda_0(this, url, null)); }; protoOf(ContentEntryImportLinkViewModel).qv7 = function () { if (!this.jv7_1.t2().xv8_1) { return Unit_instance; } if (isBlank(this.jv7_1.t2().vv8_1)) { Napier_getInstance().i5e('link is blank'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jv7_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.importlink.ContentEntryImportLinkViewModel.onClickNext.' call var nextValue = prevValue.yv8(VOID, this.apn().tno(strings_getInstance().dlz_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.jv7_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.yv8(VOID, VOID, false); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp0_safe_receiver = this.mv7_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } this.cpm_1.epi('importUrl', this.jv7_1.t2().vv8_1); var tmp = this.tpm(); 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.vv8_1 = url; this.wv8_1 = linkError; this.xv8_1 = fieldsEnabled; } protoOf(ContentEntryImportLinkUiState).av9 = function (url, linkError, fieldsEnabled) { return new ContentEntryImportLinkUiState(url, linkError, fieldsEnabled); }; protoOf(ContentEntryImportLinkUiState).yv8 = function (url, linkError, fieldsEnabled, $super) { url = url === VOID ? this.vv8_1 : url; linkError = linkError === VOID ? this.wv8_1 : linkError; fieldsEnabled = fieldsEnabled === VOID ? this.xv8_1 : fieldsEnabled; return $super === VOID ? this.av9(url, linkError, fieldsEnabled) : $super.av9.call(this, url, linkError, fieldsEnabled); }; protoOf(ContentEntryImportLinkUiState).toString = function () { return 'ContentEntryImportLinkUiState(url=' + this.vv8_1 + ', linkError=' + this.wv8_1 + ', fieldsEnabled=' + this.xv8_1 + ')'; }; protoOf(ContentEntryImportLinkUiState).hashCode = function () { var result = getStringHashCode(this.vv8_1); result = imul(result, 31) + (this.wv8_1 == null ? 0 : getStringHashCode(this.wv8_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.xv8_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.vv8_1 === tmp0_other_with_cast.vv8_1)) return false; if (!(this.wv8_1 == tmp0_other_with_cast.wv8_1)) return false; if (!(this.xv8_1 === tmp0_other_with_cast.xv8_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).vah_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).iai_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.bv9_1 : THROW_CCE(); if (!$this.equals(tmp0_other_with_cast)) return false; return true; } function ContentEntryListItemUiState(contentEntry) { this.bv9_1 = contentEntry; } protoOf(ContentEntryListItemUiState).toString = function () { return ContentEntryListItemUiState__toString_impl_2mjydu(this.bv9_1); }; protoOf(ContentEntryListItemUiState).hashCode = function () { return ContentEntryListItemUiState__hashCode_impl_odpv6p(this.bv9_1); }; protoOf(ContentEntryListItemUiState).equals = function (other) { return ContentEntryListItemUiState__equals_impl_d3bksl(this.bv9_1, other); }; function get_listItemUiState_0(_this__u8e3s4) { return _ContentEntryListItemUiState___init__impl__r5o9qy(_this__u8e3s4); } function ContentEntryListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.kv9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda$slambda).qpe = function (hasNewContentPermission, $completion) { var tmp = this.rpe(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.qpe((!(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.kv9_1.xpu_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (!(prevValue.bva_1 === this.lv9_1)) { tmp_0 = prevValue.dva(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.lv9_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.kv9_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ap6(prevValue_0.lp5_1.gp6(this.lv9_1 ? !this.kv9_1.jvb_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).rpe = function (hasNewContentPermission, completion) { var i = new ContentEntryListViewModel$slambda$slambda$slambda(this.kv9_1, completion); i.lv9_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.qpe(hasNewContentPermission, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$slambda$slambda(this$0, $hasPermissionFlow, resultContinuation) { this.uvb_1 = this$0; this.vvb_1 = $hasPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryListViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.uvb_1.fvb_1) { this.hd_1 = 2; var tmp_0 = ContentEntryListViewModel$slambda$slambda$slambda_0(this.uvb_1, null); suspendResult = this.vvb_1.h1h(new sam$kotlinx_coroutines_flow_FlowCollector$0_25(tmp_0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; continue $sm; } case 1: return Unit_instance; case 2: throwKotlinNothingValueException(); break; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryListViewModel$slambda$slambda).l78 = function (completion) { return new ContentEntryListViewModel$slambda$slambda(this.uvb_1, this.vvb_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.z86($completion); }; l.$arity = 0; return l; } function ContentEntryListViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation) { this.evc_1 = $savedStateHandle; this.fvc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda_1).wp9 = function (result, $completion) { var tmp = this.xp9(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.wp9(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.gvc_1.dp9_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.hvc_1 = tmp_2; var tmp_3 = this; var tmp1_safe_receiver = this.evc_1.ba('entriesToMove'); var tmp_4; if (tmp1_safe_receiver == null) { tmp_4 = null; } else { tmp_4 = this.fvc_1.m4r().s45(ListSerializer(Companion_instance_191.n4r()), tmp1_safe_receiver); } var tmp2_elvis_lhs = tmp_4; var tmp_5; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp_5 = tmp2_elvis_lhs; } tmp_3.ivc_1 = tmp_5; this.id_1 = 2; this.hd_1 = 1; suspendResult = _get_moveContentEntriesUseCase__fb3hfi(this.fvc_1).uoe(this.hvc_1, toSet(this.ivc_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.fvc_1.ypm().pp6(new Snack(this.fvc_1.apn().uno(strings_getInstance().omk_1, [this.ivc_1.u().toString()]))); this.id_1 = 4; this.hd_1 = 3; continue $sm; case 2: this.id_1 = 4; var tmp_6 = this.kd_1; if (tmp_6 instanceof Error) { var e = this.kd_1; Napier_getInstance().m5e('Could not move entries', e); var tmp_7 = this.fvc_1.ypm(); var tmp3_elvis_lhs = e.message; tmp_7.pp6(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.fvc_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).xp9 = function (result, completion) { var i = new ContentEntryListViewModel$slambda$slambda_1(this.evc_1, this.fvc_1, completion); i.gvc_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.wp9(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).tvc = function (uiState, hasPermission, $completion) { var tmp = this.uvc(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.tvc(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.rvc_1, this.svc_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryListViewModel$slambda$slambda_3).uvc = function (uiState, hasPermission, completion) { var i = new ContentEntryListViewModel$slambda$slambda_3(completion); i.rvc_1 = uiState; i.svc_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.tvc(uiState, hasPermission, $completion); }; l.$arity = 2; return l; } function ContentEntryListViewModel$slambda$slambda_5(this$0, resultContinuation) { this.dvd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda_5).fvd = function (it, $completion) { var tmp = this.gvd(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.fvd(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.evd_1.w6_1.yv9_1.c1()) { tmp_0 = this.evd_1.x6_1; } else { tmp_0 = false; } var showMoveIcon = tmp_0; if (!(showMoveIcon === !this.dvd_1.gpm_1.t2().wp5_1.c1())) { l$ret$1: do { var this_0 = this.dvd_1.gpm_1; while (true) { var prevValue = this_0.t2(); var tmp_1; if (showMoveIcon) { var tmp_2 = AppStateIcon_MOVE_getInstance(); var tmp_3 = this.dvd_1.apn().tno(strings_getInstance().nly_1); var tmp_4 = new AppActionButton(tmp_2, tmp_3, ContentEntryListViewModel$onClickMoveAction$ref(this.dvd_1), 'action_move'); var tmp_5 = AppStateIcon_DELETE_getInstance(); var tmp_6 = this.dvd_1.apn().tno(strings_getInstance().slu_1); tmp_1 = listOf([tmp_4, new AppActionButton(tmp_5, tmp_6, ContentEntryListViewModel$onClickDeleteAction$ref(this.dvd_1), 'action_delete')]); } else { tmp_1 = emptyList(); } var nextValue = prevValue.ap6(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).gvd = function (it, completion) { var i = new ContentEntryListViewModel$slambda$slambda_5(this.dvd_1, completion); i.evd_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.fvd(it, $completion); }; l.$arity = 1; return l; } function _get_moveContentEntriesUseCase__fb3hfi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kvb_1; moveContentEntriesUseCase$factory_0(); return this_0.t2(); } function _get_deleteEntriesUseCase__hkwqc9($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lvb_1; deleteEntriesUseCase$factory_0(); return this_0.t2(); } function setSelectedItems($this, selectedEntries) { $this.cpm_1.epi('selectedEntries', $this.m4r().r45(ListSerializer(Companion_instance_191.n4r()), toList(selectedEntries))); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.setSelectedItems.' call var nextValue = prevValue.dva(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.xpu_1.t2().yv9_1.u(); var hasSelectedItems = numItemsSelected > 0; $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = $this.gpm_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.apn().hvd(plurals_getInstance().in1_1, numItemsSelected); } else { tmp = $this.ivb_1; } var tmp1_title = tmp; var tmp_0; if (hasSelectedItems) { var tmp_1 = AppStateIcon_CLOSE_getInstance(); var tmp_2 = $this.apn().tno(strings_getInstance().wmx_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.ap6(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.cpm_1.epi('entriesToMove', $this.m4r().r45(ListSerializer(Companion_instance_191.n4r()), toList(entries))); var tmp = Companion_instance_27.n4r(); $this.ipn('PickContentEntry', 'moveToDestinationResult', null, tmp, mapOf([to('listMode', ListViewMode_PICKER_getInstance().bpj_1), to('selectFolder', 'true')])); } function onClickMoveAction($this) { selectDestinationToMoveEntries($this, $this.xpu_1.t2().yv9_1); } function launchDeleteEntries($this, entries) { var tmp = $this.tpm(); launch(tmp, VOID, VOID, ContentEntryListViewModel$launchDeleteEntries$slambda_0($this, entries, null)); } function onClickDeleteAction($this) { launchDeleteEntries($this, $this.xpu_1.t2().yv9_1); } function Companion_141() { Companion_instance_189 = this; this.ivd_1 = 'ContentEntries'; this.jvd_1 = 'ContentEntryListHome'; this.kvd_1 = 'PickContentEntry'; this.lvd_1 = listOf(['ContentEntries', 'ContentEntryListHome', 'PickContentEntry']); this.mvd_1 = 'filter'; this.nvd_1 = 1; this.ovd_1 = 2; this.pvd_1 = 3; this.qvd_1 = 4; this.rvd_1 = new Long(1, 0); this.svd_1 = 'chipId'; this.tvd_1 = 'moveToDestinationResult'; this.uvd_1 = 'selectFolder'; this.vvd_1 = 'selectedEntries'; this.wvd_1 = 'entriesToMove'; } var Companion_instance_189; function Companion_getInstance_158() { if (Companion_instance_189 == null) new Companion_141(); return Companion_instance_189; } function sam$kotlinx_coroutines_flow_FlowCollector$0_25(function_0) { this.xvd_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_25).t1d = function (value, $completion) { return this.xvd_1(value, $completion); }; function createContextMenuItemsForEntry$entriesToAction(this$0, rightClickedItem) { var selectedEntries = this$0.xpu_1.t2().yv9_1; var tmp; var tmp_0; // Inline function 'kotlin.collections.isNotEmpty' call if (!selectedEntries.c1()) { tmp_0 = !selectedEntries.a1(rightClickedItem); } else { tmp_0 = false; } if (tmp_0) { // Inline function 'kotlin.also' call var this_0 = toSet(plus_2(selectedEntries, rightClickedItem)); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.createContextMenuItemsForEntry.entriesToAction.' call setSelectedItems(this$0, this_0); tmp = this_0; } else { if (selectedEntries.c1()) { tmp = setOf_0(rightClickedItem); } else { tmp = selectedEntries; } } return tmp; } function ContentEntryListViewModel$pagingSourceFactory$lambda(this$0) { return function () { var tmp; switch (this$0.xpu_1.t2().ov9_1) { case 2: tmp = this$0.wpm().v7d().dah(this$0.upm()); break; case 3: tmp = this$0.wpm().v7d().cah(this$0.upm()); break; case 4: tmp = this$0.wpm().v7d().bah(this$0.upm(), this$0.evb_1, new Long(0, 0), new Long(0, 0), this$0.xpu_1.t2().tv9_1.ypb_1, false); break; case 1: tmp = this$0.wpm().v7d().bah(this$0.upm(), this$0.evb_1, new Long(0, 0), new Long(0, 0), this$0.xpu_1.t2().tv9_1.ypb_1, false); break; default: tmp = new EmptyPagingSource(); break; } return tmp; }; } function ContentEntryListViewModel$createContextMenuItemsForEntry$ref($boundThis) { var l = function (p0) { return $boundThis.yvd(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.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel...' call var nextValue = prevValue.dva(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.hve_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.hve_1.bpn() == null) ? !this.hve_1.gvb_1 : false) { this.jve_1 = this.hve_1.apn().tno(strings_getInstance().fmp_1); this.hd_1 = 2; continue $sm; } else { if (this.hve_1.evb_1.equals(new Long(1, 0))) { this.jve_1 = this.hve_1.apn().tno(strings_getInstance().smt_1); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.hve_1.wpm().v7d().aah(this.hve_1.evb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 1: var tmp0_elvis_lhs = suspendResult; this.jve_1 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; this.hd_1 = 2; continue $sm; case 2: var ARGUMENT = this.jve_1; this.hve_1.ivb_1 = ARGUMENT; l$ret$1: do { var this_0 = this.hve_1.gpm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ap6(VOID, VOID, this.hve_1.ivb_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.hve_1, completion); i.ive_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.sve_1 = this$0; this.tve_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.sve_1.xpu_1, ContentEntryListViewModel$slambda$slambda_0(this.sve_1, this.tve_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.sve_1, this.tve_1, completion); i.uve_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.dvf_1 = this$0; this.evf_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.dvf_1.epn(this.dvf_1.zpm(), 'moveToDestinationResult'); var tmp_1 = ContentEntryListViewModel$slambda$slambda_2(this.evf_1, this.dvf_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_25(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryListViewModel$slambda_3).v1m = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda_3(this.dvf_1, this.evf_1, completion); i.fvf_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.ovf_1 = this$0; this.pvf_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.ovf_1.xpu_1, this.pvf_1, ContentEntryListViewModel$slambda$slambda_4(null)); var tmp_1 = ContentEntryListViewModel$slambda$slambda_6(this.ovf_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_25(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryListViewModel$slambda_5).v1m = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda_5(this.ovf_1, this.pvf_1, completion); i.qvf_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.zvf_1 = this$0; this.avg_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.zvf_1).zo7(this.avg_1, this.zvf_1.upm(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: setSelectedItems(this.zvf_1, emptySet()); this.zvf_1.ypm().pp6(new Snack(this.zvf_1.apn().hvd(plurals_getInstance().jn1_1, this.avg_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.zvf_1, this.avg_1, completion); i.bvg_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_118(); var tmp0_safe_receiver = savedStateHandle.ba('parentUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.evb_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.fvb_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.gvb_1 = tmp1_elvis_lhs_0 == null ? false : tmp1_elvis_lhs_0; var tmp_3 = this; tmp_3.hvb_1 = ContentEntryListViewModel$pagingSourceFactory$lambda(this); this.ivb_1 = ''; this.jvb_1 = this.gvb_1 ? this.cpv().equals(ListViewMode_PICKER_getInstance()) : false; var tmp_4 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveEndpoint(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.kvb_1 = Instance(this_0, tmp$ret$0, null).a5d(this, moveContentEntriesUseCase$factory()); var tmp_6 = this; // Inline function 'org.kodein.di.instance' call var this_1 = onActiveEndpoint(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.lvb_1 = Instance(this_1, tmp$ret$2, null).a5d(this, deleteEntriesUseCase$factory()); var tmp0_safe_receiver_2 = savedStateHandle.ba('selectedEntries'); var tmp_8; if (tmp0_safe_receiver_2 == null) { tmp_8 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.' call tmp_8 = this.m4r().s45(ListSerializer(Companion_instance_191.n4r()), tmp0_safe_receiver_2); } var tmp1_safe_receiver = tmp_8; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : toSet(tmp1_safe_receiver); var savedStateSelectedEntries = tmp2_elvis_lhs == null ? emptySet() : tmp2_elvis_lhs; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.xpu_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.' call var tmp0_contentEntryList = this.hvb_1; var tmp1_showSelectFolderButton = this.jvb_1; var tmp2_contextMenuItems = ContentEntryListViewModel$createContextMenuItemsForEntry$ref(this); var nextValue = prevValue.dva(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.gpm_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.' call var tmp_9 = this.apn().tno(strings_getInstance().fmf_1); var tmp_10 = FabIcon_ADD_getInstance(); var nextValue_0 = prevValue_0.ap6(new FabUiState(false, tmp_9, tmp_10, ContentEntryListViewModel$lambda(this)), VOID, VOID, VOID, this.cpv().equals(ListViewMode_PICKER_getInstance())); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } if (this.fvb_1 ? this.evb_1.equals(new Long(1, 0)) : false) { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.xpu_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().tmo_1, 2), new MessageIdOption2(strings_getInstance().qmv_1, 3), new MessageIdOption2(strings_getInstance().smt_1, 4)]); var nextValue_1 = prevValue_1.dva(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.wpm().p7f(); var tmp_12 = this.spm().kng().xkb_1; PermissionFlags_getInstance(); var hasPermissionFlow = shareIn(tmp_11.zhe(tmp_12, new Long(65536, 0)), this.tpm(), Companion_getInstance_12().v1h()); var tmp_13 = this.tpm(); launch(tmp_13, VOID, VOID, ContentEntryListViewModel$slambda_0(this, null)); var tmp_14 = this.tpm(); launch(tmp_14, VOID, VOID, ContentEntryListViewModel$slambda_2(this, hasPermissionFlow, null)); var tmp_15 = this.tpm(); launch(tmp_15, VOID, VOID, ContentEntryListViewModel$slambda_4(this, savedStateHandle, null)); var tmp_16 = this.tpm(); launch(tmp_16, VOID, VOID, ContentEntryListViewModel$slambda_6(this, hasPermissionFlow, null)); } protoOf(ContentEntryListViewModel).yvd = function (entry) { var uiStateVal = this.xpu_1.t2(); var tmp; if (uiStateVal.bva_1 ? this.cpv().equals(ListViewMode_BROWSER_getInstance()) : false) { var rightClickedItem = asSelectedItem(entry); if (!uiStateVal.yv9_1.a1(rightClickedItem)) { setSelectedItems(this, emptySet()); } var tmp_0 = this.apn().tno(strings_getInstance().amy_1); var tmp_1 = new UstadContextMenuItem(tmp_0, ContentEntryListViewModel$createContextMenuItemsForEntry$lambda(this, rightClickedItem)); var tmp_2 = this.apn().tno(strings_getInstance().slu_1); tmp = listOf([tmp_1, new UstadContextMenuItem(tmp_2, ContentEntryListViewModel$createContextMenuItemsForEntry$lambda_0(this, rightClickedItem))]); } else { tmp = emptyList(); } return tmp; }; protoOf(ContentEntryListViewModel).rpv = function (searchText) { }; protoOf(ContentEntryListViewModel).spv = function () { }; protoOf(ContentEntryListViewModel).jty = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onDismissCreateNewOptions.' call var nextValue = prevValue.dva(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ContentEntryListViewModel).cvg = function () { this.jty(); // 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_118(); this_0.s('parentUid', this.evb_1.toString()); var tmp$ret$2 = this_0.f3(); this.kpw('ContentEntryEdit', tmp$ret$2); }; protoOf(ContentEntryListViewModel).dvg = function () { this.jty(); // 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_118(); this_0.s('parentUid', this.evb_1.toString()); Companion_getInstance_118(); this_0.s('next', 'ContentEntryEdit'); this.opn(this_0, Companion_getInstance_163().hv3_1); var tmp$ret$2 = this_0.f3(); this.kpw('ContentEntryImportLink', tmp$ret$2); }; protoOf(ContentEntryListViewModel).evg = function (fileUri, fileName) { this.jty(); // 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_118(); this_0.s('parentUid', this.evb_1.toString()); this.opn(this_0, Companion_getInstance_163().hv3_1); var tmp$ret$2 = this_0.f3(); this.kpw('ContentEntryGetMetadata', tmp$ret$2); }; protoOf(ContentEntryListViewModel).fvg = function (entry) { if (entry == null) return Unit_instance; var tmp0_safe_receiver = this.cpm_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.iai_1 ? this.jvb_1 : false) return Unit_instance; else { var tmp; if (this.cpv().equals(ListViewMode_PICKER_getInstance()) ? entry.iai_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().n4r(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onClickEntry.' call this.opn(this_0, Companion_getInstance_163().hv3_1); Companion_getInstance_163(); this_0.s('SelectedContentEntry', this.m4r().r45(Companion_instance_40.n4r(), new ContentEntryAndContentJob(entry))); var tmp5_args = this_0.f3(); this.ipn(tmp2_nextViewName, tmp3_key, null, tmp4_serializer, tmp5_args, VOID, false); } else { if (entry.iai_1) { Companion_getInstance_149(); Companion_getInstance_108(); var tmp_0 = to('entityUid', entry.tah_1.toString()); Companion_getInstance_118(); this.epm_1.hob('ContentEntry', mapOf([tmp_0, to('parentUid', this.evb_1.toString())])); } else { var tmp_1; if (this.dpm_1 === 'ContentEntryListHome') { tmp_1 = 'ContentEntries'; } else { tmp_1 = this.dpm_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_118(); this_1.s('parentUid', entry.tah_1.toString()); Companion_getInstance_108(); this.npn(this_1, 'result_key'); Companion_getInstance_108(); this.npn(this_1, 'result_viewname'); this.npn(this_1, 'selectFolder'); this.npn(this_1, 'goToOnContentEntryDone'); var tmp$ret$5 = this_1.f3(); this.epm_1.hob(tmp_2, tmp$ret$5); } } } }; protoOf(ContentEntryListViewModel).gvg = 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.tah_1 = this.evb_1; this.lps(this_0); }; protoOf(ContentEntryListViewModel).hvg = function (entry, selected) { var currentSelection = this.xpu_1.t2().yv9_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.wak_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tah_1; if (!element.wo7_1.equals(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs)) { destination.i1(element); } } tmp = toSet(destination); } setSelectedItems(this, tmp); }; protoOf(ContentEntryListViewModel).srn = function (filterOption) { // Inline function 'kotlin.takeIf' call var this_0 = this.xpu_1; // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onClickFilterChip.' call if (!(this_0.t2().ov9_1 === filterOption.dp7_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.dva(VOID, VOID, filterOption.dp7_1); if (tmp0_safe_receiver.y1k(prevValue, nextValue)) { break $l$block; } } } } this.cpm_1.epi('chipId', filterOption.dp7_1.toString()); this.zpu_1.i1h(new RefreshCommand()); }; function Companion_142() { Companion_instance_190 = this; var tmp = this; var tmp_0 = strings_getInstance().fly_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().fly_1; tmp.ivg_1 = listOf([tmp_1, new SortOrderOption(tmp_2, 2, false)]); } var Companion_instance_190; function Companion_getInstance_159() { if (Companion_instance_190 == null) new Companion_142(); return Companion_instance_190; } 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().ivg_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.mv9_1 = filterMode; this.nv9_1 = contentEntryList; this.ov9_1 = selectedChipId; this.pv9_1 = filterOptions; this.qv9_1 = showHiddenEntries; this.rv9_1 = onlyFolderFilter; this.sv9_1 = sortOptions; this.tv9_1 = activeSortOption; this.uv9_1 = createNewFolderItemVisible; this.vv9_1 = importFromLinkItemVisible; this.wv9_1 = importFromFileItemVisible; this.xv9_1 = createNewOptionsVisible; this.yv9_1 = selectedEntries; this.zv9_1 = showSelectFolderButton; this.ava_1 = contextMenuItems; this.bva_1 = hasWritePermission; var tmp_2 = this; // Inline function 'kotlin.collections.map' call var this_0 = this.yv9_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.wo7_1; destination.i1(tmp$ret$1); } tmp_2.cva_1 = toSet(destination); } protoOf(ContentEntryListUiState).jvg = function () { // Inline function 'kotlin.collections.isNotEmpty' call return !this.pv9_1.c1(); }; protoOf(ContentEntryListUiState).kvg = 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).dva = function (filterMode, contentEntryList, selectedChipId, filterOptions, showHiddenEntries, onlyFolderFilter, sortOptions, activeSortOption, createNewFolderItemVisible, importFromLinkItemVisible, importFromFileItemVisible, createNewOptionsVisible, selectedEntries, showSelectFolderButton, contextMenuItems, hasWritePermission, $super) { filterMode = filterMode === VOID ? this.mv9_1 : filterMode; contentEntryList = contentEntryList === VOID ? this.nv9_1 : contentEntryList; selectedChipId = selectedChipId === VOID ? this.ov9_1 : selectedChipId; filterOptions = filterOptions === VOID ? this.pv9_1 : filterOptions; showHiddenEntries = showHiddenEntries === VOID ? this.qv9_1 : showHiddenEntries; onlyFolderFilter = onlyFolderFilter === VOID ? this.rv9_1 : onlyFolderFilter; sortOptions = sortOptions === VOID ? this.sv9_1 : sortOptions; activeSortOption = activeSortOption === VOID ? this.tv9_1 : activeSortOption; createNewFolderItemVisible = createNewFolderItemVisible === VOID ? this.uv9_1 : createNewFolderItemVisible; importFromLinkItemVisible = importFromLinkItemVisible === VOID ? this.vv9_1 : importFromLinkItemVisible; importFromFileItemVisible = importFromFileItemVisible === VOID ? this.wv9_1 : importFromFileItemVisible; createNewOptionsVisible = createNewOptionsVisible === VOID ? this.xv9_1 : createNewOptionsVisible; selectedEntries = selectedEntries === VOID ? this.yv9_1 : selectedEntries; showSelectFolderButton = showSelectFolderButton === VOID ? this.zv9_1 : showSelectFolderButton; contextMenuItems = contextMenuItems === VOID ? this.ava_1 : contextMenuItems; hasWritePermission = hasWritePermission === VOID ? this.bva_1 : hasWritePermission; return $super === VOID ? this.kvg(filterMode, contentEntryList, selectedChipId, filterOptions, showHiddenEntries, onlyFolderFilter, sortOptions, activeSortOption, createNewFolderItemVisible, importFromLinkItemVisible, importFromFileItemVisible, createNewOptionsVisible, selectedEntries, showSelectFolderButton, contextMenuItems, hasWritePermission) : $super.kvg.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.mv9_1 + ', contentEntryList=' + this.nv9_1 + ', selectedChipId=' + this.ov9_1 + ', filterOptions=' + this.pv9_1 + ', showHiddenEntries=' + this.qv9_1 + ', onlyFolderFilter=' + this.rv9_1 + ', sortOptions=' + this.sv9_1 + ', activeSortOption=' + this.tv9_1 + ', createNewFolderItemVisible=' + this.uv9_1 + ', importFromLinkItemVisible=' + this.vv9_1 + ', importFromFileItemVisible=' + this.wv9_1 + ', createNewOptionsVisible=' + this.xv9_1 + ', selectedEntries=' + this.yv9_1 + ', showSelectFolderButton=' + this.zv9_1 + ', contextMenuItems=' + this.ava_1 + ', hasWritePermission=' + this.bva_1 + ')'; }; protoOf(ContentEntryListUiState).hashCode = function () { var result = this.mv9_1; result = imul(result, 31) + hashCode(this.nv9_1) | 0; result = imul(result, 31) + this.ov9_1 | 0; result = imul(result, 31) + hashCode(this.pv9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.qv9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.rv9_1) | 0; result = imul(result, 31) + hashCode(this.sv9_1) | 0; result = imul(result, 31) + this.tv9_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.uv9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.vv9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.wv9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.xv9_1) | 0; result = imul(result, 31) + hashCode(this.yv9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.zv9_1) | 0; result = imul(result, 31) + hashCode(this.ava_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.bva_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.mv9_1 === tmp0_other_with_cast.mv9_1)) return false; if (!equals(this.nv9_1, tmp0_other_with_cast.nv9_1)) return false; if (!(this.ov9_1 === tmp0_other_with_cast.ov9_1)) return false; if (!equals(this.pv9_1, tmp0_other_with_cast.pv9_1)) return false; if (!(this.qv9_1 === tmp0_other_with_cast.qv9_1)) return false; if (!(this.rv9_1 === tmp0_other_with_cast.rv9_1)) return false; if (!equals(this.sv9_1, tmp0_other_with_cast.sv9_1)) return false; if (!this.tv9_1.equals(tmp0_other_with_cast.tv9_1)) return false; if (!(this.uv9_1 === tmp0_other_with_cast.uv9_1)) return false; if (!(this.vv9_1 === tmp0_other_with_cast.vv9_1)) return false; if (!(this.wv9_1 === tmp0_other_with_cast.wv9_1)) return false; if (!(this.xv9_1 === tmp0_other_with_cast.xv9_1)) return false; if (!equals(this.yv9_1, tmp0_other_with_cast.yv9_1)) return false; if (!(this.zv9_1 === tmp0_other_with_cast.zv9_1)) return false; if (!equals(this.ava_1, tmp0_other_with_cast.ava_1)) return false; if (!(this.bva_1 === tmp0_other_with_cast.bva_1)) return false; return true; }; function Companion_143() { } protoOf(Companion_143).n4r = function () { return $serializer_getInstance_67(); }; var Companion_instance_191; function Companion_getInstance_160() { return Companion_instance_191; } function $serializer_55() { $serializer_instance_55 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListSelectedItem', this, 3); tmp0_serialDesc.t4f('contentEntryUid', false); tmp0_serialDesc.t4f('contentEntryParentChildJoinUid', false); tmp0_serialDesc.t4f('parentContentEntryUid', false); this.lvg_1 = tmp0_serialDesc; } protoOf($serializer_55).q44 = function () { return this.lvg_1; }; protoOf($serializer_55).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_55).s44 = function (decoder) { var tmp0_desc = this.lvg_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_input = decoder.i48(tmp0_desc); if (tmp7_input.x48()) { tmp4_local0 = tmp7_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.o48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.o48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.j48(tmp0_desc); return ContentEntryListSelectedItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_55).mvg = function (encoder, value) { var tmp0_desc = this.lvg_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.s49(tmp0_desc, 0, value.wo7_1); tmp1_output.s49(tmp0_desc, 1, value.xo7_1); tmp1_output.s49(tmp0_desc, 2, value.yo7_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_55).r44 = function (encoder, value) { return this.mvg(encoder, value instanceof ContentEntryListSelectedItem ? value : THROW_CCE()); }; var $serializer_instance_55; function $serializer_getInstance_67() { if ($serializer_instance_55 == null) new $serializer_55(); return $serializer_instance_55; } function ContentEntryListSelectedItem_init_$Init$(seen1, contentEntryUid, contentEntryParentChildJoinUid, parentContentEntryUid, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_67().lvg_1); } $this.wo7_1 = contentEntryUid; $this.xo7_1 = contentEntryParentChildJoinUid; $this.yo7_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.wo7_1 = contentEntryUid; this.xo7_1 = contentEntryParentChildJoinUid; this.yo7_1 = parentContentEntryUid; } protoOf(ContentEntryListSelectedItem).toString = function () { return 'ContentEntryListSelectedItem(contentEntryUid=' + this.wo7_1.toString() + ', contentEntryParentChildJoinUid=' + this.xo7_1.toString() + ', parentContentEntryUid=' + this.yo7_1.toString() + ')'; }; protoOf(ContentEntryListSelectedItem).hashCode = function () { var result = this.wo7_1.hashCode(); result = imul(result, 31) + this.xo7_1.hashCode() | 0; result = imul(result, 31) + this.yo7_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.wo7_1.equals(tmp0_other_with_cast.wo7_1)) return false; if (!this.xo7_1.equals(tmp0_other_with_cast.xo7_1)) return false; if (!this.yo7_1.equals(tmp0_other_with_cast.yo7_1)) return false; return true; }; function asSelectedItem(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.wak_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tah_1; var tmp = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp2_safe_receiver = _this__u8e3s4.yak_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.dal_1; var tmp_0 = tmp3_elvis_lhs == null ? new Long(0, 0) : tmp3_elvis_lhs; var tmp4_safe_receiver = _this__u8e3s4.yak_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.aal_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).wvg = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SubtitleEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.wvg(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).vn7 = function (db, completion) { var i = new SubtitleEditViewModel$slambda$slambda(completion); i.vvg_1 = db; return i; }; function SubtitleEditViewModel$slambda$slambda_0(resultContinuation) { var i = new SubtitleEditViewModel$slambda$slambda(resultContinuation); var l = function (db, $completion) { return i.wvg(db, $completion); }; l.$arity = 1; return l; } function SubtitleEditViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation) { this.fvh_1 = $savedStateHandle; this.gvh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SubtitleEditViewModel$slambda$slambda_1).hvh = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SubtitleEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.hvh($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.fvh_1.ba('uri'); var tmp2_uri = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = this.fvh_1.ba('filename'); var tmp3_title = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp4_langCode = _get_supportedLanguagesConfig__bd0744(this.gvh_1).mom_1; return new SubtitleTrack(tmp2_uri, 'text/vtt', tmp4_langCode, tmp3_title); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SubtitleEditViewModel$slambda$slambda_1).l78 = function (completion) { return new SubtitleEditViewModel$slambda$slambda_1(this.fvh_1, this.gvh_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.hvh($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.gvi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.subtitleedit.SubtitleEditViewModel...' call var nextValue = prevValue.lvi(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.fvi_1; supportedLanguagesConfig$factory_0(); return this_0.t2(); } function Companion_144() { this.mvi_1 = 'uri'; this.nvi_1 = 'filename'; this.ovi_1 = 'SubtitleEdit'; } var Companion_instance_192; function Companion_getInstance_161() { return Companion_instance_192; } function SubtitleEditViewModel$onClickDone$ref($boundThis) { var l = function () { $boundThis.pvi(); return Unit_instance; }; l.callableName = 'onClickDone'; return l; } function SubtitleEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.yvi_1 = this$0; this.zvi_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_79.n4r(); var tmp_1 = SubtitleEditViewModel$slambda$slambda_0(null); var tmp_2 = SubtitleEditViewModel$slambda$slambda_2(this.zvi_1, this.yvi_1, null); suspendResult = this.yvi_1.kpn(tmp_0, VOID, VOID, tmp_1, tmp_2, SubtitleEditViewModel$slambda$lambda(this.yvi_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.yvi_1.gvi_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.lvi(VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.yvi_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ap6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.tp5_1.bp5(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.yvi_1, this.zvi_1, completion); i.avj_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.jvj_1 = $commitDelay; this.kvj_1 = $entity; this.lvj_1 = $this; this.mvj_1 = $key; this.nvj_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.jvj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.kvj_1 == null)) { this.hd_1 = 2; suspendResult = this.lvj_1.gpn(this.lvj_1.cpm_1, this.mvj_1, this.nvj_1, this.kvj_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.jvj_1, this.kvj_1, this.lvj_1, this.mvj_1, this.nvj_1, completion); i.ovj_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.fvi_1 = Instance(this, tmp$ret$0, null).a5d(this, supportedLanguagesConfig$factory()); this.gvi_1 = MutableStateFlow(new SubtitleEditUiState()); this.hvi_1 = asSharedFlow(this.gvi_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.subtitleedit.SubtitleEditViewModel.' call var tmp_1 = this.apn().tno(strings_getInstance().sn0_1); var tmp_2 = this.apn().tno(strings_getInstance().qm2_1); var nextValue = prevValue.ap6(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.tpm(); launch(tmp_3, VOID, VOID, SubtitleEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(SubtitleEditViewModel).pvj = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gvi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.subtitleedit.SubtitleEditViewModel.onEntityChanged.' call var nextValue = prevValue.lvi(entity); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_79.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver = this.hps_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.tpm(); tmp.hps_1 = launch(tmp_0, VOID, VOID, SubtitleEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SubtitleEditViewModel).pvi = function () { this.lps(this.gvi_1.t2().ivi_1); }; function SubtitleEditUiState(entity, titleError, fieldsEnabled) { entity = entity === VOID ? null : entity; titleError = titleError === VOID ? null : titleError; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; this.ivi_1 = entity; this.jvi_1 = titleError; this.kvi_1 = fieldsEnabled; } protoOf(SubtitleEditUiState).qvj = function (entity, titleError, fieldsEnabled) { return new SubtitleEditUiState(entity, titleError, fieldsEnabled); }; protoOf(SubtitleEditUiState).lvi = function (entity, titleError, fieldsEnabled, $super) { entity = entity === VOID ? this.ivi_1 : entity; titleError = titleError === VOID ? this.jvi_1 : titleError; fieldsEnabled = fieldsEnabled === VOID ? this.kvi_1 : fieldsEnabled; return $super === VOID ? this.qvj(entity, titleError, fieldsEnabled) : $super.qvj.call(this, entity, titleError, fieldsEnabled); }; protoOf(SubtitleEditUiState).toString = function () { return 'SubtitleEditUiState(entity=' + this.ivi_1 + ', titleError=' + this.jvi_1 + ', fieldsEnabled=' + this.kvi_1 + ')'; }; protoOf(SubtitleEditUiState).hashCode = function () { var result = this.ivi_1 == null ? 0 : this.ivi_1.hashCode(); result = imul(result, 31) + (this.jvi_1 == null ? 0 : getStringHashCode(this.jvi_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.kvi_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.ivi_1, tmp0_other_with_cast.ivi_1)) return false; if (!(this.jvi_1 == tmp0_other_with_cast.jvi_1)) return false; if (!(this.kvi_1 === tmp0_other_with_cast.kvi_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.rvj_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_193 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.rvj_1 = lazy(tmp_0, CourseBlockViewModelConstants$CompletionCriteria$Companion$_anonymous__1j6hl9); } protoOf(Companion_145).jjp = 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.vvj_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).n4r = function () { return _get_$cachedSerializer__te6jhj_2(this); }; protoOf(Companion_145).v4g = function (typeParamsSerializers) { return this.n4r(); }; var Companion_instance_193; function Companion_getInstance_162() { CompletionCriteria_initEntries(); if (Companion_instance_193 == null) new Companion_145(); return Companion_instance_193; } 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().gmh_1; CompletionCriteria_AUTOMATIC_instance = new CompletionCriteria('AUTOMATIC', 0, tmp, 0); var tmp_0 = strings_getInstance().fmh_1; CompletionCriteria_MIN_SCORE_instance = new CompletionCriteria('MIN_SCORE', 1, tmp_0, 1); var tmp_1 = strings_getInstance().hmh_1; CompletionCriteria_STUDENT_SELF_MARKS_instance = new CompletionCriteria('STUDENT_SELF_MARKS', 2, tmp_1, 2); var tmp_2 = strings_getInstance().mmh_1; CompletionCriteria_ASSIGNMENT_SUBMITTED_instance = new CompletionCriteria('ASSIGNMENT_SUBMITTED', 3, tmp_2, 100); var tmp_3 = strings_getInstance().wmr_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.uvj_1 = stringResource; this.vvj_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.evk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda$slambda).wp9 = function (result, $completion) { var tmp = this.xp9(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.wp9(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.fvk_1.dp9_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.evk_1.dvl_1.t2().gso_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.jjm_1; this.evk_1.fvl(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.tjz(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).xp9 = function (result, completion) { var i = new CourseBlockEditViewModel$slambda$slambda$slambda(this.evk_1, completion); i.fvk_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.wp9(result, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.ovl_1 = this$0; this.pvl_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda$slambda_1).wp9 = function (result, $completion) { var tmp = this.xp9(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.wp9(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.qvl_1.dp9_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.ovl_1.dvl_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = prevValue.gso_1; var nextValue = prevValue.rso(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vjm(VOID, VOID, contentEntryResult.kjl_1, VOID, contentEntryResult.mjl_1, contentEntryResult.ljl_1)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.pvl_1.epi('SavedSelectedContentEntry', this.ovl_1.m4r().r45(Companion_instance_40.n4r(), contentEntryResult)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda$slambda_1).xp9 = function (result, completion) { var i = new CourseBlockEditViewModel$slambda$slambda$slambda_1(this.ovl_1, this.pvl_1, completion); i.qvl_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.wp9(result, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda).zsp = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.zsp(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).vn7 = function (it, completion) { var i = new CourseBlockEditViewModel$slambda$slambda(completion); i.zvl_1 = it; return i; }; function CourseBlockEditViewModel$slambda$slambda_0(resultContinuation) { var i = new CourseBlockEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.zsp(it, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, $selectedContentEntry, resultContinuation) { this.ivm_1 = this$0; this.jvm_1 = $savedStateHandle; this.kvm_1 = $selectedContentEntry; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda_1).jsq = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.jsq($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.ivm_1.vpm()); suspendResult = tmp_0.o62(124, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var newUid = suspendResult; var this_0 = new CourseBlock(); this_0.j7x_1 = newUid; this_0.z7x_1 = true; var tmp_1 = this_0; var tmp0_safe_receiver = this.jvm_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.k7x_1 = tmp_2; var tmp_3 = this_0; var tmp2_safe_receiver = this.kvm_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.kjl_1; tmp_3.n7x_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.uah_1; var tmp_4 = this_0; var tmp4_safe_receiver = this.kvm_1; var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.kjl_1; tmp_4.o7x_1 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.vah_1; if (!(this.kvm_1 == null)) { var tmp_5 = this_0; var tmp6_safe_receiver = this.kvm_1.kjl_1; var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.tah_1; tmp_5.b7y_1 = tmp7_elvis_lhs == null ? new Long(0, 0) : tmp7_elvis_lhs; var tmp_6 = this_0; tmp_6.k7x_1 = 104; } var tmp0_safe_receiver_0 = this.kvm_1; var tmp5_contentEntry = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.kjl_1; var tmp3_safe_receiver_0 = this.kvm_1; var tmp6_contentJob = tmp3_safe_receiver_0 == null ? null : tmp3_safe_receiver_0.ljl_1; var tmp2_safe_receiver_0 = this.kvm_1; var tmp7_contentJobItem = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.mjl_1; var tmp8_courseBlockPicture = new CourseBlockPicture(newUid); var tmp1_safe_receiver = this.kvm_1; var tmp9_contentEntryPicture = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.njl_1; return new CourseBlockAndEditEntities(this_0, tmp8_courseBlockPicture, tmp5_contentEntry, tmp9_contentEntryPicture, tmp7_contentJobItem, tmp6_contentJob); case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda_1).l78 = function (completion) { return new CourseBlockEditViewModel$slambda$slambda_1(this.ivm_1, this.jvm_1, this.kvm_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.jsq($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.dvl_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel...' call var nextValue = prevValue.rso(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseBlockEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function CourseBlockEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.tvm_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.tvm_1.epn(this.tvm_1.zpm(), 'courseBlockDesc'); var tmp_1 = CourseBlockEditViewModel$slambda$slambda$slambda_0(this.tvm_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_26(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda_3).v1m = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$slambda$slambda_3(this.tvm_1, completion); i.uvm_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.dvn_1 = this$0; this.evn_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.dvn_1.epn(this.dvn_1.zpm(), 'courseBlockEditContentEntry'); var tmp_1 = CourseBlockEditViewModel$slambda$slambda$slambda_2(this.dvn_1, this.evn_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_26(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda_5).v1m = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$slambda$slambda_5(this.dvn_1, this.evn_1, completion); i.fvn_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_194 = this; this.bv3_1 = 'CourseBlockEdit'; this.cv3_1 = 'SelectedContentEntry'; this.dv3_1 = 'blockType'; this.ev3_1 = 'courseBlockDesc'; this.fv3_1 = 'courseBlockEditContentEntry'; this.gv3_1 = 'SavedSelectedContentEntry'; var tmp = this; Companion_getInstance_118(); Companion_getInstance_108(); Companion_getInstance_108(); tmp.hv3_1 = listOf(['blockType', 'clazzUid', 'goToOnContentEntryDone', 'blockType', 'result_viewname', 'result_key', 'listMode']); } var Companion_instance_194; function Companion_getInstance_163() { if (Companion_instance_194 == null) new Companion_146(); return Companion_instance_194; } function sam$kotlinx_coroutines_flow_FlowCollector$0_26(function_0) { this.gvn_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_26).t1d = function (value, $completion) { return this.gvn_1(value, $completion); }; function CourseBlockEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.pvn_1 = this$0; this.qvn_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.pvn_1.fpn(this.qvn_1, 'SelectedContentEntry', Companion_instance_40.n4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.svn_1 = suspendResult; this.tvn_1 = Companion_getInstance_13().n4r(); this.hd_1 = 2; var tmp_0 = CourseBlockEditViewModel$slambda$slambda_0(null); var tmp_1 = CourseBlockEditViewModel$slambda$slambda_2(this.pvn_1, this.qvn_1, this.svn_1, null); suspendResult = this.pvn_1.kpn(this.tvn_1, VOID, VOID, tmp_0, tmp_1, CourseBlockEditViewModel$slambda$lambda(this.pvn_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.uvn_1 = suspendResult; var tmp_2 = this; var tmp1_safe_receiver = this.uvn_1; tmp_2.vvn_1 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ljm_1; var tmp_3 = this; var tmp2_safe_receiver = this.uvn_1; tmp_3.wvn_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.jjm_1; if (!(this.vvn_1 == null) ? !(this.wvn_1 == null) : false) { Companion_getInstance_107(); if (this.qvn_1.ba('entity') == null) { this.xvn_1 = false; this.hd_1 = 4; continue $sm; } else { var tmp_4; var tmp_5 = this.vvn_1.pai_1; if (tmp_5 === 2) { tmp_4 = this.vvn_1.oai_1.equals(this.wvn_1.j7x_1); } else { tmp_4 = false; } if (tmp_4) { var tmp_6 = this; tmp_6.xvn_1 = true; this.hd_1 = 4; continue $sm; } else { var tmp_7 = this.vvn_1.pai_1; if (tmp_7 === 2) { this.hd_1 = 3; var tmp_8 = this.pvn_1.wpm().o7f(); var tmp_9 = this.pvn_1.upm(); var tmp_10 = this.vvn_1.oai_1; PermissionFlags_getInstance(); suspendResult = tmp_8.pd6(tmp_9, tmp_10, new Long(2, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.xvn_1 = false; this.hd_1 = 4; continue $sm; } } } } else { this.hd_1 = 5; continue $sm; } case 3: this.xvn_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: var canEditContentEntry = this.xvn_1; l$ret$1: do { var this_0 = this.pvn_1.dvl_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.rso(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.pvn_1.dvl_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.rso(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.pvn_1.gpm_1; while (true) { var prevValue_1 = this_2.t2(); var tmp0_safe_receiver = this.wvn_1; var tmp1_subject = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k7x_1; var tmp_11; if (tmp1_subject === 100) { tmp_11 = this.pvn_1.mpt(strings_getInstance().fmu_1, strings_getInstance().qms_1); } else { if (tmp1_subject === 102) { tmp_11 = this.pvn_1.mpt(strings_getInstance().ems_1, strings_getInstance().emu_1); } else { if (tmp1_subject === 105) { tmp_11 = this.pvn_1.mpt(strings_getInstance().gmv_1, strings_getInstance().hmv_1); } else { if (tmp1_subject === 104) { tmp_11 = this.pvn_1.apn().tno(strings_getInstance().vmz_1); } else { tmp_11 = ''; } } } } var tmp_12 = tmp_11; var tmp_13 = this.pvn_1.apn().tno(strings_getInstance().qm2_1); var nextValue_1 = prevValue_1.ap6(VOID, VOID, tmp_12, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_13, VOID, CourseBlockEditViewModel$onClickSave$ref(this.pvn_1))); if (this_2.y1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); launch(this.rvn_1, VOID, VOID, CourseBlockEditViewModel$slambda$slambda_4(this.pvn_1, null)); launch(this.rvn_1, VOID, VOID, CourseBlockEditViewModel$slambda$slambda_6(this.pvn_1, this.qvn_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.pvn_1, this.qvn_1, completion); i.rvn_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.gvo_1 = $commitDelay; this.hvo_1 = $entity; this.ivo_1 = $this; this.jvo_1 = $key; this.kvo_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.gvo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.hvo_1 == null)) { this.hd_1 = 2; suspendResult = this.ivo_1.gpn(this.ivo_1.cpm_1, this.jvo_1, this.kvo_1, this.hvo_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.gvo_1, this.hvo_1, this.ivo_1, this.jvo_1, this.kvo_1, completion); i.lvo_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.uvo_1 = $commitDelay; this.vvo_1 = $entity; this.wvo_1 = $this; this.xvo_1 = $key; this.yvo_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.uvo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.vvo_1 == null)) { this.hd_1 = 2; suspendResult = this.wvo_1.gpn(this.wvo_1.cpm_1, this.xvo_1, this.yvo_1, this.vvo_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.uvo_1, this.vvo_1, this.wvo_1, this.xvo_1, this.yvo_1, completion); i.zvo_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.dvl_1 = MutableStateFlow(new CourseBlockEditUiState(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_getInstance_9().hlt().ils())); this.evl_1 = asStateFlow(this.dvl_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, VOID, VOID, true, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.tpm(); launch(tmp, VOID, VOID, CourseBlockEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(CourseBlockEditViewModel).fvl = 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.dvl_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.gso_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vjm(courseBlock); var tmp1_safe_receiver = prevValue.gso_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.jjm_1; var nextValue = prevValue.rso(tmp, VOID, VOID, VOID, VOID, this.npt(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.n7x_1, courseBlock.n7x_1, prevValue.lso_1)); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var blockAndEntities = tmp$ret$1.gso_1; // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_13().n4r(); Companion_getInstance_107(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.hps_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.tpm(); tmp_0.hps_1 = launch(tmp_1, VOID, VOID, CourseBlockEditViewModel$onEntityChanged$slambda_0(commitDelay, blockAndEntities, this, key, serializer, null)); }; protoOf(CourseBlockEditViewModel).avp = function () { var tmp0_safe_receiver = this.dvl_1.t2().gso_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tjm(); var tmp_0 = Companion_instance_40.n4r(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onClickEditContentEntry.' call var tmp0_safe_receiver_0 = this.dvl_1.t2().gso_1; if (tmp0_safe_receiver_0 == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onClickEditContentEntry..' call // Inline function 'kotlin.collections.set' call var key = 'courseBlock'; var value = this.m4r().r45(Companion_instance_14.n4r(), tmp0_safe_receiver_0.jjm_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.ipn('ContentEntryEdit', 'courseBlockEditContentEntry', tmp, tmp_0, tmp$ret$3); }; protoOf(CourseBlockEditViewModel).hsw = function (pictureUri) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.dvl_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onPictureChanged.' call var tmp1_safe_receiver = prevValue.gso_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.gso_1.kjm_1; tmp = tmp1_safe_receiver.vjm(VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xjz(VOID, VOID, pictureUri)); } var nextValue = prevValue.rso(tmp); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var blockAndEntities = tmp$ret$1.gso_1; // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_13().n4r(); Companion_getInstance_107(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.hps_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.tpm(); tmp_0.hps_1 = launch(tmp_1, VOID, VOID, CourseBlockEditViewModel$onPictureChanged$slambda_0(commitDelay, blockAndEntities, this, key, serializer, null)); }; protoOf(CourseBlockEditViewModel).ur3 = function () { var tmp0_elvis_lhs = this.dvl_1.t2().gso_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.jjm_1.n7x_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.dvl_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onClickSave.' call var nextValue = prevValue.rso(VOID, VOID, VOID, VOID, VOID, this.apn().tno(strings_getInstance().wmw_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } } if (this.dvl_1.t2().vss()) return Unit_instance; this.lps(this.dvl_1.t2().gso_1); }; function Companion_147() { Companion_instance_195 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.bvp_1 = [null, null, new ArrayListSerializer(Companion_getInstance_162().n4r()), null, null, null, null, null, null, null, null]; } var Companion_instance_195; function Companion_getInstance_164() { if (Companion_instance_195 == null) new Companion_147(); return Companion_instance_195; } function $serializer_56() { $serializer_instance_56 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditUiState', this, 11); tmp0_serialDesc.t4f('block', true); tmp0_serialDesc.t4f('canEditSelectedContentEntry', true); tmp0_serialDesc.t4f('completionCriteriaOptions', true); tmp0_serialDesc.t4f('fieldsEnabled', true); tmp0_serialDesc.t4f('caHideUntilDateError', true); tmp0_serialDesc.t4f('caTitleError', true); tmp0_serialDesc.t4f('caDeadlineError', true); tmp0_serialDesc.t4f('caMaxPointsError', true); tmp0_serialDesc.t4f('maxPointsRequired', true); tmp0_serialDesc.t4f('caGracePeriodError', true); tmp0_serialDesc.t4f('timeZone', true); this.cvp_1 = tmp0_serialDesc; } protoOf($serializer_56).q44 = function () { return this.cvp_1; }; protoOf($serializer_56).k4g = function () { var tmp0_cached = Companion_getInstance_164().bvp_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_7()), BooleanSerializer_getInstance(), tmp0_cached[2], BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_56).s44 = function (decoder) { var tmp0_desc = this.cvp_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = false; var tmp6_local2 = null; var tmp7_local3 = false; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = false; var tmp13_local9 = null; var tmp14_local10 = null; var tmp15_input = decoder.i48(tmp0_desc); var tmp16_cached = Companion_getInstance_164().bvp_1; if (tmp15_input.x48()) { tmp4_local0 = tmp15_input.w48(tmp0_desc, 0, $serializer_getInstance_7(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.k48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.u48(tmp0_desc, 2, tmp16_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.k48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.k48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.s48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.w48(tmp0_desc, 0, $serializer_getInstance_7(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.k48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.u48(tmp0_desc, 2, tmp16_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.k48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.k48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.s48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.j48(tmp0_desc); return CourseBlockEditUiState_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); }; protoOf($serializer_56).dvp = function (encoder, value) { var tmp0_desc = this.cvp_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_164().bvp_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.gso_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_7(), value.gso_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.hso_1 === false)) { tmp1_output.o49(tmp0_desc, 1, value.hso_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !equals(value.iso_1, emptyList())) { tmp1_output.y49(tmp0_desc, 2, tmp2_cached[2], value.iso_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.jso_1 === false)) { tmp1_output.o49(tmp0_desc, 3, value.jso_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.kso_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.kso_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.lso_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.lso_1); } if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.mso_1 == null)) { tmp1_output.a4a(tmp0_desc, 6, StringSerializer_getInstance(), value.mso_1); } if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.nso_1 == null)) { tmp1_output.a4a(tmp0_desc, 7, StringSerializer_getInstance(), value.nso_1); } if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.oso_1 === false)) { tmp1_output.o49(tmp0_desc, 8, value.oso_1); } if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.pso_1 == null)) { tmp1_output.a4a(tmp0_desc, 9, StringSerializer_getInstance(), value.pso_1); } if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.qso_1 === 'UTC')) { tmp1_output.w49(tmp0_desc, 10, value.qso_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_56).r44 = function (encoder, value) { return this.dvp(encoder, value instanceof CourseBlockEditUiState ? value : THROW_CCE()); }; var $serializer_instance_56; function $serializer_getInstance_68() { if ($serializer_instance_56 == null) new $serializer_56(); return $serializer_instance_56; } 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_68().cvp_1); } if (0 === (seen1 & 1)) $this.gso_1 = null; else $this.gso_1 = block; if (0 === (seen1 & 2)) $this.hso_1 = false; else $this.hso_1 = canEditSelectedContentEntry; if (0 === (seen1 & 4)) $this.iso_1 = emptyList(); else $this.iso_1 = completionCriteriaOptions; if (0 === (seen1 & 8)) $this.jso_1 = false; else $this.jso_1 = fieldsEnabled; if (0 === (seen1 & 16)) $this.kso_1 = null; else $this.kso_1 = caHideUntilDateError; if (0 === (seen1 & 32)) $this.lso_1 = null; else $this.lso_1 = caTitleError; if (0 === (seen1 & 64)) $this.mso_1 = null; else $this.mso_1 = caDeadlineError; if (0 === (seen1 & 128)) $this.nso_1 = null; else $this.nso_1 = caMaxPointsError; if (0 === (seen1 & 256)) $this.oso_1 = false; else $this.oso_1 = maxPointsRequired; if (0 === (seen1 & 512)) $this.pso_1 = null; else $this.pso_1 = caGracePeriodError; if (0 === (seen1 & 1024)) $this.qso_1 = 'UTC'; else $this.qso_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.gso_1 = block; this.hso_1 = canEditSelectedContentEntry; this.iso_1 = completionCriteriaOptions; this.jso_1 = fieldsEnabled; this.kso_1 = caHideUntilDateError; this.lso_1 = caTitleError; this.mso_1 = caDeadlineError; this.nso_1 = caMaxPointsError; this.oso_1 = maxPointsRequired; this.pso_1 = caGracePeriodError; this.qso_1 = timeZone; } protoOf(CourseBlockEditUiState).evp = function () { var tmp0_safe_receiver = this.gso_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jjm_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p7x_1; return tmp === 1; }; protoOf(CourseBlockEditUiState).fvp = function () { var tmp; if (this.gvp()) { var tmp0_safe_receiver = this.gso_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jjm_1; tmp = isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r7x_1); } else { tmp = false; } return tmp; }; protoOf(CourseBlockEditUiState).lsk = function () { var tmp; if (this.fvp()) { var tmp0_safe_receiver = this.gso_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jjm_1; tmp = isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t7x_1); } else { tmp = false; } return tmp; }; protoOf(CourseBlockEditUiState).hvp = function () { // Inline function 'kotlin.collections.isNotEmpty' call return !this.iso_1.c1(); }; protoOf(CourseBlockEditUiState).gvp = function () { var tmp; var tmp0_safe_receiver = this.gso_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jjm_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k7x_1; if (tmp_0 === 103) { tmp = true; } else { var tmp2_safe_receiver = this.gso_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.jjm_1; var tmp_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.k7x_1; tmp = tmp_1 === 104; } return tmp; }; protoOf(CourseBlockEditUiState).ivp = function () { var tmp; var tmp0_safe_receiver = this.gso_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jjm_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k7x_1; if (tmp_0 === 103) { tmp = true; } else { var tmp2_safe_receiver = this.gso_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.jjm_1; var tmp_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.k7x_1; tmp = tmp_1 === 104; } return tmp; }; protoOf(CourseBlockEditUiState).vss = function () { return ((!(this.lso_1 == null) ? true : !(this.mso_1 == null)) ? true : !(this.pso_1 == null)) ? true : !(this.nso_1 == null); }; protoOf(CourseBlockEditUiState).jvp = 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).rso = function (block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone, $super) { block = block === VOID ? this.gso_1 : block; canEditSelectedContentEntry = canEditSelectedContentEntry === VOID ? this.hso_1 : canEditSelectedContentEntry; completionCriteriaOptions = completionCriteriaOptions === VOID ? this.iso_1 : completionCriteriaOptions; fieldsEnabled = fieldsEnabled === VOID ? this.jso_1 : fieldsEnabled; caHideUntilDateError = caHideUntilDateError === VOID ? this.kso_1 : caHideUntilDateError; caTitleError = caTitleError === VOID ? this.lso_1 : caTitleError; caDeadlineError = caDeadlineError === VOID ? this.mso_1 : caDeadlineError; caMaxPointsError = caMaxPointsError === VOID ? this.nso_1 : caMaxPointsError; maxPointsRequired = maxPointsRequired === VOID ? this.oso_1 : maxPointsRequired; caGracePeriodError = caGracePeriodError === VOID ? this.pso_1 : caGracePeriodError; timeZone = timeZone === VOID ? this.qso_1 : timeZone; return $super === VOID ? this.jvp(block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone) : $super.jvp.call(this, block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone); }; protoOf(CourseBlockEditUiState).toString = function () { return 'CourseBlockEditUiState(block=' + this.gso_1 + ', canEditSelectedContentEntry=' + this.hso_1 + ', completionCriteriaOptions=' + this.iso_1 + ', fieldsEnabled=' + this.jso_1 + ', caHideUntilDateError=' + this.kso_1 + ', caTitleError=' + this.lso_1 + ', caDeadlineError=' + this.mso_1 + ', caMaxPointsError=' + this.nso_1 + ', maxPointsRequired=' + this.oso_1 + ', caGracePeriodError=' + this.pso_1 + ', timeZone=' + this.qso_1 + ')'; }; protoOf(CourseBlockEditUiState).hashCode = function () { var result = this.gso_1 == null ? 0 : this.gso_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.hso_1) | 0; result = imul(result, 31) + hashCode(this.iso_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.jso_1) | 0; result = imul(result, 31) + (this.kso_1 == null ? 0 : getStringHashCode(this.kso_1)) | 0; result = imul(result, 31) + (this.lso_1 == null ? 0 : getStringHashCode(this.lso_1)) | 0; result = imul(result, 31) + (this.mso_1 == null ? 0 : getStringHashCode(this.mso_1)) | 0; result = imul(result, 31) + (this.nso_1 == null ? 0 : getStringHashCode(this.nso_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.oso_1) | 0; result = imul(result, 31) + (this.pso_1 == null ? 0 : getStringHashCode(this.pso_1)) | 0; result = imul(result, 31) + getStringHashCode(this.qso_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.gso_1, tmp0_other_with_cast.gso_1)) return false; if (!(this.hso_1 === tmp0_other_with_cast.hso_1)) return false; if (!equals(this.iso_1, tmp0_other_with_cast.iso_1)) return false; if (!(this.jso_1 === tmp0_other_with_cast.jso_1)) return false; if (!(this.kso_1 == tmp0_other_with_cast.kso_1)) return false; if (!(this.lso_1 == tmp0_other_with_cast.lso_1)) return false; if (!(this.mso_1 == tmp0_other_with_cast.mso_1)) return false; if (!(this.nso_1 == tmp0_other_with_cast.nso_1)) return false; if (!(this.oso_1 === tmp0_other_with_cast.oso_1)) return false; if (!(this.pso_1 == tmp0_other_with_cast.pso_1)) return false; if (!(this.qso_1 === tmp0_other_with_cast.qso_1)) return false; return true; }; function TextBlockDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.svp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda$slambda$slambda$slambda).uvp = function (it, $completion) { var tmp = this.vvp(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.uvp((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.svp_1.svq_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wvq(this.tvp_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).vvp = function (it, completion) { var i = new TextBlockDetailViewModel$slambda$slambda$slambda$slambda(this.svp_1, completion); i.tvp_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.uvp(it, $completion); }; l.$arity = 1; return l; } function TextBlockDetailViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.fvr_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.fvr_1.wpm().p7d().mc7(this.fvr_1.wpl_1); var tmp_1 = TextBlockDetailViewModel$slambda$slambda$slambda$slambda_0(this.fvr_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_27(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(TextBlockDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new TextBlockDetailViewModel$slambda$slambda$slambda(this.fvr_1, completion); i.gvr_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.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.textblockdetail.TextBlockDetailViewModel....' call var nextValue = prevValue.ap6(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.pvr_1 = $this_launch; this.qvr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TextBlockDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.pvr_1, VOID, VOID, TextBlockDetailViewModel$slambda$slambda$slambda_0(this.qvr_1, null)); launchSetTitleFromClazzUid(this.qvr_1, this.qvr_1.uvq_1, TextBlockDetailViewModel$slambda$slambda$lambda(this.qvr_1)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(TextBlockDetailViewModel$slambda$slambda).l78 = function (completion) { return new TextBlockDetailViewModel$slambda$slambda(this.pvr_1, this.qvr_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.z86($completion); }; l.$arity = 0; return l; } function Companion_148() { this.rvr_1 = 'CourseText'; } var Companion_instance_196; function Companion_getInstance_165() { return Companion_instance_196; } function sam$kotlinx_coroutines_flow_FlowCollector$0_27(function_0) { this.svr_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_27).t1d = function (value, $completion) { return this.svr_1(value, $completion); }; function TextBlockDetailViewModel$slambda(this$0, resultContinuation) { this.bvs_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.bvs_1.svq_1, TextBlockDetailViewModel$slambda$slambda_0(this.cvs_1, this.bvs_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.bvs_1, completion); i.cvs_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.svq_1 = MutableStateFlow(new TextBlockDetailUiState()); this.tvq_1 = asStateFlow(this.svq_1); var tmp = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.uvq_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this.tpm(); launch(tmp_0, VOID, VOID, TextBlockDetailViewModel$slambda_0(this, null)); } function TextBlockDetailUiState(courseBlock) { courseBlock = courseBlock === VOID ? null : courseBlock; this.vvq_1 = courseBlock; } protoOf(TextBlockDetailUiState).wvq = function (courseBlock) { return new TextBlockDetailUiState(courseBlock); }; protoOf(TextBlockDetailUiState).toString = function () { return 'TextBlockDetailUiState(courseBlock=' + this.vvq_1 + ')'; }; protoOf(TextBlockDetailUiState).hashCode = function () { return this.vvq_1 == null ? 0 : this.vvq_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.vvq_1, tmp0_other_with_cast.vvq_1)) return false; return true; }; function CourseGroupSetDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { $boundThis.cvt(); 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).nvt = function (entity, permissionPair, $completion) { var tmp = this.ovt(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.nvt(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.lvt_1, this.mvt_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda).ovt = function (entity, permissionPair, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda(completion); i.lvt_1 = entity; i.mvt_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.nvt(entity, permissionPair, $completion); }; l.$arity = 2; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.xvt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1).zvt = function (it, $completion) { var tmp = this.avu(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.zvt(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.yvt_1.x6_1; var hasCourseViewPermission = tmp0_container.y6(); var hasManageStudentPermission = tmp0_container.z6(); l$ret$1: do { var this_0 = this.xvt_1.zvs_1; while (true) { var prevValue = this_0.t2(); var this_1 = this.yvt_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.dvu(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.xvt_1.gpm_1; while (true) { var prevValue_0 = this_2.t2(); var tmp_1 = this.xvt_1.apn().tno(strings_getInstance().qm6_1); var tmp_2 = FabIcon_EDIT_getInstance(); var nextValue_0 = prevValue_0.ap6(new FabUiState(hasManageStudentPermission, tmp_1, tmp_2, CourseGroupSetDetailViewModel$onClickEdit$ref(this.xvt_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).avu = function (it, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1(this.xvt_1, completion); i.yvt_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.zvt(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).ovu = function (entity, permissionPair, $completion) { var tmp = this.pvu(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.ovu(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.mvu_1; var tmp_0; if (this.nvu_1.nd9_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).pvu = function (entity, permissionPair, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3(completion); i.mvu_1 = entity; i.nvu_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.ovu(entity, permissionPair, $completion); }; l.$arity = 2; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.yvu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5).avv = function (courseGroupSet, $completion) { var tmp = this.bvv(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.avv((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.yvu_1.zvs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.dvu(this.zvu_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.yvu_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver = this.zvu_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r7y_1; var nextValue_0 = prevValue_0.ap6(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).bvv = function (courseGroupSet, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5(this.yvu_1, completion); i.zvu_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.avv(courseGroupSet, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda($memberListFlow, $permissionsFlow, this$0, resultContinuation) { this.kvv_1 = $memberListFlow; this.lvv_1 = $permissionsFlow; this.mvv_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.kvv_1, this.lvv_1, CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_0(null))); var tmp_1 = CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_2(this.mvv_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_28(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda(this.kvv_1, this.lvv_1, this.mvv_1, completion); i.nvv_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.wvv_1 = $entityFlow; this.xvv_1 = $permissionsFlow; this.yvv_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.wvv_1, this.xvv_1, CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_4(null)); var tmp_1 = CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_6(this.yvv_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_28(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda_1(this.wvv_1, this.xvv_1, this.yvv_1, completion); i.zvv_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.ivw_1 = $this_launch; this.jvw_1 = $memberListFlow; this.kvw_1 = $permissionsFlow; this.lvw_1 = this$0; this.mvw_1 = $entityFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.ivw_1, VOID, VOID, CourseGroupSetDetailViewModel$slambda$slambda$slambda_0(this.jvw_1, this.kvw_1, this.lvw_1, null)); launch(this.ivw_1, VOID, VOID, CourseGroupSetDetailViewModel$slambda$slambda$slambda_2(this.mvw_1, this.kvw_1, this.lvw_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda).l78 = function (completion) { return new CourseGroupSetDetailViewModel$slambda$slambda(this.ivw_1, this.jvw_1, this.kvw_1, this.lvw_1, this.mvw_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.z86($completion); }; l.$arity = 0; return l; } function Companion_149() { this.nvw_1 = 'CourseGroupSet'; } var Companion_instance_197; function Companion_getInstance_166() { return Companion_instance_197; } function sam$kotlinx_coroutines_flow_FlowCollector$0_28(function_0) { this.ovw_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_28).t1d = function (value, $completion) { return this.ovw_1(value, $completion); }; function CourseGroupSetDetailViewModel$slambda(this$0, resultContinuation) { this.xvw_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.xvw_1.wpm().o7f(); var tmp_2 = this.xvw_1.upm(); PermissionFlags_getInstance(); var tmp_3 = new Long(1, 0); PermissionFlags_getInstance(); tmp_0.zvw_1 = shareIn(tmp_1.md6(tmp_2, this.xvw_1.bvt_1, tmp_3, new Long(8, 0)), this.xvw_1.tpm(), Companion_getInstance_12().v1h()); this.avx_1 = this.xvw_1.wpm().s7d().zcp(this.xvw_1.wpl_1, this.xvw_1.bvt_1, systemTimeInMillis(), 0, this.xvw_1.upm()); this.bvx_1 = this.xvw_1.wpm().r7d().j8c(this.xvw_1.wpl_1); this.hd_1 = 1; suspendResult = whenSubscribed(this.xvw_1.zvs_1, CourseGroupSetDetailViewModel$slambda$slambda_0(this.yvw_1, this.avx_1, this.zvw_1, this.xvw_1, this.bvx_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.xvw_1, completion); i.yvw_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.zvs_1 = MutableStateFlow(new CourseGroupSetDetailUiState()); this.avt_1 = asStateFlow(this.zvs_1); var tmp = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.bvt_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this.tpm(); launch(tmp_0, VOID, VOID, CourseGroupSetDetailViewModel$slambda_0(this, null)); } protoOf(CourseGroupSetDetailViewModel).cvt = function () { Companion_getInstance_108(); var tmp = to('entityUid', this.wpl_1.toString()); Companion_getInstance_118(); this.epm_1.hob('CourseGroupsEdit', mapOf([tmp, to('clazzUid', this.bvt_1.toString())])); }; function CourseGroupSetDetailUiState(courseGroupSet, membersList) { courseGroupSet = courseGroupSet === VOID ? null : courseGroupSet; membersList = membersList === VOID ? emptyList() : membersList; this.bvu_1 = courseGroupSet; this.cvu_1 = membersList; } protoOf(CourseGroupSetDetailUiState).cvx = function (courseGroupSet, membersList) { return new CourseGroupSetDetailUiState(courseGroupSet, membersList); }; protoOf(CourseGroupSetDetailUiState).dvu = function (courseGroupSet, membersList, $super) { courseGroupSet = courseGroupSet === VOID ? this.bvu_1 : courseGroupSet; membersList = membersList === VOID ? this.cvu_1 : membersList; return $super === VOID ? this.cvx(courseGroupSet, membersList) : $super.cvx.call(this, courseGroupSet, membersList); }; protoOf(CourseGroupSetDetailUiState).toString = function () { return 'CourseGroupSetDetailUiState(courseGroupSet=' + this.bvu_1 + ', membersList=' + this.cvu_1 + ')'; }; protoOf(CourseGroupSetDetailUiState).hashCode = function () { var result = this.bvu_1 == null ? 0 : hashCode(this.bvu_1); result = imul(result, 31) + hashCode(this.cvu_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.bvu_1, tmp0_other_with_cast.bvu_1)) return false; if (!equals(this.cvu_1, tmp0_other_with_cast.cvu_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.lvx_1 = this$0; this.mvx_1 = $courseGroupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda).zvx = function (db, $completion) { var tmp = this.vn7(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.zvx(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.nvx_1.s7d().ycp(this.lvx_1.ips_1, this.lvx_1.zvy_1, systemTimeInMillis(), 0, this.lvx_1.upm(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ovx_1 = suspendResult; var tmp_0 = this; tmp_0.pvx_1 = this.ovx_1; var tmp_1 = this; tmp_1.qvx_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.ovx_1, 10)); this.rvx_1 = this.pvx_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.rvx_1.f()) { this.hd_1 = 5; continue $sm; } this.svx_1 = this.rvx_1.e(); var tmp_2 = this; tmp_2.tvx_1 = this.svx_1; if (this.tvx_1.ncr_1 == null) { var tmp_3 = this; tmp_3.vvx_1 = new CourseGroupMemberAndName(); var tmp_4 = this; tmp_4.wvx_1 = this.vvx_1; this.wvx_1.ocr_1 = this.tvx_1.ocr_1; this.wvx_1.qcr_1 = this.tvx_1.qcr_1; this.wvx_1.pcr_1 = this.tvx_1.pcr_1; this.wvx_1.rcr_1 = this.tvx_1.rcr_1; var tmp_5 = this; tmp_5.xvx_1 = new CourseGroupMember(); var tmp_6 = this; tmp_6.yvx_1 = this.xvx_1; this.hd_1 = 3; var tmp_7 = get_doorPrimaryKeyManager(this.lvx_1.vpm()); suspendResult = tmp_7.o62(243, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_8 = this; tmp_8.uvx_1 = this.tvx_1; this.hd_1 = 4; continue $sm; } case 3: var ARGUMENT = suspendResult; this.yvx_1.vcq_1 = ARGUMENT; this.yvx_1.wcq_1 = this.mvx_1; this.yvx_1.ycq_1 = this.tvx_1.pcr_1; var ARGUMENT_0 = this.xvx_1; this.wvx_1.ncr_1 = ARGUMENT_0; this.uvx_1 = this.vvx_1; this.hd_1 = 4; continue $sm; case 4: var ARGUMENT_1 = this.uvx_1; this.qvx_1.i1(ARGUMENT_1); this.hd_1 = 2; continue $sm; case 5: return this.qvx_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).vn7 = function (db, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda$slambda(this.lvx_1, this.mvx_1, completion); i.nvx_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.zvx(db, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).ivz = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).m78 = function ($completion) { return this.ivz($completion); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).l78 = function (completion) { return new CourseGroupSetEditViewModel$slambda$slambda$slambda_1(completion); }; function CourseGroupSetEditViewModel$slambda$slambda$slambda_2(resultContinuation) { var i = new CourseGroupSetEditViewModel$slambda$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.ivz($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.xvy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel....' call var nextValue = prevValue.ovz(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.xvz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_3).bw0 = function (db, $completion) { var tmp = this.vn7(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.bw0(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.yvz_1; var tmp_1; if (!this.xvz_1.ips_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } var tmp0_safe_receiver = tmp_1; tmp_0.zvz_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r7d(); if (this.zvz_1 == null) { this.aw0_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.zvz_1.vcy(this.xvz_1.ips_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.aw0_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.aw0_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).vn7 = function (db, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda$slambda_3(this.xvz_1, completion); i.yvz_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.bw0(db, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda$slambda$slambda_5($courseGroupSetUid, this$0, resultContinuation) { this.kw0_1 = $courseGroupSetUid; this.lw0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_5).xd2 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_5).m78 = function ($completion) { return this.xd2($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.q7y_1 = this.kw0_1; this_0.u7y_1 = this.lw0_1.zvy_1; return this_0; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_5).l78 = function (completion) { return new CourseGroupSetEditViewModel$slambda$slambda$slambda_5(this.kw0_1, this.lw0_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.xd2($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.xvy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel....' call var nextValue = prevValue.ovz(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseGroupSetEditViewModel$slambda$slambda(this$0, $courseGroupSetUid, resultContinuation) { this.uw0_1 = this$0; this.vw0_1 = $courseGroupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda).xw0 = 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.xw0((!(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_42.n4r()); var tmp_1 = listOf_0('courseGroupMembers'); var tmp_2 = CourseGroupSetEditViewModel$slambda$slambda$slambda_0(this.uw0_1, this.vw0_1, null); var tmp_3 = CourseGroupSetEditViewModel$slambda$slambda$slambda_2(null); suspendResult = this.uw0_1.kpn(tmp_0, tmp_1, VOID, tmp_2, tmp_3, CourseGroupSetEditViewModel$slambda$slambda$lambda(this.uw0_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.uw0_1, this.vw0_1, completion); i.ww0_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.xw0($this$async, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda$slambda_1(this$0, $courseGroupSetUid, resultContinuation) { this.gw1_1 = this$0; this.hw1_1 = $courseGroupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda_1).jw1 = 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.jw1((!(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_43.n4r(); var tmp_1 = CourseGroupSetEditViewModel$slambda$slambda$slambda_4(this.gw1_1, null); var tmp_2 = CourseGroupSetEditViewModel$slambda$slambda$slambda_6(this.hw1_1, this.gw1_1, null); suspendResult = this.gw1_1.kpn(tmp_0, VOID, VOID, tmp_1, tmp_2, CourseGroupSetEditViewModel$slambda$slambda$lambda_0(this.gw1_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.gw1_1, this.hw1_1, completion); i.iw1_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.jw1($this$async, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function CourseGroupSetEditViewModel$onClickSave$slambda$slambda(this$0, $courseGroupSet, $membersToSave, resultContinuation) { this.sw1_1 = this$0; this.tw1_1 = $courseGroupSet; this.uw1_1 = $membersToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onClickSave$slambda$slambda).un7 = function (it, $completion) { var tmp = this.vn7(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.un7(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.sw1_1.wpm().r7d().wcy(this.tw1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.sw1_1.wpm().s7d().acq(this.uw1_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).vn7 = function (it, completion) { var i = new CourseGroupSetEditViewModel$onClickSave$slambda$slambda(this.sw1_1, this.tw1_1, this.uw1_1, completion); i.vw1_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.un7(it, $completion); }; l.$arity = 1; return l; } function Companion_150() { this.ww1_1 = 'CourseGroupsEdit'; this.xw1_1 = 'courseGroupMembers'; } var Companion_instance_198; function Companion_getInstance_167() { return Companion_instance_198; } function CourseGroupSetEditViewModel$slambda(this$0, resultContinuation) { this.gw2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda).gr6 = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda).he = function (p1, $completion) { return this.gr6(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.hw2_1.o7f(); var tmp_1 = this.gw2_1.upm(); PermissionFlags_getInstance(); suspendResult = tmp_0.pd6(tmp_1, this.gw2_1.zvy_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).vn7 = function (db, completion) { var i = new CourseGroupSetEditViewModel$slambda(this.gw2_1, completion); i.hw2_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.gr6(db, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda_1(this$0, resultContinuation) { this.qw2_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.qw2_1.ips_1.equals(new Long(0, 0))) { this.sw2_1 = this.qw2_1.ips_1; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = get_doorPrimaryKeyManager(this.qw2_1.vpm()); suspendResult = tmp_0.o62(242, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.sw2_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.tw2_1 = this.sw2_1; this.hd_1 = 3; var tmp_1 = async(this.rw2_1, VOID, VOID, CourseGroupSetEditViewModel$slambda$slambda_0(this.qw2_1, this.tw2_1, null)); suspendResult = awaitAll([tmp_1, async(this.rw2_1, VOID, VOID, CourseGroupSetEditViewModel$slambda$slambda_2(this.qw2_1, this.tw2_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: l$ret$1: do { var this_0 = this.qw2_1.gpm_1; while (true) { var prevValue = this_0.t2(); var tmp_2 = this.qw2_1.apn().tno(strings_getInstance().eme_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_2, true, CourseGroupSetEditViewModel$onClickSave$ref(this.qw2_1)); var tmp1_loadingState = Companion_getInstance_91().ip6_1; var nextValue = prevValue.ap6(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.qw2_1.xvy_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ovz(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.qw2_1, completion); i.rw2_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.cw3_1 = $commitDelay; this.dw3_1 = $entity; this.ew3_1 = $this; this.fw3_1 = $key; this.gw3_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.cw3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.dw3_1 == null)) { this.hd_1 = 2; suspendResult = this.ew3_1.gpn(this.ew3_1.cpm_1, this.fw3_1, this.gw3_1, this.dw3_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.cw3_1, this.dw3_1, this.ew3_1, this.fw3_1, this.gw3_1, completion); i.hw3_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.xcq_1 = $groupNumber; return Unit_instance; }; } function CourseGroupSetEditViewModel$onChangeGroupAssignment$lambda_0($personUid) { return function (it) { return it.pcr_1.equals($personUid); }; } function CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda(this$0, $newState, resultContinuation) { this.qw3_1 = this$0; this.rw3_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.qw3_1.gpn(this.qw3_1.cpm_1, 'courseGroupMembers', ListSerializer(Companion_instance_42.n4r()), this.rw3_1.kvz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.qw3_1, this.rw3_1, completion); i.sw3_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.xcq_1 = ($shuffledPersonUidList.x($it.pcr_1) % $totalGroups | 0) + 1 | 0; return Unit_instance; }; } function CourseGroupSetEditViewModel$onClickAssignRandomly$slambda(this$0, $newMemberList, resultContinuation) { this.bw4_1 = this$0; this.cw4_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.bw4_1.gpn(this.bw4_1.cpm_1, 'courseGroupMembers', ListSerializer(Companion_instance_42.n4r()), this.cw4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.bw4_1, this.cw4_1, completion); i.dw4_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.mw4_1 = this$0; this.nw4_1 = $courseGroupSet; this.ow4_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.mw4_1.wpm(); suspendResult = withDoorTransactionAsync(tmp_0, VOID, CourseGroupSetEditViewModel$onClickSave$slambda$slambda_0(this.mw4_1, this.nw4_1, this.ow4_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this.nw4_1.q7y_1; Companion_getInstance_118(); this.mw4_1.jps('CourseGroupSet', tmp_1, this.nw4_1, mapOf_0(to('clazzUid', this.mw4_1.zvy_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.mw4_1, this.nw4_1, this.ow4_1, completion); i.pw4_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.xvy_1 = MutableStateFlow(new CourseGroupSetEditUiState()); this.yvy_1 = asStateFlow(this.xvy_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.zvy_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.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.' call var tmp0_title = this.mpt(strings_getInstance().kmt_1, strings_getInstance().lmt_1); var tmp1_loadingState = Companion_getInstance_91().hp6_1; var nextValue = prevValue.ap6(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.mpn(tmp_0, VOID, VOID, CourseGroupSetEditViewModel$slambda_2(this, null)); } protoOf(CourseGroupSetEditViewModel).qw4 = function (courseGroupSet) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xvy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.jvz_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r7y_1; var tmp_0 = this.npt(tmp, courseGroupSet == null ? null : courseGroupSet.r7y_1, prevValue.lvz_1); var tmp2_safe_receiver = prevValue.jvz_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.s7y_1; var nextValue = prevValue.ovz(courseGroupSet, VOID, tmp_0, this.npt(tmp_1, courseGroupSet == null ? null : courseGroupSet.s7y_1, prevValue.mvz_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_43.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.hps_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this; var tmp_3 = this.tpm(); tmp_2.hps_1 = launch(tmp_3, VOID, VOID, CourseGroupSetEditViewModel$onEntityChanged$slambda_0(commitDelay, courseGroupSet, this, key, serializer, null)); }; protoOf(CourseGroupSetEditViewModel).rw4 = function (personUid, groupNumber) { var tmp$ret$3; $l$block_0: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.xvy_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.kvz_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onChangeGroupAssignment..' call if (element.pcr_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.ncr_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.ek0(tmp); var nextValue = prevValue.ovz(VOID, replace_0(prevValue.kvz_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.tpm(); launch(tmp_1, VOID, VOID, CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda_0(this, newState, null)); }; protoOf(CourseGroupSetEditViewModel).sw4 = function () { var tmp0_safe_receiver = this.xvy_1.t2().jvz_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s7y_1; var totalGroups = tmp1_elvis_lhs == null ? 1 : tmp1_elvis_lhs; // Inline function 'kotlin.collections.map' call var this_0 = this.xvy_1.t2().kvz_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.pcr_1; destination.i1(tmp$ret$0); } var shuffledPersonUidList = shuffled(destination); // Inline function 'kotlin.collections.map' call var this_1 = this.xvy_1.t2().kvz_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.ncr_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.ek0(tmp); destination_0.i1(tmp$ret$3); } var newMemberList = destination_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.xvy_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onClickAssignRandomly.' call var nextValue = prevValue.ovz(VOID, newMemberList); if (this_2.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.tpm(); launch(tmp_0, VOID, VOID, CourseGroupSetEditViewModel$onClickAssignRandomly$slambda_0(this, newMemberList, null)); }; protoOf(CourseGroupSetEditViewModel).ur3 = function () { var tmp0_elvis_lhs = this.xvy_1.t2().jvz_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.xvy_1.t2().kvz_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.ncr_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.xcq_1 > courseGroupSet.s7y_1) { tmp$ret$4 = true; break $l$block_0; } } tmp$ret$4 = false; } var hasInvalidAssignments = tmp$ret$4; if (hasInvalidAssignments) { this.ypm().pp6(new Snack(this.apn().tno(strings_getInstance().alu_1))); } // Inline function 'kotlin.text.isNullOrBlank' call var this_1 = courseGroupSet.r7y_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.xvy_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onClickSave.' call var nextValue = prevValue.ovz(VOID, VOID, this.apn().tno(strings_getInstance().dlz_1)); if (this_2.y1k(prevValue, nextValue)) { break $l$block_1; } } } } if (courseGroupSet.s7y_1 < 1) { $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.xvy_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.ovz(VOID, VOID, VOID, this.apn().tno(strings_getInstance().xmr_1)); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_2; } } } } if ((hasInvalidAssignments ? true : !(this.xvy_1.t2().mvz_1 == null)) ? true : !(this.xvy_1.t2().lvz_1 == null)) { return Unit_instance; } var tmp_1 = this.tpm(); 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.jvz_1 = courseGroupSet; this.kvz_1 = membersList; this.lvz_1 = courseTitleError; this.mvz_1 = numOfGroupsError; this.nvz_1 = fieldsEnabled; } protoOf(CourseGroupSetEditUiState).tw4 = function (courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled) { return new CourseGroupSetEditUiState(courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled); }; protoOf(CourseGroupSetEditUiState).ovz = function (courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled, $super) { courseGroupSet = courseGroupSet === VOID ? this.jvz_1 : courseGroupSet; membersList = membersList === VOID ? this.kvz_1 : membersList; courseTitleError = courseTitleError === VOID ? this.lvz_1 : courseTitleError; numOfGroupsError = numOfGroupsError === VOID ? this.mvz_1 : numOfGroupsError; fieldsEnabled = fieldsEnabled === VOID ? this.nvz_1 : fieldsEnabled; return $super === VOID ? this.tw4(courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled) : $super.tw4.call(this, courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled); }; protoOf(CourseGroupSetEditUiState).toString = function () { return 'CourseGroupSetEditUiState(courseGroupSet=' + this.jvz_1 + ', membersList=' + this.kvz_1 + ', courseTitleError=' + this.lvz_1 + ', numOfGroupsError=' + this.mvz_1 + ', fieldsEnabled=' + this.nvz_1 + ')'; }; protoOf(CourseGroupSetEditUiState).hashCode = function () { var result = this.jvz_1 == null ? 0 : hashCode(this.jvz_1); result = imul(result, 31) + hashCode(this.kvz_1) | 0; result = imul(result, 31) + (this.lvz_1 == null ? 0 : getStringHashCode(this.lvz_1)) | 0; result = imul(result, 31) + (this.mvz_1 == null ? 0 : getStringHashCode(this.mvz_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.nvz_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.jvz_1, tmp0_other_with_cast.jvz_1)) return false; if (!equals(this.kvz_1, tmp0_other_with_cast.kvz_1)) return false; if (!(this.lvz_1 == tmp0_other_with_cast.lvz_1)) return false; if (!(this.mvz_1 == tmp0_other_with_cast.mvz_1)) return false; if (!(this.nvz_1 === tmp0_other_with_cast.nvz_1)) return false; return true; }; function CourseGroupSetListViewModel$slambda$lambda(this$0) { return function () { var tmp = this$0.wpm().o7f(); var tmp_0 = this$0.upm(); PermissionFlags_getInstance(); return tmp.ld6(tmp_0, this$0.uw5_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.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel...' call var tmp = Napier_getInstance(); tmp.e5e(VOID, VOID, CourseGroupSetListViewModel$slambda$lambda$lambda(visible)); var nextValue = prevValue.aw6(visible); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseGroupSetListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.jw6_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.jw6_1.uw5_1, this.jw6_1.vpm(), this.jw6_1.gpm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.jw6_1, completion); i.kw6_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.tw6_1 = $this_launch; this.uw6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetListViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetListViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.tw6_1, VOID, VOID, CourseGroupSetListViewModel$slambda$slambda$slambda_0(this.uw6_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetListViewModel$slambda$slambda).l78 = function (completion) { return new CourseGroupSetListViewModel$slambda$slambda(this.tw6_1, this.uw6_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.z86($completion); }; l.$arity = 0; return l; } function Companion_151() { this.vw6_1 = 'CourseGroups'; } var Companion_instance_199; function Companion_getInstance_168() { return Companion_instance_199; } function CourseGroupSetListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.wpm().r7d().ucy(this$0.uw5_1, toQueryLikeParam(this$0.gpm_1.t2().sp5_1.hp5_1), this$0.xpu_1.t2().zw5_1.ypb_1); }; } function CourseGroupSetListViewModel$slambda(this$0, resultContinuation) { this.ew7_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.ew7_1); var tmp_1 = strings_getInstance().umb_1; suspendResult = this.ew7_1.hpw(tmp_0, tmp_1, CourseGroupSetListViewModel$slambda$lambda_0(this.ew7_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.ew7_1, completion); i.fw7_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.ow7_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.ow7_1.xpu_1, CourseGroupSetListViewModel$slambda$slambda_0(this.pw7_1, this.ow7_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.ow7_1, completion); i.pw7_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.uw5_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; tmp_0.vw5_1 = CourseGroupSetListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel.' call var nextValue = prevValue.aw6(VOID, this.vw5_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.gpm_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel.' call var nextValue_0 = prevValue_0.ap6(VOID, VOID, VOID, true, VOID, VOID, VOID, this.gpw()); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_1 = this.tpm(); launch(tmp_1, VOID, VOID, CourseGroupSetListViewModel$slambda_0(this, null)); var tmp_2 = this.tpm(); launch(tmp_2, VOID, VOID, CourseGroupSetListViewModel$slambda_2(this, null)); } protoOf(CourseGroupSetListViewModel).rpv = function (searchText) { this.zpu_1.i1h(new RefreshCommand()); }; protoOf(CourseGroupSetListViewModel).qw7 = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel.onSortOptionChanged.' call var nextValue = prevValue.aw6(VOID, VOID, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.zpu_1.i1h(new RefreshCommand()); }; protoOf(CourseGroupSetListViewModel).spv = function () { Companion_getInstance_108(); this.kpw('CourseGroupsEdit', mapOf_0(to('clazzUid', this.uw5_1.toString()))); }; protoOf(CourseGroupSetListViewModel).rw7 = function (entry) { var tmp = entry.q7y_1; Companion_getInstance_118(); this.mpw('CourseGroupSet', tmp, entry, mapOf_0(to('clazzUid', this.uw5_1.toString()))); }; function Companion_152() { Companion_instance_200 = this; var tmp = this; var tmp_0 = strings_getInstance().xlv_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().xlv_1; tmp.sw7_1 = listOf([tmp_1, new SortOrderOption(tmp_2, 2, false)]); } var Companion_instance_200; function Companion_getInstance_169() { if (Companion_instance_200 == null) new Companion_152(); return Companion_instance_200; } 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().sw7_1 : sortOptions; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; this.ww5_1 = showAddItem; this.xw5_1 = courseGroupSets; this.yw5_1 = sortOptions; this.zw5_1 = sortOption; } protoOf(CourseGroupSetListUiState).tw7 = function (showAddItem, courseGroupSets, sortOptions, sortOption) { return new CourseGroupSetListUiState(showAddItem, courseGroupSets, sortOptions, sortOption); }; protoOf(CourseGroupSetListUiState).aw6 = function (showAddItem, courseGroupSets, sortOptions, sortOption, $super) { showAddItem = showAddItem === VOID ? this.ww5_1 : showAddItem; courseGroupSets = courseGroupSets === VOID ? this.xw5_1 : courseGroupSets; sortOptions = sortOptions === VOID ? this.yw5_1 : sortOptions; sortOption = sortOption === VOID ? this.zw5_1 : sortOption; return $super === VOID ? this.tw7(showAddItem, courseGroupSets, sortOptions, sortOption) : $super.tw7.call(this, showAddItem, courseGroupSets, sortOptions, sortOption); }; protoOf(CourseGroupSetListUiState).toString = function () { return 'CourseGroupSetListUiState(showAddItem=' + this.ww5_1 + ', courseGroupSets=' + this.xw5_1 + ', sortOptions=' + this.yw5_1 + ', sortOption=' + this.zw5_1 + ')'; }; protoOf(CourseGroupSetListUiState).hashCode = function () { var result = getBooleanHashCode(this.ww5_1); result = imul(result, 31) + hashCode(this.xw5_1) | 0; result = imul(result, 31) + hashCode(this.yw5_1) | 0; result = imul(result, 31) + this.zw5_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.ww5_1 === tmp0_other_with_cast.ww5_1)) return false; if (!equals(this.xw5_1, tmp0_other_with_cast.xw5_1)) return false; if (!equals(this.yw5_1, tmp0_other_with_cast.yw5_1)) return false; if (!this.zw5_1.equals(tmp0_other_with_cast.zw5_1)) return false; return true; }; function CourseTerminologyEditViewModel$slambda$slambda(this$0, resultContinuation) { this.cw8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$slambda$slambda).sqa = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.sqa(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.dw8_1.q7d(); var tmp_1; if (!this.cw8_1.ips_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.ew8_1 = tmp_1; if (this.ew8_1 == null) { this.fw8_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.ew8_1.mdt(this.cw8_1.ips_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.fw8_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.fw8_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).vn7 = function (it, completion) { var i = new CourseTerminologyEditViewModel$slambda$slambda(this.cw8_1, completion); i.dw8_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.sqa(it, $completion); }; l.$arity = 1; return l; } function CourseTerminologyEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.ow8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$slambda$slambda_1).rw8 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.rw8($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.pw8_1 = new CourseTerminology(); var tmp_1 = this; tmp_1.qw8_1 = this.pw8_1; this.hd_1 = 1; var tmp_2 = get_doorPrimaryKeyManager(this.ow8_1.vpm()); suspendResult = tmp_2.o62(450, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.qw8_1.c8g_1 = ARGUMENT; return this.pw8_1; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda_1).l78 = function (completion) { return new CourseTerminologyEditViewModel$slambda$slambda_1(this.ow8_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.rw8($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.pw9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel...' call var nextValue = prevValue.vw9(VOID, terminology, VOID, toTerminologyEntries(terminology, this$0.m4r(), this$0.apn())); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseTerminologyEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function Companion_153() { this.ww9_1 = 'CourseTerminologyEdit'; } var Companion_instance_201; function Companion_getInstance_170() { return Companion_instance_201; } function CourseTerminologyEditViewModel$slambda(this$0, resultContinuation) { this.fwa_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.hwa_1 = Companion_instance_33.n4r(); this.hd_1 = 1; var tmp_0 = CourseTerminologyEditViewModel$slambda$slambda_0(this.fwa_1, null); var tmp_1 = CourseTerminologyEditViewModel$slambda$slambda_2(this.fwa_1, null); suspendResult = this.fwa_1.kpn(this.hwa_1, VOID, VOID, tmp_0, tmp_1, CourseTerminologyEditViewModel$slambda$lambda(this.fwa_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.fwa_1.pw9_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vw9(VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.fwa_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_2 = this.fwa_1.apn().tno(strings_getInstance().eme_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_2, VOID, CourseTerminologyEditViewModel$onClickSave$ref(this.fwa_1)); var tmp1_loadingState = Companion_getInstance_91().ip6_1; var nextValue_0 = prevValue_0.ap6(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.fwa_1, completion); i.gwa_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.qwa_1 = $commitDelay; this.rwa_1 = $entity; this.swa_1 = $this; this.twa_1 = $key; this.uwa_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.qwa_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.rwa_1 == null)) { this.hd_1 = 2; suspendResult = this.swa_1.gpn(this.swa_1.cpm_1, this.twa_1, this.uwa_1, this.rwa_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.qwa_1, this.rwa_1, this.swa_1, this.twa_1, this.uwa_1, completion); i.vwa_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.wp7_1.equals($terminologyEntry.wp7_1); }; } function CourseTerminologyEditViewModel$onTerminologyTermChanged$lambda_0($newTermList, this$0) { return function ($this$shallowCopy) { $this$shallowCopy.e8g_1 = encodeToStringMap($newTermList, this$0.m4r()); return Unit_instance; }; } function CourseTerminologyEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.ewb_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.ewb_1.pw9_1.t2().sw9_1; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.gwb_1 = tmp_1; this.hd_1 = 1; suspendResult = this.ewb_1.wpm().q7d().ndt(this.gwb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.ewb_1.pw9_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vw9(VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.ewb_1.lps(this.gwb_1); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.ewb_1, completion); i.fwb_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.pw9_1 = MutableStateFlow(new CourseTerminologyEditUiState()); this.qw9_1 = asStateFlow(this.pw9_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.' call var tmp0_title = this.mpt(strings_getInstance().emt_1, strings_getInstance().fmt_1); var tmp1_loadingState = Companion_getInstance_91().hp6_1; var nextValue = prevValue.ap6(VOID, tmp1_loadingState, tmp0_title); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.tpm(); launch(tmp, VOID, VOID, CourseTerminologyEditViewModel$slambda_0(this, null)); } protoOf(CourseTerminologyEditViewModel).hwb = function (courseTerminology) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.pw9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.onEntityChanged.' call var nextValue = prevValue.vw9(VOID, courseTerminology); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_33.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver = this.hps_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.tpm(); tmp.hps_1 = launch(tmp_0, VOID, VOID, CourseTerminologyEditViewModel$onEntityChanged$slambda_0(commitDelay, courseTerminology, this, key, serializer, null)); }; protoOf(CourseTerminologyEditViewModel).iwb = function (terminologyEntry) { var tmp = this.pw9_1.t2().uw9_1; var newTermList = replace_0(tmp, terminologyEntry, CourseTerminologyEditViewModel$onTerminologyTermChanged$lambda(terminologyEntry)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.pw9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.onTerminologyTermChanged.' call var nextValue = prevValue.vw9(VOID, VOID, VOID, newTermList); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_safe_receiver = this.pw9_1.t2().sw9_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.hwb(tmp_0); }; protoOf(CourseTerminologyEditViewModel).ur3 = function () { if (!this.pw9_1.t2().tw9_1) return Unit_instance; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.pw9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.onClickSave.' call var nextValue = prevValue.vw9(VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.tpm(); 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.rw9_1 = titleError; this.sw9_1 = entity; this.tw9_1 = fieldsEnabled; this.uw9_1 = terminologyTermList; } protoOf(CourseTerminologyEditUiState).jwb = function (titleError, entity, fieldsEnabled, terminologyTermList) { return new CourseTerminologyEditUiState(titleError, entity, fieldsEnabled, terminologyTermList); }; protoOf(CourseTerminologyEditUiState).vw9 = function (titleError, entity, fieldsEnabled, terminologyTermList, $super) { titleError = titleError === VOID ? this.rw9_1 : titleError; entity = entity === VOID ? this.sw9_1 : entity; fieldsEnabled = fieldsEnabled === VOID ? this.tw9_1 : fieldsEnabled; terminologyTermList = terminologyTermList === VOID ? this.uw9_1 : terminologyTermList; return $super === VOID ? this.jwb(titleError, entity, fieldsEnabled, terminologyTermList) : $super.jwb.call(this, titleError, entity, fieldsEnabled, terminologyTermList); }; protoOf(CourseTerminologyEditUiState).toString = function () { return 'CourseTerminologyEditUiState(titleError=' + this.rw9_1 + ', entity=' + this.sw9_1 + ', fieldsEnabled=' + this.tw9_1 + ', terminologyTermList=' + this.uw9_1 + ')'; }; protoOf(CourseTerminologyEditUiState).hashCode = function () { var result = this.rw9_1 == null ? 0 : getStringHashCode(this.rw9_1); result = imul(result, 31) + (this.sw9_1 == null ? 0 : hashCode(this.sw9_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.tw9_1) | 0; result = imul(result, 31) + hashCode(this.uw9_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.rw9_1 == tmp0_other_with_cast.rw9_1)) return false; if (!equals(this.sw9_1, tmp0_other_with_cast.sw9_1)) return false; if (!(this.tw9_1 === tmp0_other_with_cast.tw9_1)) return false; if (!equals(this.uw9_1, tmp0_other_with_cast.uw9_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.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.list.CourseTerminologyListViewModel...' call var nextValue = prevValue.mwb(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_154() { this.nwb_1 = 'CourseTerminologyList'; } var Companion_instance_202; function Companion_getInstance_171() { return Companion_instance_202; } function CourseTerminologyListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.wpm().q7d().jdt(); }; } function CourseTerminologyListViewModel$slambda(this$0, resultContinuation) { this.wwb_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().cmt_1; suspendResult = this.wwb_1.hpw(tmp_0, tmp_1, CourseTerminologyListViewModel$slambda$lambda_0(this.wwb_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.wwb_1, completion); i.xwb_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.ywc_1 = CourseTerminologyListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.list.CourseTerminologyListViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, this.opw(strings_getInstance().cmt_1, strings_getInstance().dmt_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.xpu_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.list.CourseTerminologyListViewModel.' call var nextValue_0 = prevValue_0.mwb(this.ywc_1); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_0 = this.tpm(); launch(tmp_0, VOID, VOID, CourseTerminologyListViewModel$slambda_0(this, null)); } protoOf(CourseTerminologyListViewModel).spv = function () { this.lpw('CourseTerminologyEdit'); }; protoOf(CourseTerminologyListViewModel).zwc = function (entry) { this.npw('CourseTerminologyEdit', entry.c8g_1, entry); }; protoOf(CourseTerminologyListViewModel).rpv = 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.kwb_1 = terminologyList; this.lwb_1 = showAddItemInList; } protoOf(CourseTerminologyListUiState).awd = function (terminologyList, showAddItemInList) { return new CourseTerminologyListUiState(terminologyList, showAddItemInList); }; protoOf(CourseTerminologyListUiState).mwb = function (terminologyList, showAddItemInList, $super) { terminologyList = terminologyList === VOID ? this.kwb_1 : terminologyList; showAddItemInList = showAddItemInList === VOID ? this.lwb_1 : showAddItemInList; return $super === VOID ? this.awd(terminologyList, showAddItemInList) : $super.awd.call(this, terminologyList, showAddItemInList); }; protoOf(CourseTerminologyListUiState).toString = function () { return 'CourseTerminologyListUiState(terminologyList=' + this.kwb_1 + ', showAddItemInList=' + this.lwb_1 + ')'; }; protoOf(CourseTerminologyListUiState).hashCode = function () { var result = hashCode(this.kwb_1); result = imul(result, 31) + getBooleanHashCode(this.lwb_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.kwb_1, tmp0_other_with_cast.kwb_1)) return false; if (!(this.lwb_1 === tmp0_other_with_cast.lwb_1)) return false; return true; }; function get_delItemContentTypeStringResource(_this__u8e3s4) { var tmp; var tmp_0; var tmp_1 = _this__u8e3s4.qe2_1; if (tmp_1 === 7) { tmp_0 = _this__u8e3s4.ue2_1; } else { tmp_0 = false; } if (tmp_0) { tmp = strings_getInstance().emo_1; } else { var tmp_2 = _this__u8e3s4.qe2_1; if (tmp_2 === 7) { tmp = strings_getInstance().fmf_1; } else { tmp = null; } } return tmp; } function _get_restoreDeletedItemUseCase__7lscig($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.cwe_1; restoreDeletedItemUseCase$factory_0(); return this_0.t2(); } function _get_deletePermanentlyUseCase__wdw610($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.dwe_1; deletePermanentlyUseCase$factory_0(); return this_0.t2(); } function restoreItems($this, items) { var tmp = $this.tpm(); launch(tmp, VOID, VOID, DeletedItemListViewModel$restoreItems$slambda_0($this, items, null)); } function Companion_155() { this.ewe_1 = 'DeletedItems'; } var Companion_instance_203; function Companion_getInstance_172() { return Companion_instance_203; } function DeletedItemListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.wpm().m7f().je2(this$0.upm(), false); }; } function DeletedItemListViewModel$onConfirmDeletePermanently$slambda(this$0, $itemsToDelete, resultContinuation) { this.nwe_1 = this$0; this.owe_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.nwe_1).gog(this.owe_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.nwe_1.ypm().pp6(new Snack(this.nwe_1.apn().hvd(plurals_getInstance().jn1_1, this.owe_1.u()))); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_0 = this.kd_1; if (tmp_0 instanceof Error) { var e = this.kd_1; Napier_getInstance().q5e('Exception deleting', e); this.nwe_1.ypm().pp6(new Snack(this.nwe_1.apn().tno(strings_getInstance().alu_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.nwe_1, this.owe_1, completion); i.pwe_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.ywe_1 = this$0; this.zwe_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.ywe_1).gog(this.zwe_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ywe_1.ypm().pp6(new Snack(this.ywe_1.apn().hvd(plurals_getInstance().kn1_1, this.zwe_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.ywe_1, this.zwe_1, completion); i.awf_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.bwe_1 = DeletedItemListViewModel$pagingSourceFactory$lambda(this); var tmp_0 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveEndpoint(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.cwe_1 = Instance(this_0, tmp$ret$0, null).a5d(this, restoreDeletedItemUseCase$factory()); var tmp_2 = this; // Inline function 'org.kodein.di.instance' call var this_1 = onActiveEndpoint(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.dwe_1 = Instance(this_1, tmp$ret$2, null).a5d(this, deletePermanentlyUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.xpu_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.' call var nextValue = prevValue.fwf(this.bwe_1); if (this_2.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.gpm_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.' call var nextValue_0 = prevValue_0.ap6(VOID, VOID, this.apn().tno(strings_getInstance().dmy_1)); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(DeletedItemListViewModel).rpv = function (searchText) { }; protoOf(DeletedItemListViewModel).gwf = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.onDismissConfirmDialog.' call var nextValue = prevValue.fwf(VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(DeletedItemListViewModel).hwf = function () { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.getAndUpdate' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.onConfirmDeletePermanently.' call var nextValue = prevValue.fwf(VOID, false); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = prevValue; break $l$block; } } } var itemsToDelete = tmp$ret$1.ewf_1; var tmp = this.tpm(); launch(tmp, VOID, VOID, DeletedItemListViewModel$onConfirmDeletePermanently$slambda_0(this, itemsToDelete, null)); }; protoOf(DeletedItemListViewModel).iwf = function (item) { restoreItems(this, listOf_0(item)); }; protoOf(DeletedItemListViewModel).jwf = function (item) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_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.apn().hvd(plurals_getInstance().ln1_1, 1); var nextValue = prevValue.fwf(VOID, true, tmp1_deleteConfirmText, tmp0_itemsToConfirmDeletion); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(DeletedItemListViewModel).spv = 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.bwf_1 = deletedItemsList; this.cwf_1 = confirmDialogVisible; this.dwf_1 = deleteConfirmText; this.ewf_1 = itemsToConfirmDeletion; } protoOf(DeletedItemListUiState).kwf = function (deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion) { return new DeletedItemListUiState(deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion); }; protoOf(DeletedItemListUiState).fwf = function (deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion, $super) { deletedItemsList = deletedItemsList === VOID ? this.bwf_1 : deletedItemsList; confirmDialogVisible = confirmDialogVisible === VOID ? this.cwf_1 : confirmDialogVisible; deleteConfirmText = deleteConfirmText === VOID ? this.dwf_1 : deleteConfirmText; itemsToConfirmDeletion = itemsToConfirmDeletion === VOID ? this.ewf_1 : itemsToConfirmDeletion; return $super === VOID ? this.kwf(deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion) : $super.kwf.call(this, deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion); }; protoOf(DeletedItemListUiState).toString = function () { return 'DeletedItemListUiState(deletedItemsList=' + this.bwf_1 + ', confirmDialogVisible=' + this.cwf_1 + ', deleteConfirmText=' + this.dwf_1 + ', itemsToConfirmDeletion=' + this.ewf_1 + ')'; }; protoOf(DeletedItemListUiState).hashCode = function () { var result = hashCode(this.bwf_1); result = imul(result, 31) + getBooleanHashCode(this.cwf_1) | 0; result = imul(result, 31) + (this.dwf_1 == null ? 0 : getStringHashCode(this.dwf_1)) | 0; result = imul(result, 31) + hashCode(this.ewf_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.bwf_1, tmp0_other_with_cast.bwf_1)) return false; if (!(this.cwf_1 === tmp0_other_with_cast.cwf_1)) return false; if (!(this.dwf_1 == tmp0_other_with_cast.dwf_1)) return false; if (!equals(this.ewf_1, tmp0_other_with_cast.ewf_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.spv(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.wwg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda).uvp = function (it, $completion) { var tmp = this.vvp(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.uvp((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.wwg_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.dwh(this.xwg_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).vvp = function (it, completion) { var i = new CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda(this.wwg_1, completion); i.xwg_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.uvp(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.mwh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda).qrv = function (permissionPair, $completion) { var tmp = this.rrv(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.qrv(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.owh_1 = this.nwh_1; this.pwh_1 = this.owh_1.y6(); this.qwh_1 = this.owh_1.z6(); if (this.pwh_1) { l$ret$1: do { var this_0 = this.mwh_1.gpm_1; while (true) { var prevValue = this_0.t2(); var tmp_0 = this.mwh_1.apn().tno(strings_getInstance().smu_1); var tmp_1 = FabIcon_ADD_getInstance(); var nextValue = prevValue.ap6(new FabUiState(true, tmp_0, tmp_1, CourseDiscussionDetailViewModel$onClickAdd$ref(this.mwh_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.mwh_1.xpu_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.dwh(VOID, this.mwh_1.nwg_1, this.qwh_1, VOID, this.mwh_1.apn().vp4()); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.hd_1 = 1; var tmp_2 = this.mwh_1.wpm().p7d().mc7(this.mwh_1.lwg_1); var tmp_3 = CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda_0(this.mwh_1, null); suspendResult = tmp_2.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_29(tmp_3), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { l$ret$5: do { var this_2 = this.mwh_1.gpm_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.ap6(new FabUiState()); if (this_2.y1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); l$ret$7: do { var this_3 = this.mwh_1.xpu_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.dwh(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).rrv = function (permissionPair, completion) { var i = new CourseDiscussionDetailViewModel$slambda$slambda$slambda(this.mwh_1, completion); i.nwh_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.qrv(permissionPair, $completion); }; l.$arity = 1; return l; } function CourseDiscussionDetailViewModel$slambda$slambda(this$0, resultContinuation) { this.zwh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.zwh_1.wpm().o7f(); var tmp_1 = this.zwh_1.upm(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.md6(tmp_1, this.zwh_1.mwg_1, tmp_2, new Long(4, 0))); suspendResult = collectLatest(tmp_3, CourseDiscussionDetailViewModel$slambda$slambda$slambda_0(this.zwh_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda).l78 = function (completion) { return new CourseDiscussionDetailViewModel$slambda$slambda(this.zwh_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.z86($completion); }; l.$arity = 0; return l; } function Companion_156() { this.awi_1 = 'CourseDiscussion'; } var Companion_instance_204; function Companion_getInstance_173() { return Companion_instance_204; } function sam$kotlinx_coroutines_flow_FlowCollector$0_29(function_0) { this.bwi_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_29).t1d = function (value, $completion) { return this.bwi_1(value, $completion); }; function CourseDiscussionDetailViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.wpm().h7f().ae8(this$0.lwg_1, false); }; } function CourseDiscussionDetailViewModel$slambda(this$0, resultContinuation) { this.kwi_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.kwi_1.xpu_1, CourseDiscussionDetailViewModel$slambda$slambda_0(this.kwi_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.kwi_1, completion); i.lwi_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.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.courediscussiondetail.CourseDiscussionDetailViewModel..' call var nextValue = prevValue.ap6(VOID, VOID, title); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseDiscussionDetailViewModel$onDeletePost$slambda(this$0, $post, resultContinuation) { this.uwi_1 = this$0; this.vwi_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.uwi_1.wpm().h7f().ee8(this.vwi_1.te8_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uwi_1.ypm().pp6(new Snack(this.uwi_1.apn().tno(strings_getInstance().tlu_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.uwi_1, this.vwi_1, completion); i.wwi_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.lwg_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; Companion_getInstance_118(); 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.mwg_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this; tmp_1.nwg_1 = CourseDiscussionDetailViewModel$pagingSourceFactory$lambda(this); var tmp_2 = this.tpm(); launch(tmp_2, VOID, VOID, CourseDiscussionDetailViewModel$slambda_0(this, null)); launchSetTitleFromClazzUid(this, this.mwg_1, CourseDiscussionDetailViewModel$lambda(this)); } protoOf(CourseDiscussionDetailViewModel).rpv = function (searchText) { }; protoOf(CourseDiscussionDetailViewModel).spv = function () { Companion_getInstance_118(); var tmp = to('courseBlockUid', this.lwg_1.toString()); Companion_getInstance_118(); this.kpw('DiscussionPostEdit', mapOf([tmp, to('clazzUid', this.mwg_1.toString())])); }; protoOf(CourseDiscussionDetailViewModel).xwi = function (post) { Companion_getInstance_108(); var tmp = to('entityUid', post.te8_1.toString()); Companion_getInstance_118(); this.epm_1.hob('CourseDiscussionPost', mapOf([tmp, to('clazzUid', this.mwg_1.toString())])); }; protoOf(CourseDiscussionDetailViewModel).ywi = function (post) { var tmp = this.tpm(); 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.ilp(), Companion_getInstance_9().hlt()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.ywg_1 = courseBlock; this.zwg_1 = posts; this.awh_1 = showModerateOptions; this.bwh_1 = localDateTimeNow; this.cwh_1 = dayOfWeekStrings; } protoOf(CourseDiscussionDetailUiState).zwi = function (courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings) { return new CourseDiscussionDetailUiState(courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(CourseDiscussionDetailUiState).dwh = function (courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings, $super) { courseBlock = courseBlock === VOID ? this.ywg_1 : courseBlock; posts = posts === VOID ? this.zwg_1 : posts; showModerateOptions = showModerateOptions === VOID ? this.awh_1 : showModerateOptions; localDateTimeNow = localDateTimeNow === VOID ? this.bwh_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.cwh_1 : dayOfWeekStrings; return $super === VOID ? this.zwi(courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings) : $super.zwi.call(this, courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(CourseDiscussionDetailUiState).toString = function () { return 'CourseDiscussionDetailUiState(courseBlock=' + this.ywg_1 + ', posts=' + this.zwg_1 + ', showModerateOptions=' + this.awh_1 + ', localDateTimeNow=' + this.bwh_1 + ', dayOfWeekStrings=' + this.cwh_1 + ')'; }; protoOf(CourseDiscussionDetailUiState).hashCode = function () { var result = this.ywg_1 == null ? 0 : this.ywg_1.hashCode(); result = imul(result, 31) + hashCode(this.zwg_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.awh_1) | 0; result = imul(result, 31) + this.bwh_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.cwh_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.ywg_1, tmp0_other_with_cast.ywg_1)) return false; if (!equals(this.zwg_1, tmp0_other_with_cast.zwg_1)) return false; if (!(this.awh_1 === tmp0_other_with_cast.awh_1)) return false; if (!this.bwh_1.equals(tmp0_other_with_cast.bwh_1)) return false; if (!equals(this.cwh_1, tmp0_other_with_cast.cwh_1)) return false; return true; }; function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.iwj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda).wp9 = function (result, $completion) { var tmp = this.xp9(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.wp9(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.jwj_1.dp9_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.kwj_1 = tmp_2; this.hd_1 = 1; suspendResult = submitReply(this.iwj_1, this.kwj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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).xp9 = function (result, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda(this.iwj_1, completion); i.jwj_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.wp9(result, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.twj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).vq8 = function (postTitle, $completion) { var tmp = this.wq8(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.vq8((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.twj_1.gpm_1; var tmp_0; if (!(this_0.t2().np5_1 == this.uwj_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.ap6(VOID, VOID, this.uwj_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).wq8 = function (postTitle, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this.twj_1, completion); i.uwj_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.vq8(postTitle, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.dwk_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.dwk_1.epn(this.dwk_1.zpm(), 'replyTextResult'); var tmp_1 = DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_0(this.dwk_1, null); suspendResult = tmp_0.a1c(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(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda(this.dwk_1, completion); i.ewk_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.nwk_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.nwk_1.wpm().h7f().p8c(this.nwk_1.wpl_1); var tmp_1 = DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_2(this.nwk_1, null); suspendResult = tmp_0.a1c(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(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1).v1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1(this.nwk_1, completion); i.owk_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.xwk_1 = this$0; this.ywk_1 = $savedStateHandle; this.zwk_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda).qrv = function (permissionPair, $completion) { var tmp = this.rrv(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.qrv(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.awl_1; var hasViewPermission = tmp0_container.y6(); var hasModeratePermission = tmp0_container.z6(); if (hasViewPermission) { l$ret$1: do { var this_0 = this.xwk_1.ywl_1; while (true) { var prevValue = this_0.t2(); var tmp_0 = this.xwk_1.upm(); var tmp_1 = this.xwk_1.spm().tnf().zn2_1.ok4(); var tmp0_safe_receiver = this.xwk_1.spm().tnf().bn3_1; var nextValue = prevValue.mwm(this.xwk_1.xwl_1, tmp_0, tmp_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t96_1, VOID, hasModeratePermission); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp1_elvis_lhs = this.ywk_1.ba('replyText'); this.xwk_1.awm_1.x1k(tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); launch(this.zwk_1, VOID, VOID, DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_0(this.xwk_1, null)); launch(this.zwk_1, VOID, VOID, DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_2(this.xwk_1, null)); } else { l$ret$3: do { var this_1 = this.xwk_1.ywl_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_2 = DiscussionPostDetailViewModel$slambda$slambda$slambda$lambda; var tmp_3 = this.xwk_1.upm(); var tmp_4 = this.xwk_1.spm().tnf().zn2_1.ok4(); var tmp0_safe_receiver_0 = this.xwk_1.spm().tnf().bn3_1; var nextValue_0 = prevValue_0.mwm(tmp_2, tmp_3, tmp_4, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.t96_1, VOID, false); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); var tmp2_elvis_lhs = this.ywk_1.ba('replyText'); this.xwk_1.awm_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).rrv = function (permissionPair, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda(this.xwk_1, this.ywk_1, this.zwk_1, completion); i.awl_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.qrv(permissionPair, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda(this$0, $savedStateHandle, $this_launch, resultContinuation) { this.vwm_1 = this$0; this.wwm_1 = $savedStateHandle; this.xwm_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.vwm_1.wpm().o7f(); var tmp_1 = this.vwm_1.upm(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.md6(tmp_1, this.vwm_1.dwm_1, tmp_2, new Long(4, 0))); suspendResult = collectLatest(tmp_3, DiscussionPostDetailViewModel$slambda$slambda$slambda_0(this.vwm_1, this.wwm_1, this.xwm_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda).l78 = function (completion) { return new DiscussionPostDetailViewModel$slambda$slambda(this.vwm_1, this.wwm_1, this.xwm_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.z86($completion); }; l.$arity = 0; return l; } function submitReply($this, replyText, $completion) { var tmp = new $submitReplyCOROUTINE$67($this, replyText, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_157() { this.own_1 = 'replyTextResult'; this.pwn_1 = 'replyText'; this.qwn_1 = 'CourseDiscussionPost'; } var Companion_instance_205; function Companion_getInstance_174() { return Companion_instance_205; } function sam$kotlinx_coroutines_flow_FlowCollector$0_30(function_0) { this.rwn_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_30).t1d = function (value, $completion) { return this.rwn_1(value, $completion); }; function DiscussionPostDetailViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.wpm().h7f().ce8(this$0.wpl_1, false); }; } function DiscussionPostDetailViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.awo_1 = this$0; this.bwo_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.awo_1.ywl_1, DiscussionPostDetailViewModel$slambda$slambda_0(this.awo_1, this.bwo_1, this.cwo_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.awo_1, this.bwo_1, completion); i.cwo_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.lwo_1 = this$0; this.mwo_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.lwo_1.cpm_1.epi('replyText', this.mwo_1); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.lwo_1, this.mwo_1, completion); i.nwo_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.wwo_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.wwo_1, this.wwo_1.awm_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.wwo_1, completion); i.xwo_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.gwp_1 = this$0; this.hwp_1 = $replyText; this.iwp_1 = $clazzAndBlockUids; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$submitReply$slambda).un7 = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$submitReply$slambda).he = function (p1, $completion) { return this.un7(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.gwp_1.wpm().h7f(); var this_0 = new DiscussionPost(); this_0.xe8_1 = systemTimeInMillis(); this_0.ue8_1 = this.gwp_1.wpl_1; this_0.we8_1 = this.hwp_1; this_0.ae9_1 = this.gwp_1.upm(); this_0.be9_1 = this.iwp_1.yca_1; this_0.ye8_1 = this.iwp_1.zca_1; suspendResult = tmp_0.insertAsync(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.gwp_1.kwp(''); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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).vn7 = function (it, completion) { var i = new DiscussionPostDetailViewModel$submitReply$slambda(this.gwp_1, this.hwp_1, this.iwp_1, completion); i.jwp_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.un7(it, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$onDeletePost$slambda(this$0, $post, resultContinuation) { this.twp_1 = this$0; this.uwp_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.twp_1.wpm().h7f().ee8(this.uwp_1.te8_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.twp_1.ypm().pp6(new Snack(this.twp_1.apn().tno(strings_getInstance().tlu_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.twp_1, this.uwp_1, completion); i.vwp_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$67(_this__u8e3s4, replyText, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.gwn_1 = _this__u8e3s4; this.hwn_1 = replyText; } protoOf($submitReplyCOROUTINE$67).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.gwn_1.ywl_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.mwm(VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.gwn_1.cpn(Companion_getInstance_91().hp6_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.gwn_1.vpm().p7d().rc7(this.gwn_1.wpl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.kwn_1 = suspendResult; var tmp_0 = this; tmp_0.lwn_1 = this.kwn_1; if ((!(this.lwn_1 == null) ? !this.lwn_1.yca_1.equals(new Long(0, 0)) : false) ? !this.lwn_1.zca_1.equals(new Long(0, 0)) : false) { this.mwn_1 = this.lwn_1; this.hd_1 = 5; continue $sm; } else { this.hd_1 = 4; suspendResult = this.gwn_1.wpm().p7d().rc7(this.gwn_1.wpl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.mwn_1 = suspendResult; this.hd_1 = 5; continue $sm; case 5: this.nwn_1 = this.mwn_1; if ((this.nwn_1 == null ? true : this.nwn_1.zca_1.equals(new Long(0, 0))) ? true : this.nwn_1.yca_1.equals(new Long(0, 0))) { this.gwn_1.ypm().pp6(new Snack(this.gwn_1.apn().tno(strings_getInstance().alu_1))); this.jwn_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.gwn_1.wpm(); suspendResult = withDoorTransactionAsync(tmp_1, VOID, DiscussionPostDetailViewModel$submitReply$slambda_0(this.gwn_1, this.hwn_1, this.nwn_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.iwn_1 = suspendResult; this.id_1 = 11; this.hd_1 = 9; continue $sm; case 8: this.id_1 = 11; this.gwn_1.cpn(Companion_getInstance_91().ip6_1); l$ret$9: do { var this_1 = this.gwn_1.ywl_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.mwm(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.gwn_1.cpn(Companion_getInstance_91().ip6_1); l$ret$11: do { var this_2 = this.gwn_1.ywl_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.mwm(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.gwn_1.cpn(Companion_getInstance_91().ip6_1); l$ret$7: do { var this_3 = this.gwn_1.ywl_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.mwm(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.xwl_1 = DiscussionPostDetailViewModel$pagingSourceFactory$lambda(this); this.ywl_1 = MutableStateFlow(new DiscussionPostDetailUiState2()); this.zwl_1 = asStateFlow(this.ywl_1); this.awm_1 = MutableStateFlow(''); this.bwm_1 = asStateFlow(this.awm_1); this.cwm_1 = null; var tmp_0 = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.dwm_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_1 = this.tpm(); launch(tmp_1, VOID, VOID, DiscussionPostDetailViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(DiscussionPostDetailViewModel).kwp = function (replyText) { this.awm_1.x1k(replyText); var tmp0_safe_receiver = this.cwm_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.tpm(); tmp.cwm_1 = launch(tmp_0, VOID, VOID, DiscussionPostDetailViewModel$onChangeReplyText$slambda_0(this, replyText, null)); }; protoOf(DiscussionPostDetailViewModel).wwp = function () { var tmp = this.tpm(); launch(tmp, VOID, VOID, DiscussionPostDetailViewModel$onClickPostReply$slambda_0(this, null)); }; protoOf(DiscussionPostDetailViewModel).ywi = function (post) { var tmp = this.tpm(); 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.ilp(), Companion_getInstance_9().hlt()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.ewm_1 = discussionPosts; this.fwm_1 = loggedInPersonUid; this.gwm_1 = loggedInPersonName; this.hwm_1 = loggedInPersonPictureUri; this.iwm_1 = fieldsEnabled; this.jwm_1 = showModerateOptions; this.kwm_1 = localDateTimeNow; this.lwm_1 = dayOfWeekStrings; } protoOf(DiscussionPostDetailUiState2).xwp = function (discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings) { return new DiscussionPostDetailUiState2(discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(DiscussionPostDetailUiState2).mwm = function (discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings, $super) { discussionPosts = discussionPosts === VOID ? this.ewm_1 : discussionPosts; loggedInPersonUid = loggedInPersonUid === VOID ? this.fwm_1 : loggedInPersonUid; loggedInPersonName = loggedInPersonName === VOID ? this.gwm_1 : loggedInPersonName; loggedInPersonPictureUri = loggedInPersonPictureUri === VOID ? this.hwm_1 : loggedInPersonPictureUri; fieldsEnabled = fieldsEnabled === VOID ? this.iwm_1 : fieldsEnabled; showModerateOptions = showModerateOptions === VOID ? this.jwm_1 : showModerateOptions; localDateTimeNow = localDateTimeNow === VOID ? this.kwm_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.lwm_1 : dayOfWeekStrings; return $super === VOID ? this.xwp(discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings) : $super.xwp.call(this, discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(DiscussionPostDetailUiState2).toString = function () { return 'DiscussionPostDetailUiState2(discussionPosts=' + this.ewm_1 + ', loggedInPersonUid=' + this.fwm_1.toString() + ', loggedInPersonName=' + this.gwm_1 + ', loggedInPersonPictureUri=' + this.hwm_1 + ', fieldsEnabled=' + this.iwm_1 + ', showModerateOptions=' + this.jwm_1 + ', localDateTimeNow=' + this.kwm_1 + ', dayOfWeekStrings=' + this.lwm_1 + ')'; }; protoOf(DiscussionPostDetailUiState2).hashCode = function () { var result = hashCode(this.ewm_1); result = imul(result, 31) + this.fwm_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.gwm_1) | 0; result = imul(result, 31) + (this.hwm_1 == null ? 0 : getStringHashCode(this.hwm_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.iwm_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.jwm_1) | 0; result = imul(result, 31) + this.kwm_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.lwm_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.ewm_1, tmp0_other_with_cast.ewm_1)) return false; if (!this.fwm_1.equals(tmp0_other_with_cast.fwm_1)) return false; if (!(this.gwm_1 === tmp0_other_with_cast.gwm_1)) return false; if (!(this.hwm_1 == tmp0_other_with_cast.hwm_1)) return false; if (!(this.iwm_1 === tmp0_other_with_cast.iwm_1)) return false; if (!(this.jwm_1 === tmp0_other_with_cast.jwm_1)) return false; if (!this.kwm_1.equals(tmp0_other_with_cast.kwm_1)) return false; if (!equals(this.lwm_1, tmp0_other_with_cast.lwm_1)) return false; return true; }; function DiscussionPostEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.gwq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda).kwq = function (it, $completion) { var tmp = this.vn7(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.kwq(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.hwq_1.h7f(); var tmp_1; if (!this.gwq_1.ips_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.iwq_1 = tmp_1; if (this.iwq_1 == null) { this.jwq_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.iwq_1.be8(this.gwq_1.ips_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.jwq_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.jwq_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).vn7 = function (it, completion) { var i = new DiscussionPostEditViewModel$slambda$slambda$slambda(this.gwq_1, completion); i.hwq_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.kwq(it, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.twq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda_1).wwq = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda_1).m78 = function ($completion) { return this.wwq($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.uwq_1 = new DiscussionPost(); var tmp_1 = this; tmp_1.vwq_1 = this.uwq_1; this.hd_1 = 1; var tmp_2 = get_doorPrimaryKeyManager(this.twq_1.vpm()); suspendResult = tmp_2.o62(132, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.vwq_1.te8_1 = ARGUMENT; this.vwq_1.ye8_1 = _get_courseBlockUidArg__1bqljt(this.twq_1); this.vwq_1.ae9_1 = this.twq_1.spm().kng().xkb_1; this.vwq_1.xe8_1 = systemTimeInMillis(); return this.uwq_1; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda_1).l78 = function (completion) { return new DiscussionPostEditViewModel$slambda$slambda$slambda_1(this.twq_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.wwq($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.uwr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.edit.DiscussionPostEditViewModel....' call var nextValue = prevValue.aws(entityToDisplay); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function DiscussionPostEditViewModel$slambda$slambda(this$0, resultContinuation) { this.jws_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda$slambda).lws = 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.lws((!(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_44.n4r(); var tmp_1 = DiscussionPostEditViewModel$slambda$slambda$slambda_0(this.jws_1, null); var tmp_2 = DiscussionPostEditViewModel$slambda$slambda$slambda_2(this.jws_1, null); suspendResult = this.jws_1.kpn(tmp_0, VOID, VOID, tmp_1, tmp_2, DiscussionPostEditViewModel$slambda$slambda$lambda(this.jws_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.jws_1, completion); i.kws_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.lws($this$async, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function DiscussionPostEditViewModel$onClickSave$slambda$slambda(this$0, $post, resultContinuation) { this.uws_1 = this$0; this.vws_1 = $post; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$onClickSave$slambda$slambda).un7 = function (it, $completion) { var tmp = this.vn7(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.un7(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.uws_1.wpm().h7f().de8(this.vws_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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).vn7 = function (it, completion) { var i = new DiscussionPostEditViewModel$onClickSave$slambda$slambda(this.uws_1, this.vws_1, completion); i.wws_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.un7(it, $completion); }; l.$arity = 1; return l; } function _get_discussionPostUid__impog9($this) { Companion_getInstance_108(); var tmp0_safe_receiver = $this.cpm_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_118(); var tmp0_safe_receiver = $this.cpm_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.xws_1 = 'DiscussionPostEdit'; } var Companion_instance_206; function Companion_getInstance_175() { return Companion_instance_206; } function DiscussionPostEditViewModel$slambda(this$0, resultContinuation) { this.gwt_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.hwt_1, VOID, VOID, DiscussionPostEditViewModel$slambda$slambda_0(this.gwt_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.gwt_1.uwr_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.aws(VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.gwt_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_0 = this.gwt_1.apn().tno(strings_getInstance().smu_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_0, VOID, DiscussionPostEditViewModel$onClickSave$ref(this.gwt_1)); var tmp1_loadingState = Companion_getInstance_91().ip6_1; var nextValue_0 = prevValue_0.ap6(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.gwt_1, completion); i.hwt_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.qwt_1 = $commitDelay; this.rwt_1 = $entity; this.swt_1 = $this; this.twt_1 = $key; this.uwt_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.qwt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.rwt_1 == null)) { this.hd_1 = 2; suspendResult = this.swt_1.gpn(this.swt_1.cpm_1, this.twt_1, this.uwt_1, this.rwt_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.qwt_1, this.rwt_1, this.swt_1, this.twt_1, this.uwt_1, completion); i.vwt_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.ewu_1 = this$0; this.fwu_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.ewu_1.uwr_1.t2().ywr_1 == null ? this.ewu_1.uwr_1.t2().zwr_1 == null : false) { this.hd_1 = 1; suspendResult = this.ewu_1.vpm().p7d().sc7(this.fwu_1.ye8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 5; continue $sm; } case 1: this.hwu_1 = suspendResult; this.fwu_1.be9_1 = this.hwu_1; if (this.fwu_1.be9_1.equals(new Long(0, 0))) { this.hd_1 = 2; suspendResult = this.ewu_1.wpm().p7d().sc7(this.fwu_1.ye8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.iwu_1 = suspendResult; this.fwu_1.be9_1 = this.iwu_1; this.hd_1 = 3; continue $sm; case 3: this.hd_1 = 4; var tmp_0 = this.ewu_1.wpm(); suspendResult = withDoorTransactionAsync(tmp_0, VOID, DiscussionPostEditViewModel$onClickSave$slambda$slambda_0(this.ewu_1, this.fwu_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var tmp_1 = this.fwu_1.te8_1; var this_0 = LinkedHashMap_init_$Create$(); Companion_getInstance_118(); this.ewu_1.npn(this_0, 'clazzUid'); this.ewu_1.jps('CourseDiscussionPost', tmp_1, this.fwu_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.ewu_1, this.fwu_1, completion); i.gwu_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.uwr_1 = MutableStateFlow(new DiscussionPostEditUiState()); this.vwr_1 = asStateFlow(this.uwr_1); this.cpn(Companion_getInstance_91().hp6_1); var title = _get_discussionPostUid__impog9(this).equals(new Long(0, 0)) ? this.apn().tno(strings_getInstance().rmw_1) : this.apn().tno(strings_getInstance().qm6_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_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.tpm(); launch(tmp, VOID, VOID, DiscussionPostEditViewModel$slambda_0(this, null)); } protoOf(DiscussionPostEditViewModel).jwu = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.uwr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.edit.DiscussionPostEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.wwr_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ve8_1; var tmp_0 = this.npt(tmp, entity == null ? null : entity.ve8_1, prevValue.ywr_1); var tmp2_safe_receiver = prevValue.wwr_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.we8_1; var nextValue = prevValue.aws(entity, VOID, tmp_0, this.npt(tmp_1, entity == null ? null : entity.we8_1, prevValue.zwr_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_44.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.hps_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this; var tmp_3 = this.tpm(); tmp_2.hps_1 = launch(tmp_3, VOID, VOID, DiscussionPostEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(DiscussionPostEditViewModel).ur3 = function () { var tmp0_elvis_lhs = this.uwr_1.t2().wwr_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.uwr_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.ve8_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_0 = this.apn().tno(strings_getInstance().dlz_1); } else { tmp_0 = null; } var tmp_1 = tmp_0; var tmp_2; // Inline function 'kotlin.text.isNullOrEmpty' call var this_2 = post.we8_1; // Inline function 'kotlin.contracts.contract' call if (this_2 == null ? true : charSequenceLength(this_2) === 0) { tmp_2 = this.apn().tno(strings_getInstance().dlz_1); } else { tmp_2 = null; } var nextValue = prevValue.aws(VOID, VOID, tmp_1, tmp_2); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.tpm(); 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.wwr_1 = discussionPost; this.xwr_1 = fieldsEnabled; this.ywr_1 = discussionPostTitleError; this.zwr_1 = discussionPostDescError; } protoOf(DiscussionPostEditUiState).kwu = function (discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError) { return new DiscussionPostEditUiState(discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError); }; protoOf(DiscussionPostEditUiState).aws = function (discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError, $super) { discussionPost = discussionPost === VOID ? this.wwr_1 : discussionPost; fieldsEnabled = fieldsEnabled === VOID ? this.xwr_1 : fieldsEnabled; discussionPostTitleError = discussionPostTitleError === VOID ? this.ywr_1 : discussionPostTitleError; discussionPostDescError = discussionPostDescError === VOID ? this.zwr_1 : discussionPostDescError; return $super === VOID ? this.kwu(discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError) : $super.kwu.call(this, discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError); }; protoOf(DiscussionPostEditUiState).toString = function () { return 'DiscussionPostEditUiState(discussionPost=' + this.wwr_1 + ', fieldsEnabled=' + this.xwr_1 + ', discussionPostTitleError=' + this.ywr_1 + ', discussionPostDescError=' + this.zwr_1 + ')'; }; protoOf(DiscussionPostEditUiState).hashCode = function () { var result = this.wwr_1 == null ? 0 : hashCode(this.wwr_1); result = imul(result, 31) + getBooleanHashCode(this.xwr_1) | 0; result = imul(result, 31) + (this.ywr_1 == null ? 0 : getStringHashCode(this.ywr_1)) | 0; result = imul(result, 31) + (this.zwr_1 == null ? 0 : getStringHashCode(this.zwr_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.wwr_1, tmp0_other_with_cast.wwr_1)) return false; if (!(this.xwr_1 === tmp0_other_with_cast.xwr_1)) return false; if (!(this.ywr_1 == tmp0_other_with_cast.ywr_1)) return false; if (!(this.zwr_1 == tmp0_other_with_cast.zwr_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.enk_1; } else { tmp = _this__u8e3s4.enk_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.pwv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.....' call var nextValue = prevValue.dww(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.mww_1 = this$0; this.nww_1 = $cevOpenUri; this.oww_1 = $manifest; this.pww_1 = $cevManifestUrlObj; CoroutineImpl.call(this, resultContinuation); } protoOf(EpubContentViewModel$slambda$slambda$slambda).zww = function (it, $completion) { var tmp = this.awx(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.zww(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.rww_1 = _get_httpClient__2ty1zc_2(this.mww_1); var tmp_1 = this; tmp_1.sww_1 = invoke$urlToLoad(this.qww_1, this.nww_1, this.oww_1, this.mww_1, this.pww_1); var tmp_2 = this; tmp_2.tww_1 = this.rww_1; var tmp_3 = this; tmp_3.uww_1 = this.tww_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.sww_1); tmp_4.vww_1 = this_0; this.vww_1.w38_1 = Companion_getInstance().l2x_1; var tmp_5 = this; tmp_5.www_1 = this.uww_1; var tmp_6 = this; tmp_6.xww_1 = this.vww_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.xww_1, this.www_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.yww_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsDecodedText(this.yww_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).awx = function (it, completion) { var i = new EpubContentViewModel$slambda$slambda$slambda(this.mww_1, this.nww_1, this.oww_1, this.pww_1, completion); i.qww_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.zww(it, $completion); }; l.$arity = 1; return l; } function invoke$urlToLoad_0(_this__u8e3s4, this$0, cevManifestUrlObj) { var tmp; if (this$0.lwv_1) { tmp = _this__u8e3s4.inm_1; } else { tmp = cevManifestUrlObj.do7(_this__u8e3s4.anm_1).toString(); } return tmp; } function EpubContentViewModel$slambda$slambda($manifest, $cevOpenUri, this$0, $opfBaseUrl, $argTocString, $cevManifestUrlObj, resultContinuation) { this.jwx_1 = $manifest; this.kwx_1 = $cevOpenUri; this.lwx_1 = this$0; this.mwx_1 = $opfBaseUrl; this.nwx_1 = $argTocString; this.owx_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.qwx_1 = requireEntryByUri(this.jwx_1, this.kwx_1); var tmp_0 = this; tmp_0.rwx_1 = _get_httpClient__2ty1zc_2(this.lwx_1); var tmp_1 = this; tmp_1.swx_1 = invoke$urlToLoad_0(this.qwx_1, this.lwx_1, this.owx_1); var tmp_2 = this; tmp_2.twx_1 = this.rwx_1; var tmp_3 = this; tmp_3.uwx_1 = this.twx_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.swx_1); tmp_4.vwx_1 = this_0; this.vwx_1.w38_1 = Companion_getInstance().l2x_1; var tmp_5 = this; tmp_5.wwx_1 = this.uwx_1; var tmp_6 = this; tmp_6.xwx_1 = this.vwx_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.xwx_1, this.wwx_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ywx_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsDecodedText(this.ywx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.zwx_1 = suspendResult; this.awy_1 = _get_xml__e6jxp6(this.lwx_1).s45(Companion_instance_74.n4r(), this.zwx_1); var tmp_7 = this; var this_1 = this.awy_1.inl_1.nnk_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.dnk_1, element); } tmp_7.bwy_1 = destination; var tmp_8 = this; var this_2 = this.awy_1.jnl_1.mnl_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.bwy_1.q(element_0.jnk_1); var tmp_9; if (tmp0_safe_receiver == null) { tmp_9 = null; } else { tmp_9 = this.mwx_1.do7(tmp0_safe_receiver.enk_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.cwy_1 = destination_0; var tmp_10 = this; var tmp0_safe_receiver_1 = this.awy_1.knl(); var tmp_11; if (tmp0_safe_receiver_1 == null) { tmp_11 = null; } else { tmp_11 = this.mwx_1.do7(tmp0_safe_receiver_1.enk_1); } var tmp1_safe_receiver_0 = tmp_11; tmp_10.dwy_1 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.toString(); l$ret$1: do { var this_3 = this.lwx_1.pwv_1; while (true) { var prevValue = this_3.t2(); var tmp0_safe_receiver_2 = firstOrNull(this.awy_1.hnl_1.xnk_1); var nextValue = prevValue.dww(VOID, this.cwy_1, VOID, VOID, VOID, this.dwy_1, tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.wnj_1); if (this_3.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_4 = this.lwx_1.gpm_1; while (true) { var prevValue_0 = this_4.t2(); var tmp0_safe_receiver_3 = firstOrNull(this.awy_1.hnl_1.vnk_1); var tmp1_elvis_lhs = tmp0_safe_receiver_3 == null ? null : tmp0_safe_receiver_3.ank_1; var tmp_12 = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp2_elvis_lhs = this.nwx_1; var tmp_13 = tmp2_elvis_lhs == null ? this.lwx_1.apn().tno(strings_getInstance().amx_1) : tmp2_elvis_lhs; var nextValue_0 = prevValue_0.ap6(VOID, VOID, tmp_12, VOID, VOID, VOID, VOID, VOID, VOID, listOf_0(new OverflowItem(tmp_13, EpubContentViewModel$slambda$slambda$lambda(this.lwx_1)))); if (this_4.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); var tmp_14 = this.lwx_1; var tmp2_safe_receiver = this.awy_1.lnl(); var tmp_15; if (tmp2_safe_receiver == null) { tmp_15 = null; } else { tmp_15 = this.mwx_1.do7(tmp2_safe_receiver.enk_1).toString(); } tmp_14.uwv_1 = tmp_15; this.hd_1 = 3; suspendResult = this.lwx_1.kwv_1.woh(this.awy_1, EpubContentViewModel$slambda$slambda$slambda_0(this.lwx_1, this.kwx_1, this.jwx_1, this.owx_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.lwx_1.pwv_1; while (true) { var prevValue_1 = this_5.t2(); var nextValue_1 = prevValue_1.dww(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.jwx_1, this.kwx_1, this.lwx_1, this.mwx_1, this.nwx_1, this.owx_1, completion); i.pwx_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.nwv_1; httpClient$factory_6(); return this_0.t2(); } function _get_xml__e6jxp6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.owv_1; xml$factory_0(); return this_0.t2(); } function _get_openExternalLinkUseCase__ku5z07_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.rwv_1; openExternalLinkUseCase$factory_2(); return this_0.t2(); } function Companion_159() { this.ewy_1 = 'manifestUrl'; this.fwy_1 = 'cevUri'; this.gwy_1 = 'navigationVisible'; this.hwy_1 = 'tocString'; this.iwy_1 = 'xapiStatementsUrl'; this.jwy_1 = 'EpubContent'; } var Companion_instance_207; function Companion_getInstance_176() { return Companion_instance_207; } function EpubContentViewModel$slambda($argManifestUrl, $argCevOpenUri, this$0, $argTocString, resultContinuation) { this.swy_1 = $argManifestUrl; this.twy_1 = $argCevOpenUri; this.uwy_1 = this$0; this.vwy_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.swy_1 == null) ? !(this.twy_1 == null) : false) { var tmp_0 = this; tmp_0.xwy_1 = to(this.swy_1, this.twy_1); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.uwy_1.wpm().i7f().lbc(this.uwy_1.mwv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.ywy_1 = suspendResult; var tmp_1 = this; var tmp_2; if (this.ywy_1 == null) { return Unit_instance; } else { tmp_2 = this.ywy_1; } tmp_1.zwy_1 = tmp_2; var tmp_3 = this; var tmp1_elvis_lhs = this.zwy_1.vaj_1; var tmp_4; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_4 = tmp1_elvis_lhs; } tmp_3.awz_1 = tmp_4; var tmp_5 = this; var tmp2_elvis_lhs = this.zwy_1.taj_1; var tmp_6; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp_6 = tmp2_elvis_lhs; } tmp_5.bwz_1 = tmp_6; this.xwy_1 = to(this.awz_1, this.bwz_1); this.hd_1 = 2; continue $sm; case 2: this.cwz_1 = this.xwy_1; this.dwz_1 = this.cwz_1.y6(); this.ewz_1 = this.cwz_1.z6(); this.fwz_1 = UrlKmp(this.dwz_1); this.gwz_1 = this.fwz_1.do7(this.ewz_1); var tmp_7 = this; tmp_7.hwz_1 = this.uwy_1.m4r(); var tmp_8 = this; tmp_8.iwz_1 = _get_httpClient__2ty1zc_2(this.uwy_1); var tmp_9 = this; tmp_9.jwz_1 = this.dwz_1; var tmp_10 = this; tmp_10.kwz_1 = this.iwz_1; var tmp_11 = this; tmp_11.lwz_1 = this.kwz_1; var tmp_12 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.jwz_1); tmp_12.mwz_1 = this_0; this.mwz_1.w38_1 = Companion_getInstance().l2x_1; var tmp_13 = this; tmp_13.nwz_1 = this.lwz_1; var tmp_14 = this; tmp_14.owz_1 = this.mwz_1; this.hd_1 = 3; suspendResult = (new HttpStatement(this.owz_1, this.nwz_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.pwz_1 = suspendResult; this.hd_1 = 4; suspendResult = bodyAsDecodedText(this.pwz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.qwz_1 = suspendResult; var tmp_15 = this; var this_1 = this.hwz_1.t45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_15.rwz_1 = this.hwz_1.s45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.qwz_1); this.hd_1 = 5; var tmp_16 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_16, EpubContentViewModel$slambda$slambda_0(this.rwz_1, this.ewz_1, this.uwy_1, this.gwz_1, this.vwy_1, this.fwz_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.swy_1, this.twy_1, this.uwy_1, this.vwy_1, completion); i.wwy_1 = $this$launch; return i; }; function EpubContentViewModel$slambda_0($argManifestUrl, $argCevOpenUri, this$0, $argTocString, resultContinuation) { var i = new EpubContentViewModel$slambda($argManifestUrl, $argCevOpenUri, this$0, $argTocString, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function EpubContentViewModel(di, savedStateHandle, getEpubTableOfContentsUseCase, useBodyDataUrls) { var tmp; if (getEpubTableOfContentsUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(di).f58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(XML), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.d58(tmp$ret$0, null); tmp = new GetEpubTableOfContentsUseCase(tmp$ret$1); } else { tmp = getEpubTableOfContentsUseCase; } getEpubTableOfContentsUseCase = tmp; useBodyDataUrls = useBodyDataUrls === VOID ? false : useBodyDataUrls; AbstractNonInteractiveContentViewModel.call(this, di, savedStateHandle, 'EpubContent'); this.kwv_1 = getEpubTableOfContentsUseCase; this.lwv_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.mwv_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.nwv_1 = Instance(this, tmp$ret$2, null).a5d(this, httpClient$factory_5()); var tmp_5 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(XML), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_5.owv_1 = Instance(this, tmp$ret$4, null).a5d(this, xml$factory()); this.pwv_1 = MutableStateFlow(new EpubContentUiState(this.mwv_1)); this.qwv_1 = asStateFlow(this.pwv_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.rwv_1 = Instance(this, tmp$ret$6, null).a5d(this, openExternalLinkUseCase$factory_1()); this.swv_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.twv_1 = asSharedFlow(this.swv_1); this.uwv_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.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, VOID, argNavigationVisible, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_9 = this.tpm(); launch(tmp_9, VOID, VOID, EpubContentViewModel$slambda_0(argManifestUrl, argCevOpenUri, this, argTocString, null)); } protoOf(EpubContentViewModel).swz = function () { var langCodeVal = this.pwv_1.t2().bww_1; var titleVal = this.gpm_1.t2().np5_1; var tmp; if (!(langCodeVal == null) ? !(titleVal == null) : false) { tmp = new TitleAndLangCode(titleVal, langCodeVal); } else { tmp = null; } return tmp; }; protoOf(EpubContentViewModel).twz = function (baseUrl, href) { var url = UrlKmp(baseUrl).do7(href); var urlStr = url.toString(); var hashIndex = indexOf_0(urlStr, '#'); var urlWithoutHash = substringBefore_0(urlStr, '#'); var indexInSpine = this.pwv_1.t2().wwv_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.swv_1.i1h(new EpubScrollCommand(indexInSpine, tmp)); } else { _get_openExternalLinkUseCase__ku5z07_0(this).yoi(url.toString(), LinkTarget_BLANK_getInstance()); } }; protoOf(EpubContentViewModel).uwz = function (tocItem) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.pwv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onClickTocItem.' call var nextValue = prevValue.dww(VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_elvis_lhs = this.uwv_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var baseHref = tmp; var tmp1_elvis_lhs = tocItem.roh_1; var tmp_0; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_0 = tmp1_elvis_lhs; } var itemUrl = tmp_0; this.twz(baseHref, itemUrl); }; protoOf(EpubContentViewModel).vwz = function (tocItem) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.pwv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onClickToggleTocItem.' call var tmp; if (prevValue.zwv_1.a1(tocItem.poh_1)) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_1 = prevValue.zwv_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.poh_1)) { destination.i1(element); } } tmp = toSet(destination); } else { tmp = plus_2(prevValue.zwv_1, tocItem.poh_1); } var nextValue = prevValue.dww(VOID, VOID, VOID, VOID, tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(EpubContentViewModel).wwz = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.pwv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onDismissTableOfContentsDrawer.' call var nextValue = prevValue.dww(VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(EpubContentViewModel).xwz = function (index) { var spineSize = this.pwv_1.t2().wwv_1.u(); if (spineSize <= 0) return Unit_instance; if (index === (spineSize - 1 | 0)) { this.up2(true); } else { this.tp2(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.vwv_1 = contentEntryVersionUid; this.wwv_1 = spineUrls; this.xwv_1 = tableOfContents; this.ywv_1 = tableOfContentsOpen; this.zwv_1 = collapsedTocUids; this.aww_1 = coverImageUrl; this.bww_1 = langCode; var tmp = this; // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.xwv_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.zwv_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.yx0(element_0)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (!tmp$ret$0) { destination.i1(element); } } tmp.cww_1 = destination; } protoOf(EpubContentUiState).zx0 = function (contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode) { return new EpubContentUiState(contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode); }; protoOf(EpubContentUiState).dww = function (contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode, $super) { contentEntryVersionUid = contentEntryVersionUid === VOID ? this.vwv_1 : contentEntryVersionUid; spineUrls = spineUrls === VOID ? this.wwv_1 : spineUrls; tableOfContents = tableOfContents === VOID ? this.xwv_1 : tableOfContents; tableOfContentsOpen = tableOfContentsOpen === VOID ? this.ywv_1 : tableOfContentsOpen; collapsedTocUids = collapsedTocUids === VOID ? this.zwv_1 : collapsedTocUids; coverImageUrl = coverImageUrl === VOID ? this.aww_1 : coverImageUrl; langCode = langCode === VOID ? this.bww_1 : langCode; return $super === VOID ? this.zx0(contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode) : $super.zx0.call(this, contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode); }; protoOf(EpubContentUiState).toString = function () { return 'EpubContentUiState(contentEntryVersionUid=' + this.vwv_1.toString() + ', spineUrls=' + this.wwv_1 + ', tableOfContents=' + this.xwv_1 + ', tableOfContentsOpen=' + this.ywv_1 + ', collapsedTocUids=' + this.zwv_1 + ', coverImageUrl=' + this.aww_1 + ', langCode=' + this.bww_1 + ')'; }; protoOf(EpubContentUiState).hashCode = function () { var result = this.vwv_1.hashCode(); result = imul(result, 31) + hashCode(this.wwv_1) | 0; result = imul(result, 31) + hashCode(this.xwv_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ywv_1) | 0; result = imul(result, 31) + hashCode(this.zwv_1) | 0; result = imul(result, 31) + (this.aww_1 == null ? 0 : getStringHashCode(this.aww_1)) | 0; result = imul(result, 31) + (this.bww_1 == null ? 0 : getStringHashCode(this.bww_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.vwv_1.equals(tmp0_other_with_cast.vwv_1)) return false; if (!equals(this.wwv_1, tmp0_other_with_cast.wwv_1)) return false; if (!equals(this.xwv_1, tmp0_other_with_cast.xwv_1)) return false; if (!(this.ywv_1 === tmp0_other_with_cast.ywv_1)) return false; if (!equals(this.zwv_1, tmp0_other_with_cast.zwv_1)) return false; if (!(this.aww_1 == tmp0_other_with_cast.aww_1)) return false; if (!(this.bww_1 == tmp0_other_with_cast.bww_1)) return false; return true; }; function EpubScrollCommand(spineIndex, hash) { hash = hash === VOID ? null : hash; this.ax1_1 = spineIndex; this.bx1_1 = hash; } protoOf(EpubScrollCommand).toString = function () { return 'EpubScrollCommand(spineIndex=' + this.ax1_1 + ', hash=' + this.bx1_1 + ')'; }; protoOf(EpubScrollCommand).hashCode = function () { var result = this.ax1_1; result = imul(result, 31) + (this.bx1_1 == null ? 0 : getStringHashCode(this.bx1_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.ax1_1 === tmp0_other_with_cast.ax1_1)) return false; if (!(this.bx1_1 == tmp0_other_with_cast.bx1_1)) return false; return true; }; function EpubTocItem(uid, label, href, children, parentUids, indentLevel) { parentUids = parentUids === VOID ? emptySet() : parentUids; indentLevel = indentLevel === VOID ? 0 : indentLevel; this.poh_1 = uid; this.qoh_1 = label; this.roh_1 = href; this.soh_1 = children; this.toh_1 = parentUids; this.uoh_1 = indentLevel; var tmp = this; // Inline function 'kotlin.collections.isNotEmpty' call tmp.voh_1 = !this.soh_1.c1(); } protoOf(EpubTocItem).yx0 = function (uid) { return this.toh_1.a1(uid); }; protoOf(EpubTocItem).toString = function () { return 'EpubTocItem(uid=' + this.poh_1 + ', label=' + this.qoh_1 + ', href=' + this.roh_1 + ', children=' + this.soh_1 + ', parentUids=' + this.toh_1 + ', indentLevel=' + this.uoh_1 + ')'; }; protoOf(EpubTocItem).hashCode = function () { var result = this.poh_1; result = imul(result, 31) + getStringHashCode(this.qoh_1) | 0; result = imul(result, 31) + (this.roh_1 == null ? 0 : getStringHashCode(this.roh_1)) | 0; result = imul(result, 31) + hashCode(this.soh_1) | 0; result = imul(result, 31) + hashCode(this.toh_1) | 0; result = imul(result, 31) + this.uoh_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.poh_1 === tmp0_other_with_cast.poh_1)) return false; if (!(this.qoh_1 === tmp0_other_with_cast.qoh_1)) return false; if (!(this.roh_1 == tmp0_other_with_cast.roh_1)) return false; if (!equals(this.soh_1, tmp0_other_with_cast.soh_1)) return false; if (!equals(this.toh_1, tmp0_other_with_cast.toh_1)) return false; if (!(this.uoh_1 === tmp0_other_with_cast.uoh_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.cx1_1 = 'Error'; } var Companion_instance_208; function Companion_getInstance_177() { return Companion_instance_208; } function _get_impl__d88w17($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.cx2_1; impl$factory_0(); return this_0.t2(); } function _get_httpClient__2ty1zc_3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.dx2_1; httpClient$factory_8(); return this_0.t2(); } function _get_apiUrlConfig__mldllg_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ex2_1; apiUrlConfig$factory_4(); return this_0.t2(); } function _get_setLanguageUseCase__st7nci($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.gx2_1; setLanguageUseCase$factory_0(); return this_0.t2(); } function _get_languagesConfig__hebcss($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hx2_1; languagesConfig$factory_0(); return this_0.t2(); } function _get_getVersionUseCase__n7x57g_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kx2_1; getVersionUseCase$factory_2(); return this_0.t2(); } function _get_getShowPoweredByUseCase__5l0p0e_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lx2_1; getShowPoweredByUseCase$factory_2(); return this_0.t2(); } function onSiteVerified($this, site) { $this.fx2_1 = site; $this.cpn(Companion_getInstance_91().ip6_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.yx1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onSiteVerified.' call var tmp0_createAccountVisible = site.ch2_1; var tmp1_connectAsGuestVisible = site.bh2_1; var nextValue = prevValue.bx3(VOID, VOID, true, VOID, VOID, VOID, tmp0_createAccountVisible, tmp1_connectAsGuestVisible, VOID, null); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } function goToNextDestAfterLoginOrGuestSelected($this, personUid) { var goOptions = new UstadGoOptions(VOID, VOID, true); var tmp = Napier_getInstance(); tmp.k5e(VOID, VOID, LoginViewModel$goToNextDestAfterLoginOrGuestSelected$lambda($this)); $this.opt($this.epm_1, appendSelectedAccount($this.ax2_1, personUid, new Endpoint($this.bx2_1)), goOptions); } function Companion_161() { this.cx3_1 = 'Login'; } var Companion_instance_209; function Companion_getInstance_178() { return Companion_instance_209; } function LoginViewModel$slambda(this$0, resultContinuation) { this.lx3_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.lx3_1.fx2_1 == null)) { this.hd_1 = 6; continue $sm; } this.id_1 = 3; this.hd_1 = 2; suspendResult = verifySite(_get_httpClient__2ty1zc_3(this.lx3_1), this.lx3_1.bx2_1, new Long(10000, 0), this.lx3_1.m4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.nx3_1 = suspendResult; onSiteVerified(this.lx3_1, this.nx3_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.ox3_1 = this.kd_1; Napier_getInstance().m5e('Could not load site object for ' + this.lx3_1.bx2_1, this.ox3_1); l$ret$1: do { var this_0 = this.lx3_1.yx1_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.bx3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _get_impl__d88w17(this.lx3_1).tno(strings_getInstance().ilu_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.lx3_1, completion); i.mx3_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.ax2_1; }; } function LoginViewModel$onClickLogin$slambda(this$0, $username, $password, resultContinuation) { this.xx3_1 = this$0; this.yx3_1 = $username; this.zx3_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 = 5; this.bx4_1 = null; this.hd_1 = 1; continue $sm; case 1: this.id_1 = 4; this.id_1 = 3; this.hd_1 = 2; var tmp_0 = this.xx3_1.spm(); var this_0 = this.yx3_1; var tmp_1 = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); var this_1 = this.zx3_1; var tmp_2 = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())); var tmp_3 = this.xx3_1.bx2_1; Companion_getInstance_108(); var tmp0_safe_receiver = this.xx3_1.cpm_1.ba('maxDob'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); suspendResult = tmp_0.sng(tmp_1, tmp_2, tmp_3, tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs, this.xx3_1.mx2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var account = suspendResult; var tmp_4 = this; goToNextDestAfterLoginOrGuestSelected(this.xx3_1, account.xkb_1); tmp_4.cx4_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 6; continue $sm; case 3: this.id_1 = 4; var tmp_5 = this.kd_1; if (tmp_5 instanceof AdultAccountRequiredException) { var e = this.kd_1; var tmp_6 = this; this.bx4_1 = _get_impl__d88w17(this.xx3_1).tno(strings_getInstance().fmq_1); tmp_6.cx4_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 6; continue $sm; } else { var tmp_7 = this.kd_1; if (tmp_7 instanceof UnauthorizedException) { var e_0 = this.kd_1; var tmp_8 = this; this.bx4_1 = _get_impl__d88w17(this.xx3_1).tno(strings_getInstance().hlu_1); tmp_8.cx4_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 6; continue $sm; } else { var tmp_9 = this.kd_1; if (tmp_9 instanceof ConsentNotGrantedException) { var e_1 = this.kd_1; var tmp_10 = this; this.bx4_1 = _get_impl__d88w17(this.xx3_1).tno(strings_getInstance().emq_1); tmp_10.cx4_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 6; continue $sm; } else { var tmp_11 = this.kd_1; if (tmp_11 instanceof Exception) { var e_2 = this.kd_1; var tmp_12 = this; this.bx4_1 = _get_impl__d88w17(this.xx3_1).tno(strings_getInstance().ilu_1); tmp_12.cx4_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 6; continue $sm; } else { throw this.kd_1; } } } } case 4: this.id_1 = 5; var t = this.kd_1; this.xx3_1.cpn(Companion_getInstance_91().ip6_1); l$ret$3: do { var this_2 = this.xx3_1.yx1_1; while (true) { var prevValue = this_2.t2(); var nextValue = prevValue.bx3(VOID, VOID, true, VOID, VOID, VOID, VOID, VOID, VOID, this.bx4_1); if (this_2.y1k(prevValue, nextValue)) { break l$ret$3; } } } while (false); throw t; case 5: throw this.kd_1; case 6: this.id_1 = 5; this.xx3_1.cpn(Companion_getInstance_91().ip6_1); l$ret$5: do { var this_3 = this.xx3_1.yx1_1; while (true) { var prevValue_0 = this_3.t2(); var nextValue_0 = prevValue_0.bx3(VOID, VOID, true, VOID, VOID, VOID, VOID, VOID, VOID, this.bx4_1); if (this_3.y1k(prevValue_0, nextValue_0)) { break l$ret$5; } } } while (false); return Unit_instance; } } catch ($p) { var e_3 = $p; if (this.id_1 === 5) { throw e_3; } else { this.hd_1 = this.id_1; this.kd_1 = e_3; } } while (true); }; protoOf(LoginViewModel$onClickLogin$slambda).v1m = function ($this$launch, completion) { var i = new LoginViewModel$onClickLogin$slambda(this.xx3_1, this.yx3_1, this.zx3_1, completion); i.ax4_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.lx4_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.lx4_1.spm().tng(this.lx4_1.bx2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var guestPerson = suspendResult; goToNextDestAfterLoginOrGuestSelected(this.lx4_1, guestPerson.zn2_1.s95_1); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.lx4_1, completion); i.mx4_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(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'Login'); this.yx1_1 = MutableStateFlow(new LoginUiState()); this.zx1_1 = asStateFlow(this.yx1_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.cx2_1 = Instance(this, tmp$ret$0, null).a5d(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.dx2_1 = Instance(this, tmp$ret$2, null).a5d(this, httpClient$factory_7()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(ApiUrlConfig), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.ex2_1 = Instance(this, tmp$ret$4, null).a5d(this, apiUrlConfig$factory_3()); this.fx2_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.gx2_1 = Instance(this, tmp$ret$6, null).a5d(this, setLanguageUseCase$factory()); 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.hx2_1 = Instance(this, tmp$ret$8, null).a5d(this, languagesConfig$factory()); this.ix2_1 = new ValidateUsernameUseCase(); this.jx2_1 = new FilterUsernameUseCase(); var tmp_9 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(GetVersionUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); tmp_9.kx2_1 = InstanceOrNull(this, tmp$ret$10, null).a5d(this, getVersionUseCase$factory_1()); var tmp_11 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_12 = typeToken(createKType(getKClass(GetShowPoweredByUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); tmp_11.lx2_1 = InstanceOrNull(this, tmp$ret$12, null).a5d(this, getShowPoweredByUseCase$factory_1()); var tmp_13 = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('noSessionChange'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver); tmp_13.mx2_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_129(); tmp_15 = 'CourseListHome'; } else { tmp_15 = tmp0_elvis_lhs; } tmp_14.ax2_1 = tmp_15; var tmp_16 = this; Companion_getInstance_108(); var tmp1_elvis_lhs_0 = savedStateHandle.ba('serverUrl'); var tmp2_elvis_lhs = tmp1_elvis_lhs_0 == null ? _get_apiUrlConfig__mldllg_1(this).hng_1 : tmp1_elvis_lhs_0; tmp_16.bx2_1 = tmp2_elvis_lhs == null ? 'http://localhost' : tmp2_elvis_lhs; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.yx1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.' call var tmp_17 = this.apn().tno(strings_getInstance().rmx_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.foi(); var tmp_18 = tmp_17 + (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.doi_1); Companion_getInstance_108(); var tmp_19 = savedStateHandle.ba('intMsg'); var tmp_20 = _get_languagesConfig__hebcss(this).np7(this.apn()); var tmp_21 = _get_languagesConfig__hebcss(this).op7(this.apn()); var tmp2_safe_receiver = _get_getShowPoweredByUseCase__5l0p0e_0(this); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.foi(); var nextValue = prevValue.bx3(VOID, VOID, VOID, VOID, VOID, tmp_18, VOID, 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; } } } var tmp3_title = _get_impl__d88w17(this).tno(strings_getInstance().slt_1); var baseAppUiState = new AppUiState(VOID, VOID, tmp3_title, false, VOID, VOID, false); this.bx2_1 = requirePostfix(this.bx2_1, '/'); Companion_getInstance_108(); var siteJsonStr = savedStateHandle.ba('site'); if (!(siteJsonStr == null)) { this.gpm_1.x1k(baseAppUiState); // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call var this_1 = this.m4r(); // Inline function 'kotlinx.serialization.serializer' call var this_2 = this_1.t45(); // Inline function 'kotlinx.serialization.internal.cast' call var this_3 = serializer(this_2, createKType(getKClass(Site), arrayOf([]), false)); var tmp$ret$17 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(); var tmp$ret$18 = this_1.s45(tmp$ret$17, siteJsonStr); onSiteVerified(this, tmp$ret$18); } else { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.yx1_1; while (true) { var prevValue_0 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.' call var nextValue_0 = prevValue_0.bx3(VOID, VOID, false); if (this_4.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } this.gpm_1.x1k(baseAppUiState.ap6(VOID, Companion_getInstance_91().hp6_1)); var tmp_22 = this.tpm(); launch(tmp_22, VOID, VOID, LoginViewModel$slambda_0(this, null)); } } protoOf(LoginViewModel).nx4 = function (newValue) { var filteredValue = this.jx2_1.boi(newValue, ''); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.yx1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onUsernameChanged.' call var nextValue = prevValue.bx3(filteredValue); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(LoginViewModel).ox4 = function (password) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.yx1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onPasswordChanged.' call var nextValue = prevValue.bx3(VOID, password); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(LoginViewModel).px4 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.yx1_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.nx2_1; var tmp0_username = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())); // Inline function 'kotlin.text.trim' call var this_2 = prevValue.ox2_1; var tmp1_password = toString(trim(isCharSequence(this_2) ? this_2 : THROW_CCE())); var nextValue = prevValue.bx3(tmp0_username, tmp1_password, false, null, null); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var username = this.yx1_1.t2().nx2_1; var password = this.yx1_1.t2().ox2_1; var tmp; // Inline function 'kotlin.text.isNotEmpty' call if (charSequenceLength(username) > 0) { // Inline function 'kotlin.text.isNotEmpty' call tmp = charSequenceLength(password) > 0; } else { tmp = false; } if (tmp) { var validationResult = this.ix2_1.koe(username); if (!validationResult.equals(Companion_getInstance_68().zon_1)) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.yx1_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onClickLogin.' call var tmp0_safe_receiver = validationResult.eoo_1; var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onClickLogin..' call tmp_0 = _get_impl__d88w17(this).tno(tmp0_safe_receiver); } var nextValue_0 = prevValue_0.bx3(VOID, VOID, true, tmp_0); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } this.cpn(Companion_getInstance_91().hp6_1); var tmp_1 = this.tpm(); launch(tmp_1, VOID, VOID, LoginViewModel$onClickLogin$slambda_0(this, username, password, null)); } else { this.cpn(Companion_getInstance_91().ip6_1); $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.yx1_1; while (true) { var prevValue_1 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onClickLogin.' call var tmp_2; // Inline function 'kotlin.text.isEmpty' call var this_5 = prevValue_1.nx2_1; if (charSequenceLength(this_5) === 0) { tmp_2 = _get_impl__d88w17(this).tno(strings_getInstance().dlz_1); } else { tmp_2 = null; } var tmp_3 = tmp_2; var tmp_4; // Inline function 'kotlin.text.isEmpty' call var this_6 = prevValue_1.ox2_1; if (charSequenceLength(this_6) === 0) { tmp_4 = _get_impl__d88w17(this).tno(strings_getInstance().dlz_1); } else { tmp_4 = null; } var nextValue_1 = prevValue_1.bx3(VOID, VOID, true, tmp_3, tmp_4); if (this_4.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } }; protoOf(LoginViewModel).qx4 = function () { Companion_getInstance_108(); var tmp = to('serverUrl', this.bx2_1); var tmp_0 = to('showAccept', 'true'); Companion_getInstance_108(); Companion_getInstance_108(); var tmp0_elvis_lhs = this.cpm_1.ba('popUpToOnFinish'); var args = mutableMapOf([tmp, tmp_0, to('popUpToOnFinish', tmp0_elvis_lhs == null ? 'Login' : tmp0_elvis_lhs)]); this.opn(args, Companion_getInstance_189().bx5_1); this.epm_1.hob('RegisterAgeRedirect', args); }; protoOf(LoginViewModel).dx5 = function (uiLanguage) { if (!uiLanguage.equals(this.yx1_1.t2().xx2_1)) { var tmp = _get_setLanguageUseCase__st7nci(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.npn(this_0, 'next'); Companion_getInstance_108(); this.npn(this_0, 'serverUrl'); Companion_getInstance_108(); this.npn(this_0, 'site'); var tmp$ret$2 = this_0.f3(); var result = tmp.poi(uiLanguage, 'Login', this.epm_1, tmp$ret$2); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.yx1_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onChangeLanguage.' call var nextValue = prevValue.bx3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, uiLanguage, VOID, result.ooi_1); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } } }; protoOf(LoginViewModel).ex5 = function () { var tmp = this.tpm(); launch(tmp, VOID, VOID, LoginViewModel$onClickConnectAsGuest$slambda_0(this, null)); }; function LoginUiState(username, password, fieldsEnabled, usernameError, passwordError, versionInfo, createAccountVisible, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy) { 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; createAccountVisible = createAccountVisible === VOID ? false : createAccountVisible; 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; this.nx2_1 = username; this.ox2_1 = password; this.px2_1 = fieldsEnabled; this.qx2_1 = usernameError; this.rx2_1 = passwordError; this.sx2_1 = versionInfo; this.tx2_1 = createAccountVisible; this.ux2_1 = connectAsGuestVisible; this.vx2_1 = loginIntentMessage; this.wx2_1 = errorMessage; this.xx2_1 = currentLanguage; this.yx2_1 = languageList; this.zx2_1 = showWaitForRestart; this.ax3_1 = showPoweredBy; } protoOf(LoginUiState).fx5 = function (username, password, fieldsEnabled, usernameError, passwordError, versionInfo, createAccountVisible, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy) { return new LoginUiState(username, password, fieldsEnabled, usernameError, passwordError, versionInfo, createAccountVisible, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy); }; protoOf(LoginUiState).bx3 = function (username, password, fieldsEnabled, usernameError, passwordError, versionInfo, createAccountVisible, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, $super) { username = username === VOID ? this.nx2_1 : username; password = password === VOID ? this.ox2_1 : password; fieldsEnabled = fieldsEnabled === VOID ? this.px2_1 : fieldsEnabled; usernameError = usernameError === VOID ? this.qx2_1 : usernameError; passwordError = passwordError === VOID ? this.rx2_1 : passwordError; versionInfo = versionInfo === VOID ? this.sx2_1 : versionInfo; createAccountVisible = createAccountVisible === VOID ? this.tx2_1 : createAccountVisible; connectAsGuestVisible = connectAsGuestVisible === VOID ? this.ux2_1 : connectAsGuestVisible; loginIntentMessage = loginIntentMessage === VOID ? this.vx2_1 : loginIntentMessage; errorMessage = errorMessage === VOID ? this.wx2_1 : errorMessage; currentLanguage = currentLanguage === VOID ? this.xx2_1 : currentLanguage; languageList = languageList === VOID ? this.yx2_1 : languageList; showWaitForRestart = showWaitForRestart === VOID ? this.zx2_1 : showWaitForRestart; showPoweredBy = showPoweredBy === VOID ? this.ax3_1 : showPoweredBy; return $super === VOID ? this.fx5(username, password, fieldsEnabled, usernameError, passwordError, versionInfo, createAccountVisible, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy) : $super.fx5.call(this, username, password, fieldsEnabled, usernameError, passwordError, versionInfo, createAccountVisible, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy); }; protoOf(LoginUiState).toString = function () { return 'LoginUiState(username=' + this.nx2_1 + ', password=' + this.ox2_1 + ', fieldsEnabled=' + this.px2_1 + ', usernameError=' + this.qx2_1 + ', passwordError=' + this.rx2_1 + ', versionInfo=' + this.sx2_1 + ', createAccountVisible=' + this.tx2_1 + ', connectAsGuestVisible=' + this.ux2_1 + ', loginIntentMessage=' + this.vx2_1 + ', errorMessage=' + this.wx2_1 + ', currentLanguage=' + this.xx2_1 + ', languageList=' + this.yx2_1 + ', showWaitForRestart=' + this.zx2_1 + ', showPoweredBy=' + this.ax3_1 + ')'; }; protoOf(LoginUiState).hashCode = function () { var result = getStringHashCode(this.nx2_1); result = imul(result, 31) + getStringHashCode(this.ox2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.px2_1) | 0; result = imul(result, 31) + (this.qx2_1 == null ? 0 : getStringHashCode(this.qx2_1)) | 0; result = imul(result, 31) + (this.rx2_1 == null ? 0 : getStringHashCode(this.rx2_1)) | 0; result = imul(result, 31) + getStringHashCode(this.sx2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.tx2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ux2_1) | 0; result = imul(result, 31) + (this.vx2_1 == null ? 0 : getStringHashCode(this.vx2_1)) | 0; result = imul(result, 31) + (this.wx2_1 == null ? 0 : getStringHashCode(this.wx2_1)) | 0; result = imul(result, 31) + this.xx2_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.yx2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.zx2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ax3_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.nx2_1 === tmp0_other_with_cast.nx2_1)) return false; if (!(this.ox2_1 === tmp0_other_with_cast.ox2_1)) return false; if (!(this.px2_1 === tmp0_other_with_cast.px2_1)) return false; if (!(this.qx2_1 == tmp0_other_with_cast.qx2_1)) return false; if (!(this.rx2_1 == tmp0_other_with_cast.rx2_1)) return false; if (!(this.sx2_1 === tmp0_other_with_cast.sx2_1)) return false; if (!(this.tx2_1 === tmp0_other_with_cast.tx2_1)) return false; if (!(this.ux2_1 === tmp0_other_with_cast.ux2_1)) return false; if (!(this.vx2_1 == tmp0_other_with_cast.vx2_1)) return false; if (!(this.wx2_1 == tmp0_other_with_cast.wx2_1)) return false; if (!this.xx2_1.equals(tmp0_other_with_cast.xx2_1)) return false; if (!equals(this.yx2_1, tmp0_other_with_cast.yx2_1)) return false; if (!(this.zx2_1 === tmp0_other_with_cast.zx2_1)) return false; if (!(this.ax3_1 === tmp0_other_with_cast.ax3_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_3() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_1(receiver); }, null); } function setLanguageUseCase$factory() { return getPropertyCallableRef('setLanguageUseCase', 1, KProperty1, function (receiver) { return _get_setLanguageUseCase__st7nci(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_4() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_1(receiver); }, null); } function setLanguageUseCase$factory_0() { return getPropertyCallableRef('setLanguageUseCase', 1, KProperty1, function (receiver) { return _get_setLanguageUseCase__st7nci(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().pls(_this__u8e3s4.bf8_1), Companion_getInstance_6().pls(other.bf8_1), Companion_getInstance_9().hlt()); } function Companion_162() { Companion_instance_210 = this; this.gx5_1 = 'ConversationList'; this.hx5_1 = 'ConversationListHome'; this.ix5_1 = listOf(['ConversationList', 'ConversationListHome']); } var Companion_instance_210; function Companion_getInstance_179() { if (Companion_instance_210 == null) new Companion_162(); return Companion_instance_210; } function ConversationListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.wpm().f7f().hf7(toQueryLikeParam(this$0.gpm_1.t2().sp5_1.hp5_1), this$0.upm()); }; } function ConversationListViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.spv(); 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.jx6_1 = ConversationListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_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.apn().tno(get_dayStringResource(element)); result.s(element, tmp$ret$0); } var tmp1_conversations = this.jx6_1; var nextValue = prevValue.px6(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.gpm_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.conversationlist.ConversationListViewModel.' call var tmp0_searchState = this.gpw(); var tmp1_title = this.opw(strings_getInstance().qmt_1, strings_getInstance().nmw_1); var tmp_0 = this.apn().tno(strings_getInstance().rmt_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.ap6(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).rpv = function (searchText) { this.zpu_1.i1h(new RefreshCommand()); }; protoOf(ConversationListViewModel).spv = function () { Companion_getInstance_190(); var tmp = to('goToOnPersonSelected', 'MessageList'); Companion_getInstance_108(); var tmp_0 = to('listMode', ListViewMode_PICKER_getInstance().bpj_1); Companion_getInstance_190(); var tmp_1 = to('excludeAlreadySelectedList', this.upm().toString()); Companion_getInstance_190(); this.epm_1.hob('People', mapOf([tmp, tmp_0, tmp_1, to('popUpToOnPersonSelected', 'People')])); }; protoOf(ConversationListViewModel).qx6 = function (entry) { Companion_getInstance_108(); var tmp0_safe_receiver = entry.df9_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s95_1; this.epm_1.hob('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.ilp(), Companion_getInstance_9().hlt()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.kx6_1 = conversations; this.lx6_1 = sortOptions; this.mx6_1 = showAddItem; this.nx6_1 = localDateTimeNow; this.ox6_1 = dayOfWeekStrings; } protoOf(ConversationListUiState).rx6 = function (conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings) { return new ConversationListUiState(conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings); }; protoOf(ConversationListUiState).px6 = function (conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings, $super) { conversations = conversations === VOID ? this.kx6_1 : conversations; sortOptions = sortOptions === VOID ? this.lx6_1 : sortOptions; showAddItem = showAddItem === VOID ? this.mx6_1 : showAddItem; localDateTimeNow = localDateTimeNow === VOID ? this.nx6_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.ox6_1 : dayOfWeekStrings; return $super === VOID ? this.rx6(conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings) : $super.rx6.call(this, conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings); }; protoOf(ConversationListUiState).toString = function () { return 'ConversationListUiState(conversations=' + this.kx6_1 + ', sortOptions=' + this.lx6_1 + ', showAddItem=' + this.mx6_1 + ', localDateTimeNow=' + this.nx6_1 + ', dayOfWeekStrings=' + this.ox6_1 + ')'; }; protoOf(ConversationListUiState).hashCode = function () { var result = hashCode(this.kx6_1); result = imul(result, 31) + hashCode(this.lx6_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.mx6_1) | 0; result = imul(result, 31) + this.nx6_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.ox6_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.kx6_1, tmp0_other_with_cast.kx6_1)) return false; if (!equals(this.lx6_1, tmp0_other_with_cast.lx6_1)) return false; if (!(this.mx6_1 === tmp0_other_with_cast.mx6_1)) return false; if (!this.nx6_1.equals(tmp0_other_with_cast.nx6_1)) return false; if (!equals(this.ox6_1, tmp0_other_with_cast.ox6_1)) return false; return true; }; function MessageListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.ax7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$slambda$slambda$slambda).mns = function (it, $completion) { var tmp = this.nns(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.mns((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.ax7_1.gpm_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.bx7_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xfs_1; var tmp_0 = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp2_safe_receiver = this.bx7_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.yfs_1; var nextValue = prevValue.ap6(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).nns = function (it, completion) { var i = new MessageListViewModel$slambda$slambda$slambda(this.ax7_1, completion); i.bx7_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.mns(it, $completion); }; l.$arity = 1; return l; } function MessageListViewModel$slambda$slambda(this$0, resultContinuation) { this.kx7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(MessageListViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.kx7_1.wpm().n7d().ffp(this.kx7_1.lx8_1); var tmp_1 = MessageListViewModel$slambda$slambda$slambda_0(this.kx7_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_31(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(MessageListViewModel$slambda$slambda).l78 = function (completion) { return new MessageListViewModel$slambda$slambda(this.kx7_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.z86($completion); }; l.$arity = 0; return l; } function _get_ustadAccountManager__el9prc_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.mx8_1; ustadAccountManager$factory_2(); return this_0.t2(); } function _get_showSocialWarningUseCase__ft8jc6_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nx8_1; showSocialWarningUseCase$factory_2(); return this_0.t2(); } function _get_dismissSocialWarningUseCase__st8mv5_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ox8_1; dismissSocialWarningUseCase$factory_2(); return this_0.t2(); } function _get_openExternalLinkUseCase__ku5z07_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.px8_1; openExternalLinkUseCase$factory_4(); return this_0.t2(); } function Companion_163() { this.rx8_1 = 'MessageList'; } var Companion_instance_211; function Companion_getInstance_180() { return Companion_instance_211; } function sam$kotlinx_coroutines_flow_FlowCollector$0_31(function_0) { this.sx8_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_31).t1d = function (value, $completion) { return this.sx8_1(value, $completion); }; function MessageListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.wpm().f7f().gf7(this$0.upm(), this$0.lx8_1); }; } function MessageListViewModel$slambda(this$0, resultContinuation) { this.bx9_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.bx9_1.xpu_1, MessageListViewModel$slambda$slambda_0(this.bx9_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.bx9_1, completion); i.cx9_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.lx9_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.lx9_1).mo6(toString_0(_get_ustadAccountManager__el9prc_0(this.lx9_1).tnf().zn2_1.t95_1)); l$ret$1: do { var this_0 = this.lx9_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.tx9(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.lx9_1, completion); i.mx9_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.cxa_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.cxa_1.wpm().f7f(); var tmp0_messageSenderPersonUid = this.cxa_1.upm(); var this_0 = this.cxa_1.xpu_1.t2().px9_1; var tmp1_messageText = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); var tmp2_messageToPersonUid = this.cxa_1.lx8_1; var tmp3_messageTimestamp = systemTimeInMillis(); suspendResult = tmp_0.if7(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.cxa_1.xpu_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.tx9(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.cxa_1, completion); i.dxa_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.lx8_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.mx8_1 = Instance(di, tmp$ret$0, null).a5d(this, ustadAccountManager$factory_1()); var tmp_2 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(ShowSocialWarningUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); tmp_2.nx8_1 = Instance(di, tmp$ret$2, null).a5d(this, showSocialWarningUseCase$factory_1()); var tmp_4 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(DismissSocialWarningUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); tmp_4.ox8_1 = Instance(di, tmp$ret$4, null).a5d(this, dismissSocialWarningUseCase$factory_1()); var tmp_6 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(OpenExternalLinkUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); tmp_6.px8_1 = Instance(di, tmp$ret$6, null).a5d(this, openExternalLinkUseCase$factory_3()); var tmp_8 = this; tmp_8.qx8_1 = MessageListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.messagelist.MessageListViewModel.' call var nextValue = prevValue.ap6(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.xpu_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.apn().tno(get_dayStringResource(element)); result.s(element, tmp$ret$10); } var tmp1_messages = this.qx8_1; var tmp2_activePersonUid = this.upm(); var tmp3_showSocialWarning = _get_showSocialWarningUseCase__ft8jc6_0(this).koe(toString_0(_get_ustadAccountManager__el9prc_0(this).tnf().zn2_1.t95_1)); var nextValue_0 = prevValue_0.tx9(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.tpm(); launch(tmp_9, VOID, VOID, MessageListViewModel$slambda_0(this, null)); } protoOf(MessageListViewModel).msj = function () { var tmp = this.tpm(); launch(tmp, VOID, VOID, MessageListViewModel$onWarningDismiss$slambda_0(this, null)); }; protoOf(MessageListViewModel).rpv = function (searchText) { // Inline function 'kotlin.TODO' call var reason = 'Not yet implemented'; throw new NotImplementedError('An operation is not implemented: ' + reason); }; protoOf(MessageListViewModel).spv = function () { }; protoOf(MessageListViewModel).exa = function (text) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.messagelist.MessageListViewModel.onChangeNewMessageText.' call var nextValue = prevValue.tx9(VOID, VOID, text); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(MessageListViewModel).fxa = function () { var tmp = this.tpm(); 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.ilp(), Companion_getInstance_9().hlt()) : localDateTimeNow; showSocialWarning = showSocialWarning === VOID ? true : showSocialWarning; this.nx9_1 = messages; this.ox9_1 = activePersonUid; this.px9_1 = newMessageText; this.qx9_1 = dayOfWeekStrings; this.rx9_1 = localDateTimeNow; this.sx9_1 = showSocialWarning; } protoOf(MessageListUiState).gxa = function (messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning) { return new MessageListUiState(messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning); }; protoOf(MessageListUiState).tx9 = function (messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning, $super) { messages = messages === VOID ? this.nx9_1 : messages; activePersonUid = activePersonUid === VOID ? this.ox9_1 : activePersonUid; newMessageText = newMessageText === VOID ? this.px9_1 : newMessageText; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.qx9_1 : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? this.rx9_1 : localDateTimeNow; showSocialWarning = showSocialWarning === VOID ? this.sx9_1 : showSocialWarning; return $super === VOID ? this.gxa(messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning) : $super.gxa.call(this, messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning); }; protoOf(MessageListUiState).toString = function () { return 'MessageListUiState(messages=' + this.nx9_1 + ', activePersonUid=' + this.ox9_1.toString() + ', newMessageText=' + this.px9_1 + ', dayOfWeekStrings=' + this.qx9_1 + ', localDateTimeNow=' + this.rx9_1 + ', showSocialWarning=' + this.sx9_1 + ')'; }; protoOf(MessageListUiState).hashCode = function () { var result = hashCode(this.nx9_1); result = imul(result, 31) + this.ox9_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.px9_1) | 0; result = imul(result, 31) + hashCode(this.qx9_1) | 0; result = imul(result, 31) + this.rx9_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.sx9_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.nx9_1, tmp0_other_with_cast.nx9_1)) return false; if (!this.ox9_1.equals(tmp0_other_with_cast.ox9_1)) return false; if (!(this.px9_1 === tmp0_other_with_cast.px9_1)) return false; if (!equals(this.qx9_1, tmp0_other_with_cast.qx9_1)) return false; if (!this.rx9_1.equals(tmp0_other_with_cast.rx9_1)) return false; if (!(this.sx9_1 === tmp0_other_with_cast.sx9_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.hxa_1 = title; this.ixa_1 = langCode; } protoOf(TitleAndLangCode).toString = function () { return 'TitleAndLangCode(title=' + this.hxa_1 + ', langCode=' + this.ixa_1 + ')'; }; protoOf(TitleAndLangCode).hashCode = function () { var result = getStringHashCode(this.hxa_1); result = imul(result, 31) + getStringHashCode(this.ixa_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.hxa_1 === tmp0_other_with_cast.hxa_1)) return false; if (!(this.ixa_1 === tmp0_other_with_cast.ixa_1)) return false; return true; }; function _get_statementRecorder__l4o9jw($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wx0_1; statementRecorder$factory(); return this_0.t2(); } function AbstractNonInteractiveContentViewModel$statementRecorder$delegate$lambda$lambda(this$0) { return function () { var titleAndLangCodeVal = this$0.swz(); var tmp = this$0.vx0_1.zjd_1; var tmp_0; if (!(titleAndLangCodeVal == null)) { tmp_0 = mapOf_0(to(titleAndLangCodeVal.ixa_1, titleAndLangCodeVal.hxa_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.spn(this$0.ux0_1); var tmp_0 = this$0.tpm(); return this$0.tx0_1.bp3(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(onActiveEndpoint(di)).f58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(NonInteractiveContentXapiStatementRecorderFactory), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp.tx0_1 = tmp_0.d58(tmp$ret$0, null); var tmp_2 = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('entryid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_2.ux0_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.vx0_1 = this.spn(this.ux0_1); var tmp_3 = this; tmp_3.wx0_1 = lazy_0(AbstractNonInteractiveContentViewModel$statementRecorder$delegate$lambda(this)); } protoOf(AbstractNonInteractiveContentViewModel).up2 = function (oneCompletionStatementOnly) { _get_statementRecorder__l4o9jw(this).up2(oneCompletionStatementOnly); }; protoOf(AbstractNonInteractiveContentViewModel).xx0 = function (oneCompletionStatementOnly, $super) { oneCompletionStatementOnly = oneCompletionStatementOnly === VOID ? false : oneCompletionStatementOnly; var tmp; if ($super === VOID) { this.up2(oneCompletionStatementOnly); tmp = Unit_instance; } else { tmp = $super.up2.call(this, oneCompletionStatementOnly); } return tmp; }; protoOf(AbstractNonInteractiveContentViewModel).tp2 = function (progress) { _get_statementRecorder__l4o9jw(this).tp2(progress); }; protoOf(AbstractNonInteractiveContentViewModel).gp2 = function (active) { _get_statementRecorder__l4o9jw(this).gp2(active); }; protoOf(AbstractNonInteractiveContentViewModel).elj = function () { _get_statementRecorder__l4o9jw(this).elj(); protoOf(UstadViewModel).elj.call(this); }; protoOf(AbstractNonInteractiveContentViewModel).wp2 = function () { _get_statementRecorder__l4o9jw(this).wp2(); }; 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.rxa_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda).txa = function (db, $completion) { var tmp = this.vn7(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.txa(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.sxa_1.x7e().igc(this.rxa_1.ips_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.zgc_1; var tmp_2; if (tmp0_safe_receiver_0 == null) { tmp_2 = null; } else { tmp_2 = !(!tmp0_safe_receiver_0.cfs_1.equals(new Long(0, 0)) ? !tmp0_safe_receiver_0.cfs_1.equals(this.rxa_1.upm()) : 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).vn7 = function (db, completion) { var i = new ParentalConsentManagementViewModel$lambda$slambda$slambda(this.rxa_1, completion); i.sxa_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.txa(db, $completion); }; l.$arity = 1; return l; } function ParentalConsentManagementViewModel$lambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).cxb = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).m78 = function ($completion) { return this.cxb($completion); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).l78 = function (completion) { return new ParentalConsentManagementViewModel$lambda$slambda$slambda_1(completion); }; function ParentalConsentManagementViewModel$lambda$slambda$slambda_2(resultContinuation) { var i = new ParentalConsentManagementViewModel$lambda$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.cxb($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.axc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel....' call var nextValue = prevValue.ixc(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.cxc_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.axc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.updateStatus.' call var tmp1_safe_receiver = prevValue.dxc_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.dxc_1.zgc_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.wk5(tmp_0); } var nextValue = prevValue.ixc(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.dxc_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.zgc_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.tpm(); launch(tmp_1, VOID, VOID, ParentalConsentManagementViewModel$updateStatus$slambda_0($this, tmp1_safe_receiver_0, null)); } $this.ypm().pp6(new Snack($this.apn().tno(strings_getInstance().wmq_1))); } function Companion_164() { this.jxc_1 = 'ParentalConsentManagement'; } var Companion_instance_212; function Companion_getInstance_181() { return Companion_instance_212; } function ParentalConsentManagementViewModel$lambda$slambda(this$0, resultContinuation) { this.sxc_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_45.n4r(); var tmp_1 = ParentalConsentManagementViewModel$lambda$slambda$slambda_0(this.sxc_1, null); var tmp_2 = ParentalConsentManagementViewModel$lambda$slambda$slambda_2(null); suspendResult = this.sxc_1.kpn(tmp_0, VOID, VOID, tmp_1, tmp_2, ParentalConsentManagementViewModel$lambda$slambda$lambda(this.sxc_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.sxc_1.axc_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ixc(VOID, VOID, VOID, !(prevValue.dxc_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.sxc_1, completion); i.txc_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.cxd_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.exd_1 = this.cxd_1.wpm().w7e(); this.hd_1 = 1; suspendResult = _get_getLocaleForSiteTermsUseCase__hxw5id(this.cxd_1).pom(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.fxd_1 = suspendResult; this.hd_1 = 2; suspendResult = this.exd_1.oh6(this.fxd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var terms = suspendResult; l$ret$1: do { var this_0 = this.cxd_1.axc_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ixc(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.cxd_1, completion); i.dxd_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.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel..' call var nextValue = prevValue.ap6(VOID, VOID, this$0.apn().tno(strings_getInstance().nmm_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this$0.tpm(); launch(tmp, VOID, VOID, ParentalConsentManagementViewModel$lambda$slambda_0(this$0, null)); var tmp_0 = this$0.tpm(); 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.ifs_1 = $status; $this$shallowCopy.cfs_1 = this$0.upm(); $this$shallowCopy.jfs_1 = systemTimeInMillis(); return Unit_instance; }; } function ParentalConsentManagementViewModel$updateStatus$slambda(this$0, $personParentJoin, resultContinuation) { this.oxd_1 = this$0; this.pxd_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.oxd_1.wpm().x7e().jgc(this.pxd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.oxd_1, this.pxd_1, completion); i.qxd_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.axc_1 = MutableStateFlow(new ParentalConsentManagementUiState()); this.bxc_1 = asStateFlow(this.axc_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.spm().mng(); var trigger = this.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_0 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.h57(tmp$ret$0, context); var this_0 = On(this, tmp$ret$1, trigger); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(GetLocaleForSiteTermsUseCase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp.cxc_1 = Instance(this_0, tmp$ret$3, null).a5d(this, getLocaleForSiteTermsUseCase$factory()); Companion_getInstance_118(); var tmp_3 = mapOf_0(to('entityUid', this.ips_1.toString())); this.ppn(true, tmp_3, ParentalConsentManagementViewModel$lambda(this)); } protoOf(ParentalConsentManagementViewModel).rxd = function (personParentJoin) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.axc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.dxc_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wk5(personParentJoin); var tmp1_safe_receiver = prevValue.dxc_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.zgc_1; var tmp_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.efs_1; var nextValue = prevValue.ixc(tmp, this.npt(tmp_0, personParentJoin == null ? null : personParentJoin.efs_1, prevValue.exc_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ParentalConsentManagementViewModel).sxd = function () { var tmp0_safe_receiver = this.axc_1.t2().dxc_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zgc_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.efs_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.axc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.onClickConsent.' call var nextValue = prevValue.ixc(VOID, this.apn().tno(strings_getInstance().dlz_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } updateStatus(this, 1); }; protoOf(ParentalConsentManagementViewModel).txd = function () { updateStatus(this, 2); }; protoOf(ParentalConsentManagementViewModel).uxd = function () { var tmp0_safe_receiver = this.axc_1.t2().dxc_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zgc_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ifs_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.dxc_1 = parentJoinAndMinor; this.exc_1 = relationshipError; this.fxc_1 = siteTerms; this.gxc_1 = fieldsEnabled; this.hxc_1 = appName; } protoOf(ParentalConsentManagementUiState).vxd = function () { var tmp0_safe_receiver = this.dxc_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zgc_1; return equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.cfs_1, new Long(0, 0)); }; protoOf(ParentalConsentManagementUiState).wxd = function () { var tmp0_safe_receiver = this.dxc_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zgc_1; return equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.cfs_1, new Long(0, 0)); }; protoOf(ParentalConsentManagementUiState).xxd = function () { var tmp0_safe_receiver = this.dxc_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zgc_1; return equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.cfs_1, new Long(0, 0)); }; protoOf(ParentalConsentManagementUiState).yxd = function () { // Inline function 'kotlin.let' call var tmp0_safe_receiver = this.dxc_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zgc_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.cfs_1; return !(it == null) ? !equals(it, new Long(0, 0)) : false; }; protoOf(ParentalConsentManagementUiState).zxd = function () { // Inline function 'kotlin.let' call var tmp0_safe_receiver = this.dxc_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zgc_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.ifs_1; return !(it == null) ? !(it === 0) : false; }; protoOf(ParentalConsentManagementUiState).axe = function () { var tmp0_safe_receiver = this.dxc_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zgc_1; var tmp2_subject = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ifs_1; var tmp; if (tmp2_subject === 1) { tmp = strings_getInstance().kmm_1; } else { if (tmp2_subject === 2) { tmp = strings_getInstance().lmm_1; } else { tmp = null; } } return tmp; }; protoOf(ParentalConsentManagementUiState).bxe = function () { var tmp0_safe_receiver = this.dxc_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zgc_1; var tmp2_subject = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ifs_1; var tmp; if (tmp2_subject === 1) { tmp = strings_getInstance().imm_1; } else { if (tmp2_subject === 2) { tmp = strings_getInstance().jmm_1; } else { tmp = null; } } return tmp; }; protoOf(ParentalConsentManagementUiState).cxe = function (parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName) { return new ParentalConsentManagementUiState(parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName); }; protoOf(ParentalConsentManagementUiState).ixc = function (parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName, $super) { parentJoinAndMinor = parentJoinAndMinor === VOID ? this.dxc_1 : parentJoinAndMinor; relationshipError = relationshipError === VOID ? this.exc_1 : relationshipError; siteTerms = siteTerms === VOID ? this.fxc_1 : siteTerms; fieldsEnabled = fieldsEnabled === VOID ? this.gxc_1 : fieldsEnabled; appName = appName === VOID ? this.hxc_1 : appName; return $super === VOID ? this.cxe(parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName) : $super.cxe.call(this, parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName); }; protoOf(ParentalConsentManagementUiState).toString = function () { return 'ParentalConsentManagementUiState(parentJoinAndMinor=' + this.dxc_1 + ', relationshipError=' + this.exc_1 + ', siteTerms=' + this.fxc_1 + ', fieldsEnabled=' + this.gxc_1 + ', appName=' + this.hxc_1 + ')'; }; protoOf(ParentalConsentManagementUiState).hashCode = function () { var result = this.dxc_1 == null ? 0 : this.dxc_1.hashCode(); result = imul(result, 31) + (this.exc_1 == null ? 0 : getStringHashCode(this.exc_1)) | 0; result = imul(result, 31) + (this.fxc_1 == null ? 0 : hashCode(this.fxc_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.gxc_1) | 0; result = imul(result, 31) + getStringHashCode(this.hxc_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.dxc_1, tmp0_other_with_cast.dxc_1)) return false; if (!(this.exc_1 == tmp0_other_with_cast.exc_1)) return false; if (!equals(this.fxc_1, tmp0_other_with_cast.fxc_1)) return false; if (!(this.gxc_1 === tmp0_other_with_cast.gxc_1)) return false; if (!(this.hxc_1 === tmp0_other_with_cast.hxc_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.fxf_1; httpClient$factory_10(); return this_0.t2(); } function Companion_165() { this.gxf_1 = 'PdfContent'; } var Companion_instance_213; function Companion_getInstance_182() { return Companion_instance_213; } function PdfContentViewModel$slambda(this$0, resultContinuation) { this.pxf_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.pxf_1.wpm().i7f().lbc(this.pxf_1.cxf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.rxf_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.rxf_1 == null) { return Unit_instance; } else { tmp_1 = this.rxf_1; } tmp_0.sxf_1 = tmp_1; this.txf_1 = ensureNotNull(this.sxf_1.vaj_1); var tmp_2 = this; tmp_2.uxf_1 = this.pxf_1.m4r(); var tmp_3 = this; tmp_3.vxf_1 = _get_httpClient__2ty1zc_4(this.pxf_1); var tmp_4 = this; tmp_4.wxf_1 = this.txf_1; var tmp_5 = this; tmp_5.xxf_1 = this.vxf_1; var tmp_6 = this; tmp_6.yxf_1 = this.xxf_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.wxf_1); tmp_7.zxf_1 = this_0; this.zxf_1.w38_1 = Companion_getInstance().l2x_1; var tmp_8 = this; tmp_8.axg_1 = this.yxf_1; var tmp_9 = this; tmp_9.bxg_1 = this.zxf_1; this.hd_1 = 2; suspendResult = (new HttpStatement(this.bxg_1, this.axg_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.cxg_1 = suspendResult; this.hd_1 = 3; suspendResult = bodyAsDecodedText(this.cxg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.dxg_1 = suspendResult; var tmp_10 = this; var this_1 = this.uxf_1.t45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_10.exg_1 = this.uxf_1.s45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.dxg_1); var tmp_11 = this; var tmp1_elvis_lhs = this.sxf_1.taj_1; var tmp_12; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_12 = tmp1_elvis_lhs; } tmp_11.fxg_1 = tmp_12; this.gxg_1 = UrlKmp(this.txf_1).do7(this.fxg_1).toString(); this.hxg_1 = bodyDataUrlForUri(this.exg_1, this.fxg_1); l$ret$1: do { var this_3 = this.pxf_1.dxf_1; while (true) { var prevValue = this_3.t2(); var nextValue = prevValue.lxg(this.gxg_1, this.hxg_1); if (this_3.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 4; suspendResult = this.pxf_1.wpm().v7d().xag(this.sxf_1.saj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var contentEntry = suspendResult; l$ret$3: do { var this_4 = this.pxf_1.gpm_1; while (true) { var prevValue_0 = this_4.t2(); var tmp1_elvis_lhs_0 = contentEntry == null ? null : contentEntry.uah_1; var nextValue_0 = prevValue_0.ap6(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.pxf_1, completion); i.qxf_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.cxf_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.dxf_1 = MutableStateFlow(new PdfContentUiState()); this.exf_1 = asStateFlow(this.dxf_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.fxf_1 = Instance(di, tmp$ret$0, null).a5d(this, httpClient$factory_9()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.pdfcontent.PdfContentViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.tpm(); launch(tmp_2, VOID, VOID, PdfContentViewModel$slambda_0(this, null)); } protoOf(PdfContentViewModel).swz = function () { var tmp0_safe_receiver = this.dxf_1.t2().kxg_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.uah_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.ixg_1 = pdfUrl; this.jxg_1 = dataUrl; this.kxg_1 = contentEntry; } protoOf(PdfContentUiState).mxg = function (pdfUrl, dataUrl, contentEntry) { return new PdfContentUiState(pdfUrl, dataUrl, contentEntry); }; protoOf(PdfContentUiState).lxg = function (pdfUrl, dataUrl, contentEntry, $super) { pdfUrl = pdfUrl === VOID ? this.ixg_1 : pdfUrl; dataUrl = dataUrl === VOID ? this.jxg_1 : dataUrl; contentEntry = contentEntry === VOID ? this.kxg_1 : contentEntry; return $super === VOID ? this.mxg(pdfUrl, dataUrl, contentEntry) : $super.mxg.call(this, pdfUrl, dataUrl, contentEntry); }; protoOf(PdfContentUiState).toString = function () { return 'PdfContentUiState(pdfUrl=' + this.ixg_1 + ', dataUrl=' + this.jxg_1 + ', contentEntry=' + this.kxg_1 + ')'; }; protoOf(PdfContentUiState).hashCode = function () { var result = this.ixg_1 == null ? 0 : getStringHashCode(this.ixg_1); result = imul(result, 31) + (this.jxg_1 == null ? 0 : getStringHashCode(this.jxg_1)) | 0; result = imul(result, 31) + (this.kxg_1 == null ? 0 : this.kxg_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.ixg_1 == tmp0_other_with_cast.ixg_1)) return false; if (!(this.jxg_1 == tmp0_other_with_cast.jxg_1)) return false; if (!equals(this.kxg_1, tmp0_other_with_cast.kxg_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.nxg_1 = 'goToOnPersonSelected'; this.oxg_1 = 'popUpToOnPersonSelected'; } var PersonViewModelConstants_instance; function PersonViewModelConstants_getInstance() { return PersonViewModelConstants_instance; } function PersonAccountEditViewModel$slambda$slambda(this$0, resultContinuation) { this.xxg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda$slambda).axh = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.axh(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.yxg_1.n7d().bfp(this.xxg_1.ips_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.zxg_1 = suspendResult; this.hd_1 = 2; var tmp_0 = this.yxg_1.p7f(); var tmp_1 = this.xxg_1.upm(); PermissionFlags_getInstance(); suspendResult = tmp_0.yhe(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.zxg_1 == null) { tmp_2 = null; } else { var tmp_3 = this.zxg_1.t95_1 == null ? 1 : hasResetPermission ? 2 : 3; var tmp_4 = this.zxg_1.s95_1; var tmp0_elvis_lhs = this.zxg_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).vn7 = function (db, completion) { var i = new PersonAccountEditViewModel$slambda$slambda(this.xxg_1, completion); i.yxg_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.axh(db, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda$slambda_1).jxh = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.jxh($completion); }; protoOf(PersonAccountEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonAccountEditViewModel$slambda$slambda_1).l78 = function (completion) { return new PersonAccountEditViewModel$slambda$slambda_1(completion); }; function PersonAccountEditViewModel$slambda$slambda_2(resultContinuation) { var i = new PersonAccountEditViewModel$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.jxh($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.hxi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.accountedit.PersonAccountEditViewModel...' call var nextValue = prevValue.txi(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonAccountEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function PersonAccountEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation) { this.cxj_1 = this$0; this.dxj_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$onClickSave$slambda$slambda).un7 = function (it, $completion) { var tmp = this.vn7(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.un7(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.cxj_1).gn2(this.cxj_1.ips_1, this.dxj_1.jxj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.cxj_1.wpm().n7d().hfp(this.cxj_1.ips_1, this.dxj_1.hxj_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var numChanges = suspendResult; Napier_getInstance().q5e('Updated username: ' + numChanges + ' changes'); return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonAccountEditViewModel$onClickSave$slambda$slambda).vn7 = function (it, completion) { var i = new PersonAccountEditViewModel$onClickSave$slambda$slambda(this.cxj_1, this.dxj_1, completion); i.exj_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.un7(it, $completion); }; l.$arity = 1; return l; } function _get_authManager__mo6de4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jxi_1; authManager$factory_0(); return this_0.t2(); } function _get_setPasswordUseCase__c0ja9b($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kxi_1; setPasswordUseCase$factory_0(); return this_0.t2(); } function Companion_166() { this.kxj_1 = 'AccountEdit'; this.lxj_1 = 1; this.mxj_1 = 2; this.nxj_1 = 3; } var Companion_instance_214; function Companion_getInstance_183() { return Companion_instance_214; } function PersonAccountEditViewModel$slambda(this$0, resultContinuation) { this.wxj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda).gr6 = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$slambda).he = function (p1, $completion) { return this.gr6(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.wxj_1.ips_1.equals(this.wxj_1.upm())) { var tmp_0 = this; tmp_0.yxj_1 = true; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_1 = this.xxj_1.p7f(); var tmp_2 = this.wxj_1.upm(); PermissionFlags_getInstance(); suspendResult = tmp_1.yhe(tmp_2, new Long(32768, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.yxj_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.yxj_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).vn7 = function (db, completion) { var i = new PersonAccountEditViewModel$slambda(this.wxj_1, completion); i.xxj_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.gr6(db, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$slambda_1(this$0, resultContinuation) { this.hxk_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_215.n4r(); var tmp_1 = PersonAccountEditViewModel$slambda$slambda_0(this.hxk_1, null); var tmp_2 = PersonAccountEditViewModel$slambda$slambda_2(null); suspendResult = this.hxk_1.kpn(tmp_0, VOID, VOID, tmp_1, tmp_2, PersonAccountEditViewModel$slambda$lambda(this.hxk_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.hxk_1.gpm_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.hxk_1.apn().tno(strings_getInstance().eme_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_3, VOID, PersonAccountEditViewModel$onClickSave$ref(this.hxk_1)); var tmp1_loadingState = Companion_getInstance_91().ip6_1; var nextValue = prevValue.ap6(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.hxk_1.hxi_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.txi(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.hxk_1, completion); i.ixk_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.rxk_1 = $commitDelay; this.sxk_1 = $entity; this.txk_1 = $this; this.uxk_1 = $key; this.vxk_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.rxk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.sxk_1 == null)) { this.hd_1 = 2; suspendResult = this.txk_1.gpn(this.txk_1.cpm_1, this.uxk_1, this.vxk_1, this.sxk_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.rxk_1, this.sxk_1, this.txk_1, this.uxk_1, this.vxk_1, completion); i.wxk_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.fxl_1 = $entity; this.gxl_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.fxl_1.fxj_1 === 1) { var validationResult = this.gxl_1.lxi_1.koe(this.fxl_1.hxj_1); this.gxl_1.cpn(Companion_getInstance_91().ip6_1); if (!validationResult.equals(Companion_getInstance_68().zon_1)) { l$ret$1: do { var this_0 = this.gxl_1.hxi_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = validationResult.eoo_1; var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { tmp_0 = this.gxl_1.apn().tno(tmp0_safe_receiver); } var tmp1_usernameError = tmp_0; var nextValue = prevValue.txi(VOID, tmp1_usernameError, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } } if (isBlank(this.fxl_1.jxj_1)) { l$ret$3: do { var this_1 = this.gxl_1.hxi_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.txi(VOID, VOID, VOID, this.gxl_1.apn().tno(strings_getInstance().dlz_1)); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } if (this.fxl_1.fxj_1 === 3 ? isBlank(this.fxl_1.ixj_1) : false) if (this.gxl_1.hxi_1.t2().vss()) { this.gxl_1.cpn(Companion_getInstance_91().ip6_1); l$ret$5: do { var this_2 = this.gxl_1.hxi_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.txi(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.fxl_1.fxj_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.gxl_1).snn(this.gxl_1.upm(), this.fxl_1.gxj_1, this.fxl_1.hxj_1, this.fxl_1.jxj_1, this.fxl_1.fxj_1 === 3 ? this.fxl_1.ixj_1 : null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.gxl_1.ypm().pp6(new Snack(this.gxl_1.apn().tno(strings_getInstance().kmx_1))); var tmp_1 = this; this.gxl_1.lps(null); tmp_1.jxl_1 = Unit_instance; this.id_1 = 14; this.hd_1 = 5; continue $sm; case 3: this.id_1 = 4; var tmp_2 = this.kd_1; if (tmp_2 instanceof Exception) { this.kxl_1 = this.kd_1; var tmp_3 = this; var tmp_4; var tmp_5 = this.kxl_1; if (tmp_5 instanceof UnauthorizedException) { l$ret$19: do { var this_3 = this.gxl_1.hxi_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.txi(VOID, VOID, this.gxl_1.apn().tno(strings_getInstance().hlu_1)); if (this_3.y1k(prevValue_2, nextValue_2)) { break l$ret$19; } } } while (false); tmp_4 = Unit_instance; } else { l$ret$21: do { var this_4 = this.gxl_1.hxi_1; while (true) { var prevValue_3 = this_4.t2(); var nextValue_3 = prevValue_3.txi(VOID, VOID, VOID, VOID, this.kxl_1.message); if (this_4.y1k(prevValue_3, nextValue_3)) { break l$ret$21; } } } while (false); tmp_4 = Unit_instance; } tmp_3.jxl_1 = tmp_4; this.id_1 = 14; this.hd_1 = 5; continue $sm; } else { throw this.kd_1; } case 4: this.id_1 = 14; this.lxl_1 = this.kd_1; this.gxl_1.cpn(Companion_getInstance_91().ip6_1); l$ret$23: do { var this_5 = this.gxl_1.hxi_1; while (true) { var prevValue_4 = this_5.t2(); var nextValue_4 = prevValue_4.txi(VOID, VOID, VOID, VOID, VOID, true); if (this_5.y1k(prevValue_4, nextValue_4)) { break l$ret$23; } } } while (false); throw this.lxl_1; case 5: this.id_1 = 14; this.gxl_1.cpn(Companion_getInstance_91().ip6_1); l$ret$25: do { var this_6 = this.gxl_1.hxi_1; while (true) { var prevValue_5 = this_6.t2(); var nextValue_5 = prevValue_5.txi(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.gxl_1.wpm().n7d().zfo(this.fxl_1.hxj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.mxl_1 = suspendResult; if (this.mxl_1 === 0) { this.hd_1 = 8; var tmp_6 = this.gxl_1.wpm(); suspendResult = withDoorTransactionAsync(tmp_6, VOID, PersonAccountEditViewModel$onClickSave$slambda$slambda_0(this.gxl_1, this.fxl_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { l$ret$7: do { var this_7 = this.gxl_1.hxi_1; while (true) { var prevValue_6 = this_7.t2(); var nextValue_6 = prevValue_6.txi(VOID, this.gxl_1.apn().tno(strings_getInstance().vmi_1)); if (this_7.y1k(prevValue_6, nextValue_6)) { break l$ret$7; } } } while (false); this.hd_1 = 9; continue $sm; } case 8: this.gxl_1.lps(null); this.hd_1 = 9; continue $sm; case 9: this.ixl_1 = Unit_instance; this.id_1 = 14; this.hd_1 = 12; continue $sm; case 10: this.id_1 = 11; var tmp_7 = this.kd_1; if (tmp_7 instanceof Exception) { var e = this.kd_1; var tmp_8 = this; l$ret$11: do { var this_8 = this.gxl_1.hxi_1; while (true) { var prevValue_7 = this_8.t2(); var nextValue_7 = prevValue_7.txi(VOID, this.gxl_1.apn().tno(strings_getInstance().ilu_1)); if (this_8.y1k(prevValue_7, nextValue_7)) { break l$ret$11; } } } while (false); tmp_8.ixl_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.gxl_1.cpn(Companion_getInstance_91().ip6_1); l$ret$13: do { var this_9 = this.gxl_1.hxi_1; while (true) { var prevValue_8 = this_9.t2(); var nextValue_8 = prevValue_8.txi(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.gxl_1.cpn(Companion_getInstance_91().ip6_1); l$ret$15: do { var this_10 = this.gxl_1.hxi_1; while (true) { var prevValue_9 = this_10.t2(); var nextValue_9 = prevValue_9.txi(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.fxl_1, this.gxl_1, completion); i.hxl_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.hxi_1 = MutableStateFlow(new PersonAccountEditUiState()); this.ixi_1 = asStateFlow(this.hxi_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.spm().mng(); var trigger = this.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_0 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.h57(tmp$ret$0, context); var this_0 = On(this, tmp$ret$1, trigger); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(AuthManager), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp.jxi_1 = Instance(this_0, tmp$ret$3, null).a5d(this, authManager$factory()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_0 = this.spm().mng(); var trigger_0 = this.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_4 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$5 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); var tmp$ret$6 = tmp_4.h57(tmp$ret$5, context_0); var this_1 = On(this, tmp$ret$6, trigger_0); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(SetPasswordUseCase), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_3.kxi_1 = Instance(this_1, tmp$ret$8, null).a5d(this, setPasswordUseCase$factory()); this.lxi_1 = new ValidateUsernameUseCase(); this.mxi_1 = new FilterUsernameUseCase(); this.gpm_1.x1k(new AppUiState(VOID, Companion_getInstance_91().hp6_1)); var tmp_7 = PersonAccountEditViewModel$slambda_0(this, null); this.mpn(tmp_7, VOID, VOID, PersonAccountEditViewModel$slambda_2(this, null)); } protoOf(PersonAccountEditViewModel).nxl = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hxi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.accountedit.PersonAccountEditViewModel.onEntityChanged.' call var tmp; var tmp_0 = entity == null ? null : entity.hxj_1; var tmp1_safe_receiver = this.hxi_1.t2().nxi_1; if (!(tmp_0 == (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.hxj_1))) { tmp = entity == null ? null : entity.oxl(VOID, VOID, this.mxi_1.boi(entity.hxj_1, '')); } else { tmp = entity; } var tmp_1 = tmp; var tmp_2; var tmp_3; if (!(prevValue.oxi_1 == null)) { var tmp3_safe_receiver = prevValue.nxi_1; var tmp_4 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.hxj_1; tmp_3 = tmp_4 == (entity == null ? null : entity.hxj_1); } else { tmp_3 = false; } if (tmp_3) { tmp_2 = prevValue.oxi_1; } else { tmp_2 = null; } var tmp_5 = tmp_2; var tmp_6; var tmp_7; if (!(prevValue.pxi_1 == null)) { var tmp5_safe_receiver = prevValue.nxi_1; var tmp_8 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.ixj_1; tmp_7 = tmp_8 == (entity == null ? null : entity.ixj_1); } else { tmp_7 = false; } if (tmp_7) { tmp_6 = prevValue.pxi_1; } else { tmp_6 = null; } var tmp_9 = tmp_6; var tmp_10; var tmp_11; if (!(prevValue.qxi_1 == null)) { var tmp7_safe_receiver = prevValue.nxi_1; var tmp_12 = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.jxj_1; tmp_11 = tmp_12 == (entity == null ? null : entity.jxj_1); } else { tmp_11 = false; } if (tmp_11) { tmp_10 = prevValue.qxi_1; } else { tmp_10 = null; } var nextValue = prevValue.txi(tmp_1, tmp_5, tmp_9, tmp_10); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_215.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver = this.hps_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp_13 = this; var tmp_14 = this.tpm(); tmp_13.hps_1 = launch(tmp_14, VOID, VOID, PersonAccountEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(PersonAccountEditViewModel).ur3 = function () { if (this.dpn().equals(Companion_getInstance_91().hp6_1)) return Unit_instance; var tmp0_elvis_lhs = this.hxi_1.t2().nxi_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var entity = tmp; this.cpn(Companion_getInstance_91().hp6_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hxi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.accountedit.PersonAccountEditViewModel.onClickSave.' call var nextValue = prevValue.txi(VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.tpm(); 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.nxi_1 = personAccount; this.oxi_1 = usernameError; this.pxi_1 = currentPasswordError; this.qxi_1 = newPasswordError; this.rxi_1 = errorMessage; this.sxi_1 = fieldsEnabled; } protoOf(PersonAccountEditUiState).pxl = function () { var tmp0_safe_receiver = this.nxi_1; return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fxj_1) === 1; }; protoOf(PersonAccountEditUiState).qxl = function () { var tmp0_safe_receiver = this.nxi_1; return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fxj_1) === 3; }; protoOf(PersonAccountEditUiState).vss = function () { return (!(this.oxi_1 == null) ? true : !(this.pxi_1 == null)) ? true : !(this.qxi_1 == null); }; protoOf(PersonAccountEditUiState).rxl = function (personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled) { return new PersonAccountEditUiState(personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled); }; protoOf(PersonAccountEditUiState).txi = function (personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled, $super) { personAccount = personAccount === VOID ? this.nxi_1 : personAccount; usernameError = usernameError === VOID ? this.oxi_1 : usernameError; currentPasswordError = currentPasswordError === VOID ? this.pxi_1 : currentPasswordError; newPasswordError = newPasswordError === VOID ? this.qxi_1 : newPasswordError; errorMessage = errorMessage === VOID ? this.rxi_1 : errorMessage; fieldsEnabled = fieldsEnabled === VOID ? this.sxi_1 : fieldsEnabled; return $super === VOID ? this.rxl(personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled) : $super.rxl.call(this, personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled); }; protoOf(PersonAccountEditUiState).toString = function () { return 'PersonAccountEditUiState(personAccount=' + this.nxi_1 + ', usernameError=' + this.oxi_1 + ', currentPasswordError=' + this.pxi_1 + ', newPasswordError=' + this.qxi_1 + ', errorMessage=' + this.rxi_1 + ', fieldsEnabled=' + this.sxi_1 + ')'; }; protoOf(PersonAccountEditUiState).hashCode = function () { var result = this.nxi_1 == null ? 0 : this.nxi_1.hashCode(); result = imul(result, 31) + (this.oxi_1 == null ? 0 : getStringHashCode(this.oxi_1)) | 0; result = imul(result, 31) + (this.pxi_1 == null ? 0 : getStringHashCode(this.pxi_1)) | 0; result = imul(result, 31) + (this.qxi_1 == null ? 0 : getStringHashCode(this.qxi_1)) | 0; result = imul(result, 31) + (this.rxi_1 == null ? 0 : getStringHashCode(this.rxi_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.sxi_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.nxi_1, tmp0_other_with_cast.nxi_1)) return false; if (!(this.oxi_1 == tmp0_other_with_cast.oxi_1)) return false; if (!(this.pxi_1 == tmp0_other_with_cast.pxi_1)) return false; if (!(this.qxi_1 == tmp0_other_with_cast.qxi_1)) return false; if (!(this.rxi_1 == tmp0_other_with_cast.rxi_1)) return false; if (!(this.sxi_1 === tmp0_other_with_cast.sxi_1)) return false; return true; }; function Companion_167() { } protoOf(Companion_167).n4r = function () { return $serializer_getInstance_69(); }; var Companion_instance_215; function Companion_getInstance_184() { return Companion_instance_215; } function $serializer_57() { $serializer_instance_57 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.person.accountedit.PersonUsernameAndPasswordModel', this, 5); tmp0_serialDesc.t4f('mode', true); tmp0_serialDesc.t4f('personUid', true); tmp0_serialDesc.t4f('username', true); tmp0_serialDesc.t4f('currentPassword', true); tmp0_serialDesc.t4f('newPassword', true); this.sxl_1 = tmp0_serialDesc; } protoOf($serializer_57).q44 = function () { return this.sxl_1; }; protoOf($serializer_57).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_57).s44 = function (decoder) { var tmp0_desc = this.sxl_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_input = decoder.i48(tmp0_desc); if (tmp9_input.x48()) { tmp4_local0 = tmp9_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.s48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.s48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.s48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.s48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.j48(tmp0_desc); return PersonUsernameAndPasswordModel_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_57).txl = function (encoder, value) { var tmp0_desc = this.sxl_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.fxj_1 === 1)) { tmp1_output.r49(tmp0_desc, 0, value.fxj_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.gxj_1.equals(new Long(0, 0))) { tmp1_output.s49(tmp0_desc, 1, value.gxj_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.hxj_1 === '')) { tmp1_output.w49(tmp0_desc, 2, value.hxj_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.ixj_1 === '')) { tmp1_output.w49(tmp0_desc, 3, value.ixj_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.jxj_1 === '')) { tmp1_output.w49(tmp0_desc, 4, value.jxj_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_57).r44 = function (encoder, value) { return this.txl(encoder, value instanceof PersonUsernameAndPasswordModel ? value : THROW_CCE()); }; var $serializer_instance_57; function $serializer_getInstance_69() { if ($serializer_instance_57 == null) new $serializer_57(); return $serializer_instance_57; } function PersonUsernameAndPasswordModel_init_$Init$(seen1, mode, personUid, username, currentPassword, newPassword, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_69().sxl_1); } if (0 === (seen1 & 1)) $this.fxj_1 = 1; else $this.fxj_1 = mode; if (0 === (seen1 & 2)) $this.gxj_1 = new Long(0, 0); else $this.gxj_1 = personUid; if (0 === (seen1 & 4)) $this.hxj_1 = ''; else $this.hxj_1 = username; if (0 === (seen1 & 8)) $this.ixj_1 = ''; else $this.ixj_1 = currentPassword; if (0 === (seen1 & 16)) $this.jxj_1 = ''; else $this.jxj_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.fxj_1 = mode; this.gxj_1 = personUid; this.hxj_1 = username; this.ixj_1 = currentPassword; this.jxj_1 = newPassword; } protoOf(PersonUsernameAndPasswordModel).uxl = function (mode, personUid, username, currentPassword, newPassword) { return new PersonUsernameAndPasswordModel(mode, personUid, username, currentPassword, newPassword); }; protoOf(PersonUsernameAndPasswordModel).oxl = function (mode, personUid, username, currentPassword, newPassword, $super) { mode = mode === VOID ? this.fxj_1 : mode; personUid = personUid === VOID ? this.gxj_1 : personUid; username = username === VOID ? this.hxj_1 : username; currentPassword = currentPassword === VOID ? this.ixj_1 : currentPassword; newPassword = newPassword === VOID ? this.jxj_1 : newPassword; return $super === VOID ? this.uxl(mode, personUid, username, currentPassword, newPassword) : $super.uxl.call(this, mode, personUid, username, currentPassword, newPassword); }; protoOf(PersonUsernameAndPasswordModel).toString = function () { return 'PersonUsernameAndPasswordModel(mode=' + this.fxj_1 + ', personUid=' + this.gxj_1.toString() + ', username=' + this.hxj_1 + ', currentPassword=' + this.ixj_1 + ', newPassword=' + this.jxj_1 + ')'; }; protoOf(PersonUsernameAndPasswordModel).hashCode = function () { var result = this.fxj_1; result = imul(result, 31) + this.gxj_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.hxj_1) | 0; result = imul(result, 31) + getStringHashCode(this.ixj_1) | 0; result = imul(result, 31) + getStringHashCode(this.jxj_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.fxj_1 === tmp0_other_with_cast.fxj_1)) return false; if (!this.gxj_1.equals(tmp0_other_with_cast.gxj_1)) return false; if (!(this.hxj_1 === tmp0_other_with_cast.hxj_1)) return false; if (!(this.ixj_1 === tmp0_other_with_cast.ixj_1)) return false; if (!(this.jxj_1 === tmp0_other_with_cast.jxj_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.qxm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddrunimport.BulkAddPersonRunImportViewModel...' call var nextValue = prevValue.zxm(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.txm_1; bulkAddFromUriUseCase$factory_0(); return this_0.t2(); } function Companion_168() { this.axn_1 = 'BulkAddPersonRunImport'; this.bxn_1 = 'uri'; } var Companion_instance_216; function Companion_getInstance_185() { return Companion_instance_216; } function sam$com_ustadmobile_core_domain_person_bulkadd_BulkAddPersonsUseCase_BulkAddOnProgress$0(function_0) { this.cxn_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_person_bulkadd_BulkAddPersonsUseCase_BulkAddOnProgress$0).dxn = function (numImported, totalRecords) { return this.cxn_1(numImported, totalRecords); }; function BulkAddPersonRunImportViewModel$slambda(this$0, resultContinuation) { this.mxn_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.mxn_1); var tmp_1 = Companion_getInstance_3().o2r(this.mxn_1.sxm_1); var tmp_2 = this.mxn_1.upm(); var tmp_3 = BulkAddPersonRunImportViewModel$slambda$lambda(this.mxn_1); suspendResult = tmp_0.nol(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.mxn_1.qxm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.zxm(false, VOID, result.qol_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_4 = this.kd_1; if (tmp_4 instanceof Error) { var e = this.kd_1; Napier_getInstance().q5e('Exception running import', e); l$ret$3: do { var this_1 = this.mxn_1.qxm_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.hol_1; var nextValue_0 = prevValue_0.zxm(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.mxn_1, completion); i.nxn_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.qxm_1 = MutableStateFlow(new BulkAddPersonRunImportUiState()); this.rxm_1 = asStateFlow(this.qxm_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.sxm_1 = tmp_0; var tmp_1 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveEndpoint(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.txm_1 = Instance(this_0, tmp$ret$0, null).a5d(this, bulkAddFromUriUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.gpm_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddrunimport.BulkAddPersonRunImportViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, this.apn().tno(strings_getInstance().omz_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.tpm(); launch(tmp_3, VOID, VOID, BulkAddPersonRunImportViewModel$slambda_0(this, null)); } function Companion_169() { Companion_instance_217 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.oxn_1 = [null, null, null, new ArrayListSerializer($serializer_getInstance_47()), null]; } var Companion_instance_217; function Companion_getInstance_186() { if (Companion_instance_217 == null) new Companion_169(); return Companion_instance_217; } function $serializer_58() { $serializer_instance_58 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.person.bulkaddrunimport.BulkAddPersonRunImportUiState', this, 5); tmp0_serialDesc.t4f('inProgress', true); tmp0_serialDesc.t4f('totalRecords', true); tmp0_serialDesc.t4f('numImported', true); tmp0_serialDesc.t4f('errors', true); tmp0_serialDesc.t4f('errorMessage', true); this.pxn_1 = tmp0_serialDesc; } protoOf($serializer_58).q44 = function () { return this.pxn_1; }; protoOf($serializer_58).k4g = function () { var tmp0_cached = Companion_getInstance_186().oxn_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_58).s44 = function (decoder) { var tmp0_desc = this.pxn_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = false; var tmp5_local1 = 0; var tmp6_local2 = 0; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_input = decoder.i48(tmp0_desc); var tmp10_cached = Companion_getInstance_186().oxn_1; if (tmp9_input.x48()) { tmp4_local0 = tmp9_input.k48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.n48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.u48(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.k48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.n48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.u48(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.j48(tmp0_desc); return BulkAddPersonRunImportUiState_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_58).qxn = function (encoder, value) { var tmp0_desc = this.pxn_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_186().oxn_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.uxm_1 === true)) { tmp1_output.o49(tmp0_desc, 0, value.uxm_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.vxm_1 === 0)) { tmp1_output.r49(tmp0_desc, 1, value.vxm_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.wxm_1 === 0)) { tmp1_output.r49(tmp0_desc, 2, value.wxm_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !equals(value.xxm_1, emptyList())) { tmp1_output.y49(tmp0_desc, 3, tmp2_cached[3], value.xxm_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.yxm_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.yxm_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_58).r44 = function (encoder, value) { return this.qxn(encoder, value instanceof BulkAddPersonRunImportUiState ? value : THROW_CCE()); }; var $serializer_instance_58; function $serializer_getInstance_70() { if ($serializer_instance_58 == null) new $serializer_58(); return $serializer_instance_58; } function BulkAddPersonRunImportUiState_init_$Init$(seen1, inProgress, totalRecords, numImported, errors, errorMessage, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_70().pxn_1); } if (0 === (seen1 & 1)) $this.uxm_1 = true; else $this.uxm_1 = inProgress; if (0 === (seen1 & 2)) $this.vxm_1 = 0; else $this.vxm_1 = totalRecords; if (0 === (seen1 & 4)) $this.wxm_1 = 0; else $this.wxm_1 = numImported; if (0 === (seen1 & 8)) $this.xxm_1 = emptyList(); else $this.xxm_1 = errors; if (0 === (seen1 & 16)) $this.yxm_1 = null; else $this.yxm_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.uxm_1 = inProgress; this.vxm_1 = totalRecords; this.wxm_1 = numImported; this.xxm_1 = errors; this.yxm_1 = errorMessage; } protoOf(BulkAddPersonRunImportUiState).vss = function () { var tmp; // Inline function 'kotlin.collections.isNotEmpty' call if (!this.xxm_1.c1()) { tmp = true; } else { tmp = !(this.yxm_1 == null); } return tmp; }; protoOf(BulkAddPersonRunImportUiState).go8 = function () { var tmp; if (this.vxm_1 > 0) { tmp = this.wxm_1 / this.vxm_1; } else { tmp = 0.0; } return tmp; }; protoOf(BulkAddPersonRunImportUiState).rxn = function (inProgress, totalRecords, numImported, errors, errorMessage) { return new BulkAddPersonRunImportUiState(inProgress, totalRecords, numImported, errors, errorMessage); }; protoOf(BulkAddPersonRunImportUiState).zxm = function (inProgress, totalRecords, numImported, errors, errorMessage, $super) { inProgress = inProgress === VOID ? this.uxm_1 : inProgress; totalRecords = totalRecords === VOID ? this.vxm_1 : totalRecords; numImported = numImported === VOID ? this.wxm_1 : numImported; errors = errors === VOID ? this.xxm_1 : errors; errorMessage = errorMessage === VOID ? this.yxm_1 : errorMessage; return $super === VOID ? this.rxn(inProgress, totalRecords, numImported, errors, errorMessage) : $super.rxn.call(this, inProgress, totalRecords, numImported, errors, errorMessage); }; protoOf(BulkAddPersonRunImportUiState).toString = function () { return 'BulkAddPersonRunImportUiState(inProgress=' + this.uxm_1 + ', totalRecords=' + this.vxm_1 + ', numImported=' + this.wxm_1 + ', errors=' + this.xxm_1 + ', errorMessage=' + this.yxm_1 + ')'; }; protoOf(BulkAddPersonRunImportUiState).hashCode = function () { var result = getBooleanHashCode(this.uxm_1); result = imul(result, 31) + this.vxm_1 | 0; result = imul(result, 31) + this.wxm_1 | 0; result = imul(result, 31) + hashCode(this.xxm_1) | 0; result = imul(result, 31) + (this.yxm_1 == null ? 0 : getStringHashCode(this.yxm_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.uxm_1 === tmp0_other_with_cast.uxm_1)) return false; if (!(this.vxm_1 === tmp0_other_with_cast.vxm_1)) return false; if (!(this.wxm_1 === tmp0_other_with_cast.wxm_1)) return false; if (!equals(this.xxm_1, tmp0_other_with_cast.xxm_1)) return false; if (!(this.yxm_1 == tmp0_other_with_cast.yxm_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.pxo_1; openBlobUiUseCase$factory_4(); return this_0.t2(); } function Companion_170() { this.qxo_1 = 'BulkAddPersonSelectFile'; } var Companion_instance_218; function Companion_getInstance_187() { return Companion_instance_218; } function BulkAddPersonSelectFileViewModel$slambda(this$0, resultContinuation) { this.zxo_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonSelectFileViewModel$slambda).gr6 = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(BulkAddPersonSelectFileViewModel$slambda).he = function (p1, $completion) { return this.gr6(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.axp_1.p7f(); var tmp_1 = this.zxo_1.upm(); PermissionFlags_getInstance(); var tmp_2 = new Long(1024, 0); PermissionFlags_getInstance(); suspendResult = tmp_0.bhf(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.nd9_1 ? it.od9_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).vn7 = function (db, completion) { var i = new BulkAddPersonSelectFileViewModel$slambda(this.zxo_1, completion); i.axp_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.gr6(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.nxo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddselectfile.BulkAddPersonSelectFileViewModel..' call var nextValue = prevValue.fxp(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.oxp_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.xxp_1 = this$0; this.yxp_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.xxp_1); var tmp_1 = new OpenBlobItem(this.yxp_1, 'text/csv', 'bulk-add-persons-template.csv', new Long(186, 0)); suspendResult = tmp_0.vnu(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.xxp_1, this.yxp_1, completion); i.zxp_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.nxo_1 = MutableStateFlow(new BulkAddPersonSelectFileUiState()); this.oxo_1 = asStateFlow(this.nxo_1); var tmp = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveEndpoint(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.pxo_1 = Instance(this_0, tmp$ret$0, null).a5d(this, openBlobUiUseCase$factory_3()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.gpm_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddselectfile.BulkAddPersonSelectFileViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, this.apn().tno(strings_getInstance().omz_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.lpn(tmp_1, true, tmp_2, BulkAddPersonSelectFileViewModel$slambda_2(null)); } protoOf(BulkAddPersonSelectFileViewModel).axq = function (uri, name) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.nxo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddselectfile.BulkAddPersonSelectFileViewModel.onFileSelected.' call var nextValue = prevValue.fxp(uri, name); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(BulkAddPersonSelectFileViewModel).bxq = function () { var tmp0_elvis_lhs = this.nxo_1.t2().bxp_1; this.epm_1.hob('BulkAddPersonRunImport', mapOf_0(to('uri', tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs))); }; protoOf(BulkAddPersonSelectFileViewModel).cxq = function () { var templatePath = this.spm().mng().jn2_1 + 'staticfiles/bulkaddpersons/bulk-add-persons-template.csv'; var tmp = this.tpm(); 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.bxp_1 = selectedFileUri; this.cxp_1 = selectedFileName; this.dxp_1 = fileSelectError; this.exp_1 = fieldsEnabled; } protoOf(BulkAddPersonSelectFileUiState).dxq = function () { return !(this.bxp_1 == null) ? this.exp_1 : false; }; protoOf(BulkAddPersonSelectFileUiState).exq = function (selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled) { return new BulkAddPersonSelectFileUiState(selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled); }; protoOf(BulkAddPersonSelectFileUiState).fxp = function (selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled, $super) { selectedFileUri = selectedFileUri === VOID ? this.bxp_1 : selectedFileUri; selectedFileName = selectedFileName === VOID ? this.cxp_1 : selectedFileName; fileSelectError = fileSelectError === VOID ? this.dxp_1 : fileSelectError; fieldsEnabled = fieldsEnabled === VOID ? this.exp_1 : fieldsEnabled; return $super === VOID ? this.exq(selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled) : $super.exq.call(this, selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled); }; protoOf(BulkAddPersonSelectFileUiState).toString = function () { return 'BulkAddPersonSelectFileUiState(selectedFileUri=' + this.bxp_1 + ', selectedFileName=' + this.cxp_1 + ', fileSelectError=' + this.dxp_1 + ', fieldsEnabled=' + this.exp_1 + ')'; }; protoOf(BulkAddPersonSelectFileUiState).hashCode = function () { var result = this.bxp_1 == null ? 0 : getStringHashCode(this.bxp_1); result = imul(result, 31) + (this.cxp_1 == null ? 0 : getStringHashCode(this.cxp_1)) | 0; result = imul(result, 31) + (this.dxp_1 == null ? 0 : getStringHashCode(this.dxp_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.exp_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.bxp_1 == tmp0_other_with_cast.bxp_1)) return false; if (!(this.cxp_1 == tmp0_other_with_cast.cxp_1)) return false; if (!(this.dxp_1 == tmp0_other_with_cast.dxp_1)) return false; if (!(this.exp_1 === tmp0_other_with_cast.exp_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 PersonDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda).pxq = function (entity, permissions, $completion) { var tmp = this.qxq(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.pxq(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.nxq_1; var tmp_0; if (this.oxq_1.ghh_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).qxq = function (entity, permissions, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda(completion); i.nxq_1 = entity; i.oxq_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.pxq(entity, permissions, $completion); }; l.$arity = 2; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.zxq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_1).bxr = function (person, $completion) { var tmp = this.cxr(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.bxr((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.zxq_1.zxr_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.axr_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tfr_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.zxq_1); tmp_0 = tmp0_safe_receiver_0 == null ? null : formatInternationalOrNull(tmp0_safe_receiver_0, tmp2_safe_receiver); } var nextValue = prevValue.nxs(this.axr_1, tmp_0); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.zxq_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver_1 = this.axr_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.tfr_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.axr_1 == null)) { tmp_1 = Companion_getInstance_91().ip6_1; } else { tmp_1 = Companion_getInstance_91().hp6_1; } var tmp4_loadingState = tmp_1; var nextValue_0 = prevValue_0.ap6(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).cxr = function (person, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_1(this.zxq_1, completion); i.axr_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.bxr(person, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.wxs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_3).qpe = function (it, $completion) { var tmp = this.rpe(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.qpe((!(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.wxs_1.zxr_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.nxs(VOID, VOID, VOID, VOID, VOID, this.xxs_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).rpe = function (it, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_3(this.wxs_1, completion); i.xxs_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.qpe(it, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { $boundThis.cvt(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.gxt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_5).ixt = function (it, $completion) { var tmp = this.jxt(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.ixt(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.gxt_1.zxr_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.nxs(VOID, VOID, VOID, VOID, this.hxt_1.hhh_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.gxt_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_0; if (this.hxt_1.hhh_1) { var tmp_1 = this.gxt_1.apn().tno(strings_getInstance().qm6_1); var tmp_2 = FabIcon_EDIT_getInstance(); tmp_0 = new FabUiState(true, tmp_1, tmp_2, PersonDetailViewModel$onClickEdit$ref(this.gxt_1)); } else { tmp_0 = new FabUiState(); } var nextValue_0 = prevValue_0.ap6(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).jxt = function (it, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_5(this.gxt_1, completion); i.hxt_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.ixt(it, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.sxt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_7).uxt = function (it, $completion) { var tmp = this.vxt(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.uxt((!(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.sxt_1.zxr_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.nxs(VOID, VOID, VOID, this.txt_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).vxt = function (it, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_7(this.sxt_1, completion); i.txt_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.uxt(it, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda($entityFlow, $viewAndEditPermissionFlow, this$0, resultContinuation) { this.exu_1 = $entityFlow; this.fxu_1 = $viewAndEditPermissionFlow; this.gxu_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.exu_1, this.fxu_1, PersonDetailViewModel$slambda$slambda$slambda$slambda_0(null)); var tmp_1 = PersonDetailViewModel$slambda$slambda$slambda$slambda_2(this.gxu_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_32(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda(this.exu_1, this.fxu_1, this.gxu_1, completion); i.hxu_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.qxu_1 = $hasManagePermissionsPermissionFlow; this.rxu_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.qxu_1); var tmp_1 = PersonDetailViewModel$slambda$slambda$slambda$slambda_4(this.rxu_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_32(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda_1(this.qxu_1, this.rxu_1, completion); i.sxu_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.bxv_1 = $viewAndEditPermissionFlow; this.cxv_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.cxv_1, null); suspendResult = this.bxv_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.bxv_1, this.cxv_1, completion); i.dxv_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.mxv_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.mxv_1.vpm().t7d().w92(this.mxv_1.upm(), this.mxv_1.wpl_1); var tmp_1 = PersonDetailViewModel$slambda$slambda$slambda$slambda_8(this.mxv_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_32(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_5).v1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda_5(this.mxv_1, completion); i.nxv_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.wxv_1 = $this_launch; this.xxv_1 = $entityFlow; this.yxv_1 = $viewAndEditPermissionFlow; this.zxv_1 = this$0; this.axw_1 = $hasManagePermissionsPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.wxv_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_0(this.xxv_1, this.yxv_1, this.zxv_1, null)); launch(this.wxv_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_2(this.axw_1, this.zxv_1, null)); launch(this.wxv_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_4(this.yxv_1, this.zxv_1, null)); launch(this.wxv_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_6(this.zxv_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda).l78 = function (completion) { return new PersonDetailViewModel$slambda$slambda(this.wxv_1, this.xxv_1, this.yxv_1, this.zxv_1, this.axw_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.z86($completion); }; l.$arity = 0; return l; } function _get_phoneNumberUtil__i6ank8($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.cxs_1; phoneNumberUtil$factory_0(); return this_0.t2(); } function _get_onClickPhoneNumUseCase__2tcaut($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.dxs_1; onClickPhoneNumUseCase$factory_0(); return this_0.t2(); } function _get_onClickSendSmsUseCase__plj4zm($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.exs_1; onClickSendSmsUseCase$factory_0(); return this_0.t2(); } function _get_onClickEmailUseCase__v8uzjh($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.fxs_1; onClickEmailUseCase$factory_0(); return this_0.t2(); } function navigateToEditAccount($this) { Companion_getInstance_118(); $this.epm_1.hob('AccountEdit', mapOf_0(to('entityUid', $this.bxs_1.toString()))); } function Companion_171() { this.bxw_1 = 'PersonDetailView'; } var Companion_instance_219; function Companion_getInstance_188() { return Companion_instance_219; } function sam$kotlinx_coroutines_flow_FlowCollector$0_32(function_0) { this.cxw_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_32).t1d = function (value, $completion) { return this.cxw_1(value, $completion); }; function PersonDetailViewModel$onClickEdit$ref_0($boundThis) { var l = function () { $boundThis.cvt(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function PersonDetailViewModel$slambda(this$0, resultContinuation) { this.lxw_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.nxw_1 = this.lxw_1.wpm().n7d().efp(this.lxw_1.wpl_1, this.lxw_1.upm()); this.oxw_1 = shareIn(this.lxw_1.wpm().p7f().chf(this.lxw_1.upm(), this.lxw_1.wpl_1), this.lxw_1.tpm(), Companion_getInstance_12().v1h()); var tmp_0 = this; var tmp_1 = this.lxw_1.vpm().p7f(); var tmp_2 = this.lxw_1.upm(); PermissionFlags_getInstance(); tmp_0.pxw_1 = tmp_1.zhe(tmp_2, new Long(4096, 0)); this.hd_1 = 1; suspendResult = whenSubscribed(this.lxw_1.zxr_1, PersonDetailViewModel$slambda$slambda_0(this.mxw_1, this.nxw_1, this.oxw_1, this.lxw_1, this.pxw_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.lxw_1, completion); i.mxw_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.zxr_1 = MutableStateFlow(new PersonDetailUiState()); this.axs_1 = asStateFlow(this.zxr_1); var tmp = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.bxs_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.cxs_1 = InstanceOrNull(this, tmp$ret$0, null).a5d(this, phoneNumberUtil$factory()); var tmp_2 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(OnClickPhoneNumUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); tmp_2.dxs_1 = Instance(this, tmp$ret$2, null).a5d(this, onClickPhoneNumUseCase$factory()); var tmp_4 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(OnClickSendSmsUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); tmp_4.exs_1 = InstanceOrNull(this, tmp$ret$4, null).a5d(this, onClickSendSmsUseCase$factory()); var tmp_6 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(OnClickEmailUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); tmp_6.fxs_1 = Instance(this, tmp$ret$6, null).a5d(this, onClickEmailUseCase$factory()); // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(UstadAccountManager), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); var accountManager$delegate = Instance(this, tmp$ret$8, null).a5d(null, getLocalDelegateReference('accountManager', KProperty0, false, function () { return THROW_ISE(); })); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.detail.PersonDetailViewModel.' call var tmp0_loadingState = Companion_getInstance_91().hp6_1; var tmp_9 = this.apn().tno(strings_getInstance().qm6_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.ap6(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.zxr_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.detail.PersonDetailViewModel.' call var tmp0_isActiveUser = this.wpl_1.equals(this.upm()); var tmp1_canSendSms = !(_get_onClickSendSmsUseCase__plj4zm(this) == null); var nextValue_0 = prevValue_0.nxs(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.tpm(); launch(tmp_11, VOID, VOID, PersonDetailViewModel$slambda_0(this, null)); } protoOf(PersonDetailViewModel).cvt = function () { Companion_getInstance_189(); Companion_getInstance_118(); this.epm_1.hob('PersonEditView', mapOf_0(to('entityUid', this.bxs_1.toString()))); }; protoOf(PersonDetailViewModel).qx4 = function () { return navigateToEditAccount(this); }; protoOf(PersonDetailViewModel).qxw = function () { return navigateToEditAccount(this); }; protoOf(PersonDetailViewModel).rxw = function () { Companion_getInstance_108(); this.epm_1.hob('MessageList', mapOf_0(to('personUid', this.bxs_1.toString()))); }; protoOf(PersonDetailViewModel).sxw = function () { var tmp0_safe_receiver = this.zxr_1.t2().gxs_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tfr_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).mo6(tmp2_safe_receiver); } }; protoOf(PersonDetailViewModel).txw = function () { var tmp0_safe_receiver = this.zxr_1.t2().gxs_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tfr_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).mo6(tmp2_safe_receiver); } }; protoOf(PersonDetailViewModel).kqr = function () { Companion_getInstance_118(); this.epm_1.hob('SystemPermission', mapOf_0(to('personUid', this.wpl_1.toString()))); }; protoOf(PersonDetailViewModel).uxw = function () { var tmp0_safe_receiver = this.zxr_1.t2().gxs_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ufr_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.xfr_1; var ppjUid = tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs; if (!ppjUid.equals(new Long(0, 0))) { Companion_getInstance_118(); var tmp = to('entityUid', ppjUid.toString()); Companion_getInstance_118(); Companion_getInstance_108(); this.epm_1.hob('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.gxs_1 = person; this.hxs_1 = displayPhoneNum; this.ixs_1 = canSendSms; this.jxs_1 = clazzes; this.kxs_1 = hasChangePasswordPermission; this.lxs_1 = showPermissionButton; this.mxs_1 = isActiveUser; } protoOf(PersonDetailUiState).vxw = function () { var tmp0_safe_receiver = this.gxs_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tfr_1; return isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a96_1); }; protoOf(PersonDetailUiState).wxw = function () { var tmp; var tmp0_safe_receiver = this.gxs_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tfr_1; if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.y95_1) == null)) { var tmp2_safe_receiver = this.gxs_1.tfr_1; tmp = !((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.y95_1) === 0); } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).xxw = function () { var tmp; var tmp0_safe_receiver = this.gxs_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tfr_1; if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t95_1) == null)) { tmp = this.kxs_1; } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).yxw = function () { var tmp; var tmp_0; if (!(this.gxs_1 == null)) { var tmp0_safe_receiver = this.gxs_1.tfr_1; tmp_0 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t95_1) == null; } else { tmp_0 = false; } if (tmp_0) { tmp = this.kxs_1; } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).zxw = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.gxs_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tfr_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.b96_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).axx = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.gxs_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tfr_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).bxx = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.gxs_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tfr_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).cxx = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.gxs_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tfr_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).dxx = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.gxs_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tfr_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).exx = function () { var tmp0_safe_receiver = this.gxs_1; return !((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ufr_1) == null); }; protoOf(PersonDetailUiState).fxx = function () { var tmp; // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.gxs_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tfr_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.mxs_1; } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).gxx = function (person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser) { return new PersonDetailUiState(person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser); }; protoOf(PersonDetailUiState).nxs = function (person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser, $super) { person = person === VOID ? this.gxs_1 : person; displayPhoneNum = displayPhoneNum === VOID ? this.hxs_1 : displayPhoneNum; canSendSms = canSendSms === VOID ? this.ixs_1 : canSendSms; clazzes = clazzes === VOID ? this.jxs_1 : clazzes; hasChangePasswordPermission = hasChangePasswordPermission === VOID ? this.kxs_1 : hasChangePasswordPermission; showPermissionButton = showPermissionButton === VOID ? this.lxs_1 : showPermissionButton; isActiveUser = isActiveUser === VOID ? this.mxs_1 : isActiveUser; return $super === VOID ? this.gxx(person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser) : $super.gxx.call(this, person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser); }; protoOf(PersonDetailUiState).toString = function () { return 'PersonDetailUiState(person=' + this.gxs_1 + ', displayPhoneNum=' + this.hxs_1 + ', canSendSms=' + this.ixs_1 + ', clazzes=' + this.jxs_1 + ', hasChangePasswordPermission=' + this.kxs_1 + ', showPermissionButton=' + this.lxs_1 + ', isActiveUser=' + this.mxs_1 + ')'; }; protoOf(PersonDetailUiState).hashCode = function () { var result = this.gxs_1 == null ? 0 : this.gxs_1.hashCode(); result = imul(result, 31) + (this.hxs_1 == null ? 0 : getStringHashCode(this.hxs_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.ixs_1) | 0; result = imul(result, 31) + hashCode(this.jxs_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.kxs_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.lxs_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.mxs_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.gxs_1, tmp0_other_with_cast.gxs_1)) return false; if (!(this.hxs_1 == tmp0_other_with_cast.hxs_1)) return false; if (!(this.ixs_1 === tmp0_other_with_cast.ixs_1)) return false; if (!equals(this.jxs_1, tmp0_other_with_cast.jxs_1)) return false; if (!(this.kxs_1 === tmp0_other_with_cast.kxs_1)) return false; if (!(this.lxs_1 === tmp0_other_with_cast.lxs_1)) return false; if (!(this.mxs_1 === tmp0_other_with_cast.mxs_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.pxx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda).txx = function (it, $completion) { var tmp = this.vn7(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.txx(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.qxx_1.n7d(); var tmp_1; if (!_get_entityUid__ovkepw(this.pxx_1).equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.rxx_1 = tmp_1; if (this.rxx_1 == null) { this.sxx_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.rxx_1.bfp(_get_entityUid__ovkepw(this.pxx_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.sxx_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.sxx_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).vn7 = function (it, completion) { var i = new PersonEditViewModel$slambda$slambda$slambda(this.pxx_1, completion); i.qxx_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.txx(it, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$slambda$slambda$slambda_1($savedStateHandle, resultContinuation) { this.cxy_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda_1).dxy = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_1).m78 = function ($completion) { return this.dxy($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.cxy_1.ba('DateOfBirth'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.a96_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; return this_0; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_1).l78 = function (completion) { return new PersonEditViewModel$slambda$slambda$slambda_1(this.cxy_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.dxy($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.bxz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel....' call var nextValue = prevValue.iy0(entityToDisplay); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.ry0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda_3).ty0 = function (it, $completion) { var tmp = this.vn7(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.ty0(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.sy0_1.f7e().dgi(_get_entityUid__ovkepw(this.ry0_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).vn7 = function (it, completion) { var i = new PersonEditViewModel$slambda$slambda$slambda_3(this.ry0_1, completion); i.sy0_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.ty0(it, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$slambda$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda_5).cy1 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_5).m78 = function ($completion) { return this.cy1($completion); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_5).l78 = function (completion) { return new PersonEditViewModel$slambda$slambda$slambda_5(completion); }; function PersonEditViewModel$slambda$slambda$slambda_6(resultContinuation) { var i = new PersonEditViewModel$slambda$slambda$slambda_5(resultContinuation); var l = function ($completion) { return i.cy1($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.bxz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel....' call var nextValue = prevValue.iy0(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.ly1_1 = this$0; this.my1_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda).oy1 = 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.oy1((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = Companion_instance_3.n4r(); var tmp_1 = PersonEditViewModel$slambda$slambda$slambda_0(this.ly1_1, null); var tmp_2 = PersonEditViewModel$slambda$slambda$slambda_2(this.my1_1, null); suspendResult = this.ly1_1.kpn(tmp_0, VOID, VOID, tmp_1, tmp_2, PersonEditViewModel$slambda$slambda$lambda(this.ly1_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.ly1_1, this.my1_1, completion); i.ny1_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.oy1($this$async, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.xy1_1 = this$0; this.yy1_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda_1).ay2 = 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.ay2((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = Companion_instance_7.n4r(); var tmp_1 = listOf_0('picState'); var tmp_2; if (!_get_entityUid__ovkepw(this.xy1_1).equals(new Long(0, 0))) { tmp_2 = PersonEditViewModel$slambda$slambda$slambda_4(this.xy1_1, null); } else { tmp_2 = null; } var tmp_3 = tmp_2; var tmp_4 = PersonEditViewModel$slambda$slambda$slambda_6(null); suspendResult = this.xy1_1.kpn(tmp_0, tmp_1, VOID, tmp_3, tmp_4, PersonEditViewModel$slambda$slambda$lambda_0(this.xy1_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_0 = suspendResult; Companion_getInstance_116(); var tmp1_elvis_lhs = this_0 == null ? null : this_0.s96_1; setIfNoValueSetYet(this.yy1_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.xy1_1, this.yy1_1, completion); i.zy1_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.ay2($this$async, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function PersonEditViewModel$onClickSave$slambda$slambda(this$0, $savePerson, $consentToUpsert, resultContinuation) { this.jy2_1 = this$0; this.ky2_1 = $savePerson; this.ly2_1 = $consentToUpsert; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$onClickSave$slambda$slambda).sy2 = function (it, $completion) { var tmp = this.vn7(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.sy2(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.jy2_1.ips_1.equals(new Long(0, 0))) { this.hd_1 = 4; suspendResult = _get_addNewPersonUseCase__raa2qa(this.jy2_1).gol(this.ky2_1, this.jy2_1.upm(), true, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; suspendResult = this.jy2_1.wpm().n7d().cfp(this.ky2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.oy2_1 = this.ly2_1; if (this.oy2_1 == null) { this.py2_1 = null; this.hd_1 = 3; continue $sm; } else { var tmp_0 = this; tmp_0.qy2_1 = this.oy2_1; var tmp_1 = this; tmp_1.ry2_1 = this.qy2_1; this.hd_1 = 2; suspendResult = this.jy2_1.wpm().x7e().hgc(this.ry2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.py2_1 = this.qy2_1; this.hd_1 = 3; continue $sm; case 3: this.ny2_1 = this.py2_1; this.hd_1 = 5; continue $sm; case 4: this.ny2_1 = suspendResult; this.hd_1 = 5; continue $sm; case 5: return this.ny2_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).vn7 = function (it, completion) { var i = new PersonEditViewModel$onClickSave$slambda$slambda(this.jy2_1, this.ky2_1, this.ly2_1, completion); i.my2_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.sy2(it, $completion); }; l.$arity = 1; return l; } function _get_apiUrlConfig__mldllg_2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.exz_1; apiUrlConfig$factory_6(); return this_0.t2(); } function _get_entityUid__ovkepw($this) { Companion_getInstance_108(); var tmp0_safe_receiver = $this.cpm_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.hxz_1; phoneNumValidatorUseCase$factory_0(); return this_0.t2(); } function _get_genderConfig__kyr0zc($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lxz_1; genderConfig$factory_0(); return this_0.t2(); } function _get_enqueueSavePictureUseCase__rl1s31($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.mxz_1; enqueueSavePictureUseCase$factory_0(); return this_0.t2(); } function _get_addNewPersonUseCase__raa2qa($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nxz_1; addNewPersonUseCase$factory_0(); return this_0.t2(); } function hasErrors_3(_this__u8e3s4, $this) { return ((((((((!(_this__u8e3s4.wxz_1 == null) ? true : !(_this__u8e3s4.yxz_1 == null)) ? true : !(_this__u8e3s4.ay0_1 == null)) ? true : !(_this__u8e3s4.by0_1 == null)) ? true : !(_this__u8e3s4.ey0_1 == null)) ? true : !(_this__u8e3s4.fy0_1 == null)) ? true : !(_this__u8e3s4.dy0_1 == null)) ? true : !(_this__u8e3s4.zxz_1 == null)) ? true : !(_this__u8e3s4.cy0_1 == null)) ? true : !(_this__u8e3s4.gy0_1 == null); } function Companion_172() { Companion_instance_220 = this; this.rx4_1 = 'picState'; this.sx4_1 = 'PersonEditView'; this.tx4_1 = 'Register'; this.ux4_1 = listOf(['PersonEditView', 'Register']); this.vx4_1 = 'RegMode'; this.wx4_1 = 'DateOfBirth'; this.xx4_1 = 'RegViaLink'; this.yx4_1 = 0; this.zx4_1 = 1; this.ax5_1 = 2; var tmp = this; Companion_getInstance_108(); Companion_getInstance_108(); Companion_getInstance_118(); Companion_getInstance_118(); tmp.bx5_1 = listOf(['serverUrl', 'showAccept', 'popUpToOnFinish', 'next', 'RegViaLink', 'DateOfBirth', 'RegMode', 'noSessionChange']); this.cx5_1 = 'initDob'; } var Companion_instance_220; function Companion_getInstance_189() { if (Companion_instance_220 == null) new Companion_172(); return Companion_instance_220; } function PersonEditViewModel$slambda(this$0, resultContinuation) { this.by3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda).gr6 = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda).he = function (p1, $completion) { return this.gr6(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.by3_1.dxz_1 === 0) ? this.by3_1.ips_1.equals(new Long(0, 0)) : false) { this.dy3_1 = true; this.hd_1 = 4; continue $sm; } else { if (!this.by3_1.ips_1.equals(new Long(0, 0)) ? this.by3_1.upm().equals(this.by3_1.ips_1) : false) { this.dy3_1 = true; this.hd_1 = 4; continue $sm; } else { if (this.by3_1.ips_1.equals(new Long(0, 0))) { this.hd_1 = 2; var tmp_0 = this.cy3_1.p7f(); var tmp_1 = this.by3_1.upm(); PermissionFlags_getInstance(); suspendResult = tmp_0.yhe(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.cy3_1.p7f(); var tmp_3 = this.by3_1.upm(); PermissionFlags_getInstance(); suspendResult = tmp_2.yhe(tmp_3, new Long(32768, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } } case 1: this.dy3_1 = suspendResult; this.hd_1 = 4; continue $sm; case 2: this.dy3_1 = suspendResult; this.hd_1 = 4; continue $sm; case 3: throw this.kd_1; case 4: return this.dy3_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).vn7 = function (db, completion) { var i = new PersonEditViewModel$slambda(this.by3_1, completion); i.cy3_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.gr6(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.bxz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel..' call var nextValue = prevValue.iy0(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.my3_1 = this$0; this.ny3_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.oy3_1, VOID, VOID, PersonEditViewModel$slambda$slambda_0(this.my3_1, this.ny3_1, null)); suspendResult = awaitAll([tmp_0, async(this.oy3_1, VOID, VOID, PersonEditViewModel$slambda$slambda_2(this.my3_1, this.ny3_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.my3_1.gpm_1; while (true) { var prevValue = this_0.t2(); var tmp_1; if (hasFlag(this.my3_1.dxz_1, 1)) { tmp_1 = this.my3_1.apn().tno(strings_getInstance().vlv_1); } else { tmp_1 = this.my3_1.apn().tno(strings_getInstance().eme_1); } var tmp_2 = tmp_1; var nextValue = prevValue.ap6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_2, VOID, PersonEditViewModel$onClickSave$ref(this.my3_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp_3; if (hasFlag(this.my3_1.dxz_1, 2)) { tmp_3 = new PersonParentJoin(); } else { tmp_3 = null; } var personParentJoin = tmp_3; l$ret$3: do { var this_1 = this.my3_1.bxz_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.iy0(VOID, VOID, VOID, VOID, true, personParentJoin); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.my3_1.cpn(Companion_getInstance_91().ip6_1); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.my3_1, this.ny3_1, completion); i.oy3_1 = $this$launchIfHasPermission; return i; }; function PersonEditViewModel$slambda_2(this$0, $savedStateHandle, resultContinuation) { var i = new PersonEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launchIfHasPermission, $completion) { return i.u1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$onEntityChanged$lambda(this$0, $entity) { return function ($this$shallowCopy) { var tmp = $this$shallowCopy; var tmp0_elvis_lhs = $entity.t95_1; tmp.t95_1 = this$0.kxz_1.boi(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs, ''); return Unit_instance; }; } function PersonEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.xy3_1 = $commitDelay; this.yy3_1 = $entity; this.zy3_1 = $this; this.ay4_1 = $key; this.by4_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.xy3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.yy3_1 == null)) { this.hd_1 = 2; suspendResult = this.zy3_1.gpn(this.zy3_1.cpm_1, this.ay4_1, this.by4_1, this.yy3_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.xy3_1, this.yy3_1, this.zy3_1, this.ay4_1, this.by4_1, completion); i.cy4_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.ly4_1 = this$0; this.my4_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.ly4_1.gpn(this.ly4_1.cpm_1, 'picState', Companion_instance_7.n4r(), this.my4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.ly4_1, this.my4_1, completion); i.ny4_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.wy4_1 = $isRegistrationMode; this.xy4_1 = this$0; this.yy4_1 = $savePerson; this.zy4_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.wy4_1) { this.by5_1 = this.xy4_1.bxz_1.t2().uxz_1; this.cy5_1 = this.xy4_1.bxz_1.t2().qxz_1; var tmp_0 = this; var tmp$ret$0; l$ret$1: do { var this_0 = this.xy4_1.bxz_1; while (true) { var prevValue = this_0.t2(); var tmp_1; var this_1 = this.yy4_1.t95_1; if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_1 = this.zy4_1; } else { tmp_1 = null; } var tmp3_usernameError = tmp_1; var tmp_2; var this_2 = this.cy5_1; if (this_2 == null ? true : charSequenceLength(this_2) === 0) { tmp_2 = this.zy4_1; } else { tmp_2 = null; } var tmp4_passwordError = tmp_2; var tmp_3; if (!hasFlag(this.xy4_1.dxz_1, 2)) { tmp_3 = null; } else { var tmp0_safe_receiver = this.by5_1; var this_3 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ffs_1; if (this_3 == null ? true : charSequenceLength(this_3) === 0) { tmp_3 = this.zy4_1; } else { var tmp1_safe_receiver = this.by5_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ffs_1; var tmp_4; if (tmp2_safe_receiver == null) { tmp_4 = null; } else { tmp_4 = this.xy4_1.ixz_1.koe(tmp2_safe_receiver); } if (tmp_4 == null) { tmp_3 = this.xy4_1.apn().tno(strings_getInstance().pml_1); } else { tmp_3 = null; } } } var tmp5_parentContactError = tmp_3; var tmp_5; if (this.yy4_1.a96_1.equals(new Long(0, 0))) { tmp_5 = this.zy4_1; } else { tmp_5 = null; } var tmp6_dateOfBirthError = tmp_5; var nextValue = prevValue.iy0(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.dy5_1 = tmp$ret$0; if (hasErrors_3(this.dy5_1, this.xy4_1) ? true : this.cy5_1 == null) { this.xy4_1.cpn(Companion_getInstance_91().ip6_1); l$ret$3: do { var this_4 = this.xy4_1.bxz_1; while (true) { var prevValue_0 = this_4.t2(); var nextValue_0 = prevValue_0.iy0(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.xy4_1.ips_1.equals(new Long(0, 0)) ? isDateOfBirthAMinor(Companion_getInstance_6().pls(this.yy4_1.a96_1)) : false) { var tmp_7 = Companion_getInstance_6(); var tmp0_safe_receiver_0 = this.xy4_1.cpm_1.ba('initDob'); var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); tmp_6 = !isDateOfBirthAMinor(tmp_7.pls(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs)); } else { tmp_6 = false; } if (tmp_6) { this.hd_1 = 1; suspendResult = this.xy4_1.wpm().x7e().kgc(this.yy4_1.s95_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.gy5_1 = false; this.hd_1 = 2; continue $sm; } } case 1: this.hy5_1 = suspendResult; this.gy5_1 = !this.hy5_1; this.hd_1 = 2; continue $sm; case 2: if (this.gy5_1) { var tmp_8 = this; var this_5 = new PersonParentJoin(); this_5.dfs_1 = this.yy4_1.s95_1; this_5.cfs_1 = this.xy4_1.spm().kng().xkb_1; var tmp_9 = this_5; tmp_9.ifs_1 = 1; this_5.jfs_1 = systemTimeInMillis(); tmp_8.fy5_1 = this_5; this.hd_1 = 3; continue $sm; } else { var tmp_10 = this; tmp_10.fy5_1 = null; this.hd_1 = 3; continue $sm; } case 3: this.iy5_1 = this.fy5_1; this.hd_1 = 4; var tmp_11 = this.xy4_1.wpm(); suspendResult = withDoorTransactionAsync(tmp_11, VOID, PersonEditViewModel$onClickSave$slambda$slambda_0(this.xy4_1, this.yy4_1, this.iy5_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.jy5_1 = this.xy4_1.bxz_1.t2().sxz_1; if (!(this.jy5_1 == null)) { this.jy5_1.q96_1 = this.yy4_1.s95_1; this.jy5_1.r96_1 = systemTimeInMillis(); var tmp_12 = this; Companion_getInstance_116(); var tmp2_elvis_lhs = this.xy4_1.cpm_1.ba('initPicUri'); tmp_12.ky5_1 = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; this.ly5_1 = this.jy5_1.s96_1; if (!(this.ky5_1 === this.ly5_1)) { this.hd_1 = 5; suspendResult = this.xy4_1.vpm().f7e().cgi(this.jy5_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.xy4_1); var tmp_14 = this.yy4_1.s95_1; suspendResult = tmp_13.enx(tmp_14, 50, this.ly5_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.my5_1 = this.xy4_1.cpm_1.ba('goToOnPersonSelected'); if (!(this.my5_1 == null)) { var tmp_16 = UMFileUtil_getInstance().parseURLQueryString(this.my5_1); Companion_getInstance_108(); var args = plus_0(tmp_16, mapOf_0(to('personUid', this.yy4_1.s95_1.toString()))); this.xy4_1.epm_1.hob(substringBefore_0(this.my5_1, '?'), args); } else { this.xy4_1.kps('PersonDetailView', this.yy4_1.s95_1, this.yy4_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.xy4_1.spm().png(this.yy4_1, this.cy5_1, this.xy4_1.fxz_1, new AccountRegisterOptions(!hasFlag(this.xy4_1.dxz_1, 2) ? !this.xy4_1.oxz_1 : false, this.by5_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.xy4_1.dxz_1, 2)) { var goOptions = new UstadGoOptions('RegisterAgeRedirect', true); var this_6 = LinkedHashMap_init_$Create$(); var key = 'username'; var tmp0_elvis_lhs = this.yy4_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.by5_1; var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.ffs_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.xy4_1.bxz_1.t2().qxz_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.xy4_1.cpm_1, 'popUpToOnFinish'); var args_0 = this_6; this.xy4_1.epm_1.rp8('WaitForParent', args_0, goOptions); tmp_18 = Unit_instance; } else { this.xy4_1.opt(this.xy4_1.epm_1, appendSelectedAccount(this.xy4_1.gxz_1, registeredPerson.s95_1, new Endpoint(this.xy4_1.fxz_1)), new UstadGoOptions(VOID, VOID, true)); tmp_18 = Unit_instance; } tmp_17.ey5_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.xy4_1.bxz_1; while (true) { var prevValue_1 = this_7.t2(); var nextValue_1 = prevValue_1.iy0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.xy4_1.apn().tno(strings_getInstance().vmi_1)); if (this_7.y1k(prevValue_1, nextValue_1)) { break l$ret$7; } } } while (false); } else { this.xy4_1.ypm().pp6(new Snack(this.xy4_1.apn().tno(strings_getInstance().ilu_1))); } this.ny5_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.xy4_1.cpn(Companion_getInstance_91().ip6_1); l$ret$11: do { var this_8 = this.xy4_1.bxz_1; while (true) { var prevValue_2 = this_8.t2(); var nextValue_2 = prevValue_2.iy0(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.xy4_1.cpn(Companion_getInstance_91().ip6_1); l$ret$13: do { var this_9 = this.xy4_1.bxz_1; while (true) { var prevValue_3 = this_9.t2(); var nextValue_3 = prevValue_3.iy0(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.xy4_1.cpn(Companion_getInstance_91().ip6_1); l$ret$15: do { var this_10 = this.xy4_1.bxz_1; while (true) { var prevValue_4 = this_10.t2(); var nextValue_4 = prevValue_4.iy0(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.wy4_1, this.xy4_1, this.yy4_1, this.zy4_1, completion); i.ay5_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_189(); destName = destName === VOID ? 'PersonEditView' : destName; UstadEditViewModel.call(this, di, savedStateHandle, destName); this.bxz_1 = MutableStateFlow(new PersonEditUiState()); this.cxz_1 = asStateFlow(this.bxz_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.dxz_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(ApiUrlConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp_0.exz_1 = Instance(this, tmp$ret$0, null).a5d(this, apiUrlConfig$factory_5()); var tmp_2 = this; Companion_getInstance_108(); var tmp0_elvis_lhs = savedStateHandle.ba('serverUrl'); var tmp1_elvis_lhs_0 = tmp0_elvis_lhs == null ? _get_apiUrlConfig__mldllg_2(this).hng_1 : tmp0_elvis_lhs; tmp_2.fxz_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.gxz_1 = tmp0_elvis_lhs_0 == null ? this.apn().up4() : 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.hxz_1 = Instance(this, tmp$ret$2, null).a5d(this, phoneNumValidatorUseCase$factory()); this.ixz_1 = new ValidateEmailUseCase(); this.jxz_1 = new ValidateUsernameUseCase(); this.kxz_1 = new FilterUsernameUseCase(); var tmp_6 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(GenderConfig), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); tmp_6.lxz_1 = Instance(this, tmp$ret$4, null).a5d(this, genderConfig$factory()); var tmp_8 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.spm().mng(); var trigger = this.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_9 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); var tmp$ret$7 = tmp_9.h57(tmp$ret$6, context); var this_0 = On(this, tmp$ret$7, trigger); // Inline function 'org.kodein.type.generic' call var tmp_11 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$9 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(); tmp_8.mxz_1 = Instance(this_0, tmp$ret$9, null).a5d(this, enqueueSavePictureUseCase$factory()); var tmp_12 = this; // Inline function 'org.kodein.di.instance' call var this_1 = onActiveEndpoint(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.nxz_1 = Instance(this_1, tmp$ret$11, null).a5d(this, addNewPersonUseCase$factory()); var tmp_14 = this; Companion_getInstance_118(); 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.oxz_1 = tmp1_elvis_lhs_1 == null ? false : tmp1_elvis_lhs_1; this.cpn(Companion_getInstance_91().hp6_1); var tmp_15; if (hasFlag(this.dxz_1, 1)) { tmp_15 = this.apn().tno(strings_getInstance().kmw_1); } else { tmp_15 = _get_entityUid__ovkepw(this).equals(new Long(0, 0)) ? this.apn().tno(strings_getInstance().qmc_1) : this.apn().tno(strings_getInstance().rmc_1); } var title = tmp_15; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.gpm_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.' call var tmp0_navigationVisible = !hasFlag(this.dxz_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.bxz_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.' call var nextValue_0 = prevValue_0.iy0(VOID, VOID, _get_genderConfig__kyr0zc(this).zp6_1, VOID, VOID, VOID, this.dxz_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.lpn(tmp_16, true, tmp_17, PersonEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(PersonEditViewModel).oy5 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bxz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onEntityChanged.' call var tmp; var tmp_0 = entity == null ? null : entity.t95_1; var tmp1_safe_receiver = this.bxz_1.t2().pxz_1; if (!(tmp_0 == (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t95_1))) { var tmp_1; if (entity == null) { tmp_1 = null; } else { tmp_1 = shallowCopy(entity, PersonEditViewModel$onEntityChanged$lambda(this, entity)); } tmp = tmp_1; } else { tmp = entity; } var tmp15_person = tmp; var tmp7_safe_receiver = prevValue.pxz_1; var tmp_2 = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.y95_1; var tmp16_genderError = this.npt(tmp_2, entity == null ? null : entity.y95_1, prevValue.dy0_1); var tmp9_safe_receiver = prevValue.pxz_1; var tmp_3 = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.u95_1; var tmp17_firstNameError = this.npt(tmp_3, entity == null ? null : entity.u95_1, prevValue.ey0_1); var tmp11_safe_receiver = prevValue.pxz_1; var tmp_4 = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.v95_1; var tmp18_lastNameError = this.npt(tmp_4, entity == null ? null : entity.v95_1, prevValue.fy0_1); var tmp13_safe_receiver = prevValue.pxz_1; var tmp_5 = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.x95_1; var tmp19_phoneNumError = this.npt(tmp_5, entity == null ? null : entity.x95_1, prevValue.gy0_1); var tmp5_safe_receiver = prevValue.pxz_1; var tmp_6 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.w95_1; var tmp20_emailError = this.npt(tmp_6, entity == null ? null : entity.w95_1, prevValue.zxz_1); var tmp3_safe_receiver = prevValue.pxz_1; var tmp_7 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.t95_1; var tmp21_usernameError = this.npt(tmp_7, entity == null ? null : entity.t95_1, prevValue.wxz_1); var nextValue = prevValue.iy0(tmp15_person, VOID, VOID, VOID, VOID, VOID, VOID, tmp21_usernameError, VOID, VOID, tmp20_emailError, VOID, VOID, VOID, tmp16_genderError, tmp17_firstNameError, tmp18_lastNameError, tmp19_phoneNumError); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver = this.hps_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp_8 = this; var tmp_9 = this.tpm(); tmp_8.hps_1 = launch(tmp_9, VOID, VOID, PersonEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(PersonEditViewModel).py5 = function (password) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bxz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onPasswordChanged.' call var nextValue = prevValue.iy0(VOID, password, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(PersonEditViewModel).qy5 = 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.bxz_1.t2().sxz_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q96_1; tmp.q96_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this_0.s96_1 = pictureUri; var personPicture = this_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bxz_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onPersonPictureChanged.' call var nextValue = prevValue.iy0(VOID, VOID, VOID, personPicture); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.tpm(); launch(tmp_0, VOID, VOID, PersonEditViewModel$onPersonPictureChanged$slambda_0(this, personPicture, null)); }; protoOf(PersonEditViewModel).ry5 = function (personParentJoin) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bxz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onApprovalPersonParentJoinChanged.' call var nextValue = prevValue.iy0(VOID, VOID, VOID, VOID, VOID, personParentJoin); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(PersonEditViewModel).sy5 = function (phoneNumSet) { // Inline function 'kotlin.takeIf' call var this_0 = this.bxz_1; // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onNationalPhoneNumSetChanged.' call if (!(this_0.t2().hy0_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.iy0(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).ur3 = function () { if (!this.bxz_1.t2().txz_1) return Unit_instance; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bxz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onClickSave.' call var nextValue = prevValue.iy0(VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.cpn(Companion_getInstance_91().hp6_1); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.bxz_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.iy0(VOID, VOID, VOID, VOID, false); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp0_safe_receiver = this.bxz_1.t2().pxz_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.apn().tno(strings_getInstance().dlz_1); var currentTime = systemTimeInMillis(); var isRegistrationMode = hasFlag(this.dxz_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.ixz_1.koe(tmp2_safe_receiver); } var validatedEmailAddr = tmp_1; var tmp_2; if (isRegistrationMode) { var tmp3_elvis_lhs = savePerson.t95_1; tmp_2 = this.jxz_1.koe(tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs); } else { tmp_2 = null; } var validationResult = tmp_2; $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.bxz_1; while (true) { var prevValue_1 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onClickSave.' call var tmp_3; if (isRegistrationMode) { var tmp_4; if ((validationResult == null ? null : validationResult.eoo_1) == null) { tmp_4 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onClickSave..' call tmp_4 = this.apn().tno(strings_getInstance().hm1_1); } tmp_3 = tmp_4; } else { tmp_3 = null; } var tmp3_usernameError = tmp_3; var tmp_5; var tmp_6; if (isRegistrationMode) { // Inline function 'kotlin.text.isNullOrBlank' call var this_3 = savePerson.t95_1; // Inline function 'kotlin.contracts.contract' call tmp_6 = this_3 == null ? true : isBlank(this_3); } else { tmp_6 = false; } if (tmp_6) { tmp_5 = this.apn().tno(strings_getInstance().dlz_1); } else { tmp_5 = null; } var tmp4_passwordError = tmp_5; var tmp_7; if (savePerson.a96_1.c7(currentTime) > 0) { tmp_7 = this.apn().tno(strings_getInstance().hm1_1); } else if (isRegistrationMode ? !isDateSet(savePerson.a96_1) : false) { tmp_7 = this.apn().tno(strings_getInstance().dlz_1); } else { tmp_7 = null; } var tmp5_dateOfBirthError = tmp_7; var tmp_8; // 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_8 = requiredFieldMessage; } else { tmp_8 = null; } var tmp6_firstNameError = tmp_8; var tmp_9; // 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_9 = requiredFieldMessage; } else { tmp_9 = null; } var tmp7_lastNameError = tmp_9; var tmp_10; var tmp_11 = savePerson.y95_1; if (tmp_11 === 0) { tmp_10 = requiredFieldMessage; } else { tmp_10 = null; } var tmp8_genderError = tmp_10; var tmp_12; var tmp_13; if (this.bxz_1.t2().hy0_1) { var tmp2_safe_receiver_0 = savePerson.x95_1; var tmp_14; if (tmp2_safe_receiver_0 == null) { tmp_14 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onClickSave..' call tmp_14 = _get_phoneNumValidatorUseCase__4guu7i(this).tol(tmp2_safe_receiver_0); } tmp_13 = !(tmp_14 === true); } else { tmp_13 = false; } if (tmp_13) { tmp_12 = this.apn().tno(strings_getInstance().hm1_1); } else { tmp_12 = null; } var tmp9_phoneNumError = tmp_12; var tmp_15; var tmp_16; // Inline function 'kotlin.text.isNullOrBlank' call var this_6 = savePerson.w95_1; // Inline function 'kotlin.contracts.contract' call if (!(this_6 == null ? true : isBlank(this_6))) { tmp_16 = validatedEmailAddr == null; } else { tmp_16 = false; } if (tmp_16) { tmp_15 = this.apn().tno(strings_getInstance().hm1_1); } else { tmp_15 = null; } var tmp10_emailError = tmp_15; var nextValue_1 = prevValue_1.iy0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_usernameError, VOID, tmp4_passwordError, tmp10_emailError, null, tmp5_dateOfBirthError, null, tmp8_genderError, tmp6_firstNameError, tmp7_lastNameError, tmp9_phoneNumError); if (this_2.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } if (hasErrors_3(this.bxz_1.t2(), this)) { this.cpn(Companion_getInstance_91().ip6_1); $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_7 = this.bxz_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.iy0(VOID, VOID, VOID, VOID, true); if (this_7.y1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } return Unit_instance; } var tmp_17 = this.tpm(); launch(tmp_17, VOID, VOID, PersonEditViewModel$onClickSave$slambda_0(isRegistrationMode, this, savePerson, requiredFieldMessage, null)); }; function PersonEditUiState(person, password, genderOptions, personPicture, fieldsEnabled, approvalPersonParentJoin, registrationMode, usernameError, passwordConfirmedError, passwordError, emailError, confirmError, dateOfBirthError, parentContactError, genderError, firstNameError, lastNameError, phoneNumError, nationalPhoneNumSet) { person = person === VOID ? null : person; password = password === VOID ? null : password; genderOptions = genderOptions === VOID ? PersonConstants_getInstance_0().bp7_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.pxz_1 = person; this.qxz_1 = password; this.rxz_1 = genderOptions; this.sxz_1 = personPicture; this.txz_1 = fieldsEnabled; this.uxz_1 = approvalPersonParentJoin; this.vxz_1 = registrationMode; this.wxz_1 = usernameError; this.xxz_1 = passwordConfirmedError; this.yxz_1 = passwordError; this.zxz_1 = emailError; this.ay0_1 = confirmError; this.by0_1 = dateOfBirthError; this.cy0_1 = parentContactError; this.dy0_1 = genderError; this.ey0_1 = firstNameError; this.fy0_1 = lastNameError; this.gy0_1 = phoneNumError; this.hy0_1 = nationalPhoneNumSet; } protoOf(PersonEditUiState).ty5 = function () { return !(this.uxz_1 == null); }; protoOf(PersonEditUiState).vxw = function () { return !hasFlag(this.vxz_1, 1); }; protoOf(PersonEditUiState).pxl = function () { return hasFlag(this.vxz_1, 1); }; protoOf(PersonEditUiState).uy5 = function () { return hasFlag(this.vxz_1, 1); }; protoOf(PersonEditUiState).bxx = function () { return !hasFlag(this.vxz_1, 2); }; protoOf(PersonEditUiState).axx = function () { return !hasFlag(this.vxz_1, 2); }; protoOf(PersonEditUiState).zxw = function () { return !hasFlag(this.vxz_1, 2); }; protoOf(PersonEditUiState).vy5 = 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).iy0 = 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.pxz_1 : person; password = password === VOID ? this.qxz_1 : password; genderOptions = genderOptions === VOID ? this.rxz_1 : genderOptions; personPicture = personPicture === VOID ? this.sxz_1 : personPicture; fieldsEnabled = fieldsEnabled === VOID ? this.txz_1 : fieldsEnabled; approvalPersonParentJoin = approvalPersonParentJoin === VOID ? this.uxz_1 : approvalPersonParentJoin; registrationMode = registrationMode === VOID ? this.vxz_1 : registrationMode; usernameError = usernameError === VOID ? this.wxz_1 : usernameError; passwordConfirmedError = passwordConfirmedError === VOID ? this.xxz_1 : passwordConfirmedError; passwordError = passwordError === VOID ? this.yxz_1 : passwordError; emailError = emailError === VOID ? this.zxz_1 : emailError; confirmError = confirmError === VOID ? this.ay0_1 : confirmError; dateOfBirthError = dateOfBirthError === VOID ? this.by0_1 : dateOfBirthError; parentContactError = parentContactError === VOID ? this.cy0_1 : parentContactError; genderError = genderError === VOID ? this.dy0_1 : genderError; firstNameError = firstNameError === VOID ? this.ey0_1 : firstNameError; lastNameError = lastNameError === VOID ? this.fy0_1 : lastNameError; phoneNumError = phoneNumError === VOID ? this.gy0_1 : phoneNumError; nationalPhoneNumSet = nationalPhoneNumSet === VOID ? this.hy0_1 : nationalPhoneNumSet; return $super === VOID ? this.vy5(person, password, genderOptions, personPicture, fieldsEnabled, approvalPersonParentJoin, registrationMode, usernameError, passwordConfirmedError, passwordError, emailError, confirmError, dateOfBirthError, parentContactError, genderError, firstNameError, lastNameError, phoneNumError, nationalPhoneNumSet) : $super.vy5.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.pxz_1 + ', password=' + this.qxz_1 + ', genderOptions=' + this.rxz_1 + ', personPicture=' + this.sxz_1 + ', fieldsEnabled=' + this.txz_1 + ', approvalPersonParentJoin=' + this.uxz_1 + ', registrationMode=' + this.vxz_1 + ', usernameError=' + this.wxz_1 + ', passwordConfirmedError=' + this.xxz_1 + ', passwordError=' + this.yxz_1 + ', emailError=' + this.zxz_1 + ', confirmError=' + this.ay0_1 + ', dateOfBirthError=' + this.by0_1 + ', parentContactError=' + this.cy0_1 + ', genderError=' + this.dy0_1 + ', firstNameError=' + this.ey0_1 + ', lastNameError=' + this.fy0_1 + ', phoneNumError=' + this.gy0_1 + ', nationalPhoneNumSet=' + this.hy0_1 + ')'; }; protoOf(PersonEditUiState).hashCode = function () { var result = this.pxz_1 == null ? 0 : this.pxz_1.hashCode(); result = imul(result, 31) + (this.qxz_1 == null ? 0 : getStringHashCode(this.qxz_1)) | 0; result = imul(result, 31) + hashCode(this.rxz_1) | 0; result = imul(result, 31) + (this.sxz_1 == null ? 0 : this.sxz_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.txz_1) | 0; result = imul(result, 31) + (this.uxz_1 == null ? 0 : this.uxz_1.hashCode()) | 0; result = imul(result, 31) + 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; result = imul(result, 31) + (this.zxz_1 == null ? 0 : getStringHashCode(this.zxz_1)) | 0; result = imul(result, 31) + (this.ay0_1 == null ? 0 : getStringHashCode(this.ay0_1)) | 0; result = imul(result, 31) + (this.by0_1 == null ? 0 : getStringHashCode(this.by0_1)) | 0; result = imul(result, 31) + (this.cy0_1 == null ? 0 : getStringHashCode(this.cy0_1)) | 0; result = imul(result, 31) + (this.dy0_1 == null ? 0 : getStringHashCode(this.dy0_1)) | 0; result = imul(result, 31) + (this.ey0_1 == null ? 0 : getStringHashCode(this.ey0_1)) | 0; result = imul(result, 31) + (this.fy0_1 == null ? 0 : getStringHashCode(this.fy0_1)) | 0; result = imul(result, 31) + (this.gy0_1 == null ? 0 : getStringHashCode(this.gy0_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.hy0_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.pxz_1, tmp0_other_with_cast.pxz_1)) return false; if (!(this.qxz_1 == tmp0_other_with_cast.qxz_1)) return false; if (!equals(this.rxz_1, tmp0_other_with_cast.rxz_1)) return false; if (!equals(this.sxz_1, tmp0_other_with_cast.sxz_1)) return false; if (!(this.txz_1 === tmp0_other_with_cast.txz_1)) return false; if (!equals(this.uxz_1, tmp0_other_with_cast.uxz_1)) return false; if (!(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; if (!(this.zxz_1 == tmp0_other_with_cast.zxz_1)) return false; if (!(this.ay0_1 == tmp0_other_with_cast.ay0_1)) return false; if (!(this.by0_1 == tmp0_other_with_cast.by0_1)) return false; if (!(this.cy0_1 == tmp0_other_with_cast.cy0_1)) return false; if (!(this.dy0_1 == tmp0_other_with_cast.dy0_1)) return false; if (!(this.ey0_1 == tmp0_other_with_cast.ey0_1)) return false; if (!(this.fy0_1 == tmp0_other_with_cast.fy0_1)) return false; if (!(this.gy0_1 == tmp0_other_with_cast.gy0_1)) return false; if (!(this.hy0_1 === tmp0_other_with_cast.hy0_1)) return false; return true; }; function apiUrlConfig$factory_5() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_2(receiver); }, null); } function phoneNumValidatorUseCase$factory() { return getPropertyCallableRef('phoneNumValidatorUseCase', 1, KProperty1, function (receiver) { return _get_phoneNumValidatorUseCase__4guu7i(receiver); }, null); } function genderConfig$factory() { return getPropertyCallableRef('genderConfig', 1, KProperty1, function (receiver) { return _get_genderConfig__kyr0zc(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_6() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_2(receiver); }, null); } function phoneNumValidatorUseCase$factory_0() { return getPropertyCallableRef('phoneNumValidatorUseCase', 1, KProperty1, function (receiver) { return _get_phoneNumValidatorUseCase__4guu7i(receiver); }, null); } function genderConfig$factory_0() { return getPropertyCallableRef('genderConfig', 1, KProperty1, function (receiver) { return _get_genderConfig__kyr0zc(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 EmptyPagingSource() { PagingSource.call(this); } protoOf(EmptyPagingSource).p54 = function (params, $completion) { var tmp = Page_init_$Create$(emptyList(), null, null); return tmp instanceof LoadResult ? tmp : THROW_CCE(); }; function PersonListViewModel$slambda$slambda$slambda$lambda() { return new EmptyPagingSource(); } function PersonListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.fy6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda$slambda$slambda).qpe = function (hasPermissionToList, $completion) { var tmp = this.rpe(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.qpe((!(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.fy6_1.xpu_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (this.gy6_1) { tmp_0 = this.fy6_1.ky7_1; } else { tmp_0 = PersonListViewModel$slambda$slambda$slambda$lambda; } var nextValue = prevValue.wy7(tmp_0, VOID, VOID, VOID, !(this.fy6_1.ly7_1 == null), this.fy6_1.ly7_1, this.gy6_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.fy6_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ap6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.sp5_1.kp5(this.gy6_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).rpe = function (hasPermissionToList, completion) { var i = new PersonListViewModel$slambda$slambda$slambda(this.fy6_1, completion); i.gy6_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.qpe(hasPermissionToList, $completion); }; l.$arity = 1; return l; } function PersonListViewModel$slambda$slambda($hasPermissionToListFlow, this$0, resultContinuation) { this.fy8_1 = $hasPermissionToListFlow; this.gy8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonListViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.fy8_1); var tmp_1 = PersonListViewModel$slambda$slambda$slambda_0(this.gy8_1, null); suspendResult = tmp_0.a1c(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(PersonListViewModel$slambda$slambda).l78 = function (completion) { return new PersonListViewModel$slambda$slambda(this.fy8_1, this.gy8_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.z86($completion); }; l.$arity = 0; return l; } function PersonListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.py8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda$slambda_1).qrv = function (it, $completion) { var tmp = this.rrv(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.qrv(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.qy8_1; var hasAddPermission = tmp0_container.y6(); var hasViewAllPermission = tmp0_container.z6(); var hasBulkAddPermission = hasAddPermission ? hasViewAllPermission : false; l$ret$1: do { var this_0 = this.py8_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wy7(VOID, VOID, VOID, this.py8_1.cpv().equals(ListViewMode_PICKER_getInstance()) ? hasAddPermission : false, 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.py8_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ap6(prevValue_0.lp5_1.gp6(this.py8_1.cpv().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).rrv = function (it, completion) { var i = new PersonListViewModel$slambda$slambda_1(this.py8_1, completion); i.qy8_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.qrv(it, $completion); }; l.$arity = 1; return l; } function _get_setClipboardStringUseCase__31i1s1_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.my7_1; setClipboardStringUseCase$factory_4(); return this_0.t2(); } function onClickFab($this) { if ($this.xpu_1.t2().vy7_1) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onClickFab.' call var nextValue = prevValue.wy7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } else { $this.spv(); } } function Companion_173() { Companion_instance_221 = this; this.ry8_1 = 'People'; this.sy8_1 = 'PersonListHome'; this.ty8_1 = listOf(['People', 'PersonListHome']); this.uy8_1 = 'exlcudeFromClazz'; this.vy8_1 = 'excludeAlreadySelectedList'; this.wy8_1 = 'showAddViaInviteLink'; this.xy8_1 = 'rptsl'; } var Companion_instance_221; function Companion_getInstance_190() { if (Companion_instance_221 == null) new Companion_173(); return Companion_instance_221; } function sam$kotlinx_coroutines_flow_FlowCollector$0_33(function_0) { this.yy8_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_33).t1d = function (value, $completion) { return this.yy8_1(value, $completion); }; function PersonListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.wpm().n7d().dfp(getSystemTimeInMillis(), this$0.hy7_1, this$0.iy7_1, this$0.upm(), this$0.xpu_1.t2().py7_1.ypb_1, toQueryLikeParam(this$0.gpm_1.t2().sp5_1.hp5_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.hy9_1 = this$0; this.iy9_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.hy9_1.xpu_1, PersonListViewModel$slambda$slambda_0(this.iy9_1, this.hy9_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.hy9_1, this.iy9_1, completion); i.jy9_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.sy9_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.sy9_1.wpm().p7f(); var tmp_1 = this.sy9_1.upm(); PermissionFlags_getInstance(); var tmp_2 = new Long(1024, 0); PermissionFlags_getInstance(); var tmp_3 = tmp_0.ahf(tmp_1, tmp_2, new Long(8192, 0)); var tmp_4 = PersonListViewModel$slambda$slambda_2(this.sy9_1, null); suspendResult = tmp_3.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_33(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.sy9_1, completion); i.ty9_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_190(); 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.hy7_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; var tmp0_safe_receiver_0 = savedStateHandle.ba('excludeAlreadySelectedList'); var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : split(tmp0_safe_receiver_0, [',']); var tmp_1; if (tmp1_safe_receiver == null) { tmp_1 = 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_1 = destination; } var tmp2_safe_receiver = tmp_1; var tmp_2; if (tmp2_safe_receiver == null) { tmp_2 = 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_2 = destination_0; } var tmp3_elvis_lhs = tmp_2; var tmp_3; if (tmp3_elvis_lhs == null) { // Inline function 'kotlin.collections.listOf' call tmp_3 = emptyList(); } else { tmp_3 = tmp3_elvis_lhs; } tmp_0.iy7_1 = tmp_3; var tmp_4 = this; var tmp0_safe_receiver_1 = savedStateHandle.ba('rptsl'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_1 == null ? null : toLong_0(tmp0_safe_receiver_1); tmp_4.jy7_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_5 = this; tmp_5.ky7_1 = PersonListViewModel$pagingSourceFactory$lambda(this); this.ly7_1 = savedStateHandle.ba('showAddViaInviteLink'); var tmp_6 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(SetClipboardStringUseCase), arrayOf([]), false)); var tmp$ret$9 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); tmp_6.my7_1 = Instance(this, tmp$ret$9, null).a5d(this, setClipboardStringUseCase$factory_3()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.' call var tmp1_searchState = this.fpw(false); Companion_getInstance_118(); var tmp0_elvis_lhs = savedStateHandle.ba('t'); var tmp2_title = tmp0_elvis_lhs == null ? this.opw(strings_getInstance().sm5_1, strings_getInstance().nmw_1) : tmp0_elvis_lhs; var tmp_8 = this.apn().tno(strings_getInstance().pmc_1); var tmp_9 = FabIcon_ADD_getInstance(); var tmp3_fabState = new FabUiState(VOID, tmp_8, tmp_9, PersonListViewModel$onClickFab$ref(this)); var nextValue = prevValue.ap6(tmp3_fabState, VOID, tmp2_title, true, VOID, VOID, VOID, tmp1_searchState); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_10; if (this.jy7_1.equals(new Long(0, 0))) { tmp_10 = flowOf(true); } else { tmp_10 = this.wpm().p7f().zhe(this.upm(), this.jy7_1); } var hasPermissionToListFlow = tmp_10; var tmp_11 = this.tpm(); launch(tmp_11, VOID, VOID, PersonListViewModel$slambda_0(this, hasPermissionToListFlow, null)); var tmp_12 = this.tpm(); launch(tmp_12, VOID, VOID, PersonListViewModel$slambda_2(this, null)); } protoOf(PersonListViewModel).rpv = function (searchText) { this.zpu_1.i1h(new RefreshCommand()); }; protoOf(PersonListViewModel).rrn = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onSortOrderChanged.' call var nextValue = prevValue.wy7(VOID, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.zpu_1.i1h(new RefreshCommand()); }; protoOf(PersonListViewModel).uy9 = function () { if (this.ly7_1 == null) return Unit_instance; Companion_getInstance_118(); this.epm_1.hob('InviteWithLink', mapOf_0(to('inviteCode', this.ly7_1))); }; protoOf(PersonListViewModel).vy9 = function () { var tmp0_safe_receiver = this.xpu_1.t2().sy7_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).mo6(tmp0_safe_receiver); this.ypm().pp6(new Snack(this.apn().tno(strings_getInstance().smj_1))); } }; protoOf(PersonListViewModel).wy9 = function () { this.epm_1.hob('BulkAddPersonSelectFile', emptyMap()); }; protoOf(PersonListViewModel).spv = function () { Companion_getInstance_189(); var tmp0_safe_receiver = this.cpm_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.kpw('PersonEditView', tmp1_elvis_lhs == null ? emptyMap() : tmp1_elvis_lhs); }; protoOf(PersonListViewModel).xy9 = function (entry) { var goToOnPersonSelected = this.cpm_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.cpm_1.ba('popUpToOnPersonSelected'); this.epm_1.rp8(goToDestName, args, new UstadGoOptions(popUpTo, true)); } else { this.npw('PersonDetailView', entry.s95_1, entry); } }; protoOf(PersonListViewModel).yy9 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xpu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onDismissAddSheetOrDialog.' call var nextValue = prevValue.wy7(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, 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().klv_1; var tmp_2 = new SortOrderOption(tmp_1, 1, true); var tmp_3 = strings_getInstance().klv_1; var tmp_4 = new SortOrderOption(tmp_3, 2, false); var tmp_5 = strings_getInstance().jlv_1; var tmp_6 = new SortOrderOption(tmp_5, 3, true); var tmp_7 = strings_getInstance().jlv_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; inviteCode = inviteCode === VOID ? null : inviteCode; showSortOptions = showSortOptions === VOID ? true : showSortOptions; addSheetOrDialogVisible = addSheetOrDialogVisible === VOID ? false : addSheetOrDialogVisible; hasBulkImportPermission = hasBulkImportPermission === VOID ? false : hasBulkImportPermission; this.ny7_1 = personList; this.oy7_1 = sortOptions; this.py7_1 = sortOption; this.qy7_1 = showAddItem; this.ry7_1 = showInviteViaLink; this.sy7_1 = inviteCode; this.ty7_1 = showSortOptions; this.uy7_1 = addSheetOrDialogVisible; this.vy7_1 = hasBulkImportPermission; } protoOf(PersonListUiState).zy9 = function (personList, sortOptions, sortOption, showAddItem, showInviteViaLink, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission) { return new PersonListUiState(personList, sortOptions, sortOption, showAddItem, showInviteViaLink, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission); }; protoOf(PersonListUiState).wy7 = function (personList, sortOptions, sortOption, showAddItem, showInviteViaLink, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission, $super) { personList = personList === VOID ? this.ny7_1 : personList; sortOptions = sortOptions === VOID ? this.oy7_1 : sortOptions; sortOption = sortOption === VOID ? this.py7_1 : sortOption; showAddItem = showAddItem === VOID ? this.qy7_1 : showAddItem; showInviteViaLink = showInviteViaLink === VOID ? this.ry7_1 : showInviteViaLink; inviteCode = inviteCode === VOID ? this.sy7_1 : inviteCode; showSortOptions = showSortOptions === VOID ? this.ty7_1 : showSortOptions; addSheetOrDialogVisible = addSheetOrDialogVisible === VOID ? this.uy7_1 : addSheetOrDialogVisible; hasBulkImportPermission = hasBulkImportPermission === VOID ? this.vy7_1 : hasBulkImportPermission; return $super === VOID ? this.zy9(personList, sortOptions, sortOption, showAddItem, showInviteViaLink, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission) : $super.zy9.call(this, personList, sortOptions, sortOption, showAddItem, showInviteViaLink, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission); }; protoOf(PersonListUiState).toString = function () { return 'PersonListUiState(personList=' + this.ny7_1 + ', sortOptions=' + this.oy7_1 + ', sortOption=' + this.py7_1 + ', showAddItem=' + this.qy7_1 + ', showInviteViaLink=' + this.ry7_1 + ', inviteCode=' + this.sy7_1 + ', showSortOptions=' + this.ty7_1 + ', addSheetOrDialogVisible=' + this.uy7_1 + ', hasBulkImportPermission=' + this.vy7_1 + ')'; }; protoOf(PersonListUiState).hashCode = function () { var result = hashCode(this.ny7_1); result = imul(result, 31) + hashCode(this.oy7_1) | 0; result = imul(result, 31) + this.py7_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.qy7_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ry7_1) | 0; result = imul(result, 31) + (this.sy7_1 == null ? 0 : getStringHashCode(this.sy7_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.ty7_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.uy7_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.vy7_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.ny7_1, tmp0_other_with_cast.ny7_1)) return false; if (!equals(this.oy7_1, tmp0_other_with_cast.oy7_1)) return false; if (!this.py7_1.equals(tmp0_other_with_cast.py7_1)) return false; if (!(this.qy7_1 === tmp0_other_with_cast.qy7_1)) return false; if (!(this.ry7_1 === tmp0_other_with_cast.ry7_1)) return false; if (!(this.sy7_1 == tmp0_other_with_cast.sy7_1)) return false; if (!(this.ty7_1 === tmp0_other_with_cast.ty7_1)) return false; if (!(this.uy7_1 === tmp0_other_with_cast.uy7_1)) return false; if (!(this.vy7_1 === tmp0_other_with_cast.vy7_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_174() { this.aya_1 = 'RegisterAgeRedirect'; } var Companion_instance_222; function Companion_getInstance_191() { return Companion_instance_222; } function RegisterAgeRedirectViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'RegisterAgeRedirect'); this.wya_1 = MutableStateFlow(new RegisterAgeRedirectUiState(VOID, systemTimeInMillis())); this.xya_1 = asStateFlow(this.wya_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerageredirect.RegisterAgeRedirectViewModel.' call var tmp0_title = this.apn().tno(strings_getInstance().vlv_1); var nextValue = prevValue.ap6(VOID, VOID, tmp0_title, false, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } protoOf(RegisterAgeRedirectViewModel).yya = function (date) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.wya_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerageredirect.RegisterAgeRedirectViewModel.onSetDate.' call var nextValue = prevValue.cyb(date, VOID, !prevValue.zya_1.equals(date) ? null : prevValue.byb_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(RegisterAgeRedirectViewModel).qv7 = function () { var date = this.wya_1.t2().zya_1; if (date.equals(new Long(0, 0))) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.wya_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerageredirect.RegisterAgeRedirectViewModel.onClickNext.' call var nextValue = prevValue.cyb(VOID, VOID, this.apn().tno(strings_getInstance().dlz_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.wya_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.cyb(VOID, VOID, this.apn().tno(strings_getInstance().hm1_1)); if (this_2.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } var dateOfBirthInstant = Companion_getInstance_6().pls(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.opn(this_3, Companion_getInstance_189().bx5_1); var tmp; if (isMinor) { Companion_getInstance_189(); Companion_getInstance_189(); tmp = 1 | 2; } else { Companion_getInstance_189(); tmp = 1; } var registrationMode = tmp; Companion_getInstance_189(); this_3.s('RegMode', registrationMode.toString()); Companion_getInstance_189(); this_3.s('DateOfBirth', date.toString()); var args = this_3.f3(); if (isMinor) { Companion_getInstance_189(); this.epm_1.hob('Register', args); } else { this.epm_1.hob('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.zya_1 = dateOfBirth; this.ayb_1 = maxDate; this.byb_1 = dateOfBirthError; } protoOf(RegisterAgeRedirectUiState).dyb = function (dateOfBirth, maxDate, dateOfBirthError) { return new RegisterAgeRedirectUiState(dateOfBirth, maxDate, dateOfBirthError); }; protoOf(RegisterAgeRedirectUiState).cyb = function (dateOfBirth, maxDate, dateOfBirthError, $super) { dateOfBirth = dateOfBirth === VOID ? this.zya_1 : dateOfBirth; maxDate = maxDate === VOID ? this.ayb_1 : maxDate; dateOfBirthError = dateOfBirthError === VOID ? this.byb_1 : dateOfBirthError; return $super === VOID ? this.dyb(dateOfBirth, maxDate, dateOfBirthError) : $super.dyb.call(this, dateOfBirth, maxDate, dateOfBirthError); }; protoOf(RegisterAgeRedirectUiState).toString = function () { return 'RegisterAgeRedirectUiState(dateOfBirth=' + this.zya_1.toString() + ', maxDate=' + this.ayb_1.toString() + ', dateOfBirthError=' + this.byb_1 + ')'; }; protoOf(RegisterAgeRedirectUiState).hashCode = function () { var result = this.zya_1.hashCode(); result = imul(result, 31) + this.ayb_1.hashCode() | 0; result = imul(result, 31) + (this.byb_1 == null ? 0 : getStringHashCode(this.byb_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.zya_1.equals(tmp0_other_with_cast.zya_1)) return false; if (!this.ayb_1.equals(tmp0_other_with_cast.ayb_1)) return false; if (!(this.byb_1 == tmp0_other_with_cast.byb_1)) return false; return true; }; function Companion_175() { this.eyb_1 = 'WaitForParent'; this.fyb_1 = 'username'; this.gyb_1 = 'password'; this.hyb_1 = 'parentContact'; } var Companion_instance_223; function Companion_getInstance_192() { return Companion_instance_223; } function RegisterMinorWaitForParentViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'WaitForParent'); this.dyc_1 = MutableStateFlow(new RegisterMinorWaitForParentUiState()); this.eyc_1 = asStateFlow(this.dyc_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerminorwaitforparent.RegisterMinorWaitForParentViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, this.apn().tno(strings_getInstance().vlv_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.dyc_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.iyc(tmp, tmp_0, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(RegisterMinorWaitForParentViewModel).jyc = function () { this.epm_1.sp8('WaitForParent', true); }; function RegisterMinorWaitForParentUiState(username, password, parentContact) { username = username === VOID ? '' : username; password = password === VOID ? '' : password; parentContact = parentContact === VOID ? '' : parentContact; this.fyc_1 = username; this.gyc_1 = password; this.hyc_1 = parentContact; } protoOf(RegisterMinorWaitForParentUiState).iyc = function (username, password, parentContact) { return new RegisterMinorWaitForParentUiState(username, password, parentContact); }; protoOf(RegisterMinorWaitForParentUiState).toString = function () { return 'RegisterMinorWaitForParentUiState(username=' + this.fyc_1 + ', password=' + this.gyc_1 + ', parentContact=' + this.hyc_1 + ')'; }; protoOf(RegisterMinorWaitForParentUiState).hashCode = function () { var result = getStringHashCode(this.fyc_1); result = imul(result, 31) + getStringHashCode(this.gyc_1) | 0; result = imul(result, 31) + getStringHashCode(this.hyc_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.fyc_1 === tmp0_other_with_cast.fyc_1)) return false; if (!(this.gyc_1 === tmp0_other_with_cast.gyc_1)) return false; if (!(this.hyc_1 === tmp0_other_with_cast.hyc_1)) return false; return true; }; function RedirectViewModel$slambda$lambda(_anonymous_parameter_0__qggqh8, _anonymous_parameter_1__qggqgd) { return Unit_instance; } function _get_apiUrlConfig__mldllg_3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hyd_1; apiUrlConfig$factory_8(); return this_0.t2(); } function _get_settings__lbkut4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.iyd_1; settings$factory_0(); return this_0.t2(); } function Companion_176() { this.jyd_1 = ''; } var Companion_instance_224; function Companion_getInstance_193() { return Companion_instance_224; } function sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_1(function_0) { this.kyd_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_1).yoi = function (url, target) { return this.kyd_1(url, target); }; function RedirectViewModel$slambda(this$0, $destinationArg, $destination, resultContinuation) { this.tyd_1 = this$0; this.uyd_1 = $destinationArg; this.vyd_1 = $destination; 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.tyd_1.epm_1; var tmp1_accountManager = this.tyd_1.spm(); 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_3(this.tyd_1).ing_1; var tmp4_goOptions = new UstadGoOptions(VOID, VOID, true); var tmp5_forceAccountSelection = !(this.uyd_1 == null); navigateToLink(tmp0_$receiver, this.vyd_1, tmp1_accountManager, tmp2_openExternalLinkUseCase, tmp4_goOptions, tmp5_forceAccountSelection, tmp3_userCanSelectServer); 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.tyd_1, this.uyd_1, this.vyd_1, completion); i.wyd_1 = $this$launch; return i; }; function RedirectViewModel$slambda_0(this$0, $destinationArg, $destination, resultContinuation) { var i = new RedirectViewModel$slambda(this$0, $destinationArg, $destination, 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.fyd_1 = savedStateHandle.ba('next'); var tmp_0 = this; Companion_getInstance_108(); tmp_0.gyd_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(ApiUrlConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.hyd_1 = Instance(this, tmp$ret$0, null).a5d(this, apiUrlConfig$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(Settings), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.iyd_1 = Instance(this, tmp$ret$2, null).a5d(this, settings$factory()); this.gpm_1.x1k(new AppUiState(VOID, VOID, VOID, false, VOID, VOID, VOID, VOID, VOID, VOID, true)); var tmp0_elvis_lhs = this.gyd_1; var destinationArg = tmp0_elvis_lhs == null ? this.fyd_1 : tmp0_elvis_lhs; var activeEndpoint = this.spm().mng(); if (!contains(activeEndpoint.jn2_1, 'localhost')) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var tmp_5 = get_direct(di).f58(); // 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(Endpoint), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp$ret$5 = tmp_6.h57(tmp$ret$4, activeEndpoint); var tmp_8 = tmp_5.c58(tmp$ret$5).f58(); // Inline function 'org.kodein.type.generic' call var tmp_9 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$7 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); var db = tmp_8.d58(tmp$ret$7, 1); println(db); } var tmp_10 = _get_settings__lbkut4(this); if (!(tmp_10.ilj('onboaring_screen') === 'true')) { // 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.redirect.RedirectViewModel.' call Companion_getInstance_118(); this.npn(this_0, 'next'); Companion_getInstance_118(); this.npn(this_0, 'openLink'); var tmp$ret$11 = this_0.f3(); this.epm_1.hob('Onboarding', tmp$ret$11); } else { var tmp_11; if (destinationArg == null) { Companion_getInstance_129(); tmp_11 = 'CourseListHome'; } else { tmp_11 = destinationArg; } var destination = tmp_11; var tmp_12 = this.tpm(); launch(tmp_12, VOID, VOID, RedirectViewModel$slambda_0(this, destinationArg, destination, null)); } } function apiUrlConfig$factory_7() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_3(receiver); }, null); } function settings$factory() { return getPropertyCallableRef('settings', 1, KProperty1, function (receiver) { return _get_settings__lbkut4(receiver); }, null); } function apiUrlConfig$factory_8() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_3(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).gye = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ScheduleEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.gye(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).vn7 = function (it, completion) { var i = new ScheduleEditViewModel$slambda$slambda(completion); i.fye_1 = it; return i; }; function ScheduleEditViewModel$slambda$slambda_0(resultContinuation) { var i = new ScheduleEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.gye(it, $completion); }; l.$arity = 1; return l; } function ScheduleEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.pye_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleEditViewModel$slambda$slambda_1).sye = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ScheduleEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.sye($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.qye_1 = new Schedule(); var tmp_1 = this; tmp_1.rye_1 = this.qye_1; this.hd_1 = 1; var tmp_2 = get_doorPrimaryKeyManager(this.pye_1.vpm()); suspendResult = tmp_2.o62(21, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.rye_1.zgs_1 = ARGUMENT; this.rye_1.lgt_1 = true; this.rye_1.egt_1 = Companion_instance_28.zk8_1; return this.qye_1; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ScheduleEditViewModel$slambda$slambda_1).l78 = function (completion) { return new ScheduleEditViewModel$slambda$slambda_1(this.pye_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.sye($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.qyf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel...' call var nextValue = prevValue.wyf(schedule); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_177() { this.xyf_1 = 'ScheduleEdit'; } var Companion_instance_225; function Companion_getInstance_194() { return Companion_instance_225; } function ScheduleEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ScheduleEditViewModel$slambda(this$0, resultContinuation) { this.gyg_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.iyg_1 = Companion_instance_28.n4r(); this.hd_1 = 1; var tmp_0 = ScheduleEditViewModel$slambda$slambda_0(null); var tmp_1 = ScheduleEditViewModel$slambda$slambda_2(this.gyg_1, null); suspendResult = this.gyg_1.kpn(this.iyg_1, VOID, VOID, tmp_0, tmp_1, ScheduleEditViewModel$slambda$lambda(this.gyg_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.gyg_1.qyf_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wyf(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.gyg_1, completion); i.hyg_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.ryg_1 = $commitDelay; this.syg_1 = $entity; this.tyg_1 = $this; this.uyg_1 = $key; this.vyg_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.ryg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.syg_1 == null)) { this.hd_1 = 2; suspendResult = this.tyg_1.gpn(this.tyg_1.cpm_1, this.uyg_1, this.vyg_1, this.syg_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.ryg_1, this.syg_1, this.tyg_1, this.uyg_1, this.vyg_1, completion); i.wyg_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.qyf_1 = MutableStateFlow(new ScheduleEditUiState(VOID, VOID, VOID, false)); this.ryf_1 = asStateFlow(this.qyf_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel.' call var tmp0_title = this.mpt(strings_getInstance().ym5_1, strings_getInstance().zm5_1); var tmp = this.apn().tno(strings_getInstance().qm2_1); var tmp1_actionBarButtonState = new ActionBarButtonUiState(true, tmp, VOID, ScheduleEditViewModel$onClickSave$ref(this)); var nextValue = prevValue.ap6(VOID, VOID, tmp0_title, VOID, true, VOID, VOID, VOID, tmp1_actionBarButtonState); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.tpm(); launch(tmp_0, VOID, VOID, ScheduleEditViewModel$slambda_0(this, null)); } protoOf(ScheduleEditViewModel).xyg = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qyf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel.onEntityChanged.' call var tmp2_safe_receiver = prevValue.syf_1; var tmp = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.agt_1; var tmp4_toTimeError = this.npt(tmp, entity == null ? null : entity.agt_1, prevValue.uyf_1); var tmp0_safe_receiver = prevValue.syf_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bgt_1; var tmp5_fromTimeError = this.npt(tmp_0, entity == null ? null : entity.bgt_1, prevValue.tyf_1); var nextValue = prevValue.wyf(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_28.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.hps_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_1 = this; var tmp_2 = this.tpm(); tmp_1.hps_1 = launch(tmp_2, VOID, VOID, ScheduleEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ScheduleEditViewModel).ur3 = function () { var tmp0_elvis_lhs = this.qyf_1.t2().syf_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.qyf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel.onClickSave.' call var tmp_0; if (schedule.agt_1.equals(new Long(0, 0))) { tmp_0 = this.apn().tno(strings_getInstance().dlz_1); } else { tmp_0 = null; } var tmp_1 = tmp_0; var tmp_2; if (schedule.bgt_1.equals(new Long(0, 0))) { tmp_2 = this.apn().tno(strings_getInstance().dlz_1); } else if (schedule.bgt_1.c7(schedule.agt_1) <= 0) { tmp_2 = this.apn().tno(strings_getInstance().pmk_1); } else { tmp_2 = null; } var nextValue = prevValue.wyf(VOID, tmp_1, tmp_2); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (this.qyf_1.t2().tyf_1 == null ? this.qyf_1.t2().uyf_1 == null : false) { this.lps(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.syf_1 = entity; this.tyf_1 = fromTimeError; this.uyf_1 = toTimeError; this.vyf_1 = fieldsEnabled; } protoOf(ScheduleEditUiState).yyg = function (entity, fromTimeError, toTimeError, fieldsEnabled) { return new ScheduleEditUiState(entity, fromTimeError, toTimeError, fieldsEnabled); }; protoOf(ScheduleEditUiState).wyf = function (entity, fromTimeError, toTimeError, fieldsEnabled, $super) { entity = entity === VOID ? this.syf_1 : entity; fromTimeError = fromTimeError === VOID ? this.tyf_1 : fromTimeError; toTimeError = toTimeError === VOID ? this.uyf_1 : toTimeError; fieldsEnabled = fieldsEnabled === VOID ? this.vyf_1 : fieldsEnabled; return $super === VOID ? this.yyg(entity, fromTimeError, toTimeError, fieldsEnabled) : $super.yyg.call(this, entity, fromTimeError, toTimeError, fieldsEnabled); }; protoOf(ScheduleEditUiState).toString = function () { return 'ScheduleEditUiState(entity=' + this.syf_1 + ', fromTimeError=' + this.tyf_1 + ', toTimeError=' + this.uyf_1 + ', fieldsEnabled=' + this.vyf_1 + ')'; }; protoOf(ScheduleEditUiState).hashCode = function () { var result = this.syf_1 == null ? 0 : this.syf_1.hashCode(); result = imul(result, 31) + (this.tyf_1 == null ? 0 : getStringHashCode(this.tyf_1)) | 0; result = imul(result, 31) + (this.uyf_1 == null ? 0 : getStringHashCode(this.uyf_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.vyf_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.syf_1, tmp0_other_with_cast.syf_1)) return false; if (!(this.tyf_1 == tmp0_other_with_cast.tyf_1)) return false; if (!(this.uyf_1 == tmp0_other_with_cast.uyf_1)) return false; if (!(this.vyf_1 === tmp0_other_with_cast.vyf_1)) return false; return true; }; function Companion_178() { this.zyg_1 = 'DevSettings'; this.ayh_1 = 'showDevSettings'; } var Companion_instance_226; function Companion_getInstance_195() { return Companion_instance_226; } function SettingsViewModel$slambda$slambda(this$0, resultContinuation) { this.jyh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SettingsViewModel$slambda$slambda).qpe = function (siteAdminSettingsVisible, $completion) { var tmp = this.rpe(siteAdminSettingsVisible, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SettingsViewModel$slambda$slambda).he = function (p1, $completion) { return this.qpe((!(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.jyh_1.gyi_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.kyj(VOID, VOID, 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(SettingsViewModel$slambda$slambda).rpe = function (siteAdminSettingsVisible, completion) { var i = new SettingsViewModel$slambda$slambda(this.jyh_1, completion); i.kyh_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.qpe(siteAdminSettingsVisible, $completion); }; l.$arity = 1; return l; } function _get_supportedLangConfig__llzj1v($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.iyi_1; supportedLangConfig$factory_0(); return this_0.t2(); } function _get_setLanguageUseCase__st7nci_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jyi_1; setLanguageUseCase$factory_2(); return this_0.t2(); } function _get_getHtmlContentDisplayOptsUseCase__lppxoi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lyi_1; getHtmlContentDisplayOptsUseCase$factory_0(); return this_0.t2(); } function _get_getHtmlContentDisplaySettingUseCase__usawf4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.myi_1; getHtmlContentDisplaySettingUseCase$factory_0(); return this_0.t2(); } function _get_setHtmlContentDisplaySettingUseCase__8cgzqk($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nyi_1; setHtmlContentDisplaySettingUseCase$factory_0(); return this_0.t2(); } function _get_getVersionUseCase__n7x57g_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.oyi_1; getVersionUseCase$factory_4(); return this_0.t2(); } function _get_getStorageOptionsUseCase__v5dedp($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.pyi_1; getStorageOptionsUseCase$factory_0(); return this_0.t2(); } function _get_getOfflineStorageSettingUseCase__5c8mhw($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.qyi_1; getOfflineStorageSettingUseCase$factory_0(); return this_0.t2(); } function _get_setOfflineStorageSettingUseCase__lx9or4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ryi_1; setOfflineStorageSettingUseCase$factory_0(); return this_0.t2(); } function _get_getOfflineStorageAvailableSpace__om40zq($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.syi_1; getOfflineStorageAvailableSpace$factory_0(); return this_0.t2(); } function _get_settings__lbkut4_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.uyi_1; settings$factory_2(); return this_0.t2(); } function Companion_179() { this.lyj_1 = 'Settings'; } var Companion_instance_227; function Companion_getInstance_196() { return Companion_instance_227; } function sam$kotlinx_coroutines_flow_FlowCollector$0_34(function_0) { this.myj_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_34).t1d = function (value, $completion) { return this.myj_1(value, $completion); }; function SettingsViewModel$slambda(this$0, resultContinuation) { this.vyj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SettingsViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SettingsViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SettingsViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; var tmp_0 = this; var tmp0_safe_receiver = _get_getStorageOptionsUseCase__v5dedp(this.vyj_1); tmp_0.xyj_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.foi(); var tmp_1 = this; var tmp1_safe_receiver = _get_getOfflineStorageSettingUseCase__5c8mhw(this.vyj_1); tmp_1.yyj_1 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.foi(); if (!(this.xyj_1 == null)) { var tmp_2 = this; tmp_2.zyj_1 = this.xyj_1; var tmp_3 = this; tmp_3.ayk_1 = this.zyj_1; var tmp_4 = this; tmp_4.byk_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.zyj_1, 10)); this.cyk_1 = this.ayk_1.w(); this.hd_1 = 1; continue $sm; } else { this.hd_1 = 5; continue $sm; } case 1: if (!this.cyk_1.f()) { this.hd_1 = 4; continue $sm; } this.dyk_1 = this.cyk_1.e(); var tmp_5 = this; tmp_5.eyk_1 = this.dyk_1; this.fyk_1 = _get_getOfflineStorageAvailableSpace__om40zq(this.vyj_1); if (this.fyk_1 == null) { this.gyk_1 = null; this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = this.fyk_1.vom(this.eyk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.gyk_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: var tmp1_elvis_lhs = this.gyk_1; var ARGUMENT = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var ARGUMENT_0 = new SettingsOfflineStorageOption(this.eyk_1, ARGUMENT); this.byk_1.i1(ARGUMENT_0); this.hd_1 = 1; continue $sm; case 4: var optionsWithSpace = this.byk_1; l$ret$1: do { var this_0 = this.vyj_1.gyi_1; while (true) { var prevValue = this_0.t2(); var tmp0_elvis_lhs = this.yyj_1; var nextValue = prevValue.kyj(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, optionsWithSpace, tmp0_elvis_lhs == null ? first_0(this.xyj_1) : tmp0_elvis_lhs); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 5; continue $sm; case 5: return Unit_instance; case 6: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 6) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SettingsViewModel$slambda).v1m = function ($this$launch, completion) { var i = new SettingsViewModel$slambda(this.vyj_1, completion); i.wyj_1 = $this$launch; return i; }; function SettingsViewModel$slambda_0(this$0, resultContinuation) { var i = new SettingsViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SettingsViewModel$slambda_1(this$0, resultContinuation) { this.pyk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SettingsViewModel$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SettingsViewModel$slambda_1).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SettingsViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.pyk_1.wpm().p7f(); var tmp_1 = this.pyk_1.upm(); PermissionFlags_getInstance(); var tmp_2 = tmp_0.zhe(tmp_1, new Long(16384, 0)); var tmp_3 = SettingsViewModel$slambda$slambda_0(this.pyk_1, null); suspendResult = tmp_2.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_34(tmp_3), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SettingsViewModel$slambda_1).v1m = function ($this$launch, completion) { var i = new SettingsViewModel$slambda_1(this.pyk_1, completion); i.qyk_1 = $this$launch; return i; }; function SettingsViewModel$slambda_2(this$0, resultContinuation) { var i = new SettingsViewModel$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SettingsViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'Settings'); this.gyi_1 = MutableStateFlow(new SettingsUiState()); this.hyi_1 = asStateFlow(this.gyi_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.iyi_1 = Instance(this, tmp$ret$0, null).a5d(this, supportedLangConfig$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(SetLanguageUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.jyi_1 = Instance(this, tmp$ret$2, null).a5d(this, setLanguageUseCase$factory_1()); this.kyi_1 = _get_supportedLangConfig__llzj1v(this).op7(this.apn()); 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.lyi_1 = InstanceOrNull(this, tmp$ret$4, null).a5d(this, getHtmlContentDisplayOptsUseCase$factory()); var tmp_5 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(GetHtmlContentDisplayEngineUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_5.myi_1 = InstanceOrNull(this, tmp$ret$6, null).a5d(this, getHtmlContentDisplaySettingUseCase$factory()); var tmp_7 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(SetHtmlContentDisplayEngineUseCase), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); tmp_7.nyi_1 = InstanceOrNull(this, tmp$ret$8, null).a5d(this, setHtmlContentDisplaySettingUseCase$factory()); var tmp_9 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(GetVersionUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); tmp_9.oyi_1 = Instance(this, tmp$ret$10, null).a5d(this, getVersionUseCase$factory_3()); var tmp_11 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_12 = typeToken(createKType(getKClass(GetOfflineStorageOptionsUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); tmp_11.pyi_1 = InstanceOrNull(this, tmp$ret$12, null).a5d(this, getStorageOptionsUseCase$factory()); var tmp_13 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_14 = typeToken(createKType(getKClass(GetOfflineStorageSettingUseCase), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(); tmp_13.qyi_1 = InstanceOrNull(this, tmp$ret$14, null).a5d(this, getOfflineStorageSettingUseCase$factory()); var tmp_15 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_16 = typeToken(createKType(getKClass(SetOfflineStorageSettingUseCase), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE(); tmp_15.ryi_1 = InstanceOrNull(this, tmp$ret$16, null).a5d(this, setOfflineStorageSettingUseCase$factory()); var tmp_17 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_18 = typeToken(createKType(getKClass(GetOfflineStorageAvailableSpace), arrayOf([]), false)); var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE(); tmp_17.syi_1 = InstanceOrNull(this, tmp$ret$18, null).a5d(this, getOfflineStorageAvailableSpace$factory()); this.tyi_1 = atomic$int$1(0); var tmp_19 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_20 = typeToken(createKType(getKClass(Settings), arrayOf([]), false)); var tmp$ret$20 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE(); tmp_19.uyi_1 = Instance(this, tmp$ret$20, null).a5d(this, settings$factory_1()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, this.apn().tno(strings_getInstance().dlw_1), VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_elvis_lhs = _get_supportedLangConfig__llzj1v(this).gp7(); var tmp_21; if (tmp0_elvis_lhs == null) { Companion_getInstance_90(); tmp_21 = ''; } else { tmp_21 = tmp0_elvis_lhs; } var langSetting = tmp_21; var tmp$ret$25; $l$block_0: { // Inline function 'kotlin.collections.first' call var tmp0_iterator = this.kyi_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.' call if (element.vp3_1 === langSetting) { tmp$ret$25 = element; break $l$block_0; } } throw NoSuchElementException_init_$Create$_0('Collection contains no element matching the predicate.'); } var currentLang = tmp$ret$25; $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.gyi_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.' call var tmp3_currentLanguage = currentLang.wp3_1; var tmp4_availableLanguages = this.kyi_1; var tmp0_safe_receiver = _get_getHtmlContentDisplayOptsUseCase__lppxoi(this); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.foi(); 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.foi(); var tmp7_version = _get_getVersionUseCase__n7x57g_1(this).foi().doi_1; var tmp_22 = _get_settings__lbkut4_0(this); var tmp8_showDeveloperOptions = tmp_22.klj('showDevSettings', false); var nextValue_0 = prevValue_0.kyj(tmp5_htmlContentDisplayOptions, tmp6_currentHtmlContentDisplayOption, VOID, VOID, VOID, VOID, VOID, tmp3_currentLanguage, tmp4_availableLanguages, VOID, tmp8_showDeveloperOptions, tmp7_version); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_1; } } } var tmp_23 = this.tpm(); launch(tmp_23, VOID, VOID, SettingsViewModel$slambda_0(this, null)); var tmp_24 = this.tpm(); launch(tmp_24, VOID, VOID, SettingsViewModel$slambda_2(this, null)); } protoOf(SettingsViewModel).ryk = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gyi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLanguage.' call var nextValue = prevValue.kyj(VOID, VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SettingsViewModel).syk = function (lang) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gyi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLang.' call var nextValue = prevValue.kyj(VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var result = _get_setLanguageUseCase__st7nci_0(this).qoi(lang, 'Settings', this.epm_1); if (result.ooi_1) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.gyi_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLang.' call var nextValue_0 = prevValue_0.kyj(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.gyi_1; while (true) { var prevValue_1 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLang.' call var nextValue_1 = prevValue_1.kyj(VOID, VOID, VOID, VOID, VOID, VOID, VOID, lang.wp3_1); if (this_2.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } }; protoOf(SettingsViewModel).tyk = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gyi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onDismissLangDialog.' call var nextValue = prevValue.kyj(VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SettingsViewModel).uyk = function () { this.epm_1.hob('Community', emptyMap()); }; protoOf(SettingsViewModel).vyk = function () { this.epm_1.hob('DeletedItems', emptyMap()); }; function SettingsUiState(htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible) { htmlContentDisplayOptions = htmlContentDisplayOptions === VOID ? emptyList() : htmlContentDisplayOptions; currentHtmlContentDisplayOption = currentHtmlContentDisplayOption === VOID ? null : currentHtmlContentDisplayOption; holidayCalendarVisible = holidayCalendarVisible === VOID ? false : holidayCalendarVisible; workspaceSettingsVisible = workspaceSettingsVisible === VOID ? false : workspaceSettingsVisible; reasonLeavingVisible = reasonLeavingVisible === VOID ? false : reasonLeavingVisible; langDialogVisible = langDialogVisible === VOID ? false : langDialogVisible; htmlContentDisplayDialogVisible = htmlContentDisplayDialogVisible === VOID ? false : htmlContentDisplayDialogVisible; currentLanguage = currentLanguage === VOID ? '' : currentLanguage; availableLanguages = availableLanguages === VOID ? emptyList() : availableLanguages; waitForRestartDialogVisible = waitForRestartDialogVisible === VOID ? false : waitForRestartDialogVisible; showDeveloperOptions = showDeveloperOptions === VOID ? false : showDeveloperOptions; version = version === VOID ? '' : version; storageOptions = storageOptions === VOID ? emptyList() : storageOptions; selectedOfflineStorageOption = selectedOfflineStorageOption === VOID ? null : selectedOfflineStorageOption; storageOptionsDialogVisible = storageOptionsDialogVisible === VOID ? false : storageOptionsDialogVisible; this.vyi_1 = htmlContentDisplayOptions; this.wyi_1 = currentHtmlContentDisplayOption; this.xyi_1 = holidayCalendarVisible; this.yyi_1 = workspaceSettingsVisible; this.zyi_1 = reasonLeavingVisible; this.ayj_1 = langDialogVisible; this.byj_1 = htmlContentDisplayDialogVisible; this.cyj_1 = currentLanguage; this.dyj_1 = availableLanguages; this.eyj_1 = waitForRestartDialogVisible; this.fyj_1 = showDeveloperOptions; this.gyj_1 = version; this.hyj_1 = storageOptions; this.iyj_1 = selectedOfflineStorageOption; this.jyj_1 = storageOptionsDialogVisible; } protoOf(SettingsUiState).wyk = function (htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible) { return new SettingsUiState(htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible); }; protoOf(SettingsUiState).kyj = function (htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible, $super) { htmlContentDisplayOptions = htmlContentDisplayOptions === VOID ? this.vyi_1 : htmlContentDisplayOptions; currentHtmlContentDisplayOption = currentHtmlContentDisplayOption === VOID ? this.wyi_1 : currentHtmlContentDisplayOption; holidayCalendarVisible = holidayCalendarVisible === VOID ? this.xyi_1 : holidayCalendarVisible; workspaceSettingsVisible = workspaceSettingsVisible === VOID ? this.yyi_1 : workspaceSettingsVisible; reasonLeavingVisible = reasonLeavingVisible === VOID ? this.zyi_1 : reasonLeavingVisible; langDialogVisible = langDialogVisible === VOID ? this.ayj_1 : langDialogVisible; htmlContentDisplayDialogVisible = htmlContentDisplayDialogVisible === VOID ? this.byj_1 : htmlContentDisplayDialogVisible; currentLanguage = currentLanguage === VOID ? this.cyj_1 : currentLanguage; availableLanguages = availableLanguages === VOID ? this.dyj_1 : availableLanguages; waitForRestartDialogVisible = waitForRestartDialogVisible === VOID ? this.eyj_1 : waitForRestartDialogVisible; showDeveloperOptions = showDeveloperOptions === VOID ? this.fyj_1 : showDeveloperOptions; version = version === VOID ? this.gyj_1 : version; storageOptions = storageOptions === VOID ? this.hyj_1 : storageOptions; selectedOfflineStorageOption = selectedOfflineStorageOption === VOID ? this.iyj_1 : selectedOfflineStorageOption; storageOptionsDialogVisible = storageOptionsDialogVisible === VOID ? this.jyj_1 : storageOptionsDialogVisible; return $super === VOID ? this.wyk(htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible) : $super.wyk.call(this, htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible); }; protoOf(SettingsUiState).toString = function () { return 'SettingsUiState(htmlContentDisplayOptions=' + this.vyi_1 + ', currentHtmlContentDisplayOption=' + this.wyi_1 + ', holidayCalendarVisible=' + this.xyi_1 + ', workspaceSettingsVisible=' + this.yyi_1 + ', reasonLeavingVisible=' + this.zyi_1 + ', langDialogVisible=' + this.ayj_1 + ', htmlContentDisplayDialogVisible=' + this.byj_1 + ', currentLanguage=' + this.cyj_1 + ', availableLanguages=' + this.dyj_1 + ', waitForRestartDialogVisible=' + this.eyj_1 + ', showDeveloperOptions=' + this.fyj_1 + ', version=' + this.gyj_1 + ', storageOptions=' + this.hyj_1 + ', selectedOfflineStorageOption=' + this.iyj_1 + ', storageOptionsDialogVisible=' + this.jyj_1 + ')'; }; protoOf(SettingsUiState).hashCode = function () { var result = hashCode(this.vyi_1); result = imul(result, 31) + (this.wyi_1 == null ? 0 : this.wyi_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.xyi_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.yyi_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.zyi_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ayj_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.byj_1) | 0; result = imul(result, 31) + getStringHashCode(this.cyj_1) | 0; result = imul(result, 31) + hashCode(this.dyj_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.eyj_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.fyj_1) | 0; result = imul(result, 31) + getStringHashCode(this.gyj_1) | 0; result = imul(result, 31) + hashCode(this.hyj_1) | 0; result = imul(result, 31) + (this.iyj_1 == null ? 0 : this.iyj_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.jyj_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 (!equals(this.vyi_1, tmp0_other_with_cast.vyi_1)) return false; if (!equals(this.wyi_1, tmp0_other_with_cast.wyi_1)) return false; if (!(this.xyi_1 === tmp0_other_with_cast.xyi_1)) return false; if (!(this.yyi_1 === tmp0_other_with_cast.yyi_1)) return false; if (!(this.zyi_1 === tmp0_other_with_cast.zyi_1)) return false; if (!(this.ayj_1 === tmp0_other_with_cast.ayj_1)) return false; if (!(this.byj_1 === tmp0_other_with_cast.byj_1)) return false; if (!(this.cyj_1 === tmp0_other_with_cast.cyj_1)) return false; if (!equals(this.dyj_1, tmp0_other_with_cast.dyj_1)) return false; if (!(this.eyj_1 === tmp0_other_with_cast.eyj_1)) return false; if (!(this.fyj_1 === tmp0_other_with_cast.fyj_1)) return false; if (!(this.gyj_1 === tmp0_other_with_cast.gyj_1)) return false; if (!equals(this.hyj_1, tmp0_other_with_cast.hyj_1)) return false; if (!equals(this.iyj_1, tmp0_other_with_cast.iyj_1)) return false; if (!(this.jyj_1 === tmp0_other_with_cast.jyj_1)) return false; return true; }; function SettingsOfflineStorageOption(option, availableSpace) { this.xyk_1 = option; this.yyk_1 = availableSpace; } protoOf(SettingsOfflineStorageOption).toString = function () { return 'SettingsOfflineStorageOption(option=' + this.xyk_1 + ', availableSpace=' + this.yyk_1.toString() + ')'; }; protoOf(SettingsOfflineStorageOption).hashCode = function () { var result = this.xyk_1.hashCode(); result = imul(result, 31) + this.yyk_1.hashCode() | 0; return result; }; protoOf(SettingsOfflineStorageOption).equals = function (other) { if (this === other) return true; if (!(other instanceof SettingsOfflineStorageOption)) return false; var tmp0_other_with_cast = other instanceof SettingsOfflineStorageOption ? other : THROW_CCE(); if (!this.xyk_1.equals(tmp0_other_with_cast.xyk_1)) return false; if (!this.yyk_1.equals(tmp0_other_with_cast.yyk_1)) return false; return true; }; function supportedLangConfig$factory() { return getPropertyCallableRef('supportedLangConfig', 1, KProperty1, function (receiver) { return _get_supportedLangConfig__llzj1v(receiver); }, null); } function setLanguageUseCase$factory_1() { return getPropertyCallableRef('setLanguageUseCase', 1, KProperty1, function (receiver) { return _get_setLanguageUseCase__st7nci_0(receiver); }, null); } function getHtmlContentDisplayOptsUseCase$factory() { return getPropertyCallableRef('getHtmlContentDisplayOptsUseCase', 1, KProperty1, function (receiver) { return _get_getHtmlContentDisplayOptsUseCase__lppxoi(receiver); }, null); } function getHtmlContentDisplaySettingUseCase$factory() { return getPropertyCallableRef('getHtmlContentDisplaySettingUseCase', 1, KProperty1, function (receiver) { return _get_getHtmlContentDisplaySettingUseCase__usawf4(receiver); }, null); } function setHtmlContentDisplaySettingUseCase$factory() { return getPropertyCallableRef('setHtmlContentDisplaySettingUseCase', 1, KProperty1, function (receiver) { return _get_setHtmlContentDisplaySettingUseCase__8cgzqk(receiver); }, null); } function getVersionUseCase$factory_3() { return getPropertyCallableRef('getVersionUseCase', 1, KProperty1, function (receiver) { return _get_getVersionUseCase__n7x57g_1(receiver); }, null); } function getStorageOptionsUseCase$factory() { return getPropertyCallableRef('getStorageOptionsUseCase', 1, KProperty1, function (receiver) { return _get_getStorageOptionsUseCase__v5dedp(receiver); }, null); } function getOfflineStorageSettingUseCase$factory() { return getPropertyCallableRef('getOfflineStorageSettingUseCase', 1, KProperty1, function (receiver) { return _get_getOfflineStorageSettingUseCase__5c8mhw(receiver); }, null); } function setOfflineStorageSettingUseCase$factory() { return getPropertyCallableRef('setOfflineStorageSettingUseCase', 1, KProperty1, function (receiver) { return _get_setOfflineStorageSettingUseCase__lx9or4(receiver); }, null); } function getOfflineStorageAvailableSpace$factory() { return getPropertyCallableRef('getOfflineStorageAvailableSpace', 1, KProperty1, function (receiver) { return _get_getOfflineStorageAvailableSpace__om40zq(receiver); }, null); } function settings$factory_1() { return getPropertyCallableRef('settings', 1, KProperty1, function (receiver) { return _get_settings__lbkut4_0(receiver); }, null); } function supportedLangConfig$factory_0() { return getPropertyCallableRef('supportedLangConfig', 1, KProperty1, function (receiver) { return _get_supportedLangConfig__llzj1v(receiver); }, null); } function setLanguageUseCase$factory_2() { return getPropertyCallableRef('setLanguageUseCase', 1, KProperty1, function (receiver) { return _get_setLanguageUseCase__st7nci_0(receiver); }, null); } function getHtmlContentDisplayOptsUseCase$factory_0() { return getPropertyCallableRef('getHtmlContentDisplayOptsUseCase', 1, KProperty1, function (receiver) { return _get_getHtmlContentDisplayOptsUseCase__lppxoi(receiver); }, null); } function getHtmlContentDisplaySettingUseCase$factory_0() { return getPropertyCallableRef('getHtmlContentDisplaySettingUseCase', 1, KProperty1, function (receiver) { return _get_getHtmlContentDisplaySettingUseCase__usawf4(receiver); }, null); } function setHtmlContentDisplaySettingUseCase$factory_0() { return getPropertyCallableRef('setHtmlContentDisplaySettingUseCase', 1, KProperty1, function (receiver) { return _get_setHtmlContentDisplaySettingUseCase__8cgzqk(receiver); }, null); } function getVersionUseCase$factory_4() { return getPropertyCallableRef('getVersionUseCase', 1, KProperty1, function (receiver) { return _get_getVersionUseCase__n7x57g_1(receiver); }, null); } function getStorageOptionsUseCase$factory_0() { return getPropertyCallableRef('getStorageOptionsUseCase', 1, KProperty1, function (receiver) { return _get_getStorageOptionsUseCase__v5dedp(receiver); }, null); } function getOfflineStorageSettingUseCase$factory_0() { return getPropertyCallableRef('getOfflineStorageSettingUseCase', 1, KProperty1, function (receiver) { return _get_getOfflineStorageSettingUseCase__5c8mhw(receiver); }, null); } function setOfflineStorageSettingUseCase$factory_0() { return getPropertyCallableRef('setOfflineStorageSettingUseCase', 1, KProperty1, function (receiver) { return _get_setOfflineStorageSettingUseCase__lx9or4(receiver); }, null); } function getOfflineStorageAvailableSpace$factory_0() { return getPropertyCallableRef('getOfflineStorageAvailableSpace', 1, KProperty1, function (receiver) { return _get_getOfflineStorageAvailableSpace__om40zq(receiver); }, null); } function settings$factory_2() { return getPropertyCallableRef('settings', 1, KProperty1, function (receiver) { return _get_settings__lbkut4_0(receiver); }, null); } function SiteDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda).jyl = function (site, hasAdminPermission, $completion) { var tmp = this.kyl(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.jyl(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.hyl_1, this.iyl_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda).kyl = function (site, hasAdminPermission, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda(completion); i.hyl_1 = site; i.iyl_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.jyl(site, hasAdminPermission, $completion); }; l.$arity = 2; return l; } function SiteDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.tyl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_1).vyl = function (it, $completion) { var tmp = this.wyl(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.vyl(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.uyl_1; var entity = tmp0_container.y6(); var hasEditSitePermission = tmp0_container.z6(); l$ret$1: do { var this_0 = this.tyl_1.tym_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xym(entity); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.tyl_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ap6(prevValue_0.lp5_1.gp6(!(this.uyl_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).wyl = function (it, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda_1(this.tyl_1, completion); i.uyl_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.vyl(it, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, $uiLangList, resultContinuation) { this.gyn_1 = this$0; this.hyn_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_3).jyn = function (it, $completion) { var tmp = this.kyn(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.jyn((!(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.gyn_1.tym_1; while (true) { var prevValue = this_0.t2(); var this_1 = this.iyn_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.hyn_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); if (element_0.vp3_1 === element.kh7_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.wp3_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.xym(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).kyn = function (it, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda_3(this.gyn_1, this.hyn_1, completion); i.iyn_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.jyn(it, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda$slambda($siteFlow, $permissionFlow, this$0, resultContinuation) { this.tyn_1 = $siteFlow; this.uyn_1 = $permissionFlow; this.vyn_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.tyn_1, this.uyn_1, SiteDetailViewModel$slambda$slambda$slambda$slambda_0(null)); var tmp_1 = SiteDetailViewModel$slambda$slambda$slambda$slambda_2(this.vyn_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_35(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda(this.tyn_1, this.uyn_1, this.vyn_1, completion); i.wyn_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.fyo_1 = this$0; this.gyo_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.fyo_1.wpm().w7e().kh6(1); var tmp_1 = SiteDetailViewModel$slambda$slambda$slambda$slambda_4(this.fyo_1, this.gyo_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_35(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda_1(this.fyo_1, this.gyo_1, completion); i.hyo_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.qyo_1 = this$0; this.ryo_1 = $this_launch; this.syo_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.qyo_1.wpm().v7e().rh1(); var tmp_0 = this.qyo_1.wpm().p7f(); var tmp_1 = this.qyo_1.upm(); PermissionFlags_getInstance(); var permissionFlow = tmp_0.zhe(tmp_1, new Long(16384, 0)); launch(this.ryo_1, VOID, VOID, SiteDetailViewModel$slambda$slambda$slambda_0(siteFlow, permissionFlow, this.qyo_1, null)); launch(this.ryo_1, VOID, VOID, SiteDetailViewModel$slambda$slambda$slambda_2(this.qyo_1, this.syo_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda).l78 = function (completion) { return new SiteDetailViewModel$slambda$slambda(this.qyo_1, this.ryo_1, this.syo_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.z86($completion); }; l.$arity = 0; return l; } function Companion_180() { this.tyo_1 = 'Community'; } var Companion_instance_228; function Companion_getInstance_197() { return Companion_instance_228; } function sam$kotlinx_coroutines_flow_FlowCollector$0_35(function_0) { this.uyo_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_35).t1d = function (value, $completion) { return this.uyo_1(value, $completion); }; function SiteDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { $boundThis.cvt(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function SiteDetailViewModel$slambda(this$0, $uiLangList, resultContinuation) { this.dyp_1 = this$0; this.eyp_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.dyp_1.tym_1, SiteDetailViewModel$slambda$slambda_0(this.dyp_1, this.fyp_1, this.eyp_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.dyp_1, this.eyp_1, completion); i.fyp_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.tym_1 = MutableStateFlow(new SiteDetailUiState()); this.uym_1 = asStateFlow(this.tym_1); // Inline function 'org.kodein.di.instance' call var tmp = get_direct(this).f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SupportedLanguagesConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var supportLangConfig = tmp.d58(tmp$ret$0, null); var uiLangList = supportLangConfig.kom_1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.detail.SiteDetailViewModel.' call var tmp0_text = this.apn().tno(strings_getInstance().qm6_1); var tmp1_onClick = SiteDetailViewModel$onClickEdit$ref(this); var tmp2_icon = FabIcon_EDIT_getInstance(); var nextValue = prevValue.ap6(new FabUiState(false, tmp0_text, tmp2_icon, tmp1_onClick), VOID, this.apn().tno(strings_getInstance().aml_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = this.tpm(); launch(tmp_1, VOID, VOID, SiteDetailViewModel$slambda_0(this, uiLangList, null)); } protoOf(SiteDetailViewModel).cvt = function () { Companion_getInstance_118(); var tmp0_safe_receiver = this.tym_1.t2().vym_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vh1_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.toString(); this.epm_1.hob('SiteEdit', mapOf_0(to('entityUid', tmp2_elvis_lhs == null ? '-1' : tmp2_elvis_lhs))); }; protoOf(SiteDetailViewModel).gyp = function (termsAndLang) { var tmp0_elvis_lhs = termsAndLang.qjo_1.kh7_1; this.epm_1.hob('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.vym_1 = site; this.wym_1 = siteTerms; } protoOf(SiteDetailUiState).hyp = function (site, siteTerms) { return new SiteDetailUiState(site, siteTerms); }; protoOf(SiteDetailUiState).xym = function (site, siteTerms, $super) { site = site === VOID ? this.vym_1 : site; siteTerms = siteTerms === VOID ? this.wym_1 : siteTerms; return $super === VOID ? this.hyp(site, siteTerms) : $super.hyp.call(this, site, siteTerms); }; protoOf(SiteDetailUiState).toString = function () { return 'SiteDetailUiState(site=' + this.vym_1 + ', siteTerms=' + this.wym_1 + ')'; }; protoOf(SiteDetailUiState).hashCode = function () { var result = this.vym_1 == null ? 0 : hashCode(this.vym_1); result = imul(result, 31) + hashCode(this.wym_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.vym_1, tmp0_other_with_cast.vym_1)) return false; if (!equals(this.wym_1, tmp0_other_with_cast.wym_1)) return false; return true; }; function SiteEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.qyp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda$slambda).wp9 = function (it, $completion) { var tmp = this.xp9(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.wp9(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.ryp_1.dp9_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.qyp_1.tyq(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).xp9 = function (it, completion) { var i = new SiteEditViewModel$slambda$slambda$slambda(this.qyp_1, completion); i.ryp_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.wp9(it, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda).dyr = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.dyr(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.cyr_1.v7e().qh1(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).vn7 = function (db, completion) { var i = new SiteEditViewModel$slambda$slambda(completion); i.cyr_1 = db; return i; }; function SiteEditViewModel$slambda$slambda_0(resultContinuation) { var i = new SiteEditViewModel$slambda$slambda(resultContinuation); var l = function (db, $completion) { return i.dyr(db, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_1).yh3 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.yh3($completion); }; protoOf(SiteEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return new Site(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteEditViewModel$slambda$slambda_1).l78 = function (completion) { return new SiteEditViewModel$slambda$slambda_1(completion); }; function SiteEditViewModel$slambda$slambda_2(resultContinuation) { var i = new SiteEditViewModel$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.yh3($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.pyq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel...' call var nextValue = prevValue.uyr(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SiteEditViewModel$slambda$slambda_3($supportedLangCodes, resultContinuation) { this.dys_1 = $supportedLangCodes; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_3).fys = function (it, $completion) { var tmp = this.vn7(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.fys(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.eys_1.w7e().lh6(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.dys_1, element.kh7_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.kh7_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.dys_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.kh7_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).vn7 = function (it, completion) { var i = new SiteEditViewModel$slambda$slambda_3(this.dys_1, completion); i.eys_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.fys(it, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_5).oys = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda$slambda_5).m78 = function ($completion) { return this.oys($completion); }; protoOf(SiteEditViewModel$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteEditViewModel$slambda$slambda_5).l78 = function (completion) { return new SiteEditViewModel$slambda$slambda_5(completion); }; function SiteEditViewModel$slambda$slambda_6(resultContinuation) { var i = new SiteEditViewModel$slambda$slambda_5(resultContinuation); var l = function ($completion) { return i.oys($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.pyq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel...' call var nextValue = prevValue.uyr(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.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function SiteEditViewModel$slambda$slambda_7(this$0, resultContinuation) { this.xys_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.xys_1.epn(this.xys_1.xpm(), 'siteTermsHtml'); var tmp_1 = SiteEditViewModel$slambda$slambda$slambda_0(this.xys_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_36(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteEditViewModel$slambda$slambda_7).v1m = function ($this$launch, completion) { var i = new SiteEditViewModel$slambda$slambda_7(this.xys_1, completion); i.yys_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.jh7_1; var this_0 = tmp0_safe_receiver == null ? null : htmlToPlainText(tmp0_safe_receiver); // Inline function 'kotlin.contracts.contract' call tmp.mh7_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.ryq_1; languagesConfig$factory_2(); return this_0.t2(); } function Companion_181() { this.zys_1 = 'SiteEdit'; this.ayt_1 = 'siteTermsLang'; this.byt_1 = 'termsList'; this.cyt_1 = 'siteTermsHtml'; } var Companion_instance_229; function Companion_getInstance_198() { return Companion_instance_229; } function sam$kotlinx_coroutines_flow_FlowCollector$0_36(function_0) { this.dyt_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_36).t1d = function (value, $completion) { return this.dyt_1(value, $completion); }; function SiteEditViewModel$slambda(this$0, resultContinuation) { this.myt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda).gr6 = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda).he = function (p1, $completion) { return this.gr6(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.nyt_1.p7f(); var tmp_1 = this.myt_1.upm(); PermissionFlags_getInstance(); suspendResult = tmp_0.yhe(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).vn7 = function (db, completion) { var i = new SiteEditViewModel$slambda(this.myt_1, completion); i.nyt_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.gr6(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.pyq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel..' call var nextValue = prevValue.uyr(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.wyt_1 = this$0; this.xyt_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_30.n4r(); var tmp_1 = SiteEditViewModel$slambda$slambda_0(null); var tmp_2 = SiteEditViewModel$slambda$slambda_2(null); suspendResult = this.wyt_1.kpn(tmp_0, VOID, VOID, tmp_1, tmp_2, SiteEditViewModel$slambda$lambda(this.wyt_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_3 = ListSerializer(Companion_instance_46.n4r()); var tmp_4 = listOf_0('termsList'); var tmp_5 = SiteEditViewModel$slambda$slambda_4(this.xyt_1, null); var tmp_6 = SiteEditViewModel$slambda$slambda_6(null); suspendResult = this.wyt_1.jpn(tmp_3, tmp_4, 'termsList', tmp_5, tmp_6, SiteEditViewModel$slambda$lambda_0(this.wyt_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: l$ret$1: do { var this_0 = this.wyt_1.gpm_1; while (true) { var prevValue = this_0.t2(); var tmp_7 = this.wyt_1.apn().tno(strings_getInstance().eme_1); var nextValue = prevValue.ap6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_7, VOID, SiteEditViewModel$onClickSave$ref(this.wyt_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.yyt_1, VOID, VOID, SiteEditViewModel$slambda$slambda_8(this.wyt_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.wyt_1, this.xyt_1, completion); i.yyt_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.jh7_1 = $html; return Unit_instance; }; } function SiteEditViewModel$onChangeTermsHtml$lambda_0($prev) { return function (it) { return it.kh7_1 === $prev.syr_1.vp3_1; }; } function SiteEditViewModel$onChangeTermsHtml$slambda(this$0, $newTerms, resultContinuation) { this.hyu_1 = this$0; this.iyu_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.hyu_1.gpn(this.hyu_1.cpm_1, 'termsList', ListSerializer(Companion_instance_46.n4r()), this.iyu_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.hyu_1, this.iyu_1, completion); i.jyu_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.syu_1 = $commitDelay; this.tyu_1 = $entity; this.uyu_1 = $this; this.vyu_1 = $key; this.wyu_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.syu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.tyu_1 == null)) { this.hd_1 = 2; suspendResult = this.uyu_1.gpn(this.uyu_1.cpm_1, this.vyu_1, this.wyu_1, this.tyu_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.syu_1, this.tyu_1, this.uyu_1, this.vyu_1, this.wyu_1, completion); i.xyu_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.gyv_1 = this$0; this.hyv_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.gyv_1.wpm().v7e().sh1(this.hyv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_0 = this.gyv_1.wpm().w7e(); var this_0 = this.gyv_1.pyq_1.t2().nyr_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.jh7_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.ih7_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.mh6(destination_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.gyv_1.kps('Community', this.hyv_1.vh1_1, this.hyv_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.gyv_1, this.hyv_1, completion); i.iyv_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.pyq_1 = MutableStateFlow(new SiteEditUiState()); this.qyq_1 = asStateFlow(this.pyq_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.ryq_1 = Instance(this, tmp$ret$0, null).a5d(this, languagesConfig$factory_1()); this.syq_1 = null; var supportedLangs = _get_languagesConfig__hebcss_0(this).kom_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.vp3_1; destination.i1(tmp$ret$2); } var supportedLangCodes = destination; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.' call var tmp0_title = this.apn().tno(strings_getInstance().zmk_1); var nextValue = prevValue.ap6(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.pyq_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.vp3_1 === (tmp0_elvis_lhs == null ? _get_languagesConfig__hebcss_0(this).mom_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.uyr(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.lpn(tmp_1, true, tmp_2, SiteEditViewModel$slambda_2(this, supportedLangCodes, null)); } protoOf(SiteEditViewModel).jyv = function (uiLang) { this.cpm_1.epi('siteTermsLang', uiLang.vp3_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.pyq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onChangeTermsLanguage.' call var nextValue = prevValue.uyr(VOID, VOID, VOID, VOID, VOID, VOID, uiLang); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SiteEditViewModel).tyq = function (html) { var tmp0_elvis_lhs = this.pyq_1.t2().kyv(); 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.pyq_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.uyr(VOID, replace_0(prevValue.nyr_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.nyr_1; var tmp1_safe_receiver = this.syq_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.mr(); } var tmp_1 = this; var tmp_2 = this.tpm(); tmp_1.syq_1 = launch(tmp_2, VOID, VOID, SiteEditViewModel$onChangeTermsHtml$slambda_0(this, newTerms, null)); }; protoOf(SiteEditViewModel).lyv = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.pyq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.myr_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ah2_1; var nextValue = prevValue.uyr(entity, VOID, VOID, VOID, this.npt(tmp, entity == null ? null : entity.ah2_1, prevValue.qyr_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_30.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_118(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.hps_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.tpm(); tmp_0.hps_1 = launch(tmp_1, VOID, VOID, SiteEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SiteEditViewModel).ur3 = function () { var tmp0_elvis_lhs = this.pyq_1.t2().myr_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.ah2_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.pyq_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onClickSave.' call var nextValue = prevValue.uyr(VOID, VOID, VOID, VOID, this.apn().tno(strings_getInstance().wmw_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } } // Inline function 'kotlin.collections.map' call var this_2 = this.pyq_1.t2().nyr_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.kh7_1; var tmp_0 = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; var tmp0_safe_receiver = item.jh7_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.ch2_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.pyq_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.uyr(VOID, VOID, VOID, VOID, VOID, this.apn().tno(strings_getInstance().hmx_1)); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_2; } } } } if (this.pyq_1.t2().tyr_1) return Unit_instance; var tmp_2 = this.tpm(); 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.myr_1 = site; this.nyr_1 = siteTerms; this.oyr_1 = uiLangs; this.pyr_1 = fieldsEnabled; this.qyr_1 = siteNameError; this.ryr_1 = registrationEnabledError; this.syr_1 = currentSiteTermsLang; this.tyr_1 = !(this.qyr_1 == null) ? true : !(this.ryr_1 == null); } protoOf(SiteEditUiState).kyv = function () { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.nyr_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditUiState..' call if (element.kh7_1 === this.syr_1.vp3_1) { tmp$ret$1 = element; break $l$block; } } tmp$ret$1 = null; } return tmp$ret$1; }; protoOf(SiteEditUiState).myv = function () { var tmp0_safe_receiver = this.kyv(); return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jh7_1; }; protoOf(SiteEditUiState).nyv = function (site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang) { return new SiteEditUiState(site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang); }; protoOf(SiteEditUiState).uyr = function (site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang, $super) { site = site === VOID ? this.myr_1 : site; siteTerms = siteTerms === VOID ? this.nyr_1 : siteTerms; uiLangs = uiLangs === VOID ? this.oyr_1 : uiLangs; fieldsEnabled = fieldsEnabled === VOID ? this.pyr_1 : fieldsEnabled; siteNameError = siteNameError === VOID ? this.qyr_1 : siteNameError; registrationEnabledError = registrationEnabledError === VOID ? this.ryr_1 : registrationEnabledError; currentSiteTermsLang = currentSiteTermsLang === VOID ? this.syr_1 : currentSiteTermsLang; return $super === VOID ? this.nyv(site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang) : $super.nyv.call(this, site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang); }; protoOf(SiteEditUiState).toString = function () { return 'SiteEditUiState(site=' + this.myr_1 + ', siteTerms=' + this.nyr_1 + ', uiLangs=' + this.oyr_1 + ', fieldsEnabled=' + this.pyr_1 + ', siteNameError=' + this.qyr_1 + ', registrationEnabledError=' + this.ryr_1 + ', currentSiteTermsLang=' + this.syr_1 + ')'; }; protoOf(SiteEditUiState).hashCode = function () { var result = this.myr_1 == null ? 0 : hashCode(this.myr_1); result = imul(result, 31) + hashCode(this.nyr_1) | 0; result = imul(result, 31) + hashCode(this.oyr_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.pyr_1) | 0; result = imul(result, 31) + (this.qyr_1 == null ? 0 : getStringHashCode(this.qyr_1)) | 0; result = imul(result, 31) + (this.ryr_1 == null ? 0 : getStringHashCode(this.ryr_1)) | 0; result = imul(result, 31) + this.syr_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.myr_1, tmp0_other_with_cast.myr_1)) return false; if (!equals(this.nyr_1, tmp0_other_with_cast.nyr_1)) return false; if (!equals(this.oyr_1, tmp0_other_with_cast.oyr_1)) return false; if (!(this.pyr_1 === tmp0_other_with_cast.pyr_1)) return false; if (!(this.qyr_1 == tmp0_other_with_cast.qyr_1)) return false; if (!(this.ryr_1 == tmp0_other_with_cast.ryr_1)) return false; if (!this.syr_1.equals(tmp0_other_with_cast.syr_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 _get_getLocaleForSiteTermsUseCase__hxw5id_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.myw_1; getLocaleForSiteTermsUseCase$factory_2(); return this_0.t2(); } function Companion_182() { this.nyw_1 = 'locale'; this.oyw_1 = 'Terms'; } var Companion_instance_230; function Companion_getInstance_199() { return Companion_instance_230; } function SiteTermsDetailViewModel$slambda($acceptButtonMode, $apiUrl, $di, this$0, $savedStateHandle, resultContinuation) { this.xyw_1 = $acceptButtonMode; this.yyw_1 = $apiUrl; this.zyw_1 = $di; this.ayx_1 = this$0; this.byx_1 = $savedStateHandle; 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.xyw_1 ? !(this.yyw_1 == null) : false) { var this_0 = get_direct(this.zyw_1); var context = new Endpoint(this.yyw_1); var tmp_2 = this_0.f58(); var tmp_3 = Companion_instance_0; var tmp_4 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp_5 = tmp_2.c58(tmp_3.h57(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), context)).f58(); var tmp_6 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_1 = tmp_5.d58(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), 2); } else { tmp_1 = this.ayx_1.wpm(); } tmp_0.dyx_1 = tmp_1; this.eyx_1 = this.byx_1.ba('locale'); this.fyx_1 = this.eyx_1; if (this.fyx_1 == null) { this.hd_1 = 1; suspendResult = _get_getLocaleForSiteTermsUseCase__hxw5id_0(this.ayx_1).pom(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.gyx_1 = this.fyx_1; this.hd_1 = 2; continue $sm; } case 1: this.gyx_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.hyx_1 = this.gyx_1; this.hd_1 = 3; suspendResult = this.dyx_1.w7e().oh6(this.hyx_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.ayx_1.kyw_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.lyx(displayTerms, this.xyw_1); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } else { l$ret$3: do { var this_2 = this.ayx_1.kyw_1; while (true) { var prevValue_0 = this_2.t2(); var nextValue_0 = prevValue_0.lyx(VOID, VOID, this.ayx_1.apn().tno(strings_getInstance().ilu_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.xyw_1, this.yyw_1, this.zyw_1, this.ayx_1, this.byx_1, completion); i.cyx_1 = $this$launch; return i; }; function SiteTermsDetailViewModel$slambda_0($acceptButtonMode, $apiUrl, $di, this$0, $savedStateHandle, resultContinuation) { var i = new SiteTermsDetailViewModel$slambda($acceptButtonMode, $apiUrl, $di, this$0, $savedStateHandle, 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.kyw_1 = MutableStateFlow(new SiteTermsDetailUiState()); this.lyw_1 = asStateFlow(this.kyw_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.spm().mng(); var trigger = this.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_0 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.h57(tmp$ret$0, context); var this_0 = On(this, tmp$ret$1, trigger); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(GetLocaleForSiteTermsUseCase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp.myw_1 = Instance(this_0, tmp$ret$3, null).a5d(this, getLocaleForSiteTermsUseCase$factory_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('serverUrl'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.gpm_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.termsdetail.SiteTermsDetailViewModel.' call var tmp0_navigationVisible = !acceptButtonMode; var tmp1_userAccountIconVisible = !acceptButtonMode; var tmp2_title = this.apn().tno(strings_getInstance().tmk_1); var nextValue = prevValue.ap6(VOID, VOID, tmp2_title, tmp0_navigationVisible, VOID, VOID, tmp1_userAccountIconVisible); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.tpm(); launch(tmp_3, VOID, VOID, SiteTermsDetailViewModel$slambda_0(acceptButtonMode, apiUrl, di, this, savedStateHandle, null)); } protoOf(SiteTermsDetailViewModel).myx = function () { Companion_getInstance_189(); // 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.opn(this_0, Companion_getInstance_189().bx5_1); var tmp$ret$2 = this_0.f3(); this.epm_1.hob('Register', tmp$ret$2); }; function SiteTermsDetailUiState(siteTerms, acceptButtonVisible, error) { siteTerms = siteTerms === VOID ? null : siteTerms; acceptButtonVisible = acceptButtonVisible === VOID ? false : acceptButtonVisible; error = error === VOID ? null : error; this.iyx_1 = siteTerms; this.jyx_1 = acceptButtonVisible; this.kyx_1 = error; } protoOf(SiteTermsDetailUiState).nyx = function (siteTerms, acceptButtonVisible, error) { return new SiteTermsDetailUiState(siteTerms, acceptButtonVisible, error); }; protoOf(SiteTermsDetailUiState).lyx = function (siteTerms, acceptButtonVisible, error, $super) { siteTerms = siteTerms === VOID ? this.iyx_1 : siteTerms; acceptButtonVisible = acceptButtonVisible === VOID ? this.jyx_1 : acceptButtonVisible; error = error === VOID ? this.kyx_1 : error; return $super === VOID ? this.nyx(siteTerms, acceptButtonVisible, error) : $super.nyx.call(this, siteTerms, acceptButtonVisible, error); }; protoOf(SiteTermsDetailUiState).toString = function () { return 'SiteTermsDetailUiState(siteTerms=' + this.iyx_1 + ', acceptButtonVisible=' + this.jyx_1 + ', error=' + this.kyx_1 + ')'; }; protoOf(SiteTermsDetailUiState).hashCode = function () { var result = this.iyx_1 == null ? 0 : hashCode(this.iyx_1); result = imul(result, 31) + getBooleanHashCode(this.jyx_1) | 0; result = imul(result, 31) + (this.kyx_1 == null ? 0 : getStringHashCode(this.kyx_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.iyx_1, tmp0_other_with_cast.iyx_1)) return false; if (!(this.jyx_1 === tmp0_other_with_cast.jyx_1)) return false; if (!(this.kyx_1 == tmp0_other_with_cast.kyx_1)) return false; return true; }; function getLocaleForSiteTermsUseCase$factory_1() { return getPropertyCallableRef('getLocaleForSiteTermsUseCase', 1, KProperty1, function (receiver) { return _get_getLocaleForSiteTermsUseCase__hxw5id_0(receiver); }, null); } function getLocaleForSiteTermsUseCase$factory_2() { return getPropertyCallableRef('getLocaleForSiteTermsUseCase', 1, KProperty1, function (receiver) { return _get_getLocaleForSiteTermsUseCase__hxw5id_0(receiver); }, null); } function SiteEnterLinkViewModel$onClickNext$slambda$lambda($endpointUrl) { return function () { return 'SiteEnterLink: not working: ' + $endpointUrl; }; } function _get_httpClient__2ty1zc_5($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lyy_1; httpClient$factory_12(); return this_0.t2(); } function _get_impl__d88w17_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.myy_1; impl$factory_2(); return this_0.t2(); } function Companion_183() { Companion_instance_231 = this; this.nyy_1 = 'SiteEnterLink'; var tmp = this; Companion_getInstance_118(); Companion_getInstance_108(); Companion_getInstance_118(); tmp.oyy_1 = listOf(['next', 'intMsg', 'noSessionChange']); this.pyy_1 = 'stateUrl'; } var Companion_instance_231; function Companion_getInstance_200() { if (Companion_instance_231 == null) new Companion_183(); return Companion_instance_231; } function SiteEnterLinkViewModel$onClickNext$slambda(this$0, $endpointUrl, resultContinuation) { this.yyy_1 = this$0; this.zyy_1 = $endpointUrl; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEnterLinkViewModel$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(SiteEnterLinkViewModel$onClickNext$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEnterLinkViewModel$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.yyy_1), this.zyy_1, VOID, this.yyy_1.m4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var site = suspendResult; Companion_getInstance_108(); var tmp_0 = to('serverUrl', this.zyy_1); Companion_getInstance_108(); var this_0 = this.yyy_1.m4r(); var this_1 = this_0.t45(); var this_2 = serializer(this_1, createKType(getKClass(Site), arrayOf([]), false)); var args = mutableMapOf([tmp_0, to('site', this_0.r45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), site))]); var tmp0_iterator = Companion_getInstance_200().oyy_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); this.yyy_1.npn(args, element); } this.yyy_1.cpn(Companion_getInstance_91().ip6_1); l$ret$1: do { var this_3 = this.yyy_1.jyy_1; while (true) { var prevValue = this_3.t2(); var nextValue = prevValue.gyz(VOID, true, VOID, null, true); if (this_3.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.yyy_1.epm_1.hob('Login', args); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_1 = this.kd_1; if (tmp_1 instanceof Error) { var e = this.kd_1; var tmp_2 = Napier_getInstance(); tmp_2.k5e(e, VOID, SiteEnterLinkViewModel$onClickNext$slambda$lambda(this.zyy_1)); l$ret$3: do { var this_4 = this.yyy_1.jyy_1; while (true) { var prevValue_0 = this_4.t2(); this.yyy_1.cpn(Companion_getInstance_91().ip6_1); var tmp0_linkError = _get_impl__d88w17_0(this.yyy_1).tno(strings_getInstance().um4_1); var nextValue_0 = prevValue_0.gyz(VOID, false, VOID, tmp0_linkError, true); if (this_4.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(SiteEnterLinkViewModel$onClickNext$slambda).v1m = function ($this$launch, completion) { var i = new SiteEnterLinkViewModel$onClickNext$slambda(this.yyy_1, this.zyy_1, completion); i.ayz_1 = $this$launch; return i; }; function SiteEnterLinkViewModel$onClickNext$slambda_0(this$0, $endpointUrl, resultContinuation) { var i = new SiteEnterLinkViewModel$onClickNext$slambda(this$0, $endpointUrl, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteEnterLinkViewModel(di, savedStateHandle) { Companion_getInstance_200(); UstadViewModel.call(this, di, savedStateHandle, 'SiteEnterLink'); this.jyy_1 = MutableStateFlow(new SiteEnterLinkUiState()); this.kyy_1 = asStateFlow(this.jyy_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.lyy_1 = Instance(this, tmp$ret$0, null).a5d(this, httpClient$factory_11()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.myy_1 = Instance(this, tmp$ret$2, null).a5d(this, impl$factory_1()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.siteenterlink.SiteEnterLinkViewModel.' call var tmp0_title = _get_impl__d88w17_0(this).tno(strings_getInstance().rmn_1); var nextValue = prevValue.ap6(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.jyy_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.siteenterlink.SiteEnterLinkViewModel.' call var tmp0_elvis_lhs = savedStateHandle.ba(Companion_getInstance_200().pyy_1); var nextValue_0 = prevValue_0.gyz(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(SiteEnterLinkViewModel).qv7 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jyy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.siteenterlink.SiteEnterLinkViewModel.onClickNext.' call var nextValue = prevValue.gyz(VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.cpn(Companion_getInstance_91().hp6_1); var endpointUrl = requirePostfix(requireHttpPrefix(this.jyy_1.t2().byz_1), '/'); var tmp = this.tpm(); launch(tmp, VOID, VOID, SiteEnterLinkViewModel$onClickNext$slambda_0(this, endpointUrl, null)); }; protoOf(SiteEnterLinkViewModel).hyz = function (siteLink) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jyy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.siteenterlink.SiteEnterLinkViewModel.onSiteLinkUpdated.' call var nextValue = prevValue.gyz(siteLink); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.cpm_1.epi(Companion_getInstance_200().pyy_1, siteLink); }; function SiteEnterLinkUiState(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.byz_1 = siteLink; this.cyz_1 = validLink; this.dyz_1 = progressVisible; this.eyz_1 = linkError; this.fyz_1 = fieldsEnabled; } protoOf(SiteEnterLinkUiState).iyz = function (siteLink, validLink, progressVisible, linkError, fieldsEnabled) { return new SiteEnterLinkUiState(siteLink, validLink, progressVisible, linkError, fieldsEnabled); }; protoOf(SiteEnterLinkUiState).gyz = function (siteLink, validLink, progressVisible, linkError, fieldsEnabled, $super) { siteLink = siteLink === VOID ? this.byz_1 : siteLink; validLink = validLink === VOID ? this.cyz_1 : validLink; progressVisible = progressVisible === VOID ? this.dyz_1 : progressVisible; linkError = linkError === VOID ? this.eyz_1 : linkError; fieldsEnabled = fieldsEnabled === VOID ? this.fyz_1 : fieldsEnabled; return $super === VOID ? this.iyz(siteLink, validLink, progressVisible, linkError, fieldsEnabled) : $super.iyz.call(this, siteLink, validLink, progressVisible, linkError, fieldsEnabled); }; protoOf(SiteEnterLinkUiState).toString = function () { return 'SiteEnterLinkUiState(siteLink=' + this.byz_1 + ', validLink=' + this.cyz_1 + ', progressVisible=' + this.dyz_1 + ', linkError=' + this.eyz_1 + ', fieldsEnabled=' + this.fyz_1 + ')'; }; protoOf(SiteEnterLinkUiState).hashCode = function () { var result = getStringHashCode(this.byz_1); result = imul(result, 31) + getBooleanHashCode(this.cyz_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.dyz_1) | 0; result = imul(result, 31) + (this.eyz_1 == null ? 0 : getStringHashCode(this.eyz_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.fyz_1) | 0; return result; }; protoOf(SiteEnterLinkUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof SiteEnterLinkUiState)) return false; var tmp0_other_with_cast = other instanceof SiteEnterLinkUiState ? other : THROW_CCE(); if (!(this.byz_1 === tmp0_other_with_cast.byz_1)) return false; if (!(this.cyz_1 === tmp0_other_with_cast.cyz_1)) return false; if (!(this.dyz_1 === tmp0_other_with_cast.dyz_1)) return false; if (!(this.eyz_1 == tmp0_other_with_cast.eyz_1)) return false; if (!(this.fyz_1 === tmp0_other_with_cast.fyz_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_1() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17_0(receiver); }, null); } function httpClient$factory_12() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_5(receiver); }, null); } function impl$factory_2() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17_0(receiver); }, null); } function SystemPermissionConstants() { SystemPermissionConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().dmz_1; PermissionFlags_getInstance(); var tmp_1 = to(tmp_0, new Long(1024, 0)); var tmp_2 = strings_getInstance().emz_1; PermissionFlags_getInstance(); var tmp_3 = to(tmp_2, new Long(8192, 0)); var tmp_4 = strings_getInstance().fmz_1; PermissionFlags_getInstance(); var tmp_5 = to(tmp_4, new Long(32768, 0)); var tmp_6 = strings_getInstance().kmz_1; PermissionFlags_getInstance(); var tmp_7 = to(tmp_6, new Long(131072, 0)); var tmp_8 = strings_getInstance().jmz_1; PermissionFlags_getInstance(); var tmp_9 = to(tmp_8, new Long(4096, 0)); var tmp_10 = strings_getInstance().imz_1; PermissionFlags_getInstance(); var tmp_11 = to(tmp_10, new Long(512, 0)); var tmp_12 = strings_getInstance().wmy_1; PermissionFlags_getInstance(); var tmp_13 = to(tmp_12, new Long(1, 0)); var tmp_14 = strings_getInstance().xmy_1; PermissionFlags_getInstance(); var tmp_15 = to(tmp_14, new Long(2, 0)); var tmp_16 = strings_getInstance().ymy_1; PermissionFlags_getInstance(); var tmp_17 = to(tmp_16, new Long(4, 0)); var tmp_18 = strings_getInstance().tmy_1; PermissionFlags_getInstance(); var tmp_19 = to(tmp_18, new Long(2048, 0)); var tmp_20 = strings_getInstance().zmy_1; PermissionFlags_getInstance(); var tmp_21 = to(tmp_20, new Long(8, 0)); var tmp_22 = strings_getInstance().amz_1; PermissionFlags_getInstance(); var tmp_23 = to(tmp_22, new Long(16, 0)); var tmp_24 = strings_getInstance().bmz_1; PermissionFlags_getInstance(); var tmp_25 = to(tmp_24, new Long(32, 0)); var tmp_26 = strings_getInstance().cmz_1; PermissionFlags_getInstance(); var tmp_27 = to(tmp_26, new Long(64, 0)); var tmp_28 = strings_getInstance().gmz_1; PermissionFlags_getInstance(); var tmp_29 = to(tmp_28, new Long(128, 0)); var tmp_30 = strings_getInstance().hmz_1; PermissionFlags_getInstance(); tmp.jyz_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.zhe(accountPersonUid, new Long(-1, 2147483647)); } return tmp; } function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda).uyz = function (entity, hasViewPermission, $completion) { var tmp = this.vyz(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.uyz(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.syz_1; var tmp_0; if (this.tyz_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).vyz = function (entity, hasViewPermission, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda(completion); i.syz_1 = entity; i.tyz_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.uyz(entity, hasViewPermission, $completion); }; l.$arity = 2; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.ez0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1).gz0 = function (it, $completion) { var tmp = this.hz0(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.gz0((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.ez0_1.fz1_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (!(this.fz0_1 == null)) { tmp_0 = SystemPermissionConstants_getInstance().jyz_1; } else { tmp_0 = emptyList(); } var nextValue = prevValue.jz1(this.fz0_1, tmp_0); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); if (!(this.fz0_1 == null)) { this.hd_1 = 1; suspendResult = this.ez0_1.wpm().n7d().gfp(this.ez0_1.ez1_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.ez0_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp1_elvis_lhs = title == null ? null : title.toString(); var nextValue_0 = prevValue_0.ap6(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).hz0 = function (it, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this.ez0_1, completion); i.fz0_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.gz0(it, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.sz1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3).qpe = function (hasEditPermission, $completion) { var tmp = this.rpe(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.qpe((!(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.sz1_1.gpm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ap6(prevValue.lp5_1.gp6(this.tz1_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).rpe = function (hasEditPermission, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3(this.sz1_1, completion); i.tz1_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.qpe(hasEditPermission, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda($entityFlow, $viewPermissionFlow, this$0, resultContinuation) { this.cz2_1 = $entityFlow; this.dz2_1 = $viewPermissionFlow; this.ez2_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.cz2_1, this.dz2_1, SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_0(null)); suspendResult = collectLatest(tmp_0, SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_2(this.ez2_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.cz2_1, this.dz2_1, this.ez2_1, completion); i.fz2_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.oz2_1 = $editPermissionFlow; this.pz2_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.pz2_1, null); suspendResult = this.oz2_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_37(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.oz2_1, this.pz2_1, completion); i.qz2_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.zz2_1 = $this_launch; this.az3_1 = $entityFlow; this.bz3_1 = $viewPermissionFlow; this.cz3_1 = this$0; this.dz3_1 = $editPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.z86($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.zz2_1, VOID, VOID, SystemPermissionDetailViewModel$slambda$slambda$slambda_0(this.az3_1, this.bz3_1, this.cz3_1, null)); launch(this.zz2_1, VOID, VOID, SystemPermissionDetailViewModel$slambda$slambda$slambda_2(this.dz3_1, this.cz3_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda).l78 = function (completion) { return new SystemPermissionDetailViewModel$slambda$slambda(this.zz2_1, this.az3_1, this.bz3_1, this.cz3_1, this.dz3_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.z86($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_118(); $this.npn(this_0, 'personUid'); var tmp$ret$2 = this_0.f3(); $this.epm_1.hob('SystemPermissionEdit', tmp$ret$2); } function Companion_184() { this.ez3_1 = 'SystemPermission'; } var Companion_instance_232; function Companion_getInstance_201() { return Companion_instance_232; } function sam$kotlinx_coroutines_flow_FlowCollector$0_37(function_0) { this.fz3_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_37).t1d = function (value, $completion) { return this.fz3_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.oz3_1 = this$0; this.pz3_1 = $entityFlow; this.qz3_1 = $viewPermissionFlow; this.rz3_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.oz3_1.fz1_1, SystemPermissionDetailViewModel$slambda$slambda_0(this.sz3_1, this.pz3_1, this.qz3_1, this.oz3_1, this.rz3_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.oz3_1, this.pz3_1, this.qz3_1, this.rz3_1, completion); i.sz3_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_118(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.ez1_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.fz1_1 = MutableStateFlow(new SystemPermissionDetailUiState()); this.gz1_1 = asStateFlow(this.fz1_1); var entityFlow = this.wpm().p7f().whe(this.ez1_1); var viewPermissionFlow = personHasSystemPermissionAsFlowForUser(this.wpm().p7f(), this.upm(), this.ez1_1); var tmp_0 = this.wpm().p7f(); var tmp_1 = this.upm(); PermissionFlags_getInstance(); var editPermissionFlow = tmp_0.zhe(tmp_1, new Long(4096, 0)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.detail.SystemPermissionDetailViewModel.' call var tmp0_text = this.apn().tno(strings_getInstance().qm6_1); var tmp1_onClick = SystemPermissionDetailViewModel$onClickEdit$ref(this); var tmp2_icon = FabIcon_EDIT_getInstance(); var nextValue = prevValue.ap6(new FabUiState(VOID, tmp0_text, tmp2_icon, tmp1_onClick)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.tpm(); 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.hz1_1 = systemPermission; this.iz1_1 = permissionLabels; } protoOf(SystemPermissionDetailUiState).jz1 = function (systemPermission, permissionLabels) { return new SystemPermissionDetailUiState(systemPermission, permissionLabels); }; protoOf(SystemPermissionDetailUiState).toString = function () { return 'SystemPermissionDetailUiState(systemPermission=' + this.hz1_1 + ', permissionLabels=' + this.iz1_1 + ')'; }; protoOf(SystemPermissionDetailUiState).hashCode = function () { var result = this.hz1_1 == null ? 0 : this.hz1_1.hashCode(); result = imul(result, 31) + hashCode(this.iz1_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.hz1_1, tmp0_other_with_cast.hz1_1)) return false; if (!equals(this.iz1_1, tmp0_other_with_cast.iz1_1)) return false; return true; }; function SystemPermissionEditViewModel$slambda$slambda(this$0, resultContinuation) { this.bz4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda$slambda).dz4 = function (db, $completion) { var tmp = this.vn7(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.dz4(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.cz4_1.p7f().xhe(this.bz4_1.dz5_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).vn7 = function (db, completion) { var i = new SystemPermissionEditViewModel$slambda$slambda(this.bz4_1, completion); i.cz4_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.dz4(db, $completion); }; l.$arity = 1; return l; } function SystemPermissionEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda$slambda_1).jhi = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.jhi($completion); }; protoOf(SystemPermissionEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SystemPermissionEditViewModel$slambda$slambda_1).l78 = function (completion) { return new SystemPermissionEditViewModel$slambda$slambda_1(completion); }; function SystemPermissionEditViewModel$slambda$slambda_2(resultContinuation) { var i = new SystemPermissionEditViewModel$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.jhi($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.bz5_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().jyz_1; } else { tmp = emptyList(); } var nextValue = prevValue.pz5(it, VOID, tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SystemPermissionEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ur3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function SystemPermissionEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation) { this.yz5_1 = this$0; this.zz5_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$onClickSave$slambda$slambda).un7 = function (it, $completion) { var tmp = this.vn7(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.un7(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.yz5_1.wpm().p7f().dhf(this.zz5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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).vn7 = function (it, completion) { var i = new SystemPermissionEditViewModel$onClickSave$slambda$slambda(this.yz5_1, this.zz5_1, completion); i.az6_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.un7(it, $completion); }; l.$arity = 1; return l; } function Companion_185() { this.bz6_1 = 'SystemPermissionEdit'; } var Companion_instance_233; function Companion_getInstance_202() { return Companion_instance_233; } function SystemPermissionEditViewModel$slambda(this$0, resultContinuation) { this.kz6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda).gr6 = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$slambda).he = function (p1, $completion) { return this.gr6(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.kz6_1.wpm().p7f(); var tmp_1 = this.kz6_1.upm(); PermissionFlags_getInstance(); suspendResult = tmp_0.yhe(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).vn7 = function (it, completion) { var i = new SystemPermissionEditViewModel$slambda(this.kz6_1, completion); i.lz6_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.gr6(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.bz5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel..' call var nextValue = prevValue.pz5(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SystemPermissionEditViewModel$slambda_1(this$0, resultContinuation) { this.uz6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda_1).u1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.v1m($this$launchIfHasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$slambda_1).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionEditViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; var tmp_0 = Companion_getInstance_7().n4r(); var tmp_1 = SystemPermissionEditViewModel$slambda$slambda_0(this.uz6_1, null); var tmp_2 = SystemPermissionEditViewModel$slambda$slambda_2(null); suspendResult = this.uz6_1.kpn(tmp_0, VOID, VOID, tmp_1, tmp_2, SystemPermissionEditViewModel$slambda$lambda(this.uz6_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.uz6_1.gpm_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.uz6_1.apn().tno(strings_getInstance().eme_1); var nextValue = prevValue.ap6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, SystemPermissionEditViewModel$onClickSave$ref(this.uz6_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 2; suspendResult = this.uz6_1.wpm().n7d().gfp(this.uz6_1.dz5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var title = suspendResult; l$ret$3: do { var this_1 = this.uz6_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp1_elvis_lhs = title == null ? null : title.toString(); var nextValue_0 = prevValue_0.ap6(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.uz6_1, completion); i.vz6_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.bz5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel.onClickSave..' call var nextValue = prevValue.pz5(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SystemPermissionEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.ez7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$onClickSave$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda).m78 = function ($completion) { return this.z86($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.ez7_1.bz5_1.t2().mz5_1; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.fz7_1 = tmp_1; this.hd_1 = 1; var tmp_2 = this.ez7_1.wpm(); suspendResult = withDoorTransactionAsync(tmp_2, VOID, SystemPermissionEditViewModel$onClickSave$slambda$slambda_0(this.ez7_1, this.fz7_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Companion_getInstance_108(); this.ez7_1.epm_1.sp8('', true); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda).l78 = function (completion) { return new SystemPermissionEditViewModel$onClickSave$slambda(this.ez7_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.z86($completion); }; l.$arity = 0; return l; } function SystemPermissionEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'SystemPermissionEdit'); this.bz5_1 = MutableStateFlow(new SystemPermissionEditUiState()); this.cz5_1 = asStateFlow(this.bz5_1); var tmp = this; Companion_getInstance_118(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.dz5_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.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel.' call var nextValue = prevValue.ap6(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.mpn(tmp_0, VOID, tmp_1, SystemPermissionEditViewModel$slambda_2(this, null)); } protoOf(SystemPermissionEditViewModel).erv = function (flag) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bz5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel.onTogglePermission.' call var tmp0_safe_receiver = prevValue.mz5_1; var nextValue = prevValue.pz5(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.dkb(VOID, VOID, VOID, toggleFlag(prevValue.mz5_1.vhf_1, flag))); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SystemPermissionEditViewModel).ur3 = function () { var tmp = SystemPermissionEditViewModel$onClickSave$lambda(this); this.ppt(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.mz5_1 = entity; this.nz5_1 = fieldsEnabled; this.oz5_1 = permissionLabels; } protoOf(SystemPermissionEditUiState).gz7 = function (entity, fieldsEnabled, permissionLabels) { return new SystemPermissionEditUiState(entity, fieldsEnabled, permissionLabels); }; protoOf(SystemPermissionEditUiState).pz5 = function (entity, fieldsEnabled, permissionLabels, $super) { entity = entity === VOID ? this.mz5_1 : entity; fieldsEnabled = fieldsEnabled === VOID ? this.nz5_1 : fieldsEnabled; permissionLabels = permissionLabels === VOID ? this.oz5_1 : permissionLabels; return $super === VOID ? this.gz7(entity, fieldsEnabled, permissionLabels) : $super.gz7.call(this, entity, fieldsEnabled, permissionLabels); }; protoOf(SystemPermissionEditUiState).toString = function () { return 'SystemPermissionEditUiState(entity=' + this.mz5_1 + ', fieldsEnabled=' + this.nz5_1 + ', permissionLabels=' + this.oz5_1 + ')'; }; protoOf(SystemPermissionEditUiState).hashCode = function () { var result = this.mz5_1 == null ? 0 : this.mz5_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.nz5_1) | 0; result = imul(result, 31) + hashCode(this.oz5_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.mz5_1, tmp0_other_with_cast.mz5_1)) return false; if (!(this.nz5_1 === tmp0_other_with_cast.nz5_1)) return false; if (!equals(this.oz5_1, tmp0_other_with_cast.oz5_1)) return false; return true; }; function TimeZoneListViewModel$slambda$slambda(this$0, resultContinuation) { this.pz7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$slambda$slambda).rz7 = 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.rz7((!(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.pz7_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.pz7_1, completion); i.qz7_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.rz7($this$withContext, $completion); }; l.$arity = 1; return l; } function TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda($searchText, this$0, resultContinuation) { this.az8_1 = $searchText; this.bz8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda).rz7 = 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.rz7((!(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.az8_1; var searchWords = Regex_init_$Create$('\\s+').y9(this_0, 0); var this_1 = _get_allTimeZones__4t4mtu(this.bz8_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.ils(), 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.az8_1, this.bz8_1, completion); i.cz8_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.rz7($this$withContext, $completion); }; l.$arity = 1; return l; } function _get_allTimeZones__4t4mtu($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.dz9_1; allTimeZones$factory(); return this_0.t2(); } function Companion_186() { this.fz9_1 = 'TimeZoneList'; } var Companion_instance_234; function Companion_getInstance_203() { return Companion_instance_234; } function sam$kotlin_Comparator$0_3(function_0) { this.gz9_1 = function_0; } protoOf(sam$kotlin_Comparator$0_3).pa = function (a, b) { return this.gz9_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.ilp(); // Inline function 'kotlin.collections.sortedBy' call // Inline function 'kotlin.collections.map' call var this_0 = Companion_getInstance_9().ilt(); // 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().fls(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).mlt(); // Inline function 'com.ustadmobile.core.viewmodel.timezone.TimeZoneListViewModel.allTimeZones$delegate..' call var tmp$ret$1 = offsetAt(b, $now).mlt(); return compareValues(tmp, tmp$ret$1); }; } function TimeZoneListViewModel$slambda(this$0, resultContinuation) { this.pz9_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.pz9_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.pz9_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.sz9(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.pz9_1, completion); i.qz9_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.bza_1 = this$0; this.cza_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.cza_1, this.bza_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.bza_1.xpu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.sz9(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.bza_1, this.cza_1, completion); i.dza_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.dz9_1 = lazy_0(TimeZoneListViewModel$allTimeZones$delegate$lambda); this.ez9_1 = null; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.timezone.TimeZoneListViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, this.apn().tno(strings_getInstance().ime_1), VOID, VOID, VOID, VOID, this.gpw()); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.tpm(); launch(tmp_0, VOID, VOID, TimeZoneListViewModel$slambda_0(this, null)); } protoOf(TimeZoneListViewModel).rpv = function (searchText) { var tmp0_safe_receiver = this.ez9_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.tpm(); tmp.ez9_1 = launch(tmp_0, VOID, VOID, TimeZoneListViewModel$onUpdateSearchResult$slambda_0(this, searchText, null)); }; protoOf(TimeZoneListViewModel).eza = function (entry) { this.lps(entry.ils()); }; protoOf(TimeZoneListViewModel).spv = function () { }; function TimezoneListUiState(timeZoneList) { timeZoneList = timeZoneList === VOID ? emptyList() : timeZoneList; this.rz9_1 = timeZoneList; } protoOf(TimezoneListUiState).sz9 = function (timeZoneList) { return new TimezoneListUiState(timeZoneList); }; protoOf(TimezoneListUiState).toString = function () { return 'TimezoneListUiState(timeZoneList=' + this.rz9_1 + ')'; }; protoOf(TimezoneListUiState).hashCode = function () { return hashCode(this.rz9_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.rz9_1, tmp0_other_with_cast.rz9_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.nza_1 = this$0; this.oza_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.qza_1 = this.nza_1.m4r(); var tmp_1 = this; tmp_1.rza_1 = _get_httpClient__2ty1zc_6(this.nza_1); var tmp_2 = this; tmp_2.sza_1 = ensureNotNull(this.oza_1.vaj_1); var tmp_3 = this; tmp_3.tza_1 = this.rza_1; var tmp_4 = this; tmp_4.uza_1 = this.tza_1; var tmp_5 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.sza_1); tmp_5.vza_1 = this_0; this.vza_1.w38_1 = Companion_getInstance().l2x_1; var tmp_6 = this; tmp_6.wza_1 = this.uza_1; var tmp_7 = this; tmp_7.xza_1 = this.vza_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.xza_1, this.wza_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.yza_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsDecodedText(this.yza_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.zza_1 = suspendResult; var tmp_8 = this; var this_1 = this.qza_1.t45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_8.azb_1 = this.qza_1.s45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.zza_1); this.bzb_1 = requireBodyUrlForUri(this.azb_1, ensureNotNull(this.oza_1.taj_1)); var tmp_9 = this; tmp_9.czb_1 = this.nza_1.m4r(); var tmp_10 = this; tmp_10.dzb_1 = _get_httpClient__2ty1zc_6(this.nza_1); var tmp_11 = this; tmp_11.ezb_1 = this.bzb_1; var tmp_12 = this; tmp_12.fzb_1 = this.dzb_1; var tmp_13 = this; tmp_13.gzb_1 = this.fzb_1; var tmp_14 = this; var this_3 = new HttpRequestBuilder(); url(this_3, this.ezb_1); tmp_14.hzb_1 = this_3; this.hzb_1.w38_1 = Companion_getInstance().l2x_1; var tmp_15 = this; tmp_15.izb_1 = this.gzb_1; var tmp_16 = this; tmp_16.jzb_1 = this.hzb_1; this.hd_1 = 3; suspendResult = (new HttpStatement(this.jzb_1, this.izb_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.kzb_1 = suspendResult; this.hd_1 = 4; suspendResult = bodyAsDecodedText(this.kzb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var string = suspendResult; var this_4 = this.czb_1.t45(); var this_5 = serializer(this_4, createKType(getKClass(MediaContentInfo), arrayOf([]), false)); var mediaInfo = this.czb_1.s45(isInterface(this_5, KSerializer) ? this_5 : THROW_CCE(), string); l$ret$1: do { var this_6 = this.nza_1.mzc_1; while (true) { var prevValue = this_6.t2(); var tmp0_contentEntryVersionUid = this.nza_1.lzc_1; var tmp1_manifestUrl = ensureNotNull(this.oza_1.vaj_1); var tmp2_contentManifestMap = new ContentManifestMap(this.azb_1); var nextValue = prevValue.vzc(mediaInfo, tmp0_contentEntryVersionUid, tmp1_manifestUrl, tmp2_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.nza_1, this.oza_1, completion); i.pza_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.ezd_1 = this$0; this.fzd_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.ezd_1.wpm().v7d().xag(this.fzd_1.saj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var contentEntry = suspendResult; l$ret$1: do { var this_0 = this.ezd_1.mzc_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vzc(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.ezd_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp1_elvis_lhs = contentEntry == null ? null : contentEntry.uah_1; var nextValue_0 = prevValue_0.ap6(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.ezd_1, this.fzd_1, completion); i.gzd_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.hzd_1 = timestamp; this.izd_1 = timeInMillis; this.jzd_1 = totalDuration; this.kzd_1 = resumed; } protoOf(MediaPlayState).lzd = function () { var tmp; if (this.jzd_1.c7(new Long(0, 0)) > 0) { // Inline function 'kotlin.Long.times' call tmp = this.izd_1.cb(toLong(100)).bb(this.jzd_1).mb(); } else { tmp = 0; } return tmp; }; protoOf(MediaPlayState).toString = function () { return 'MediaPlayState(timestamp=' + this.hzd_1.toString() + ', timeInMillis=' + this.izd_1.toString() + ', totalDuration=' + this.jzd_1.toString() + ', resumed=' + this.kzd_1 + ')'; }; protoOf(MediaPlayState).hashCode = function () { var result = this.hzd_1.hashCode(); result = imul(result, 31) + this.izd_1.hashCode() | 0; result = imul(result, 31) + this.jzd_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.kzd_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.hzd_1.equals(tmp0_other_with_cast.hzd_1)) return false; if (!this.izd_1.equals(tmp0_other_with_cast.izd_1)) return false; if (!this.jzd_1.equals(tmp0_other_with_cast.jzd_1)) return false; if (!(this.kzd_1 === tmp0_other_with_cast.kzd_1)) return false; return true; }; function _get_httpClient__2ty1zc_6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ozc_1; httpClient$factory_14(); return this_0.t2(); } function Companion_187() { this.mzd_1 = 'Video'; } var Companion_instance_235; function Companion_getInstance_204() { return Companion_instance_235; } function VideoContentViewModel$slambda(this$0, resultContinuation) { this.vzd_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.vzd_1.wpm().i7f().lbc(this.vzd_1.lzc_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.wzd_1, VOID, VOID, VideoContentViewModel$slambda$slambda_0(this.vzd_1, contentEntryVersion, null)); launch(this.wzd_1, VOID, VOID, VideoContentViewModel$slambda$slambda_2(this.vzd_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.vzd_1, completion); i.wzd_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.kzc_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.lzc_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.mzc_1 = MutableStateFlow(new VideoContentUiState()); this.nzc_1 = asStateFlow(this.mzc_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.ozc_1 = Instance(this, tmp$ret$0, null).a5d(this, httpClient$factory_13()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gpm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.videocontent.VideoContentViewModel.' call var nextValue = prevValue.ap6(VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.tpm(); launch(tmp_2, VOID, VOID, VideoContentViewModel$slambda_0(this, null)); } protoOf(VideoContentViewModel).swz = function () { var tmp0_safe_receiver = this.mzc_1.t2().tzc_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.uah_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).xzd = function (playState) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.getAndUpdate' call var this_0 = this.kzc_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.kzd_1 === playState.kzd_1)) { this.gp2(playState.kzd_1); } this.tp2(playState.lzd()); }; function VideoContentUiState(mediaContentInfo, contentEntryVersionUid, manifestUrl, contentManifestMap, contentEntry, isFullScreen) { mediaContentInfo = mediaContentInfo === VOID ? null : mediaContentInfo; contentEntryVersionUid = contentEntryVersionUid === VOID ? new Long(0, 0) : contentEntryVersionUid; manifestUrl = manifestUrl === VOID ? null : manifestUrl; contentManifestMap = contentManifestMap === VOID ? null : contentManifestMap; contentEntry = contentEntry === VOID ? null : contentEntry; isFullScreen = isFullScreen === VOID ? false : isFullScreen; this.pzc_1 = mediaContentInfo; this.qzc_1 = contentEntryVersionUid; this.rzc_1 = manifestUrl; this.szc_1 = contentManifestMap; this.tzc_1 = contentEntry; this.uzc_1 = isFullScreen; } protoOf(VideoContentUiState).yzd = function (mediaContentInfo, contentEntryVersionUid, manifestUrl, contentManifestMap, contentEntry, isFullScreen) { return new VideoContentUiState(mediaContentInfo, contentEntryVersionUid, manifestUrl, contentManifestMap, contentEntry, isFullScreen); }; protoOf(VideoContentUiState).vzc = function (mediaContentInfo, contentEntryVersionUid, manifestUrl, contentManifestMap, contentEntry, isFullScreen, $super) { mediaContentInfo = mediaContentInfo === VOID ? this.pzc_1 : mediaContentInfo; contentEntryVersionUid = contentEntryVersionUid === VOID ? this.qzc_1 : contentEntryVersionUid; manifestUrl = manifestUrl === VOID ? this.rzc_1 : manifestUrl; contentManifestMap = contentManifestMap === VOID ? this.szc_1 : contentManifestMap; contentEntry = contentEntry === VOID ? this.tzc_1 : contentEntry; isFullScreen = isFullScreen === VOID ? this.uzc_1 : isFullScreen; return $super === VOID ? this.yzd(mediaContentInfo, contentEntryVersionUid, manifestUrl, contentManifestMap, contentEntry, isFullScreen) : $super.yzd.call(this, mediaContentInfo, contentEntryVersionUid, manifestUrl, contentManifestMap, contentEntry, isFullScreen); }; protoOf(VideoContentUiState).toString = function () { return 'VideoContentUiState(mediaContentInfo=' + this.pzc_1 + ', contentEntryVersionUid=' + this.qzc_1.toString() + ', manifestUrl=' + this.rzc_1 + ', contentManifestMap=' + this.szc_1 + ', contentEntry=' + this.tzc_1 + ', isFullScreen=' + this.uzc_1 + ')'; }; protoOf(VideoContentUiState).hashCode = function () { var result = this.pzc_1 == null ? 0 : hashCode(this.pzc_1); result = imul(result, 31) + this.qzc_1.hashCode() | 0; result = imul(result, 31) + (this.rzc_1 == null ? 0 : getStringHashCode(this.rzc_1)) | 0; result = imul(result, 31) + (this.szc_1 == null ? 0 : this.szc_1.hashCode()) | 0; result = imul(result, 31) + (this.tzc_1 == null ? 0 : this.tzc_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.uzc_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.pzc_1, tmp0_other_with_cast.pzc_1)) return false; if (!this.qzc_1.equals(tmp0_other_with_cast.qzc_1)) return false; if (!(this.rzc_1 == tmp0_other_with_cast.rzc_1)) return false; if (!equals(this.szc_1, tmp0_other_with_cast.szc_1)) return false; if (!equals(this.tzc_1, tmp0_other_with_cast.tzc_1)) return false; if (!(this.uzc_1 === tmp0_other_with_cast.uzc_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.uze_1; resolveXapiLaunchHrefUseCase$factory_0(); return this_0.t2(); } function Companion_188() { this.yze_1 = 'XapiContent'; } var Companion_instance_236; function Companion_getInstance_205() { return Companion_instance_236; } function XapiContentViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.hzf_1 = this$0; this.izf_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.hzf_1); Companion_getInstance_118(); var tmp0_safe_receiver = this.izf_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_118(); var tmp2_safe_receiver = this.izf_1.ba('courseBlockUid'); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toLong_0(tmp2_safe_receiver); suspendResult = tmp_0.roe(this.hzf_1.vze_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.hzf_1.wze_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.mzf(launchHrefResult.kob_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.hzf_1.gpm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ap6(VOID, VOID, launchHrefResult.mob_1.foe_1, VOID, true); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_2 = this.kd_1; if (tmp_2 instanceof Error) { var e = this.kd_1; Napier_getInstance().q5e('Exception opening xapi content', e); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(XapiContentViewModel$slambda).v1m = function ($this$launch, completion) { var i = new XapiContentViewModel$slambda(this.hzf_1, this.izf_1, completion); i.jzf_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 = onActiveEndpoint(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.uze_1 = Instance(this_0, tmp$ret$0, null).a5d(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.vze_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.wze_1 = MutableStateFlow(new XapiContentUiState(VOID, this.vze_1)); this.xze_1 = asStateFlow(this.wze_1); var tmp_2 = this.tpm(); 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.kzf_1 = url; this.lzf_1 = contentEntryVersionUid; } protoOf(XapiContentUiState).nzf = function (url, contentEntryVersionUid) { return new XapiContentUiState(url, contentEntryVersionUid); }; protoOf(XapiContentUiState).mzf = function (url, contentEntryVersionUid, $super) { url = url === VOID ? this.kzf_1 : url; contentEntryVersionUid = contentEntryVersionUid === VOID ? this.lzf_1 : contentEntryVersionUid; return $super === VOID ? this.nzf(url, contentEntryVersionUid) : $super.nzf.call(this, url, contentEntryVersionUid); }; protoOf(XapiContentUiState).toString = function () { return 'XapiContentUiState(url=' + this.kzf_1 + ', contentEntryVersionUid=' + this.lzf_1.toString() + ')'; }; protoOf(XapiContentUiState).hashCode = function () { var result = this.kzf_1 == null ? 0 : getStringHashCode(this.kzf_1); result = imul(result, 31) + this.lzf_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.kzf_1 == tmp0_other_with_cast.kzf_1)) return false; if (!this.lzf_1.equals(tmp0_other_with_cast.lzf_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$68(_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$70(_this__u8e3s4, password, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $encryptPbkdf2COROUTINE$68(_this__u8e3s4, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wzf_1 = _this__u8e3s4; this.xzf_1 = password; } protoOf($encryptPbkdf2COROUTINE$68).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var tmp_1 = get_direct(this.wzf_1.rn1_1).f58(); var tmp_2 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); tmp_0.yzf_1 = tmp_1.d58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), null); var tmp_3 = this; tmp_3.zzf_1 = this.yzf_1; var tmp_4 = this; tmp_4.azg_1 = this.wzf_1.qn1_1.jn2_1 + 'api/pbkdf2/encryptPbkdf2'; var tmp_5 = this; tmp_5.bzg_1 = this.zzf_1; var tmp_6 = this; tmp_6.czg_1 = this.bzg_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.azg_1); parameter(this_0, 'secret', this.xzf_1); tmp_7.dzg_1 = this_0; this.dzg_1.w38_1 = Companion_getInstance().l2x_1; var tmp_8 = this; tmp_8.ezg_1 = this.czg_1; var tmp_9 = this; tmp_9.fzg_1 = this.dzg_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.fzg_1, this.ezg_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.gzg_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.gzg_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$70(_this__u8e3s4, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.pzg_1 = _this__u8e3s4; this.qzg_1 = password; } protoOf($doublePbkdf2HashAsBase64COROUTINE$70).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.pzg_1.rn1_1).f58(); var tmp_2 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); tmp_0.rzg_1 = tmp_1.d58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), null); var tmp_3 = this; tmp_3.szg_1 = this.rzg_1; var tmp_4 = this; tmp_4.tzg_1 = this.pzg_1.qn1_1.jn2_1 + 'api/pbkdf2/doubleEncryptPbkdf2'; var tmp_5 = this; tmp_5.uzg_1 = this.szg_1; var tmp_6 = this; tmp_6.vzg_1 = this.uzg_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.tzg_1); parameter(this_0, 'secret', this.qzg_1); tmp_7.wzg_1 = this_0; this.wzg_1.w38_1 = Companion_getInstance().l2x_1; var tmp_8 = this; tmp_8.xzg_1 = this.vzg_1; var tmp_9 = this; tmp_9.yzg_1 = this.wzg_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.yzg_1, this.xzg_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.zzg_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.zzg_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.bzh_1); } else { tmp = _this__u8e3s4; } return tmp; } function NavHostFunction(navigateFn, location, onHideChildren) { this.azh_1 = navigateFn; this.bzh_1 = location; this.czh_1 = onHideChildren; } protoOf(NavHostFunction).dzh = function (cmd) { if (cmd instanceof NavigateNavCommand) { var tmp1_safe_receiver = cmd.xp8_1.rp3_1; var popUpToView = tmp1_safe_receiver == null ? null : invoke$effectivePopUpTo(tmp1_safe_receiver, this); if ((popUpToView == null ? true : popUpToView === get_ustadViewName(this.bzh_1)) ? !cmd.xp8_1.tp3_1 ? true : this.bzh_1.key === get_firstLocationKey() : false) { Napier_getInstance().i5e('NavHostFunction: go to /' + cmd.vp8_1 + '?' + toUrlQueryString(cmd.wp8_1)); var replaceNav = (popUpToView === get_ustadViewName(this.bzh_1) ? cmd.xp8_1.sp3_1 : false) ? true : cmd.xp8_1.tp3_1; var tmp = '/' + cmd.vp8_1 + '?' + toUrlQueryString(cmd.wp8_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.bzh_1); this.azh_1(tmp, this_0); } else { Napier_getInstance().i5e('NavHostFunction: pop, then go /' + cmd.vp8_1 + '?' + toUrlQueryString(cmd.wp8_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.xp8_1.tp3_1.toString(); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpToInc'] = cmd.xp8_1.sp3_1.toString(); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerGoToAfterPop'] = '/' + cmd.vp8_1 + '?' + toUrlQueryString(cmd.wp8_1); this.czh_1(); this.azh_1(-1); } } else { if (cmd instanceof PopNavCommand) { var popUpTo = invoke$effectivePopUpTo(cmd.zp8_1, this); if (popUpTo === get_ustadViewName(this.bzh_1) ? cmd.ap9_1 : false) { Napier_getInstance().i5e('NavHostFunction: pop to current viewname ' + popUpTo + ' (inclusive) ' + 'e.g. go back one'); this.azh_1(-1); } else if (!(popUpTo === get_ustadViewName(this.bzh_1))) { Napier_getInstance().i5e('NavHostFunction: pop to ' + popUpTo + ' inclusive = ' + cmd.ap9_1); sessionStorage.removeItem('navHostHitPopupto'); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpTo'] = cmd.zp8_1; // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpToInc'] = cmd.ap9_1.toString(); this.czh_1(); this.azh_1(-1); } else { Napier_getInstance().i5e('NavHostFunction: pop up to current viewname, inclusive = false?? Nothing to do.'); } } else { Napier_getInstance().i5e('NavHostFunction: command ignored: ' + cmd); } } }; function get_NAVHOST_CLEARSTACK_VIEWNAME() { return NAVHOST_CLEARSTACK_VIEWNAME; } var NAVHOST_CLEARSTACK_VIEWNAME; function set_firstLocationKey(value) { _init_properties_NavHost_kt__jjqoc9(); sessionStorage.setItem('firstLocationKey', value); } function get_firstLocationKey() { _init_properties_NavHost_kt__jjqoc9(); var tmp0_elvis_lhs = sessionStorage.getItem('firstLocationKey'); return tmp0_elvis_lhs == null ? 'default' : tmp0_elvis_lhs; } function clearNavHostCommands(_this__u8e3s4) { _init_properties_NavHost_kt__jjqoc9(); _this__u8e3s4.removeItem('navControllerPopUpTo'); _this__u8e3s4.removeItem('navControllerPopUpToInc'); _this__u8e3s4.removeItem('navControllerClearStack'); _this__u8e3s4.removeItem('navControllerGoToAfterPop'); _this__u8e3s4.removeItem('navHostRoot'); } function setIsNewFirstLocation(_this__u8e3s4, fromLocation) { _init_properties_NavHost_kt__jjqoc9(); if (_this__u8e3s4.replace === true ? fromLocation.key === get_firstLocationKey() : false) { _this__u8e3s4.state = json([to('isNewFirstLocation', true)]); } } function NavHost$lambda($this$FC, props) { _init_properties_NavHost_kt__jjqoc9(); var tmp; // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call if (sessionStorage['navControllerPopUpTo'] == null) { // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call tmp = !(sessionStorage['navControllerClearStack'] === 'false'); } else { tmp = false; } var showChildren$delegate = useState(tmp); var navigateFn = useNavigate(); var location = useLocation(); // Inline function 'react.useMemo' call var dependencies = [navigateFn, location]; var callback = NavHost$lambda$lambda(navigateFn, location, showChildren$delegate); var navHostFunction = useMemo(callback, dependencies); // Inline function 'react.ChildrenBuilder.invoke' call var this_0 = get_NavHostContext(); var block = NavHost$lambda$lambda_0(location, props, navigateFn, showChildren$delegate); addChild($this$FC, this_0, navHostFunction, block); return Unit_instance; } function invoke$lambda_2($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_3($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_3($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_4($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_5($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_4($navTimeoutJob$delegate); if (tmp2_safe_receiver == null) null; else { tmp2_safe_receiver.mr(); } // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call var popupToTarget = sessionStorage['navControllerPopUpTo']; // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call var navToAfterPop = sessionStorage['navControllerGoToAfterPop']; // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call var tmp3_safe_receiver = sessionStorage['navControllerPopUpToInc']; var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : toBoolean(tmp3_safe_receiver); var popUpToInclusive = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs; // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call var tmp5_safe_receiver = sessionStorage['navControllerClearStack']; var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : toBoolean(tmp5_safe_receiver); var clearStack = tmp6_elvis_lhs == null ? false : tmp6_elvis_lhs; // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call var tmp7_safe_receiver = sessionStorage['navControllerStackCleared']; var tmp8_elvis_lhs = tmp7_safe_receiver == null ? null : toBoolean(tmp7_safe_receiver); var clearStackHitPlaceholder = tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs; // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call var tmp9_safe_receiver = sessionStorage['navHostHitPopupto']; var tmp10_elvis_lhs = tmp9_safe_receiver == null ? null : toBoolean(tmp9_safe_receiver); var popUpToHitDestination = tmp10_elvis_lhs == null ? false : tmp10_elvis_lhs; Napier_getInstance().c5e('NavHost: useEffect check: key = ' + $location.key + ' ' + ('current viewname = ' + get_ustadViewName($location) + ' ') + ('popUpToTarget = ' + popupToTarget + ' ') + ('navtoAfterPop = ' + navToAfterPop + ' ') + ('popUpToInclusive = ' + popUpToInclusive + ' ') + ('clearStack = ' + clearStack + ' ') + ('clearStackHitPlaceholder = ' + clearStackHitPlaceholder + ' ') + ('popUpToHitDestination = ' + popUpToHitDestination)); var tmp_1; if ((popupToTarget == null ? !clearStack : false) ? !($location.pathname === '/ClearStack') : false) { Napier_getInstance().c5e('NavHost: action: no pop or other operation pending, show children'); invoke$lambda_3($showChildren$delegate, true); tmp_1 = Unit_instance; } else if (popupToTarget === get_ustadViewName($location) ? popUpToInclusive : false) { Napier_getInstance().c5e('NavHost: action: reached popUpTo destination, popUpToInclusive is set, pop once more'); invoke$lambda_3($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_5($navTimeoutJob$delegate, invoke$launchClearStackTimeout($coroutineScope, $navigateFn)); tmp_2 = Unit_instance; } tmp_1 = tmp_2; } else if (popupToTarget === get_ustadViewName($location) ? true : popUpToHitDestination) { Napier_getInstance().c5e('NavHost: action: reached popupToDestination with inclusive = false, or inclusive was true and destination was hit'); clearNavHostCommands(sessionStorage); var tmp_3; if (!(navToAfterPop == null)) { $navigateFn(navToAfterPop); tmp_3 = Unit_instance; } else { invoke$lambda_3($showChildren$delegate, true); tmp_3 = Unit_instance; } tmp_1 = tmp_3; } else if ((clearStack ? $location.key === get_firstLocationKey() : false) ? !clearStackHitPlaceholder : false) { Napier_getInstance().c5e('NavHost: action: clearstack was set, reached first entry in history, but did not yet navigate to dummy placeholder. Going to /ClearStack'); $navigateFn('/ClearStack'); tmp_1 = Unit_instance; } else if ($location.pathname === '/ClearStack') { Napier_getInstance().c5e('NavHost: action: reached stack clear dummy placeholder. Going back'); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerStackCleared'] = 'true'; $navigateFn(-1); tmp_1 = Unit_instance; } else if (clearStack ? clearStackHitPlaceholder : false) { Napier_getInstance().c5e('NavHost: action: clearStack was set and dummy placeholder was hit'); clearNavHostCommands(sessionStorage); var tmp_4; if (!(navToAfterPop == null)) { // Inline function 'js.objects.jso' call // Inline function 'kotlin.apply' call // Inline function 'js.objects.jso' call var this_0 = {}; // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.components.NavHost....' call this_0.replace = true; setIsNewFirstLocation(this_0, $location); $navigateFn(navToAfterPop, this_0); tmp_4 = Unit_instance; } tmp_1 = tmp_4; } else { Napier_getInstance().c5e('NavHost: action: need to continue history popping'); invoke$lambda_3($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_5($navTimeoutJob$delegate, invoke$launchClearStackTimeout($coroutineScope, $navigateFn)); tmp_1 = Unit_instance; } return Unit_instance; }; } function NavHost$lambda$lambda$launchClearStackTimeout$slambda($navigateFn, resultContinuation) { this.mzh_1 = $navigateFn; CoroutineImpl.call(this, resultContinuation); } protoOf(NavHost$lambda$lambda$launchClearStackTimeout$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(NavHost$lambda$lambda$launchClearStackTimeout$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(NavHost$lambda$lambda$launchClearStackTimeout$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = delay(new Long(250, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Napier_getInstance().c5e('NavHost: action: clearStackTimeout: apparently at the end of history. go to clearstack'); sessionStorage['navControllerClearStack'] = 'true'; this.mzh_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.mzh_1, completion); i.nzh_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_2($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$71(_this__u8e3s4, activeUserPersonUid, personUid, username, newPassword, currentPassword, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wzh_1 = _this__u8e3s4; this.xzh_1 = activeUserPersonUid; this.yzh_1 = personUid; this.zzh_1 = username; this.azi_1 = newPassword; this.bzi_1 = currentPassword; } protoOf($invokeCOROUTINE$71).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.wzh_1.lzi_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.czi_1 = tmp_2; this.id_1 = 2; var tmp_3 = this; tmp_3.dzi_1 = this.wzh_1.mzi_1; var tmp_4 = this; tmp_4.ezi_1 = this.wzh_1.kzi_1.jn2_1 + 'api/account/setpassword'; var tmp_5 = this; tmp_5.fzi_1 = this.dzi_1; var tmp_6 = this; tmp_6.gzi_1 = this.fzi_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.ezi_1); doorNodeIdHeader(this_0, this.czi_1); parameter(this_0, 'nodeActiveUserUid', this.xzh_1); parameter(this_0, 'personUid', this.yzh_1.toString()); parameter(this_0, 'username', this.zzh_1); parameter(this_0, 'newPassword', this.azi_1); var tmp0_safe_receiver = this.bzi_1; if (tmp0_safe_receiver == null) null; else { parameter(this_0, 'currentPassword', tmp0_safe_receiver); } set_expectSuccess(this_0, false); tmp_7.hzi_1 = this_0; this.hzi_1.w38_1 = Companion_getInstance().m2x_1; var tmp_8 = this; tmp_8.izi_1 = this.gzi_1; var tmp_9 = this; tmp_9.jzi_1 = this.hzi_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.jzi_1, this.izi_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var result = suspendResult; if (result.j3b().equals(Companion_getInstance_0().x2y_1)) { throw new UnauthorizedException(); } else if (!isSuccess(result.j3b())) { throw IllegalStateException_init_$Create$('Bad response to set password request: ' + result.j3b()); } this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_10 = this.kd_1; if (tmp_10 instanceof Error) { var e = this.kd_1; var tmp_11 = Napier_getInstance(); tmp_11.s5e(e, VOID, SetPasswordUseCaseJs$invoke$lambda); throw e; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; function SetPasswordUseCaseJs(endpoint, repo, httpClient) { this.kzi_1 = endpoint; this.lzi_1 = repo; this.mzi_1 = httpClient; } protoOf(SetPasswordUseCaseJs).snn = function (activeUserPersonUid, personUid, username, newPassword, currentPassword, $completion) { var tmp = new $invokeCOROUTINE$71(this, activeUserPersonUid, personUid, username, newPassword, currentPassword, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function OpenBlobUseCaseJs() { } protoOf(OpenBlobUseCaseJs).unu = function (item, onProgress, intent, $completion) { var element = document.createElement('a'); element.setAttribute('href', item.cnu_1); element.setAttribute('download', item.enu_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.vzi_1 = $transferJobItemStatusUpdater; this.wzi_1 = this$0; this.xzi_1 = $uriToSaveQueueItems; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda).un7 = function (it, $completion) { var tmp = this.vn7(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.un7(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.vzi_1.ao2(VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_0 = this.wzi_1.czj_1.k7f(); var tmp0_safe_receiver = firstOrNull(this.xzi_1); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fzj_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.fby_1; suspendResult = tmp_0.dht(tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs, TransferJobItemStatus_FAILED_getInstance().mjp_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).vn7 = function (it, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda(this.vzi_1, this.wzi_1, this.xzi_1, completion); i.yzi_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.un7(it, $completion); }; l.$arity = 1; return l; } function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$lambda($transferJobItemStatusUpdater, $uploadItem) { return function (it) { $transferJobItemStatusUpdater.xo1(new BlobTransferProgressUpdate($uploadItem, it.non_1)); return Unit_instance; }; } function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda(this$0, $transferJobItemStatusUpdater, $uriToSaveQueueItems, resultContinuation) { this.ozj_1 = this$0; this.pzj_1 = $transferJobItemStatusUpdater; this.qzj_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.ozj_1.czj_1, VOID, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda_0(this.pzj_1, this.ozj_1, this.qzj_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.ozj_1, this.pzj_1, this.qzj_1, completion); i.rzj_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.ezj_1 = uriToSaveItem; this.fzj_1 = transferJobItem; } protoOf(UriToSaveQueueItem).toString = function () { return 'UriToSaveQueueItem(uriToSaveItem=' + this.ezj_1 + ', transferJobItem=' + this.fzj_1 + ')'; }; protoOf(UriToSaveQueueItem).hashCode = function () { var result = this.ezj_1.hashCode(); result = imul(result, 31) + this.fzj_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.ezj_1.equals(tmp0_other_with_cast.ezj_1)) return false; if (!this.fzj_1.equals(tmp0_other_with_cast.fzj_1)) return false; return true; }; function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda(this$0, $localUrisToSave, $onTransferJobItemCreated, resultContinuation) { this.azk_1 = this$0; this.bzk_1 = $localUrisToSave; this.czk_1 = $onTransferJobItemCreated; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda).vzk = function (it, $completion) { var tmp = this.vn7(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda).he = function (p1, $completion) { return this.vzk(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.azk_1.czj_1.j7f().phq(new TransferJob(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ezk_1 = suspendResult; this.fzk_1 = this.ezk_1.mb(); var tmp_0 = this; tmp_0.gzk_1 = this.bzk_1; var tmp_1 = this; tmp_1.hzk_1 = this.gzk_1; var tmp_2 = this; tmp_2.izk_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.gzk_1, 10)); this.jzk_1 = this.hzk_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.jzk_1.f()) { this.hd_1 = 7; continue $sm; } this.kzk_1 = this.jzk_1.e(); var tmp_3 = this; tmp_3.lzk_1 = this.kzk_1; var tmp_4 = this; tmp_4.mzk_1 = fetch(this.lzk_1.unw_1); this.hd_1 = 3; var this_0 = this.mzk_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.nzk_1 = suspendResult; this.ozk_1 = this.nzk_1.blob(); this.hd_1 = 4; var this_1 = this.ozk_1; suspendResult = await_0(this_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.pzk_1 = suspendResult; this.qzk_1 = this.pzk_1.size; this.rzk_1 = numberToLong(this.qzk_1); var tmp_5 = this; var tmp0_tjiSrc = this.lzk_1.unw_1; var tmp1_tjiTableId = this.lzk_1.wnw_1; var tmp2_tjiEntityUid = this.lzk_1.vnw_1; tmp_5.szk_1 = new TransferJobItem(VOID, this.fzk_1, this.rzk_1, VOID, VOID, tmp0_tjiSrc, VOID, VOID, VOID, tmp1_tjiTableId, tmp2_tjiEntityUid); this.hd_1 = 5; suspendResult = this.azk_1.czj_1.k7f().zhs(this.szk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.tzk_1 = suspendResult; this.uzk_1 = this.tzk_1.mb(); this.czk_1(this.lzk_1, this.szk_1.qkb(this.uzk_1)); this.hd_1 = 6; suspendResult = this.azk_1.dzj_1.po2(this.azk_1.czj_1, this.lzk_1.wnw_1, this.lzk_1.vnw_1, this.uzk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: var ARGUMENT = new UriToSaveQueueItem(this.lzk_1, this.szk_1.qkb(this.uzk_1)); this.izk_1.i1(ARGUMENT); this.hd_1 = 2; continue $sm; case 7: return this.izk_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).vn7 = function (it, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda(this.azk_1, this.bzk_1, this.czk_1, completion); i.dzk_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.vzk(it, $completion); }; l.$arity = 1; return l; } function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1(this$0, $uriToSaveQueueItems, resultContinuation) { this.ezl_1 = this$0; this.fzl_1 = $uriToSaveQueueItems; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1).bzm = 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.bzm((!(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.hzl_1 = new TransferJobItemStatusUpdater(this.ezl_1.czj_1, null, this.gzl_1); this.id_1 = 5; var tmp_0 = this; tmp_0.jzl_1 = this.fzl_1; var tmp_1 = this; tmp_1.kzl_1 = this.jzl_1; var tmp_2 = this; tmp_2.lzl_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.jzl_1, 10)); this.mzl_1 = this.kzl_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.mzl_1.f()) { this.hd_1 = 3; continue $sm; } this.nzl_1 = this.mzl_1.e(); var tmp_3 = this; tmp_3.ozl_1 = this.nzl_1; this.pzl_1 = new BlobTransferJobItem('', this.ozl_1.fzj_1.eby_1); this.hzl_1.yo1(new BlobTransferStatusUpdate(this.pzl_1, TransferJobItemStatus_IN_PROGRESS_getInstance().mjp_1)); this.qzl_1 = this.ezl_1.zzi_1; this.rzl_1 = randomUuidAsString(); this.szl_1 = Companion_getInstance_3().o2r(this.ozl_1.ezj_1.unw_1); this.tzl_1 = this.ezl_1.azj_1.jn2_1 + 'api/blob/upload-item'; var tmp_4 = this; var this_0 = LinkedHashMap_init_$Create$(); var tmp0_safe_receiver = this.ozl_1.ezj_1.xnw_1; if (tmp0_safe_receiver == null) null; else { this_0.s('X-Blob-Response-' + 'Content-Type', listOf_0(tmp0_safe_receiver)); } tmp_4.uzl_1 = asIStringValues(this_0.f3()); this.hd_1 = 2; suspendResult = this.qzl_1.ton(this.rzl_1, this.szl_1, this.tzl_1, VOID, VOID, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$lambda(this.hzl_1, this.pzl_1), VOID, this.uzl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.vzl_1 = suspendResult; var tmp_5 = this; var tmp5_elvis_lhs = this.vzl_1.pon_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.wzl_1 = tmp_6; this.hzl_1.yo1(new BlobTransferStatusUpdate(this.pzl_1, TransferJobItemStatus_COMPLETE_getInstance().mjp_1)); this.xzl_1 = this.ezl_1.bzj_1.s45(Companion_instance_81.n4r(), this.wzl_1); Napier_getInstance().i5e('SaveLocalUrisAsBlobUseCaseJs: upload complete: ' + (this.ozl_1.ezj_1.unw_1 + ' stored as ' + this.xzl_1.unv_1)); this.yzl_1 = this.xzl_1.cnx(this.ozl_1.ezj_1.vnw_1, this.ozl_1.ezj_1.wnw_1, this.ozl_1.ezj_1.unw_1); this.lzl_1.i1(this.yzl_1); this.hd_1 = 1; continue $sm; case 3: this.zzl_1 = this.lzl_1; this.hd_1 = 4; suspendResult = this.hzl_1.ao2(VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.izl_1 = this.zzl_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.azm_1 = this.kd_1; Napier_getInstance().q5e('SaveLocalUriAsBlobUseCaseJs: exception uploading', this.azm_1); this.hd_1 = 6; var tmp_8 = NonCancellable_getInstance(); suspendResult = withContext(tmp_8, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda_0(this.ezl_1, this.hzl_1, this.fzl_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.azm_1; case 7: this.id_1 = 8; return this.izl_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.ezl_1, this.fzl_1, completion); i.gzl_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.bzm($this$coroutineScope, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$72(_this__u8e3s4, localUrisToSave, onTransferJobItemCreated, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.kzm_1 = _this__u8e3s4; this.lzm_1 = localUrisToSave; this.mzm_1 = onTransferJobItemCreated; } protoOf($invokeCOROUTINE$72).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.kzm_1.czj_1, VOID, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_0(this.kzm_1, this.lzm_1, this.mzm_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.nzm_1 = suspendResult; this.hd_1 = 2; suspendResult = coroutineScope(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_2(this.kzm_1, this.nzm_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, endpoint, json, db, updateTransferJobItemEtagUseCase) { updateTransferJobItemEtagUseCase = updateTransferJobItemEtagUseCase === VOID ? new UpdateTransferJobItemEtagUseCase() : updateTransferJobItemEtagUseCase; this.zzi_1 = chunkedUploadClientLocalUriUseCase; this.azj_1 = endpoint; this.bzj_1 = json; this.czj_1 = db; this.dzj_1 = updateTransferJobItemEtagUseCase; } protoOf(SaveLocalUrisAsBlobUseCaseJs).dnx = function (localUrisToSave, onTransferJobItemCreated, $completion) { var tmp = new $invokeCOROUTINE$72(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.wzm_1 = this$0; this.xzm_1 = $entityUid; this.yzm_1 = $tableId; this.zzm_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.wzm_1.bzn_1.enx(this.xzm_1, this.yzm_1, this.zzm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.wzm_1, this.xzm_1, this.yzm_1, this.zzm_1, completion); i.azn_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.bzn_1 = savePictureUseCase; this.czn_1 = CoroutineScope_0(Dispatchers_getInstance().p12_1.lj(Job())); } protoOf(EnqueueSavePictureUseCaseJs).enx = function (entityUid, tableId, pictureUri, $completion) { launch(this.czn_1, VOID, VOID, EnqueueSavePictureUseCaseJs$invoke$slambda_0(this, entityUid, tableId, pictureUri, null)); return Unit_instance; }; function SetClipboardStringUseCaseJs() { } protoOf(SetClipboardStringUseCaseJs).mo6 = function (content) { try { navigator.clipboard.writeText(content); } catch ($p) { if ($p instanceof Error) { var e = $p; } else { throw $p; } } }; function CompressImageUseCaseJs$invoke$lambda($fromUri, $completeable) { return function (it) { Napier_getInstance().i5e('CompressImageUseCaseJs: compressing ' + $fromUri + ' : success'); $completeable.gy(it); return Unit_instance; }; } function CompressImageUseCaseJs$invoke$lambda_0($fromUri, $completeable) { return function (it) { Napier_getInstance().q5e('CompressImageUseCaseJs: compressing ' + $fromUri + ' : error', it); $completeable.iy(it); return Unit_instance; }; } function $invokeCOROUTINE$73(_this__u8e3s4, fromUri, toUri, params, onProgress, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lzn_1 = _this__u8e3s4; this.mzn_1 = fromUri; this.nzn_1 = toUri; this.ozn_1 = params; this.pzn_1 = onProgress; } protoOf($invokeCOROUTINE$73).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; this.qzn_1 = CompletableDeferred(); Napier_getInstance().i5e('CompressImageUseCaseJs: compressing ' + this.mzn_1); this.id_1 = 4; var tmp_0 = this; tmp_0.rzn_1 = fetch(this.mzn_1); this.hd_1 = 1; var this_0 = this.rzn_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.szn_1 = suspendResult; this.tzn_1 = this.szn_1.blob(); this.hd_1 = 2; var this_1 = this.tzn_1; suspendResult = await_0(this_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.uzn_1 = suspendResult; var this_2 = {}; this_2.maxWidth = this.ozn_1.po6_1; this_2.maxHeight = this.ozn_1.qo6_1; this_2.convertSize = 50000; this_2.convertTypes = ['image/png']; this_2.success = CompressImageUseCaseJs$invoke$lambda(this.mzn_1, this.qzn_1); this_2.error = CompressImageUseCaseJs$invoke$lambda_0(this.mzn_1, this.qzn_1); new com_ustadmobile_core_wrappers_compressorjs_default_j4zdfk(this.uzn_1, this_2); this.hd_1 = 3; suspendResult = this.qzn_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.uzn_1.size), numberToLong(compressedBlob.size)); case 4: this.id_1 = 6; var tmp_1 = this.kd_1; if (tmp_1 instanceof Error) { var e = this.kd_1; Napier_getInstance().q5e('CompressImageUseCase: Exception caught: ', e); throw e; } else { throw this.kd_1; } case 5: this.id_1 = 6; return Unit_instance; case 6: throw this.kd_1; } } catch ($p) { var e_0 = $p; if (this.id_1 === 6) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; function CompressImageUseCaseJs() { } protoOf(CompressImageUseCaseJs).vzn = function (fromUri, toUri, params, onProgress, $completion) { var tmp = new $invokeCOROUTINE$73(this, fromUri, toUri, params, onProgress, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CompressImageUseCaseJs).so6 = function (fromUri, toUri, params, onProgress, $completion) { return this.vzn(fromUri, toUri, params, onProgress, $completion); }; function Companion_189() { this.wzn_1 = 3; } var Companion_instance_237; function Companion_getInstance_206() { return Companion_instance_237; } function ContentEntryGetMetaDataFromUriUseCaseJs$invoke$lambda($onProgress) { return function (it) { $onProgress(new ContentEntryGetMetadataStatus(false, VOID, it.non_1, it.oon_1)); return Unit_instance; }; } function $invokeCOROUTINE$74(_this__u8e3s4, contentUri, fileName, endpoint, onProgress, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fzo_1 = _this__u8e3s4; this.gzo_1 = contentUri; this.hzo_1 = fileName; this.izo_1 = endpoint; this.jzo_1 = onProgress; } protoOf($invokeCOROUTINE$74).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 9; this.kzo_1 = randomUuid().toString(); this.hd_1 = 1; continue $sm; case 1: this.hd_1 = 2; continue $sm; case 2: this.id_1 = 8; this.mzo_1 = until(0, 3).w(); this.hd_1 = 3; continue $sm; case 3: if (!this.mzo_1.f()) { this.hd_1 = 6; continue $sm; } this.nzo_1 = this.mzo_1.e(); this.ozo_1 = this.fzo_1.szo_1; this.pzo_1 = this.izo_1.jn2_1 + 'api/contentupload/upload'; var tmp_0 = this; var this_0 = LinkedHashMap_init_$Create$(); if (!(this.hzo_1 == null)) { this_0.s('upload-original-filename', listOf_0(encodeURIComponent(this.hzo_1))); } tmp_0.qzo_1 = asIStringValues(this_0.f3()); this.hd_1 = 4; var tmp_1 = new Long(0, 0); suspendResult = this.ozo_1.ton(this.kzo_1, this.gzo_1, this.pzo_1, tmp_1, VOID, ContentEntryGetMetaDataFromUriUseCaseJs$invoke$lambda(this.jzo_1), VOID, this.qzo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var finalResponse = suspendResult; var tmp4_subject = finalResponse.qon_1; if (tmp4_subject === 400) { var tmp5_elvis_lhs = finalResponse.pon_1; throw new InvalidContentException(tmp5_elvis_lhs == null ? '' : tmp5_elvis_lhs); } else if (tmp4_subject === 406) { var tmp6_elvis_lhs = finalResponse.pon_1; throw new UnsupportedContentException(tmp6_elvis_lhs == null ? '' : tmp6_elvis_lhs); } var tmp_2 = this; var tmp7_safe_receiver = finalResponse.pon_1; var tmp_3; if (tmp7_safe_receiver == null) { tmp_3 = null; } else { tmp_3 = this.fzo_1.rzo_1.s45(Companion_instance_80.n4r(), tmp7_safe_receiver); } var tmp8_elvis_lhs = tmp_3; var tmp_4; if (tmp8_elvis_lhs == null) { throw IllegalStateException_init_$Create$('Final response had no body'); } else { tmp_4 = tmp8_elvis_lhs; } tmp_2.lzo_1 = tmp_4; this.id_1 = 9; this.hd_1 = 5; continue $sm; case 5: var tmp_5 = this.lzo_1; this.id_1 = 9; URL.revokeObjectURL(this.gzo_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.gzo_1.toString()); return Unit_instance; case 8: this.id_1 = 9; var t = this.kd_1; URL.revokeObjectURL(this.gzo_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.rzo_1 = json; this.szo_1 = chunkedUploadClientLocalUriUseCase; } protoOf(ContentEntryGetMetaDataFromUriUseCaseJs).bo8 = function (contentUri, fileName, endpoint, onProgress, $completion) { var tmp = new $invokeCOROUTINE$74(this, contentUri, fileName, endpoint, onProgress, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function $invokeCOROUTINE$75(_this__u8e3s4, subtitleTrackUri, filename, locale, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bzp_1 = _this__u8e3s4; this.czp_1 = subtitleTrackUri; this.dzp_1 = filename; this.ezp_1 = locale; } protoOf($invokeCOROUTINE$75).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.czp_1.q72_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.gzp_1 = suspendResult; this.hzp_1 = this.gzp_1.blob(); this.hd_1 = 2; var this_0 = this.hzp_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.izp_1 = suspendResult; this.jzp_1 = this.izp_1.text(); this.hd_1 = 3; var this_1 = this.jzp_1; suspendResult = await_0(this_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.fzp_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.kzp_1 = this.kd_1; var tmp_1 = this; Napier_getInstance().q5e('GetSubtitleTrackFromUriUseCaseJs: exception fetching local uri ' + this.czp_1, this.kzp_1); throw IllegalStateException_init_$Create$_1('Failed to fetch blob for local uri ' + this.czp_1, this.kzp_1); } else { throw this.kd_1; } case 5: this.id_1 = 8; this.lzp_1 = this.fzp_1; var tmp_2 = this; tmp_2.mzp_1 = this.bzp_1.vzp_1; var tmp_3 = this; tmp_3.nzp_1 = this.bzp_1.uzp_1.jn2_1 + 'api/contentupload/getsubtitletrack'; var tmp_4 = this; tmp_4.ozp_1 = this.mzp_1; var tmp_5 = this; tmp_5.pzp_1 = this.ozp_1; var tmp_6 = this; var this_2 = new HttpRequestBuilder(); url(this_2, this.nzp_1); parameter(this_2, 'filename', this.dzp_1); var tmp0_elvis_lhs = this.ezp_1; parameter(this_2, 'locale', tmp0_elvis_lhs == null ? this.bzp_1.xzp_1.mom_1 : tmp0_elvis_lhs); var body = new TextContent(this.lzp_1, Companion_getInstance_15().o2r('text/vtt; charset=utf-8')); if (body == null) { this_2.y38_1 = NullBody_instance; var tmp_7 = JsType_instance; var tmp_8 = getKClass(TextContent); var tmp_9; try { tmp_9 = createKType(getKClass(TextContent), arrayOf([]), false); } catch ($p) { var tmp_10; if ($p instanceof Error) { var cause = $p; tmp_10 = null; } else { throw $p; } tmp_9 = tmp_10; } this_2.v3e(typeInfoImpl(tmp_7, tmp_8, tmp_9)); } else { if (body instanceof OutgoingContent) { this_2.y38_1 = body; this_2.v3e(null); } else { this_2.y38_1 = body; var tmp_11 = JsType_instance; var tmp_12 = getKClass(TextContent); var tmp_13; try { tmp_13 = createKType(getKClass(TextContent), arrayOf([]), false); } catch ($p) { var tmp_14; if ($p instanceof Error) { var cause_0 = $p; tmp_14 = null; } else { throw $p; } tmp_13 = tmp_14; } this_2.v3e(typeInfoImpl(tmp_11, tmp_12, tmp_13)); } } tmp_6.qzp_1 = this_2; this.qzp_1.w38_1 = Companion_getInstance().m2x_1; var tmp_15 = this; tmp_15.rzp_1 = this.pzp_1; var tmp_16 = this; tmp_16.szp_1 = this.qzp_1; this.hd_1 = 6; suspendResult = (new HttpStatement(this.szp_1, this.rzp_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.tzp_1 = suspendResult; this.hd_1 = 7; suspendResult = bodyAsText(this.tzp_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: var subtitleJsonStr = suspendResult; return this.bzp_1.wzp_1.s45(Companion_instance_79.n4r(), subtitleJsonStr); case 8: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 8) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function GetSubtitleTrackFromUriUseCaseJs(endpoint, httpClient, json, supportedLanguagesConfig) { this.uzp_1 = endpoint; this.vzp_1 = httpClient; this.wzp_1 = json; this.xzp_1 = supportedLanguagesConfig; } protoOf(GetSubtitleTrackFromUriUseCaseJs).no8 = function (subtitleTrackUri, filename, locale, $completion) { var tmp = new $invokeCOROUTINE$75(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.kob_1; }; } function LaunchXapiUseCaseJs$invoke$lambda_0($resolveResult) { return function () { return 'LaunchXapiUseCaseJs: navigating to: ' + $resolveResult.kob_1; }; } function $invokeCOROUTINE$76(_this__u8e3s4, contentEntryVersion, navController, clazzUid, cbUid, target, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.gzq_1 = _this__u8e3s4; this.hzq_1 = contentEntryVersion; this.izq_1 = navController; this.jzq_1 = clazzUid; this.kzq_1 = cbUid; this.lzq_1 = target; } 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 = 2; this.hd_1 = 1; suspendResult = this.gzq_1.mzq_1.roe(this.hzq_1.raj_1, this.jzq_1, this.kzq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var resolveResult = suspendResult; if (!this.lzq_1.equals(LinkTarget_TOP_getInstance())) { var tmp_0 = Napier_getInstance(); tmp_0.k5e(VOID, VOID, LaunchXapiUseCaseJs$invoke$lambda(resolveResult)); window.open(resolveResult.kob_1, asWindowTarget(this.lzq_1), 'popup=true,noopener,noreferrer'); } else { var tmp_1 = Napier_getInstance(); tmp_1.k5e(VOID, VOID, LaunchXapiUseCaseJs$invoke$lambda_0(resolveResult)); location.href = resolveResult.kob_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.mzq_1 = resolveXapiLaunchHrefUseCase; } protoOf(LaunchXapiUseCaseJs).gob = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { var tmp = new $invokeCOROUTINE$76(this, contentEntryVersion, navController, clazzUid, cbUid, target, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LaunchXapiUseCaseJs).iob = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { return this.gob(contentEntryVersion, navController, clazzUid, cbUid, target, $completion); }; function SetLanguageUseCaseJs(languagesConfig) { this.nzq_1 = languagesConfig; } protoOf(SetLanguageUseCaseJs).poi = function (uiLang, currentDestination, navController, navArgs) { var currentDisplayLang = this.nzq_1.mom_1; this.nzq_1.fp7(uiLang.vp3_1); var newDisplayLang = this.nzq_1.mom_1; if (!(currentDisplayLang === newDisplayLang)) { location.reload(); } return new SetLangResult(false); }; function OpenExternalLinkUseCaseJs() { } protoOf(OpenExternalLinkUseCaseJs).yoi = function (url, target) { window.open(url, asWindowTarget(target)); }; function BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda(this$0, $text, $accountPersonUid, $onProgress, resultContinuation) { this.wzq_1 = this$0; this.xzq_1 = $text; this.yzq_1 = $accountPersonUid; this.zzq_1 = $onProgress; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda).xzr = 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.xzr((!(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.bzr_1 = this.wzq_1.yzr_1; var tmp_1 = this; tmp_1.czr_1 = this.wzq_1.zzr_1.jn2_1 + 'api/person/bulkadd/enqueue'; var tmp_2 = this; tmp_2.dzr_1 = this.bzr_1; var tmp_3 = this; tmp_3.ezr_1 = this.dzr_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.czr_1); var body = new TextContent(this.xzq_1, Text_getInstance().q2s_1); if (body == null) { this_0.y38_1 = NullBody_instance; var tmp_5 = JsType_instance; var tmp_6 = getKClass(TextContent); var tmp_7; try { tmp_7 = createKType(getKClass(TextContent), arrayOf([]), false); } catch ($p) { var tmp_8; if ($p instanceof Error) { var cause = $p; tmp_8 = null; } else { throw $p; } tmp_7 = tmp_8; } this_0.v3e(typeInfoImpl(tmp_5, tmp_6, tmp_7)); } else { if (body instanceof OutgoingContent) { this_0.y38_1 = body; this_0.v3e(null); } else { this_0.y38_1 = body; var tmp_9 = JsType_instance; var tmp_10 = getKClass(TextContent); var tmp_11; try { tmp_11 = createKType(getKClass(TextContent), arrayOf([]), false); } catch ($p) { var tmp_12; if ($p instanceof Error) { var cause_0 = $p; tmp_12 = null; } else { throw $p; } tmp_11 = tmp_12; } this_0.v3e(typeInfoImpl(tmp_9, tmp_10, tmp_11)); } } parameter(this_0, 'accountPersonUid', this.yzq_1.toString()); var tmp_13 = this.wzq_1.bzs_1; doorNodeAndVersionHeaders(this_0, isInterface(tmp_13, DoorDatabaseRepository) ? tmp_13 : THROW_CCE()); tmp_4.fzr_1 = this_0; this.fzr_1.w38_1 = Companion_getInstance().m2x_1; var tmp_14 = this; tmp_14.gzr_1 = this.ezr_1; var tmp_15 = this; tmp_15.hzr_1 = this.fzr_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.hzr_1, this.gzr_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.izr_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.izr_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.jzr_1 = suspendResult; this.kzr_1 = toLong_0(this.jzr_1); this.hd_1 = 3; continue $sm; case 3: if (!get_isActive(this.azr_1)) { this.hd_1 = 10; continue $sm; } this.id_1 = 7; var tmp_16 = this; tmp_16.lzr_1 = this.wzq_1.yzr_1; var tmp_17 = this; tmp_17.mzr_1 = this.wzq_1.zzr_1.jn2_1 + 'api/person/bulkadd/status'; var tmp_18 = this; tmp_18.nzr_1 = this.lzr_1; var tmp_19 = this; tmp_19.ozr_1 = this.nzr_1; var tmp_20 = this; var this_1 = new HttpRequestBuilder(); url(this_1, this.mzr_1); parameter(this_1, 'timestamp', this.kzr_1.toString()); tmp_20.pzr_1 = this_1; this.pzr_1.w38_1 = Companion_getInstance().l2x_1; var tmp_21 = this; tmp_21.qzr_1 = this.ozr_1; var tmp_22 = this; tmp_22.rzr_1 = this.pzr_1; this.hd_1 = 4; suspendResult = (new HttpStatement(this.rzr_1, this.qzr_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.szr_1 = suspendResult; if (this.szr_1.j3b().f30_1 === 200) { var tmp_23 = this; tmp_23.tzr_1 = this.wzq_1.azs_1; this.hd_1 = 5; suspendResult = bodyAsText(this.szr_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 6; continue $sm; } case 5: this.uzr_1 = suspendResult; var tmp_24 = this; var this_2 = this.tzr_1.t45(); var this_3 = serializer(this_2, createKType(getKClass(BulkAddPersonRunImportUiState), arrayOf([]), false)); tmp_24.vzr_1 = this.tzr_1.s45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), this.uzr_1); if (this.vzr_1.uxm_1) { this.zzq_1.dxn(this.vzr_1.wxm_1, this.vzr_1.vxm_1); } else { if (this.vzr_1.vss()) { throw new BulkAddPersonException(this.vzr_1.yxm_1, this.vzr_1.xxm_1); } return new BulkAddUsersResult(this.vzr_1.wxm_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.wzr_1 = this.kd_1; Napier_getInstance().m5e('BulkAddPersonFromLocalUriUseCaseJs exception', this.wzr_1); var tmp_26 = this.wzr_1; if (tmp_26 instanceof BulkAddPersonException) throw this.wzr_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.wzq_1, this.xzq_1, this.yzq_1, this.zzq_1, completion); i.azr_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.xzr($this$coroutineScope, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$77(_this__u8e3s4, uri, accountPersonUid, onProgress, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.kzs_1 = _this__u8e3s4; this.lzs_1 = uri; this.mzs_1 = accountPersonUid; this.nzs_1 = onProgress; } 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 = 4; console.log('Getting csv text'); this.hd_1 = 1; suspendResult = fetch_0(this.lzs_1.toString(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ozs_1 = suspendResult; this.pzs_1 = this.ozs_1.text(); this.hd_1 = 2; var this_0 = this.pzs_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.qzs_1 = suspendResult; console.log('csv text = ' + this.qzs_1); this.hd_1 = 3; suspendResult = coroutineScope(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda_0(this.kzs_1, this.qzs_1, this.mzs_1, this.nzs_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, endpoint, json, repo) { this.yzr_1 = httpClient; this.zzr_1 = endpoint; this.azs_1 = json; this.bzs_1 = repo; } protoOf(BulkAddPersonsFromLocalUriUseCaseJs).nol = function (uri, accountPersonUid, onProgress, $completion) { var tmp = new $invokeCOROUTINE$77(this, uri, accountPersonUid, onProgress, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function OnClickPhoneNumUseCaseJs() { } protoOf(OnClickPhoneNumUseCaseJs).mo6 = 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).tol = 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.rzs_1 = phoneNumber; } function PhoneNumberUtilJs() { } protoOf(PhoneNumberUtilJs).rol = function (numberToParse, defaultRegion) { return new PhoneNumberJs(parsePhoneNumber(numberToParse, defaultRegion, null)); }; protoOf(PhoneNumberUtilJs).sol = function (number) { return (number instanceof PhoneNumberJs ? number : THROW_CCE()).rzs_1.formatInternational(); }; function OnClickSendEmailUseCaseJs() { } protoOf(OnClickSendEmailUseCaseJs).mo6 = 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.szs_1 = isTempFileCheckerUseCase; } protoOf(DeleteUrisUseCaseJs).gnz = 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.szs_1.koe(element)) { var tmp = Napier_getInstance(); tmp.k5e(VOID, VOID, DeleteUrisUseCaseJs$invoke$lambda(element)); URL.revokeObjectURL(element); } } return Unit_instance; }; function IsTempFileCheckerUseCaseJs() { } protoOf(IsTempFileCheckerUseCaseJs).koe = function (uri) { return startsWith(uri, 'blob:'); }; function ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda($logPrefix, $index, $chunkInfo) { return function () { return $logPrefix + ' : upload chunk #' + ($index + 1 | 0) + '/' + $chunkInfo.ion_1; }; } function ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda_0($logPrefix, $index, $chunkInfo) { return function () { return $logPrefix + ' : upload chunk #' + ($index + 1 | 0) + '/' + $chunkInfo.ion_1 + ' complete '; }; } function $invokeCOROUTINE$78(_this__u8e3s4, uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bzt_1 = _this__u8e3s4; this.czt_1 = uploadUuid; this.dzt_1 = localUri; this.ezt_1 = remoteUrl; this.fzt_1 = fromByte; this.gzt_1 = chunkSize; this.hzt_1 = onProgress; this.izt_1 = onStatusChange; this.jzt_1 = lastChunkHeaders; } 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 = 14; this.kzt_1 = 'ChunkedUploadClientLocalUriUseCaseJs (' + this.czt_1 + ') : ' + this.dzt_1 + ' -> ' + this.ezt_1 + ':'; this.id_1 = 13; Napier_getInstance().i5e(this.kzt_1 + ' : starting'); this.id_1 = 3; this.hd_1 = 1; suspendResult = fetch_0(toString(this.dzt_1.q72_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.mzt_1 = suspendResult; this.nzt_1 = this.mzt_1.blob(); this.hd_1 = 2; var this_0 = this.nzt_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.lzt_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.ozt_1 = this.kd_1; var tmp_1 = this; Napier_getInstance().q5e(this.kzt_1 + ' exception fetching local uri ' + this.dzt_1, this.ozt_1); throw IllegalStateException_init_$Create$_1(this.kzt_1 + ': failed to fetch blob for local uri ' + this.dzt_1.q72_1, this.ozt_1); } else { throw this.kd_1; } case 4: this.id_1 = 13; this.pzt_1 = this.lzt_1; this.qzt_1 = this.pzt_1.size; if (this.qzt_1 <= 0.0) throw IllegalArgumentException_init_$Create$('Upload size <= 0'); this.rzt_1 = new ChunkInfo(numberToLong(this.qzt_1), this.gzt_1, this.fzt_1); if (this.qzt_1 >= IntCompanionObject_instance.MAX_VALUE) throw IllegalArgumentException_init_$Create$('JS: upload size(' + numberToLong(this.qzt_1).toString() + ') > ' + IntCompanionObject_instance.MAX_VALUE + ' not supported'); this.izt_1(TransferJobItemStatus_IN_PROGRESS_getInstance()); var tmp_2 = this; tmp_2.szt_1 = this.rzt_1; this.tzt_1 = 0; this.uzt_1 = this.szt_1.w(); this.hd_1 = 5; continue $sm; case 5: if (!this.uzt_1.f()) { this.hd_1 = 12; continue $sm; } this.vzt_1 = this.uzt_1.e(); var tmp_3 = this; var tmp1 = this.tzt_1; this.tzt_1 = tmp1 + 1 | 0; tmp_3.wzt_1 = checkIndexOverflow(tmp1); var tmp_4 = this; tmp_4.xzt_1 = this.vzt_1; var tmp_5 = Napier_getInstance(); tmp_5.e5e(VOID, VOID, ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda(this.kzt_1, this.wzt_1, this.rzt_1)); this.yzt_1 = this.pzt_1.slice(this.xzt_1.jon_1.a7(), this.xzt_1.kon_1.a7()); this.id_1 = 7; var tmp_6 = this; var this_1 = {}; this_1.body = this.yzt_1; this_1.method = 'POST'; var this_2 = new Headers(); this_2.set(get_HEADER_UPLOAD_UUID(), this.czt_1); this_2.set(get_HEADER_IS_FINAL_CHUNK(), this.xzt_1.lon_1.toString()); this_2.set(get_HEADER_UPLOAD_START_BYTE(), this.xzt_1.jon_1.toString()); if (this.xzt_1.lon_1 ? !(this.jzt_1 == null) : false) { var tmp0_iterator = this.jzt_1.o2n().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp0_iterator_0 = this.jzt_1.n2n(element).w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); this_2.append(element, element_0); } } } this_1.headers = this_2; tmp_6.azu_1 = fetch(this.ezt_1, this_1); this.hd_1 = 6; var this_3 = this.azu_1; suspendResult = await_0(this_3, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.zzt_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.bzu_1 = this.kd_1; var tmp_8 = this; Napier_getInstance().q5e(this.kzt_1 + ' exception fetching response for blob upload ' + ('fromByte=' + this.rzt_1.gon_1.toString()), this.bzu_1); throw IllegalStateException_init_$Create$_1(this.kzt_1 + ' exception fetching response for blob upload ', this.bzu_1); } else { throw this.kd_1; } case 8: this.id_1 = 13; this.czu_1 = this.zzt_1; var tmp_9 = Napier_getInstance(); tmp_9.e5e(VOID, VOID, ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda_0(this.kzt_1, this.wzt_1, this.rzt_1)); this.hzt_1(new UploadProgress(this.xzt_1.kon_1, numberToLong(this.qzt_1))); if (this.xzt_1.lon_1) { this.izt_1(TransferJobItemStatus_COMPLETE_getInstance()); Napier_getInstance().i5e(this.kzt_1 + ': Complete!'); if (!(this.czu_1.status === 204)) { var tmp_10 = this; tmp_10.ezu_1 = this.czu_1.text(); this.hd_1 = 10; var this_4 = this.ezu_1; suspendResult = await_0(this_4, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_11 = this; tmp_11.dzu_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.dzu_1 = suspendResult; this.hd_1 = 11; continue $sm; case 11: var ARGUMENT = this.dzu_1; return new LastChunkResponse(ARGUMENT, this.czu_1.status, asIStringValues_0(this.czu_1.headers)); case 12: throw IllegalStateException_init_$Create$(this.kzt_1 + ' should have returned with last chunk'); case 13: this.id_1 = 14; var tmp_12 = this.kd_1; if (tmp_12 instanceof Error) { var e = this.kd_1; Napier_getInstance().q5e(this.kzt_1 + ', ChunkedUploadClientLocalUriUseCaseJs: Exception', e); this.izt_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).son = function (uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion) { var tmp = new $invokeCOROUTINE$78(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.nzu_1 = this$0; this.ozu_1 = $statements; this.pzu_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.nzu_1.rzu_1.dnq(this.ozu_1, this.pzu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.nzu_1, this.ozu_1, this.pzu_1, completion); i.qzu_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.rzu_1 = xapiStatementResource; } protoOf(SaveStatementOnClearUseCaseJs).vp2 = function (statements, xapiSession) { var tmp = GlobalScope_instance; launch(tmp, VOID, VOID, SaveStatementOnClearUseCaseJs$invoke$slambda_0(this, statements, xapiSession, null)); }; function SaveStatementOnUnloadUseCaseJs(endpoint, json) { this.szu_1 = endpoint; this.tzu_1 = json; } protoOf(SaveStatementOnUnloadUseCaseJs).vp2 = function (statements, xapiSession) { var tmp = navigator; var tmp_0 = this.szu_1.jn2_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.tzu_1.r45(Companion_getInstance_88().n4r(), new XapiStatementsAndSession(statements, xapiSession)); tmp.sendBeacon(tmp_0, tmp$ret$2); }; function $invokeCOROUTINE$79(_this__u8e3s4, accountPersonUid, actor, activityId, clazzUid, cbUid, contentEntryUid, contentEntryVersionUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.czv_1 = _this__u8e3s4; this.dzv_1 = accountPersonUid; this.ezv_1 = actor; this.fzv_1 = activityId; this.gzv_1 = clazzUid; this.hzv_1 = cbUid; this.izv_1 = contentEntryUid; this.jzv_1 = contentEntryVersionUid; } 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 = 3; var tmp_0 = this; tmp_0.kzv_1 = this.czv_1.tzv_1; var tmp_1 = this; tmp_1.lzv_1 = this.czv_1.szv_1.jn2_1 + 'api/xapi-ext/resumeOrStartSession'; var tmp_2 = this; tmp_2.mzv_1 = this.kzv_1; var tmp_3 = this; tmp_3.nzv_1 = this.mzv_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.lzv_1); var tmp_5 = this.czv_1.uzv_1; doorNodeIdHeader(this_0, isInterface(tmp_5, DoorDatabaseRepository) ? tmp_5 : THROW_CCE()); parameter(this_0, 'accountPersonUid', this.dzv_1.toString()); parameter(this_0, 'actor', this.czv_1.vzv_1.r45(Companion_instance_105.n4r(), this.ezv_1)); parameter(this_0, 'activityId', this.fzv_1); parameter(this_0, 'clazzUid', this.gzv_1.toString()); parameter(this_0, 'cbUid', this.hzv_1.toString()); parameter(this_0, 'contentEntryUid', this.izv_1.toString()); parameter(this_0, 'contentEntryVersionUid', this.jzv_1.toString()); tmp_4.ozv_1 = this_0; this.ozv_1.w38_1 = Companion_getInstance().m2x_1; var tmp_6 = this; tmp_6.pzv_1 = this.nzv_1; var tmp_7 = this; tmp_7.qzv_1 = this.ozv_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.qzv_1, this.pzv_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.rzv_1 = suspendResult; this.hd_1 = 2; var tmp_8 = this.rzv_1.e3c(); var tmp_9 = JsType_instance; var tmp_10 = getKClass(XapiSessionEntity); var tmp_11; try { tmp_11 = createKType(getKClass(XapiSessionEntity), arrayOf([]), false); } catch ($p) { var tmp_12; if ($p instanceof Error) { var cause = $p; tmp_12 = null; } else { throw $p; } tmp_11 = tmp_12; } suspendResult = tmp_8.h3b(typeInfoImpl(tmp_9, tmp_10, tmp_11), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var result = suspendResult instanceof XapiSessionEntity ? suspendResult : THROW_CCE(); return result; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function ResumeOrStartXapiSessionUseCaseJs(endpoint, httpClient, repo, xapiJson) { this.szv_1 = endpoint; this.tzv_1 = httpClient; this.uzv_1 = repo; this.vzv_1 = xapiJson.roq_1; } protoOf(ResumeOrStartXapiSessionUseCaseJs).joe = function (accountPersonUid, actor, activityId, clazzUid, cbUid, contentEntryUid, contentEntryVersionUid, $completion) { var tmp = new $invokeCOROUTINE$79(this, accountPersonUid, actor, activityId, clazzUid, cbUid, contentEntryUid, contentEntryVersionUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function XXHasher64FactoryJs() { } protoOf(XXHasher64FactoryJs).np0 = function (seed) { var hasher = XXH.h64(); hasher.init(seed); return new XXHasher64Js(hasher); }; function XXHasher64Js(hasher64) { this.wzv_1 = hasher64; } protoOf(XXHasher64Js).op0 = function (data) { // Inline function 'js.typedarrays.toUint8Array' call // Inline function 'js.typedarrays.asInt8Array' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var array = data; var array_0 = new Uint8Array(array.buffer, array.byteOffset, array.length); this.wzv_1.update(array_0.buffer); }; protoOf(XXHasher64Js).pp0 = function () { var digestStr = this.wzv_1.digest().toString(10); // Inline function 'kotlin.ULong.toLong' call var this_0 = toULong(digestStr); return _ULong___get_data__impl__fggpzb(this_0); }; function XXStringHasherJs() { } protoOf(XXStringHasherJs).hoy = function (string) { // Inline function 'js.typedarrays.toUint8Array' call var tmp$ret$0; $l$block: { // Inline function 'io.ktor.utils.io.core.toByteArray' call var charset = Charsets_getInstance().z2h_1; if (charset.equals(Charsets_getInstance().z2h_1)) { tmp$ret$0 = encodeToByteArray(string); break $l$block; } tmp$ret$0 = encodeToByteArray_0(charset.d2i(), string, 0, string.length); } // Inline function 'js.typedarrays.asInt8Array' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var array = tmp$ret$0; var array_0 = new Uint8Array(array.buffer, array.byteOffset, array.length); var hash = XXH.h64(array_0.buffer, 0).toString(10); // Inline function 'kotlin.ULong.toLong' call var this_0 = toULong(hash); return _ULong___get_data__impl__fggpzb(this_0); }; 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_38(function_0) { this.xzv_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_38).t1d = function (value, $completion) { return this.xzv_1(value, $completion); }; function collectAsState$lambda$slambda$slambda($state, resultContinuation) { this.gzw_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.gzw_1[1](this.hzw_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.gzw_1, completion); i.hzw_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.qzw_1 = $this_collectAsState; this.rzw_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.rzw_1, null); suspendResult = this.qzw_1.a1c(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(collectAsState$lambda$slambda).v1m = function ($this$launch, completion) { var i = new collectAsState$lambda$slambda(this.qzw_1, this.rzw_1, completion); i.szw_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.bzx_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.bzx_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { 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.bzx_1, completion); i.czx_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_39(function_0) { this.dzx_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_39).t1d = function (value, $completion) { return this.dzx_1(value, $completion); }; function useNavControllerEffect$slambda$slambda($navHostFn, resultContinuation) { this.mzx_1 = $navHostFn; CoroutineImpl.call(this, resultContinuation); } protoOf(useNavControllerEffect$slambda$slambda).ozx = function (it, $completion) { var tmp = this.pzx(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(useNavControllerEffect$slambda$slambda).he = function (p1, $completion) { return this.ozx(p1 instanceof NavCommand ? p1 : THROW_CCE(), $completion); }; protoOf(useNavControllerEffect$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; Napier_getInstance().i5e('useNavControllerEffect: collect command: ' + this.nzx_1); this.mzx_1.dzh(this.nzx_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).pzx = function (it, completion) { var i = new useNavControllerEffect$slambda$slambda(this.mzx_1, completion); i.nzx_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.ozx(it, $completion); }; l.$arity = 1; return l; } function useNavControllerEffect$slambda($commandFlow, $navHostFn, resultContinuation) { this.yzx_1 = $commandFlow; this.zzx_1 = $navHostFn; CoroutineImpl.call(this, resultContinuation); } protoOf(useNavControllerEffect$slambda).z86 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(useNavControllerEffect$slambda).m78 = function ($completion) { return this.z86($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.azy_1 = this.yzx_1; if (this.azy_1 == null) { this.bzy_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = useNavControllerEffect$slambda$slambda_0(this.zzx_1, null); suspendResult = this.azy_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_39(tmp_0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_1 = this; tmp_1.bzy_1 = Unit_instance; this.hd_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(useNavControllerEffect$slambda).l78 = function (completion) { return new useNavControllerEffect$slambda(this.yzx_1, this.zzx_1, completion); }; function useNavControllerEffect$slambda_0($commandFlow, $navHostFn, resultContinuation) { var i = new useNavControllerEffect$slambda($commandFlow, $navHostFn, resultContinuation); var l = function ($completion) { return i.z86($completion); }; l.$arity = 0; return l; } function useStringProvider() { var di = useRequiredContext(get_DIContext()); // Inline function 'org.kodein.di.instance' call var tmp = get_direct(di).f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(StringProviderJs), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var stringProvider = tmp.d58(tmp$ret$0, null); // Inline function 'react.useMemo' call // Inline function 'kotlin.emptyArray' call var dependencies = [].slice(); var callback = useStringProvider$lambda(stringProvider); return useMemo(callback, dependencies); } function useStringProvider$lambda($stringProvider) { return function () { return $stringProvider; }; } function useViewModel(overrideSearchParams, viewModelFactory) { overrideSearchParams = overrideSearchParams === VOID ? null : overrideSearchParams; // Inline function 'js.array.JsTuple1.component1' call // Inline function 'kotlin.js.asDynamic' call var searchParams = useSearchParams()[0]; var locationKey = useLocation().key; var viewModelAndKey$delegate = useState_0(useViewModel$lambda_1(overrideSearchParams, searchParams, viewModelFactory, locationKey)); useEffect([locationKey], useViewModel$lambda_2(locationKey, viewModelFactory, searchParams, viewModelAndKey$delegate)); return useViewModel$lambda(viewModelAndKey$delegate).czy_1; } function ViewModelAndKey(viewModel, locationKey) { this.czy_1 = viewModel; this.dzy_1 = locationKey; } protoOf(ViewModelAndKey).toString = function () { return 'ViewModelAndKey(viewModel=' + this.czy_1 + ', locationKey=' + this.dzy_1 + ')'; }; protoOf(ViewModelAndKey).hashCode = function () { var result = hashCode(this.czy_1); result = imul(result, 31) + getStringHashCode(this.dzy_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.czy_1, tmp0_other_with_cast.czy_1)) return false; if (!(this.dzy_1 === tmp0_other_with_cast.dzy_1)) return false; return true; }; function useViewModel$lambda($viewModelAndKey$delegate) { // Inline function 'react.StateInstance.getValue' call getLocalDelegateReference('viewModelAndKey', KMutableProperty0, true, function () { return THROW_ISE(); }); // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return $viewModelAndKey$delegate[0]; } function useViewModel$lambda_0($viewModelAndKey$delegate, value) { getLocalDelegateReference('viewModelAndKey', KMutableProperty0, true, function () { return THROW_ISE(); }); // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call $viewModelAndKey$delegate[1](value); return Unit_instance; } function useViewModel$lambda_1($overrideSearchParams, $searchParams, $viewModelFactory, $locationKey) { return function () { var tmp = window.history; var tmp0_elvis_lhs = $overrideSearchParams; var savedStateHandle = new SavedStateHandle2(tmp, tmp0_elvis_lhs == null ? $searchParams : tmp0_elvis_lhs); // Inline function 'kotlin.also' call var this_0 = new ViewModelAndKey($viewModelFactory(savedStateHandle), $locationKey); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.hooks.useViewModel..' call Napier_getInstance().i5e('Creating ViewModel: ' + getKClassFromExpression(this_0.czy_1).f7()); return this_0; }; } function useViewModel$lambda$lambda($viewModelAndKey$delegate) { return function () { Napier_getInstance().i5e('Close ViewModel: ' + getKClassFromExpression(useViewModel$lambda($viewModelAndKey$delegate).czy_1).f7()); useViewModel$lambda($viewModelAndKey$delegate).czy_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).dzy_1 === $locationKey)) { useViewModel$lambda_0($viewModelAndKey$delegate, new ViewModelAndKey($viewModelFactory(new SavedStateHandle2(window.history, $searchParams)), $locationKey)); Napier_getInstance().i5e('Recreating ViewModel ' + getKClassFromExpression(useViewModel$lambda($viewModelAndKey$delegate).czy_1).f7()); tmp = Unit_instance; } $this$useEffect.push(useViewModel$lambda$lambda($viewModelAndKey$delegate)); return Unit_instance; }; } function Companion_190() { } var Companion_instance_238; function Companion_getInstance_207() { return Companion_instance_238; } function UstadMobileSystemImpl(settings, langConfig, jsStringProvider) { UstadMobileSystemCommon.call(this, settings, langConfig); this.sno_1 = jsStringProvider; } protoOf(UstadMobileSystemImpl).tno = function (stringResource) { return stringResource.rlj(this.sno_1, this.sp4_1.mom_1); }; protoOf(UstadMobileSystemImpl).uno = function (stringResource, args) { return stringResource.slj(this.sno_1, this.sp4_1.mom_1, args.slice()); }; protoOf(UstadMobileSystemImpl).hvd = function (pluralsResource, number) { return format(pluralsResource, number, [number]).wlj(this.sno_1); }; protoOf(UstadMobileSystemImpl).ezy = 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.ezy(context, zip, $completion); }; protoOf(UstadMobileSystemImpl).fzy = 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.fzy(viewName, args, context, flags, ustadGoOptions); }; function DomainDiModuleJs(endpointScope) { return Module_init_$Create$('DomainDiModuleJs', VOID, VOID, DomainDiModuleJs$lambda(endpointScope)); } function DomainDiModuleJs$lambda$lambda($this$provider) { var tmp = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp$ret$3 = tmp_3.d58(tmp$ret$2, null); return new EnqueueImportContentEntryUseCaseRemote(tmp, tmp_2, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_0($this$provider) { return new OpenExternalLinkUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_1($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UstadNavController), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UstadAccountManager), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp_4 = tmp_2.d58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(OpenExternalLinkUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp_7 = tmp_5.d58(tmp$ret$4, null); // Inline function 'org.kodein.di.instance' call var tmp_8 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_9 = typeToken(createKType(getKClass(ApiUrlConfig), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); var tmp$ret$7 = tmp_8.d58(tmp$ret$6, null); return OnClickLinkUseCase_init_$Create$(tmp_1, tmp_4, tmp_7, tmp$ret$7); } function DomainDiModuleJs$lambda$lambda_2($this$singleton) { return new PhoneNumberUtilJs(); } function DomainDiModuleJs$lambda$lambda_3($this$provider) { return new PhoneNumValidatorUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_4($this$provider) { return new OnClickPhoneNumUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_5($this$provider) { return new OnClickSendEmailUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_6($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SupportedLanguagesConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.d58(tmp$ret$0, null); return new SetLanguageUseCaseJs(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_7($this$singleton) { return new ChunkedUploadClientLocalUriUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_8($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SavePictureUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.d58(tmp$ret$0, null); return new EnqueueSavePictureUseCaseJs(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_9($this$singleton) { return new IsTempFileCheckerUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_10($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(IsTempFileCheckerUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.d58(tmp$ret$0, null); return new DeleteUrisUseCaseJs(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_11($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SaveLocalUrisAsBlobsUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp_4 = tmp_2.d58(tmp$ret$2, 1); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp_7 = tmp_5.d58(tmp$ret$4, 2); var tmp_8 = new CompressImageUseCaseJs(); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(DeleteUrisUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); var tmp$ret$7 = tmp_9.d58(tmp$ret$6, null); return new SavePictureUseCase(tmp_1, null, tmp_4, tmp_7, tmp_8, tmp$ret$7); } function DomainDiModuleJs$lambda$lambda_12($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(ChunkedUploadClientLocalUriUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, null); var tmp_2 = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = tmp_3.d58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp$ret$5 = tmp_6.d58(tmp$ret$4, 1); return new SaveLocalUrisAsBlobUseCaseJs(tmp_1, tmp_2, tmp_5, tmp$ret$5); } function DomainDiModuleJs$lambda$lambda_13($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(ChunkedUploadClientLocalUriUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.d58(tmp$ret$2, null); return new ContentEntryGetMetaDataFromUriUseCaseJs(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_14($this$provider) { var tmp = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.d58(tmp$ret$0, 2); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp$ret$3 = tmp_3.d58(tmp$ret$2, null); return new SetPasswordUseCaseJs(tmp, tmp_2, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_15($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp0_activeRepo = tmp.d58(tmp$ret$0, 2); // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); var tmp1_httpClient = tmp_1.d58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(XapiJson), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp2_json = tmp_3.d58(tmp$ret$4, null).roq_1; // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(XmlPullParserFactory), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp3_xppFactory = tmp_5.d58(tmp$ret$6, 1); var tmp4_endpoint = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_7 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(ResumeOrStartXapiSessionUseCase), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); var tmp5_resumeOrStartXapiSessionUseCase = tmp_7.d58(tmp$ret$8, null); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(UstadAccountManager), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); var tmp6_accountManager = tmp_9.d58(tmp$ret$10, null); // Inline function 'org.kodein.di.instance' call var tmp_11 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_12 = typeToken(createKType(getKClass(GetApiUrlUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); var tmp7_getApiUrlUseCase = tmp_11.d58(tmp$ret$12, null); return new ResolveXapiLaunchHrefUseCase(tmp0_activeRepo, tmp1_httpClient, tmp2_json, tmp3_xppFactory, tmp5_resumeOrStartXapiSessionUseCase, tmp7_getApiUrlUseCase, tmp6_accountManager, tmp4_endpoint); } function DomainDiModuleJs$lambda$lambda_16($this$singleton) { return new XapiJson(); } function DomainDiModuleJs$lambda$lambda_17($this$singleton) { return new GetApiUrlUseCaseDirect($this$singleton.od()); } function DomainDiModuleJs$lambda$lambda_18($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = tmp_3.d58(tmp$ret$2, 2); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(XapiJson), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp$ret$5 = tmp_6.d58(tmp$ret$4, null); return new ResumeOrStartXapiSessionUseCaseJs(tmp, tmp_2, tmp_5, tmp$ret$5); } function DomainDiModuleJs$lambda$lambda_19($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(ResolveXapiLaunchHrefUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.d58(tmp$ret$0, null); return new LaunchXapiUseCaseJs(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_20($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, 2); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.d58(tmp$ret$2, null); return new MoveContentEntriesUseCase(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_21($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.d58(tmp$ret$0, 2); return new DeleteContentEntryParentChildJoinUseCase(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_22($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.d58(tmp$ret$0, 2); return new RestoreDeletedItemUseCase(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_23($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.d58(tmp$ret$0, 2); return new DeletePermanentlyUseCase(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_24($this$singleton) { return new SetClipboardStringUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_25($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SaveLocalUrisAsBlobsUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp_4 = tmp_2.d58(tmp$ret$2, 1); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp$ret$5 = tmp_5.d58(tmp$ret$4, 2); return new SaveAndUploadLocalUrisUseCase(tmp_1, null, tmp_4, tmp$ret$5); } function DomainDiModuleJs$lambda$lambda_26($this$provider) { return new OpenBlobUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_27($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(OpenBlobUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.d58(tmp$ret$2, null); return new OpenBlobUiUseCase(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_28($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp$ret$3 = tmp_3.d58(tmp$ret$2, 2); return new CancelRemoteContentEntryImportUseCase(tmp, tmp_2, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_29($this$singleton) { var tmp0_endpoint = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp1_httpClient = tmp.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); var tmp2_repo = tmp_1.d58(tmp$ret$2, 2); return new DismissRemoteContentEntryImportErrorUseCase(tmp1_httpClient, tmp0_endpoint, tmp2_repo); } function DomainDiModuleJs$lambda$lambda_30($this$singleton) { return new XXStringHasherJs(); } function DomainDiModuleJs$lambda$lambda_31($this$singleton) { return new XXHasher64FactoryJs(); } function DomainDiModuleJs$lambda$lambda_32($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.d58(tmp$ret$2, 2); return new StoreActivitiesUseCase(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_33($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp_4 = tmp_2.d58(tmp$ret$2, 2); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(XXStringHasher), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp_7 = tmp_5.d58(tmp$ret$4, null); var tmp_8 = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(XapiJson), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); var tmp_11 = tmp_9.d58(tmp$ret$6, null); // Inline function 'org.kodein.di.instance' call var tmp_12 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(XXHasher64Factory), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); var tmp_14 = tmp_12.d58(tmp$ret$8, null); // Inline function 'org.kodein.di.instance' call var tmp_15 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_16 = typeToken(createKType(getKClass(StoreActivitiesUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE(); var tmp$ret$11 = tmp_15.d58(tmp$ret$10, null); return new XapiStatementResource(tmp_1, tmp_4, tmp_7, tmp_8, tmp_11, tmp_14, tmp$ret$11); } function DomainDiModuleJs$lambda$lambda_34($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(XapiStatementResource), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.d58(tmp$ret$0, null); return new SaveStatementOnClearUseCaseJs(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_35($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.d58(tmp$ret$0, null); return new SaveStatementOnUnloadUseCaseJs(tmp, tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_36($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SaveStatementOnClearUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(SaveStatementOnUnloadUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp_4 = tmp_2.d58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(XapiStatementResource), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp$ret$5 = tmp_5.d58(tmp$ret$4, null); return new NonInteractiveContentXapiStatementRecorderFactory(tmp_1, tmp_4, tmp$ret$5, $this$singleton.od()); } function DomainDiModuleJs$lambda$lambda_37($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = tmp_3.d58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(SupportedLanguagesConfig), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp$ret$5 = tmp_6.d58(tmp$ret$4, null); return new GetSubtitleTrackFromUriUseCaseJs(tmp, tmp_2, tmp_5, tmp$ret$5); } function DomainDiModuleJs$lambda($endpointScope) { return function ($this$$receiver) { // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp = typeToken(createKType(getKClass(EnqueueContentEntryImportUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE(); var tmp_0 = $this$$receiver.o56(tmp$ret$0, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var this_0 = new ImplWithScope(tmp$ret$2, scope); var creator = DomainDiModuleJs$lambda$lambda; var tmp_2 = this_0.b56(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(EnqueueImportContentEntryUseCaseRemote), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$5 = new Provider(tmp_2, tmp$ret$4, creator); tmp_0.c5b(tmp$ret$5); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(OpenExternalLinkUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = $this$$receiver.o56(tmp$ret$6, null, null); // Inline function 'org.kodein.di.provider' call var creator_0 = DomainDiModuleJs$lambda$lambda_0; var tmp_6 = $this$$receiver.b56(); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(OpenExternalLinkUseCaseJs), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp$ret$9 = new Provider(tmp_6, tmp$ret$8, creator_0); tmp_5.c5b(tmp$ret$9); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(OnClickLinkUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); var tmp_9 = $this$$receiver.o56(tmp$ret$10, null, null); // Inline function 'org.kodein.di.singleton' call var creator_1 = DomainDiModuleJs$lambda$lambda_1; var tmp_10 = $this$$receiver.c56(); var tmp_11 = $this$$receiver.b56(); var tmp_12 = $this$$receiver.d56(); // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(OnClickLinkUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); var tmp$ret$13 = new Singleton(tmp_10, tmp_11, tmp_12, tmp$ret$12, null, true, creator_1); tmp_9.c5b(tmp$ret$13); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_14 = typeToken(createKType(getKClass(IPhoneNumberUtil), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(); var tmp_15 = $this$$receiver.o56(tmp$ret$14, null, null); // Inline function 'org.kodein.di.singleton' call var creator_2 = DomainDiModuleJs$lambda$lambda_2; var tmp_16 = $this$$receiver.c56(); var tmp_17 = $this$$receiver.b56(); var tmp_18 = $this$$receiver.d56(); // Inline function 'org.kodein.type.generic' call var tmp_19 = typeToken(createKType(getKClass(PhoneNumberUtilJs), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_19, TypeToken) ? tmp_19 : THROW_CCE(); var tmp$ret$17 = new Singleton(tmp_16, tmp_17, tmp_18, tmp$ret$16, null, true, creator_2); tmp_15.c5b(tmp$ret$17); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_20 = typeToken(createKType(getKClass(PhoneNumValidatorUseCase), arrayOf([]), false)); var tmp$ret$18 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE(); var tmp_21 = $this$$receiver.o56(tmp$ret$18, null, null); // Inline function 'org.kodein.di.provider' call var creator_3 = DomainDiModuleJs$lambda$lambda_3; var tmp_22 = $this$$receiver.b56(); // Inline function 'org.kodein.type.generic' call var tmp_23 = typeToken(createKType(getKClass(PhoneNumValidatorUseCaseJs), arrayOf([]), false)); var tmp$ret$20 = isInterface(tmp_23, TypeToken) ? tmp_23 : THROW_CCE(); var tmp$ret$21 = new Provider(tmp_22, tmp$ret$20, creator_3); tmp_21.c5b(tmp$ret$21); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_24 = typeToken(createKType(getKClass(OnClickPhoneNumUseCase), arrayOf([]), false)); var tmp$ret$22 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE(); var tmp_25 = $this$$receiver.o56(tmp$ret$22, null, null); // Inline function 'org.kodein.di.provider' call var creator_4 = DomainDiModuleJs$lambda$lambda_4; var tmp_26 = $this$$receiver.b56(); // Inline function 'org.kodein.type.generic' call var tmp_27 = typeToken(createKType(getKClass(OnClickPhoneNumUseCaseJs), arrayOf([]), false)); var tmp$ret$24 = isInterface(tmp_27, TypeToken) ? tmp_27 : THROW_CCE(); var tmp$ret$25 = new Provider(tmp_26, tmp$ret$24, creator_4); tmp_25.c5b(tmp$ret$25); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_28 = typeToken(createKType(getKClass(OnClickEmailUseCase), arrayOf([]), false)); var tmp$ret$26 = isInterface(tmp_28, TypeToken) ? tmp_28 : THROW_CCE(); var tmp_29 = $this$$receiver.o56(tmp$ret$26, null, null); // Inline function 'org.kodein.di.provider' call var creator_5 = DomainDiModuleJs$lambda$lambda_5; var tmp_30 = $this$$receiver.b56(); // Inline function 'org.kodein.type.generic' call var tmp_31 = typeToken(createKType(getKClass(OnClickSendEmailUseCaseJs), arrayOf([]), false)); var tmp$ret$28 = isInterface(tmp_31, TypeToken) ? tmp_31 : THROW_CCE(); var tmp$ret$29 = new Provider(tmp_30, tmp$ret$28, creator_5); tmp_29.c5b(tmp$ret$29); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_32 = typeToken(createKType(getKClass(SetLanguageUseCase), arrayOf([]), false)); var tmp$ret$30 = isInterface(tmp_32, TypeToken) ? tmp_32 : THROW_CCE(); var tmp_33 = $this$$receiver.o56(tmp$ret$30, null, null); // Inline function 'org.kodein.di.provider' call var creator_6 = DomainDiModuleJs$lambda$lambda_6; var tmp_34 = $this$$receiver.b56(); // Inline function 'org.kodein.type.generic' call var tmp_35 = typeToken(createKType(getKClass(SetLanguageUseCaseJs), arrayOf([]), false)); var tmp$ret$32 = isInterface(tmp_35, TypeToken) ? tmp_35 : THROW_CCE(); var tmp$ret$33 = new Provider(tmp_34, tmp$ret$32, creator_6); tmp_33.c5b(tmp$ret$33); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_36 = typeToken(createKType(getKClass(ChunkedUploadClientLocalUriUseCase), arrayOf([]), false)); var tmp$ret$34 = isInterface(tmp_36, TypeToken) ? tmp_36 : THROW_CCE(); var tmp_37 = $this$$receiver.o56(tmp$ret$34, null, null); // Inline function 'org.kodein.di.singleton' call var creator_7 = DomainDiModuleJs$lambda$lambda_7; var tmp_38 = $this$$receiver.c56(); var tmp_39 = $this$$receiver.b56(); var tmp_40 = $this$$receiver.d56(); // Inline function 'org.kodein.type.generic' call var tmp_41 = typeToken(createKType(getKClass(ChunkedUploadClientLocalUriUseCaseJs), arrayOf([]), false)); var tmp$ret$36 = isInterface(tmp_41, TypeToken) ? tmp_41 : THROW_CCE(); var tmp$ret$37 = new Singleton(tmp_38, tmp_39, tmp_40, tmp$ret$36, null, true, creator_7); tmp_37.c5b(tmp$ret$37); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_42 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$38 = isInterface(tmp_42, TypeToken) ? tmp_42 : THROW_CCE(); var tmp_43 = $this$$receiver.o56(tmp$ret$38, 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_44 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$40 = isInterface(tmp_44, TypeToken) ? tmp_44 : THROW_CCE(); var this_1 = new ImplWithScope(tmp$ret$40, scope_0); var creator_8 = DomainDiModuleJs$lambda$lambda_8; var tmp_45 = this_1.c56(); var tmp_46 = this_1.b56(); var tmp_47 = this_1.d56(); // Inline function 'org.kodein.type.generic' call var tmp_48 = typeToken(createKType(getKClass(EnqueueSavePictureUseCaseJs), arrayOf([]), false)); var tmp$ret$42 = isInterface(tmp_48, TypeToken) ? tmp_48 : THROW_CCE(); var tmp$ret$43 = new Singleton(tmp_45, tmp_46, tmp_47, tmp$ret$42, null, true, creator_8); tmp_43.c5b(tmp$ret$43); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_49 = typeToken(createKType(getKClass(IsTempFileCheckerUseCase), arrayOf([]), false)); var tmp$ret$44 = isInterface(tmp_49, TypeToken) ? tmp_49 : THROW_CCE(); var tmp_50 = $this$$receiver.o56(tmp$ret$44, null, null); // Inline function 'org.kodein.di.singleton' call var creator_9 = DomainDiModuleJs$lambda$lambda_9; var tmp_51 = $this$$receiver.c56(); var tmp_52 = $this$$receiver.b56(); var tmp_53 = $this$$receiver.d56(); // Inline function 'org.kodein.type.generic' call var tmp_54 = typeToken(createKType(getKClass(IsTempFileCheckerUseCaseJs), arrayOf([]), false)); var tmp$ret$46 = isInterface(tmp_54, TypeToken) ? tmp_54 : THROW_CCE(); var tmp$ret$47 = new Singleton(tmp_51, tmp_52, tmp_53, tmp$ret$46, null, true, creator_9); tmp_50.c5b(tmp$ret$47); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_55 = typeToken(createKType(getKClass(DeleteUrisUseCase), arrayOf([]), false)); var tmp$ret$48 = isInterface(tmp_55, TypeToken) ? tmp_55 : THROW_CCE(); var tmp_56 = $this$$receiver.o56(tmp$ret$48, null, null); // Inline function 'org.kodein.di.singleton' call var creator_10 = DomainDiModuleJs$lambda$lambda_10; var tmp_57 = $this$$receiver.c56(); var tmp_58 = $this$$receiver.b56(); var tmp_59 = $this$$receiver.d56(); // Inline function 'org.kodein.type.generic' call var tmp_60 = typeToken(createKType(getKClass(DeleteUrisUseCaseJs), arrayOf([]), false)); var tmp$ret$50 = isInterface(tmp_60, TypeToken) ? tmp_60 : THROW_CCE(); var tmp$ret$51 = new Singleton(tmp_57, tmp_58, tmp_59, tmp$ret$50, null, true, creator_10); tmp_56.c5b(tmp$ret$51); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_61 = typeToken(createKType(getKClass(SavePictureUseCase), arrayOf([]), false)); var tmp$ret$52 = isInterface(tmp_61, TypeToken) ? tmp_61 : THROW_CCE(); var tmp_62 = $this$$receiver.o56(tmp$ret$52, 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_63 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$54 = isInterface(tmp_63, TypeToken) ? tmp_63 : THROW_CCE(); var this_2 = new ImplWithScope(tmp$ret$54, scope_1); var creator_11 = DomainDiModuleJs$lambda$lambda_11; var tmp_64 = this_2.c56(); var tmp_65 = this_2.b56(); var tmp_66 = this_2.d56(); // Inline function 'org.kodein.type.generic' call var tmp_67 = typeToken(createKType(getKClass(SavePictureUseCase), arrayOf([]), false)); var tmp$ret$56 = isInterface(tmp_67, TypeToken) ? tmp_67 : THROW_CCE(); var tmp$ret$57 = new Singleton(tmp_64, tmp_65, tmp_66, tmp$ret$56, null, true, creator_11); tmp_62.c5b(tmp$ret$57); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_68 = typeToken(createKType(getKClass(SaveLocalUrisAsBlobsUseCase), arrayOf([]), false)); var tmp$ret$58 = isInterface(tmp_68, TypeToken) ? tmp_68 : THROW_CCE(); var tmp_69 = $this$$receiver.o56(tmp$ret$58, 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_70 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$60 = isInterface(tmp_70, TypeToken) ? tmp_70 : THROW_CCE(); var this_3 = new ImplWithScope(tmp$ret$60, scope_2); var creator_12 = DomainDiModuleJs$lambda$lambda_12; var tmp_71 = this_3.c56(); var tmp_72 = this_3.b56(); var tmp_73 = this_3.d56(); // Inline function 'org.kodein.type.generic' call var tmp_74 = typeToken(createKType(getKClass(SaveLocalUrisAsBlobUseCaseJs), arrayOf([]), false)); var tmp$ret$62 = isInterface(tmp_74, TypeToken) ? tmp_74 : THROW_CCE(); var tmp$ret$63 = new Singleton(tmp_71, tmp_72, tmp_73, tmp$ret$62, null, true, creator_12); tmp_69.c5b(tmp$ret$63); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_75 = typeToken(createKType(getKClass(ContentEntryGetMetaDataFromUriUseCase), arrayOf([]), false)); var tmp$ret$64 = isInterface(tmp_75, TypeToken) ? tmp_75 : THROW_CCE(); var tmp_76 = $this$$receiver.o56(tmp$ret$64, null, null); // Inline function 'org.kodein.di.provider' call var creator_13 = DomainDiModuleJs$lambda$lambda_13; var tmp_77 = $this$$receiver.b56(); // Inline function 'org.kodein.type.generic' call var tmp_78 = typeToken(createKType(getKClass(ContentEntryGetMetaDataFromUriUseCaseJs), arrayOf([]), false)); var tmp$ret$66 = isInterface(tmp_78, TypeToken) ? tmp_78 : THROW_CCE(); var tmp$ret$67 = new Provider(tmp_77, tmp$ret$66, creator_13); tmp_76.c5b(tmp$ret$67); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_79 = typeToken(createKType(getKClass(SetPasswordUseCase), arrayOf([]), false)); var tmp$ret$68 = isInterface(tmp_79, TypeToken) ? tmp_79 : THROW_CCE(); var tmp_80 = $this$$receiver.o56(tmp$ret$68, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_3 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_81 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$70 = isInterface(tmp_81, TypeToken) ? tmp_81 : THROW_CCE(); var this_4 = new ImplWithScope(tmp$ret$70, scope_3); var creator_14 = DomainDiModuleJs$lambda$lambda_14; var tmp_82 = this_4.b56(); // Inline function 'org.kodein.type.generic' call var tmp_83 = typeToken(createKType(getKClass(SetPasswordUseCaseJs), arrayOf([]), false)); var tmp$ret$72 = isInterface(tmp_83, TypeToken) ? tmp_83 : THROW_CCE(); var tmp$ret$73 = new Provider(tmp_82, tmp$ret$72, creator_14); tmp_80.c5b(tmp$ret$73); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_84 = typeToken(createKType(getKClass(ResolveXapiLaunchHrefUseCase), arrayOf([]), false)); var tmp$ret$74 = isInterface(tmp_84, TypeToken) ? tmp_84 : THROW_CCE(); var tmp_85 = $this$$receiver.o56(tmp$ret$74, 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_86 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$76 = isInterface(tmp_86, TypeToken) ? tmp_86 : THROW_CCE(); var this_5 = new ImplWithScope(tmp$ret$76, scope_4); var creator_15 = DomainDiModuleJs$lambda$lambda_15; var tmp_87 = this_5.b56(); // Inline function 'org.kodein.type.generic' call var tmp_88 = typeToken(createKType(getKClass(ResolveXapiLaunchHrefUseCase), arrayOf([]), false)); var tmp$ret$78 = isInterface(tmp_88, TypeToken) ? tmp_88 : THROW_CCE(); var tmp$ret$79 = new Provider(tmp_87, tmp$ret$78, creator_15); tmp_85.c5b(tmp$ret$79); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_89 = typeToken(createKType(getKClass(XapiJson), arrayOf([]), false)); var tmp$ret$80 = isInterface(tmp_89, TypeToken) ? tmp_89 : THROW_CCE(); var tmp_90 = $this$$receiver.o56(tmp$ret$80, null, null); // Inline function 'org.kodein.di.singleton' call var creator_16 = DomainDiModuleJs$lambda$lambda_16; var tmp_91 = $this$$receiver.c56(); var tmp_92 = $this$$receiver.b56(); var tmp_93 = $this$$receiver.d56(); // Inline function 'org.kodein.type.generic' call var tmp_94 = typeToken(createKType(getKClass(XapiJson), arrayOf([]), false)); var tmp$ret$82 = isInterface(tmp_94, TypeToken) ? tmp_94 : THROW_CCE(); var tmp$ret$83 = new Singleton(tmp_91, tmp_92, tmp_93, tmp$ret$82, null, true, creator_16); tmp_90.c5b(tmp$ret$83); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_95 = typeToken(createKType(getKClass(GetApiUrlUseCase), arrayOf([]), false)); var tmp$ret$84 = isInterface(tmp_95, TypeToken) ? tmp_95 : THROW_CCE(); var tmp_96 = $this$$receiver.o56(tmp$ret$84, 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_97 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$86 = isInterface(tmp_97, TypeToken) ? tmp_97 : THROW_CCE(); var this_6 = new ImplWithScope(tmp$ret$86, scope_5); var creator_17 = DomainDiModuleJs$lambda$lambda_17; var tmp_98 = this_6.c56(); var tmp_99 = this_6.b56(); var tmp_100 = this_6.d56(); // Inline function 'org.kodein.type.generic' call var tmp_101 = typeToken(createKType(getKClass(GetApiUrlUseCaseDirect), arrayOf([]), false)); var tmp$ret$88 = isInterface(tmp_101, TypeToken) ? tmp_101 : THROW_CCE(); var tmp$ret$89 = new Singleton(tmp_98, tmp_99, tmp_100, tmp$ret$88, null, true, creator_17); tmp_96.c5b(tmp$ret$89); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_102 = typeToken(createKType(getKClass(ResumeOrStartXapiSessionUseCase), arrayOf([]), false)); var tmp$ret$90 = isInterface(tmp_102, TypeToken) ? tmp_102 : THROW_CCE(); var tmp_103 = $this$$receiver.o56(tmp$ret$90, 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_104 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$92 = isInterface(tmp_104, TypeToken) ? tmp_104 : THROW_CCE(); var this_7 = new ImplWithScope(tmp$ret$92, scope_6); var creator_18 = DomainDiModuleJs$lambda$lambda_18; var tmp_105 = this_7.c56(); var tmp_106 = this_7.b56(); var tmp_107 = this_7.d56(); // Inline function 'org.kodein.type.generic' call var tmp_108 = typeToken(createKType(getKClass(ResumeOrStartXapiSessionUseCaseJs), arrayOf([]), false)); var tmp$ret$94 = isInterface(tmp_108, TypeToken) ? tmp_108 : THROW_CCE(); var tmp$ret$95 = new Singleton(tmp_105, tmp_106, tmp_107, tmp$ret$94, null, true, creator_18); tmp_103.c5b(tmp$ret$95); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_109 = typeToken(createKType(getKClass(LaunchXapiUseCase), arrayOf([]), false)); var tmp$ret$96 = isInterface(tmp_109, TypeToken) ? tmp_109 : THROW_CCE(); var tmp_110 = $this$$receiver.o56(tmp$ret$96, 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_111 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$98 = isInterface(tmp_111, TypeToken) ? tmp_111 : THROW_CCE(); var this_8 = new ImplWithScope(tmp$ret$98, scope_7); var creator_19 = DomainDiModuleJs$lambda$lambda_19; var tmp_112 = this_8.b56(); // Inline function 'org.kodein.type.generic' call var tmp_113 = typeToken(createKType(getKClass(LaunchXapiUseCaseJs), arrayOf([]), false)); var tmp$ret$100 = isInterface(tmp_113, TypeToken) ? tmp_113 : THROW_CCE(); var tmp$ret$101 = new Provider(tmp_112, tmp$ret$100, creator_19); tmp_110.c5b(tmp$ret$101); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_114 = typeToken(createKType(getKClass(MoveContentEntriesUseCase), arrayOf([]), false)); var tmp$ret$102 = isInterface(tmp_114, TypeToken) ? tmp_114 : THROW_CCE(); var tmp_115 = $this$$receiver.o56(tmp$ret$102, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_8 = Companion_getInstance_17().kn2_1; // Inline function 'org.kodein.type.generic' call var tmp_116 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$104 = isInterface(tmp_116, TypeToken) ? tmp_116 : THROW_CCE(); var this_9 = new ImplWithScope(tmp$ret$104, scope_8); var creator_20 = DomainDiModuleJs$lambda$lambda_20; var tmp_117 = this_9.b56(); // Inline function 'org.kodein.type.generic' call var tmp_118 = typeToken(createKType(getKClass(MoveContentEntriesUseCase), arrayOf([]), false)); var tmp$ret$106 = isInterface(tmp_118, TypeToken) ? tmp_118 : THROW_CCE(); var tmp$ret$107 = new Provider(tmp_117, tmp$ret$106, creator_20); tmp_115.c5b(tmp$ret$107); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_119 = typeToken(createKType(getKClass(DeleteContentEntryParentChildJoinUseCase), arrayOf([]), false)); var tmp$ret$108 = isInterface(tmp_119, TypeToken) ? tmp_119 : THROW_CCE(); var tmp_120 = $this$$receiver.o56(tmp$ret$108, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_9 = Companion_getInstance_17().kn2_1; // Inline function 'org.kodein.type.generic' call var tmp_121 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$110 = isInterface(tmp_121, TypeToken) ? tmp_121 : THROW_CCE(); var this_10 = new ImplWithScope(tmp$ret$110, scope_9); var creator_21 = DomainDiModuleJs$lambda$lambda_21; var tmp_122 = this_10.b56(); // Inline function 'org.kodein.type.generic' call var tmp_123 = typeToken(createKType(getKClass(DeleteContentEntryParentChildJoinUseCase), arrayOf([]), false)); var tmp$ret$112 = isInterface(tmp_123, TypeToken) ? tmp_123 : THROW_CCE(); var tmp$ret$113 = new Provider(tmp_122, tmp$ret$112, creator_21); tmp_120.c5b(tmp$ret$113); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_124 = typeToken(createKType(getKClass(RestoreDeletedItemUseCase), arrayOf([]), false)); var tmp$ret$114 = isInterface(tmp_124, TypeToken) ? tmp_124 : THROW_CCE(); var tmp_125 = $this$$receiver.o56(tmp$ret$114, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_10 = Companion_getInstance_17().kn2_1; // Inline function 'org.kodein.type.generic' call var tmp_126 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$116 = isInterface(tmp_126, TypeToken) ? tmp_126 : THROW_CCE(); var this_11 = new ImplWithScope(tmp$ret$116, scope_10); var creator_22 = DomainDiModuleJs$lambda$lambda_22; var tmp_127 = this_11.b56(); // Inline function 'org.kodein.type.generic' call var tmp_128 = typeToken(createKType(getKClass(RestoreDeletedItemUseCase), arrayOf([]), false)); var tmp$ret$118 = isInterface(tmp_128, TypeToken) ? tmp_128 : THROW_CCE(); var tmp$ret$119 = new Provider(tmp_127, tmp$ret$118, creator_22); tmp_125.c5b(tmp$ret$119); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_129 = typeToken(createKType(getKClass(DeletePermanentlyUseCase), arrayOf([]), false)); var tmp$ret$120 = isInterface(tmp_129, TypeToken) ? tmp_129 : THROW_CCE(); var tmp_130 = $this$$receiver.o56(tmp$ret$120, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_11 = Companion_getInstance_17().kn2_1; // Inline function 'org.kodein.type.generic' call var tmp_131 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$122 = isInterface(tmp_131, TypeToken) ? tmp_131 : THROW_CCE(); var this_12 = new ImplWithScope(tmp$ret$122, scope_11); var creator_23 = DomainDiModuleJs$lambda$lambda_23; var tmp_132 = this_12.b56(); // Inline function 'org.kodein.type.generic' call var tmp_133 = typeToken(createKType(getKClass(DeletePermanentlyUseCase), arrayOf([]), false)); var tmp$ret$124 = isInterface(tmp_133, TypeToken) ? tmp_133 : THROW_CCE(); var tmp$ret$125 = new Provider(tmp_132, tmp$ret$124, creator_23); tmp_130.c5b(tmp$ret$125); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_134 = typeToken(createKType(getKClass(SetClipboardStringUseCase), arrayOf([]), false)); var tmp$ret$126 = isInterface(tmp_134, TypeToken) ? tmp_134 : THROW_CCE(); var tmp_135 = $this$$receiver.o56(tmp$ret$126, null, null); // Inline function 'org.kodein.di.singleton' call var creator_24 = DomainDiModuleJs$lambda$lambda_24; var tmp_136 = $this$$receiver.c56(); var tmp_137 = $this$$receiver.b56(); var tmp_138 = $this$$receiver.d56(); // Inline function 'org.kodein.type.generic' call var tmp_139 = typeToken(createKType(getKClass(SetClipboardStringUseCaseJs), arrayOf([]), false)); var tmp$ret$128 = isInterface(tmp_139, TypeToken) ? tmp_139 : THROW_CCE(); var tmp$ret$129 = new Singleton(tmp_136, tmp_137, tmp_138, tmp$ret$128, null, true, creator_24); tmp_135.c5b(tmp$ret$129); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_140 = typeToken(createKType(getKClass(SaveAndUploadLocalUrisUseCase), arrayOf([]), false)); var tmp$ret$130 = isInterface(tmp_140, TypeToken) ? tmp_140 : THROW_CCE(); var tmp_141 = $this$$receiver.o56(tmp$ret$130, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_12 = Companion_getInstance_17().kn2_1; // Inline function 'org.kodein.type.generic' call var tmp_142 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$132 = isInterface(tmp_142, TypeToken) ? tmp_142 : THROW_CCE(); var this_13 = new ImplWithScope(tmp$ret$132, scope_12); var creator_25 = DomainDiModuleJs$lambda$lambda_25; var tmp_143 = this_13.c56(); var tmp_144 = this_13.b56(); var tmp_145 = this_13.d56(); // Inline function 'org.kodein.type.generic' call var tmp_146 = typeToken(createKType(getKClass(SaveAndUploadLocalUrisUseCase), arrayOf([]), false)); var tmp$ret$134 = isInterface(tmp_146, TypeToken) ? tmp_146 : THROW_CCE(); var tmp$ret$135 = new Singleton(tmp_143, tmp_144, tmp_145, tmp$ret$134, null, true, creator_25); tmp_141.c5b(tmp$ret$135); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_147 = typeToken(createKType(getKClass(OpenBlobUseCase), arrayOf([]), false)); var tmp$ret$136 = isInterface(tmp_147, TypeToken) ? tmp_147 : THROW_CCE(); var tmp_148 = $this$$receiver.o56(tmp$ret$136, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_13 = Companion_getInstance_17().kn2_1; // Inline function 'org.kodein.type.generic' call var tmp_149 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$138 = isInterface(tmp_149, TypeToken) ? tmp_149 : THROW_CCE(); var this_14 = new ImplWithScope(tmp$ret$138, scope_13); var creator_26 = DomainDiModuleJs$lambda$lambda_26; var tmp_150 = this_14.b56(); // Inline function 'org.kodein.type.generic' call var tmp_151 = typeToken(createKType(getKClass(OpenBlobUseCaseJs), arrayOf([]), false)); var tmp$ret$140 = isInterface(tmp_151, TypeToken) ? tmp_151 : THROW_CCE(); var tmp$ret$141 = new Provider(tmp_150, tmp$ret$140, creator_26); tmp_148.c5b(tmp$ret$141); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_152 = typeToken(createKType(getKClass(OpenBlobUiUseCase), arrayOf([]), false)); var tmp$ret$142 = isInterface(tmp_152, TypeToken) ? tmp_152 : THROW_CCE(); var tmp_153 = $this$$receiver.o56(tmp$ret$142, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_14 = Companion_getInstance_17().kn2_1; // Inline function 'org.kodein.type.generic' call var tmp_154 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$144 = isInterface(tmp_154, TypeToken) ? tmp_154 : THROW_CCE(); var this_15 = new ImplWithScope(tmp$ret$144, scope_14); var creator_27 = DomainDiModuleJs$lambda$lambda_27; var tmp_155 = this_15.c56(); var tmp_156 = this_15.b56(); var tmp_157 = this_15.d56(); // Inline function 'org.kodein.type.generic' call var tmp_158 = typeToken(createKType(getKClass(OpenBlobUiUseCase), arrayOf([]), false)); var tmp$ret$146 = isInterface(tmp_158, TypeToken) ? tmp_158 : THROW_CCE(); var tmp$ret$147 = new Singleton(tmp_155, tmp_156, tmp_157, tmp$ret$146, null, true, creator_27); tmp_153.c5b(tmp$ret$147); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_159 = typeToken(createKType(getKClass(CancelRemoteContentEntryImportUseCase), arrayOf([]), false)); var tmp$ret$148 = isInterface(tmp_159, TypeToken) ? tmp_159 : THROW_CCE(); var tmp_160 = $this$$receiver.o56(tmp$ret$148, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_15 = Companion_getInstance_17().kn2_1; // Inline function 'org.kodein.type.generic' call var tmp_161 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$150 = isInterface(tmp_161, TypeToken) ? tmp_161 : THROW_CCE(); var this_16 = new ImplWithScope(tmp$ret$150, scope_15); var creator_28 = DomainDiModuleJs$lambda$lambda_28; var tmp_162 = this_16.c56(); var tmp_163 = this_16.b56(); var tmp_164 = this_16.d56(); // Inline function 'org.kodein.type.generic' call var tmp_165 = typeToken(createKType(getKClass(CancelRemoteContentEntryImportUseCase), arrayOf([]), false)); var tmp$ret$152 = isInterface(tmp_165, TypeToken) ? tmp_165 : THROW_CCE(); var tmp$ret$153 = new Singleton(tmp_162, tmp_163, tmp_164, tmp$ret$152, null, true, creator_28); tmp_160.c5b(tmp$ret$153); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_166 = typeToken(createKType(getKClass(DismissRemoteContentEntryImportErrorUseCase), arrayOf([]), false)); var tmp$ret$154 = isInterface(tmp_166, TypeToken) ? tmp_166 : THROW_CCE(); var tmp_167 = $this$$receiver.o56(tmp$ret$154, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_16 = Companion_getInstance_17().kn2_1; // Inline function 'org.kodein.type.generic' call var tmp_168 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$156 = isInterface(tmp_168, TypeToken) ? tmp_168 : THROW_CCE(); var this_17 = new ImplWithScope(tmp$ret$156, scope_16); var creator_29 = DomainDiModuleJs$lambda$lambda_29; var tmp_169 = this_17.c56(); var tmp_170 = this_17.b56(); var tmp_171 = this_17.d56(); // Inline function 'org.kodein.type.generic' call var tmp_172 = typeToken(createKType(getKClass(DismissRemoteContentEntryImportErrorUseCase), arrayOf([]), false)); var tmp$ret$158 = isInterface(tmp_172, TypeToken) ? tmp_172 : THROW_CCE(); var tmp$ret$159 = new Singleton(tmp_169, tmp_170, tmp_171, tmp$ret$158, null, true, creator_29); tmp_167.c5b(tmp$ret$159); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_173 = typeToken(createKType(getKClass(XXStringHasher), arrayOf([]), false)); var tmp$ret$160 = isInterface(tmp_173, TypeToken) ? tmp_173 : THROW_CCE(); var tmp_174 = $this$$receiver.o56(tmp$ret$160, null, null); // Inline function 'org.kodein.di.singleton' call var creator_30 = DomainDiModuleJs$lambda$lambda_30; var tmp_175 = $this$$receiver.c56(); var tmp_176 = $this$$receiver.b56(); var tmp_177 = $this$$receiver.d56(); // Inline function 'org.kodein.type.generic' call var tmp_178 = typeToken(createKType(getKClass(XXStringHasherJs), arrayOf([]), false)); var tmp$ret$162 = isInterface(tmp_178, TypeToken) ? tmp_178 : THROW_CCE(); var tmp$ret$163 = new Singleton(tmp_175, tmp_176, tmp_177, tmp$ret$162, null, true, creator_30); tmp_174.c5b(tmp$ret$163); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_179 = typeToken(createKType(getKClass(XXHasher64Factory), arrayOf([]), false)); var tmp$ret$164 = isInterface(tmp_179, TypeToken) ? tmp_179 : THROW_CCE(); var tmp_180 = $this$$receiver.o56(tmp$ret$164, null, null); // Inline function 'org.kodein.di.singleton' call var creator_31 = DomainDiModuleJs$lambda$lambda_31; var tmp_181 = $this$$receiver.c56(); var tmp_182 = $this$$receiver.b56(); var tmp_183 = $this$$receiver.d56(); // Inline function 'org.kodein.type.generic' call var tmp_184 = typeToken(createKType(getKClass(XXHasher64FactoryJs), arrayOf([]), false)); var tmp$ret$166 = isInterface(tmp_184, TypeToken) ? tmp_184 : THROW_CCE(); var tmp$ret$167 = new Singleton(tmp_181, tmp_182, tmp_183, tmp$ret$166, null, true, creator_31); tmp_180.c5b(tmp$ret$167); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_185 = typeToken(createKType(getKClass(StoreActivitiesUseCase), arrayOf([]), false)); var tmp$ret$168 = isInterface(tmp_185, TypeToken) ? tmp_185 : THROW_CCE(); var tmp_186 = $this$$receiver.o56(tmp$ret$168, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_17 = Companion_getInstance_17().kn2_1; // Inline function 'org.kodein.type.generic' call var tmp_187 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$170 = isInterface(tmp_187, TypeToken) ? tmp_187 : THROW_CCE(); var this_18 = new ImplWithScope(tmp$ret$170, scope_17); var creator_32 = DomainDiModuleJs$lambda$lambda_32; var tmp_188 = this_18.c56(); var tmp_189 = this_18.b56(); var tmp_190 = this_18.d56(); // Inline function 'org.kodein.type.generic' call var tmp_191 = typeToken(createKType(getKClass(StoreActivitiesUseCase), arrayOf([]), false)); var tmp$ret$172 = isInterface(tmp_191, TypeToken) ? tmp_191 : THROW_CCE(); var tmp$ret$173 = new Singleton(tmp_188, tmp_189, tmp_190, tmp$ret$172, null, true, creator_32); tmp_186.c5b(tmp$ret$173); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_192 = typeToken(createKType(getKClass(XapiStatementResource), arrayOf([]), false)); var tmp$ret$174 = isInterface(tmp_192, TypeToken) ? tmp_192 : THROW_CCE(); var tmp_193 = $this$$receiver.o56(tmp$ret$174, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_18 = Companion_getInstance_17().kn2_1; // Inline function 'org.kodein.type.generic' call var tmp_194 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$176 = isInterface(tmp_194, TypeToken) ? tmp_194 : THROW_CCE(); var this_19 = new ImplWithScope(tmp$ret$176, scope_18); var creator_33 = DomainDiModuleJs$lambda$lambda_33; var tmp_195 = this_19.c56(); var tmp_196 = this_19.b56(); var tmp_197 = this_19.d56(); // Inline function 'org.kodein.type.generic' call var tmp_198 = typeToken(createKType(getKClass(XapiStatementResource), arrayOf([]), false)); var tmp$ret$178 = isInterface(tmp_198, TypeToken) ? tmp_198 : THROW_CCE(); var tmp$ret$179 = new Singleton(tmp_195, tmp_196, tmp_197, tmp$ret$178, null, true, creator_33); tmp_193.c5b(tmp$ret$179); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_199 = typeToken(createKType(getKClass(SaveStatementOnClearUseCase), arrayOf([]), false)); var tmp$ret$180 = isInterface(tmp_199, TypeToken) ? tmp_199 : THROW_CCE(); var tmp_200 = $this$$receiver.o56(tmp$ret$180, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_19 = Companion_getInstance_17().kn2_1; // Inline function 'org.kodein.type.generic' call var tmp_201 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$182 = isInterface(tmp_201, TypeToken) ? tmp_201 : THROW_CCE(); var this_20 = new ImplWithScope(tmp$ret$182, scope_19); var creator_34 = DomainDiModuleJs$lambda$lambda_34; var tmp_202 = this_20.c56(); var tmp_203 = this_20.b56(); var tmp_204 = this_20.d56(); // Inline function 'org.kodein.type.generic' call var tmp_205 = typeToken(createKType(getKClass(SaveStatementOnClearUseCaseJs), arrayOf([]), false)); var tmp$ret$184 = isInterface(tmp_205, TypeToken) ? tmp_205 : THROW_CCE(); var tmp$ret$185 = new Singleton(tmp_202, tmp_203, tmp_204, tmp$ret$184, null, true, creator_34); tmp_200.c5b(tmp$ret$185); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_206 = typeToken(createKType(getKClass(SaveStatementOnUnloadUseCase), arrayOf([]), false)); var tmp$ret$186 = isInterface(tmp_206, TypeToken) ? tmp_206 : THROW_CCE(); var tmp_207 = $this$$receiver.o56(tmp$ret$186, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_20 = Companion_getInstance_17().kn2_1; // Inline function 'org.kodein.type.generic' call var tmp_208 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$188 = isInterface(tmp_208, TypeToken) ? tmp_208 : THROW_CCE(); var this_21 = new ImplWithScope(tmp$ret$188, scope_20); var creator_35 = DomainDiModuleJs$lambda$lambda_35; var tmp_209 = this_21.c56(); var tmp_210 = this_21.b56(); var tmp_211 = this_21.d56(); // Inline function 'org.kodein.type.generic' call var tmp_212 = typeToken(createKType(getKClass(SaveStatementOnUnloadUseCaseJs), arrayOf([]), false)); var tmp$ret$190 = isInterface(tmp_212, TypeToken) ? tmp_212 : THROW_CCE(); var tmp$ret$191 = new Singleton(tmp_209, tmp_210, tmp_211, tmp$ret$190, null, true, creator_35); tmp_207.c5b(tmp$ret$191); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_213 = typeToken(createKType(getKClass(NonInteractiveContentXapiStatementRecorderFactory), arrayOf([]), false)); var tmp$ret$192 = isInterface(tmp_213, TypeToken) ? tmp_213 : THROW_CCE(); var tmp_214 = $this$$receiver.o56(tmp$ret$192, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_21 = Companion_getInstance_17().kn2_1; // Inline function 'org.kodein.type.generic' call var tmp_215 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$194 = isInterface(tmp_215, TypeToken) ? tmp_215 : THROW_CCE(); var this_22 = new ImplWithScope(tmp$ret$194, scope_21); var creator_36 = DomainDiModuleJs$lambda$lambda_36; var tmp_216 = this_22.c56(); var tmp_217 = this_22.b56(); var tmp_218 = this_22.d56(); // Inline function 'org.kodein.type.generic' call var tmp_219 = typeToken(createKType(getKClass(NonInteractiveContentXapiStatementRecorderFactory), arrayOf([]), false)); var tmp$ret$196 = isInterface(tmp_219, TypeToken) ? tmp_219 : THROW_CCE(); var tmp$ret$197 = new Singleton(tmp_216, tmp_217, tmp_218, tmp$ret$196, null, true, creator_36); tmp_214.c5b(tmp$ret$197); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_220 = typeToken(createKType(getKClass(GetSubtitleTrackFromUriUseCase), arrayOf([]), false)); var tmp$ret$198 = isInterface(tmp_220, TypeToken) ? tmp_220 : THROW_CCE(); var tmp_221 = $this$$receiver.o56(tmp$ret$198, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_22 = Companion_getInstance_17().kn2_1; // Inline function 'org.kodein.type.generic' call var tmp_222 = typeToken(createKType(getKClass(Endpoint), arrayOf([]), false)); var tmp$ret$200 = isInterface(tmp_222, TypeToken) ? tmp_222 : THROW_CCE(); var this_23 = new ImplWithScope(tmp$ret$200, scope_22); var creator_37 = DomainDiModuleJs$lambda$lambda_37; var tmp_223 = this_23.c56(); var tmp_224 = this_23.b56(); var tmp_225 = this_23.d56(); // Inline function 'org.kodein.type.generic' call var tmp_226 = typeToken(createKType(getKClass(GetSubtitleTrackFromUriUseCaseJs), arrayOf([]), false)); var tmp$ret$202 = isInterface(tmp_226, TypeToken) ? tmp_226 : THROW_CCE(); var tmp$ret$203 = new Singleton(tmp_223, tmp_224, tmp_225, tmp$ret$202, null, true, creator_37); tmp_221.c5b(tmp$ret$203); return Unit_instance; }; } function StringProviderJs(locale, jsStringProvider) { this.gzy_1 = locale; this.hzy_1 = jsStringProvider; } protoOf(StringProviderJs).up7 = function (stringResource) { return stringResource.rlj(this.hzy_1, this.gzy_1); }; protoOf(StringProviderJs).izy = function (stringResource, args) { return stringResource.slj(this.hzy_1, this.gzy_1, args.slice()); }; function isRemote(_this__u8e3s4, $completion) { // Inline function 'kotlin.text.lowercase' call // Inline function 'kotlin.js.asDynamic' call var prefix = substringBefore_0(toString(_this__u8e3s4.q72_1), '//').toLowerCase(); return startsWith(prefix, 'http:') ? true : startsWith(prefix, 'https:'); } function setStateKey(_this__u8e3s4, $this, key, value) { var tmp0_safe_receiver = _this__u8e3s4.state; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp = tmp0_safe_receiver; } var tmp1_elvis_lhs = tmp; var newState = tmp1_elvis_lhs == null ? json([]) : tmp1_elvis_lhs; newState[key] = value; _this__u8e3s4.replaceState(newState, ''); } function Companion_191() { this.jzy_1 = '_handleId'; } var Companion_instance_239; function Companion_getInstance_208() { return Companion_instance_239; } function SavedStateHandle2(history, searchParams) { this.kzy_1 = history; this.lzy_1 = searchParams; var storedHandleId = this.ba('_handleId'); if (storedHandleId == null) { this.mzy_1 = Default_getInstance_0().fg().toString(); setStateKey(this.kzy_1, this, '_handleId', this.mzy_1); } else { this.mzy_1 = storedHandleId; } } protoOf(SavedStateHandle2).epi = function (key, value) { var tmp0_safe_receiver = this.kzy_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.mzy_1) { throw IllegalStateException_init_$Create$('SavedState cannot save values after the user has changed page'); } if (!(value == null)) { setStateKey(this.kzy_1, this, key, value); } }; protoOf(SavedStateHandle2).ba = function (key) { var tmp0_safe_receiver = this.kzy_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.lzy_1.get(key) : tmp3_elvis_lhs; }; function ClazzLogCreatorManagerJs() { } protoOf(ClazzLogCreatorManagerJs).wpa = function (clazzUid, endpointUrl, fromTime, toTime) { }; function UrlKmp(url) { return new UrlKmpJs(new URL(url)); } function UrlKmpJs(url) { this.nzy_1 = url; } protoOf(UrlKmpJs).toString = function () { return toString(this.nzy_1); }; protoOf(UrlKmpJs).do7 = function (path) { return new UrlKmpJs(new URL(path, toString(this.nzy_1))); }; function Companion_192() { } protoOf(Companion_192).cpc = function (text) { return encodeURIComponent(text); }; protoOf(Companion_192).bpc = function (text) { return decodeURIComponent(text); }; var Companion_instance_240; function Companion_getInstance_209() { return Companion_instance_240; } function UstadAntilog(defaultTag) { defaultTag = defaultTag === VOID ? 'NoTag' : defaultTag; Antilog.call(this); this.ozy_1 = defaultTag; } protoOf(UstadAntilog).t5d = function (priority, tag) { var tmp; var tmp_0; if (tag === 'DoorLog') { tmp_0 = priority.equals(LogLevel_DEBUG_getInstance()) ? true : priority.equals(LogLevel_VERBOSE_getInstance()); } else { tmp_0 = false; } if (tmp_0) { tmp = false; } else { tmp = true; } return tmp; }; protoOf(UstadAntilog).v5d = function (priority, tag, throwable, message) { var logTag = tag == null ? this.ozy_1 : tag; var tmp; if (!(message == null)) { var tmp_0; if (!(throwable == null)) { tmp_0 = '' + message + '\n' + throwable.message; } else { tmp_0 = message; } tmp = tmp_0; } else { var tmp2_elvis_lhs = throwable == null ? null : throwable.message; var tmp_1; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp2_elvis_lhs; } tmp = tmp_1; } var fullMessage = tmp; switch (priority.za_1) { case 0: console.log('VERBOSE ' + logTag + ' : ' + fullMessage); break; case 1: console.log('DEBUG ' + logTag + ' : ' + fullMessage); break; case 2: console.info('INFO ' + logTag + ' : ' + fullMessage); break; case 3: console.warn('WARNING ' + logTag + ' : ' + fullMessage); break; case 4: console.error('ERROR ' + logTag + ' : ' + fullMessage); break; case 5: console.error('ASSERT ' + logTag + ' : ' + fullMessage); break; } }; function forEach(_this__u8e3s4, block) { var collection = _this__u8e3s4; var inductionVariable = 0; var last = _this__u8e3s4.length; if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; block(collection[i]); } while (inductionVariable < last); } function bodyAsDecodedText(_this__u8e3s4, $completion) { return bodyAsText(_this__u8e3s4, VOID, $completion); } function rgbColorProperty(_this__u8e3s4) { // Inline function 'web.cssom.rgb' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return 'rgb(' + (_this__u8e3s4 >> 24 & 255) + ' ' + (_this__u8e3s4 >> 16 & 255) + ' ' + (_this__u8e3s4 >> 8 & 255) + ')'; } function asWindowTarget(_this__u8e3s4) { var tmp; switch (_this__u8e3s4.za_1) { case 0: // Inline function 'web.window.WindowTarget.Companion._blank' call 0; tmp = '_blank'; break; case 1: // Inline function 'web.window.WindowTarget.Companion._top' call 0; tmp = '_top'; break; case 2: // Inline function 'web.window.WindowTarget.Companion._self' call 0; tmp = '_self'; break; case 3: // Inline function 'web.window.WindowTarget.Companion._blank' call 0; tmp = '_blank'; break; default: noWhenBranchMatchedException(); break; } return tmp; } function getOrPut(_this__u8e3s4, key, block) { var tmp0_elvis_lhs = _this__u8e3s4.getItem(key); var tmp; if (tmp0_elvis_lhs == null) { // Inline function 'kotlin.also' call var this_0 = block(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.getOrPut.' call _this__u8e3s4.setItem(key, this_0); tmp = this_0; } else { tmp = tmp0_elvis_lhs; } return tmp; } function htmlToPlainText(_this__u8e3s4) { var element = document.createElement('div'); element.innerHTML = replace(replace(replace(_this__u8e3s4, '
', ' '), '
', ' '), '<\/p>

', ' '); return element.innerText; } function JsHeaderStringValuesAdapter(headers) { this.pzy_1 = headers; } protoOf(JsHeaderStringValuesAdapter).n2n = function (key) { var tmp0_safe_receiver = this.pzy_1.get(key); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : split(tmp0_safe_receiver, [',']); return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs; }; protoOf(JsHeaderStringValuesAdapter).o2n = function () { return toSet_0(this.pzy_1.keys()); }; function asIStringValues_0(_this__u8e3s4) { return new JsHeaderStringValuesAdapter(_this__u8e3s4); } function randomUuidAsString() { var tmp; // Inline function 'com.ustadmobile.core.wrappers.window.isSecureContext' call // Inline function 'kotlin.js.asDynamic' call var tmp_0 = window.isSecureContext; if ((!(tmp_0 == null) ? typeof tmp_0 === 'boolean' : false) ? tmp_0 : THROW_CCE()) { tmp = crypto.randomUUID(); } else { tmp = v4(); } return tmp; } //region block: post-declaration protoOf(AuthManager).c57 = get_diContext; protoOf(AuthManager).d57 = get_diTrigger; protoOf($serializer).l4g = typeParametersSerializers; protoOf($serializer_0).l4g = typeParametersSerializers; protoOf($serializer_1).l4g = typeParametersSerializers; protoOf($serializer_2).l4g = typeParametersSerializers; protoOf($serializer_3).l4g = typeParametersSerializers; protoOf($serializer_4).l4g = typeParametersSerializers; protoOf($serializer_5).l4g = typeParametersSerializers; protoOf($serializer_6).l4g = typeParametersSerializers; protoOf($serializer_7).l4g = typeParametersSerializers; protoOf($serializer_8).l4g = typeParametersSerializers; protoOf($serializer_9).l4g = typeParametersSerializers; protoOf($serializer_10).l4g = typeParametersSerializers; protoOf($serializer_11).l4g = typeParametersSerializers; protoOf($serializer_12).l4g = typeParametersSerializers; protoOf($serializer_13).l4g = typeParametersSerializers; protoOf($serializer_14).l4g = typeParametersSerializers; protoOf($serializer_15).l4g = typeParametersSerializers; protoOf($serializer_16).l4g = typeParametersSerializers; protoOf($serializer_17).l4g = typeParametersSerializers; protoOf($serializer_18).l4g = typeParametersSerializers; protoOf($serializer_19).l4g = typeParametersSerializers; protoOf($serializer_20).l4g = typeParametersSerializers; protoOf($serializer_21).l4g = typeParametersSerializers; protoOf($serializer_22).l4g = typeParametersSerializers; protoOf($serializer_23).l4g = typeParametersSerializers; protoOf($serializer_24).l4g = typeParametersSerializers; protoOf($serializer_25).l4g = typeParametersSerializers; protoOf($serializer_26).l4g = typeParametersSerializers; protoOf($serializer_27).l4g = typeParametersSerializers; protoOf($serializer_28).l4g = typeParametersSerializers; protoOf($serializer_29).l4g = typeParametersSerializers; protoOf($serializer_30).l4g = typeParametersSerializers; protoOf($serializer_31).l4g = typeParametersSerializers; protoOf($serializer_32).l4g = typeParametersSerializers; protoOf($serializer_33).l4g = typeParametersSerializers; protoOf($serializer_34).l4g = typeParametersSerializers; protoOf($serializer_35).l4g = typeParametersSerializers; protoOf($serializer_36).l4g = typeParametersSerializers; protoOf($serializer_37).l4g = typeParametersSerializers; protoOf($serializer_38).l4g = typeParametersSerializers; protoOf($serializer_39).l4g = typeParametersSerializers; protoOf($serializer_40).l4g = typeParametersSerializers; protoOf($serializer_41).l4g = typeParametersSerializers; protoOf($serializer_42).l4g = typeParametersSerializers; protoOf($serializer_43).l4g = typeParametersSerializers; protoOf($serializer_44).l4g = typeParametersSerializers; protoOf($serializer_45).l4g = typeParametersSerializers; protoOf($serializer_46).l4g = typeParametersSerializers; protoOf($serializer_47).l4g = typeParametersSerializers; protoOf($serializer_48).l4g = typeParametersSerializers; protoOf($serializer_49).l4g = typeParametersSerializers; protoOf($serializer_50).l4g = typeParametersSerializers; protoOf($serializer_51).l4g = typeParametersSerializers; protoOf(CommandFlowUstadNavController).hob = navigate$default; protoOf(UstadViewModel).c57 = get_diContext; protoOf(UstadViewModel).d57 = get_diTrigger; protoOf($serializer_52).l4g = typeParametersSerializers; protoOf($serializer_53).l4g = typeParametersSerializers; protoOf($serializer_54).l4g = typeParametersSerializers; protoOf($serializer_55).l4g = typeParametersSerializers; protoOf($serializer_56).l4g = typeParametersSerializers; protoOf($serializer_57).l4g = typeParametersSerializers; protoOf($serializer_58).l4g = typeParametersSerializers; protoOf(SaveLocalUrisAsBlobUseCaseJs).pnw = invoke$default; protoOf(CompressImageUseCaseJs).bnz = invoke$default_2; protoOf(GetSubtitleTrackFromUriUseCaseJs).oo8 = invoke$default_3; protoOf(SetLanguageUseCaseJs).qoi = invoke$default_4; protoOf(ChunkedUploadClientLocalUriUseCaseJs).ton = invoke$default_5; //endregion //region block: init Companion_instance_47 = new Companion(); Companion_instance_49 = new Companion_1(); Companion_instance_50 = new Companion_2(); Companion_instance_52 = new Companion_4(); Companion_instance_53 = new Companion_5(); Companion_instance_54 = new Companion_6(); BodySerializer_instance = new BodySerializer(); Companion_instance_55 = new Companion_7(); Companion_instance_56 = new Companion_8(); Companion_instance_57 = new Companion_9(); Companion_instance_59 = new Companion_11(); Companion_instance_64 = new Companion_16(); Companion_instance_65 = new Companion_17(); Companion_instance_66 = new Companion_18(); Companion_instance_67 = new Companion_19(); Companion_instance_68 = new Companion_20(); Companion_instance_69 = new Companion_21(); Companion_instance_70 = new Companion_22(); Companion_instance_72 = new Companion_24(); Companion_instance_74 = new Companion_26(); Companion_instance_79 = new Companion_31(); Companion_instance_80 = new Companion_32(); Companion_instance_81 = new Companion_33(); Companion_instance_82 = new Companion_34(); Companion_instance_83 = new Companion_35(); Companion_instance_84 = new Companion_36(); Companion_instance_86 = new Companion_38(); Companion_instance_87 = new Companion_39(); Companion_instance_88 = new Companion_40(); Companion_instance_90 = new Companion_42(); Companion_instance_91 = new Companion_43(); Companion_instance_92 = new Companion_44(); Companion_instance_93 = new Companion_45(); Companion_instance_94 = new Companion_46(); Companion_instance_95 = new Companion_47(); Companion_instance_96 = new Companion_48(); Companion_instance_97 = new Companion_49(); 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_102 = new Companion_54(); Companion_instance_105 = new Companion_57(); Companion_instance_106 = new Companion_58(); Companion_instance_108 = new Companion_60(); XapiInteractionTypeSerializer_instance = new XapiInteractionTypeSerializer(); XapiObjectTypeSerializer_instance = new XapiObjectTypeSerializer(); Companion_instance_113 = new Companion_65(); XAPI_RESULT_EXTENSION_PROGRESS = 'https://w3id.org/xapi/cmi5/result/extensions/progress'; Companion_instance_116 = new Companion_68(); Companion_instance_117 = new Companion_69(); VERB_COMPLETED = 'http://adlnet.gov/expapi/verbs/completed'; VERB_PROGRESSED = 'http://adlnet.gov/expapi/verbs/progressed'; Companion_instance_123 = new Companion_75(); Companion_instance_124 = new Companion_76(); Companion_instance_126 = new Companion_78(); DiTag_instance = new DiTag(); MS_PER_HOUR = 3600000; MS_PER_MIN = 60000; Companion_instance_128 = new Companion_80(); UNSET_DISTANT_FUTURE = new Long(-289930240, 1689); Companion_instance_129 = new Companion_81(); Companion_instance_130 = new Companion_82(); Companion_instance_131 = new Companion_83(); Companion_instance_132 = new Companion_84(); Companion_instance_133 = new Companion_85(); Companion_instance_134 = new Companion_86(); Companion_instance_135 = new Companion_87(); Companion_instance_136 = new Companion_88(); Companion_instance_137 = new Companion_89(); Companion_instance_140 = new Companion_92(); Companion_instance_141 = new Companion_93(); Companion_instance_142 = new Companion_94(); Companion_instance_143 = new Companion_95(); Companion_instance_144 = new Companion_96(); Companion_instance_145 = new Companion_97(); Companion_instance_146 = new Companion_98(); Companion_instance_148 = new Companion_100(); Companion_instance_150 = new Companion_102(); Companion_instance_151 = new Companion_103(); Companion_instance_152 = new Companion_104(); Companion_instance_153 = new Companion_105(); Companion_instance_155 = new Companion_107(); Companion_instance_157 = new Companion_109(); Companion_instance_158 = new Companion_110(); Companion_instance_159 = new Companion_111(); Companion_instance_162 = new Companion_114(); Companion_instance_163 = new Companion_115(); Companion_instance_164 = new Companion_116(); Companion_instance_165 = new Companion_117(); Companion_instance_166 = new Companion_118(); Companion_instance_167 = new Companion_119(); Companion_instance_169 = new Companion_121(); Companion_instance_170 = new Companion_122(); Companion_instance_172 = new Companion_124(); Companion_instance_173 = new Companion_125(); Companion_instance_174 = new Companion_126(); Companion_instance_175 = new Companion_127(); Companion_instance_176 = new Companion_128(); Companion_instance_177 = new Companion_129(); Companion_instance_178 = new Companion_130(); Companion_instance_179 = new Companion_131(); Companion_instance_181 = new Companion_133(); Companion_instance_182 = new Companion_134(); Companion_instance_183 = new Companion_135(); Companion_instance_184 = new Companion_136(); Companion_instance_185 = new Companion_137(); Companion_instance_186 = new Companion_138(); Companion_instance_187 = new Companion_139(); Companion_instance_188 = new Companion_140(); Companion_instance_191 = new Companion_143(); Companion_instance_192 = new Companion_144(); Companion_instance_196 = new Companion_148(); Companion_instance_197 = new Companion_149(); Companion_instance_198 = new Companion_150(); Companion_instance_199 = new Companion_151(); Companion_instance_201 = new Companion_153(); Companion_instance_202 = new Companion_154(); Companion_instance_203 = new Companion_155(); Companion_instance_204 = new Companion_156(); Companion_instance_205 = new Companion_157(); Companion_instance_206 = new Companion_158(); Companion_instance_207 = new Companion_159(); Companion_instance_208 = new Companion_160(); Companion_instance_209 = new Companion_161(); Companion_instance_211 = new Companion_163(); Companion_instance_212 = new Companion_164(); Companion_instance_213 = new Companion_165(); PersonViewModelConstants_instance = new PersonViewModelConstants(); Companion_instance_214 = new Companion_166(); Companion_instance_215 = new Companion_167(); Companion_instance_216 = new Companion_168(); Companion_instance_218 = new Companion_170(); Companion_instance_219 = new Companion_171(); Companion_instance_222 = new Companion_174(); Companion_instance_223 = new Companion_175(); Companion_instance_224 = new Companion_176(); Companion_instance_225 = new Companion_177(); Companion_instance_226 = new Companion_178(); Companion_instance_227 = new Companion_179(); Companion_instance_228 = new Companion_180(); Companion_instance_229 = new Companion_181(); Companion_instance_230 = new Companion_182(); Companion_instance_232 = new Companion_184(); Companion_instance_233 = new Companion_185(); Companion_instance_234 = new Companion_186(); Companion_instance_235 = new Companion_187(); Companion_instance_236 = new Companion_188(); NAVHOST_CLEARSTACK_VIEWNAME = 'ClearStack'; Companion_instance_237 = new Companion_189(); Companion_instance_238 = new Companion_190(); Companion_instance_239 = new Companion_191(); Companion_instance_240 = new Companion_192(); //endregion //region block: exports _.$_$ = _.$_$ || {}; _.$_$.a = AuthManager; _.$_$.b = Endpoint; _.$_$.c = Pbkdf2Params; _.$_$.d = UserSessionWithPersonAndEndpoint; _.$_$.e = UstadAccountManager; _.$_$.f = get_DIContext; _.$_$.g = get_DIModule; _.$_$.h = get_NAVHOST_CLEARSTACK_VIEWNAME; _.$_$.i = get_NavHost; _.$_$.j = get_NavHostClearStackPlaceholder; _.$_$.k = get_entries; _.$_$.l = ContentEntryGetMetadataStatus; _.$_$.m = FilterUsernameUseCase; _.$_$.n = VersionInfo; _.$_$.o = GetVersionUseCase; _.$_$.p = OnClickLinkUseCase; _.$_$.q = OpenExternalLinkUseCase; _.$_$.r = BulkAddPersonsFromLocalUriUseCaseJs; _.$_$.s = BulkAddPersonsFromLocalUriUseCase; _.$_$.t = GetShowPoweredByUseCase; _.$_$.u = DismissSocialWarningUseCase; _.$_$.v = ShowSocialWarningUseCase; _.$_$.w = ValidateUsernameUseCase; _.$_$.x = FormattedStatementResponse; _.$_$.y = collectAsState; _.$_$.z = useCoroutineScope; _.$_$.a1 = useLaunchedEffect; _.$_$.b1 = useNavControllerEffect; _.$_$.c1 = useOnUnloadEffect; _.$_$.d1 = useStringProvider; _.$_$.e1 = useViewModel; _.$_$.f1 = get_ustadViewName; _.$_$.g1 = AppUiState; _.$_$.h1 = SnackBarDispatcher; _.$_$.i1 = TabItem; _.$_$.j1 = ApiUrlConfig; _.$_$.k1 = AppConfigMap; _.$_$.l1 = AppConfig; _.$_$.m1 = GenderConfig; _.$_$.n1 = SupportedLanguagesConfig; _.$_$.o1 = DomainDiModuleJs; _.$_$.p1 = commonDomainDiModule; _.$_$.q1 = StringProviderJs; _.$_$.r1 = mapLookup; _.$_$.s1 = CommandFlowUstadNavController; _.$_$.t1 = NavResultReturnerImpl; _.$_$.u1 = NavResultReturner; _.$_$.v1 = UstadMobileSystemImpl; _.$_$.w1 = BitmaskFlag; _.$_$.x1 = ListPagingSource; _.$_$.y1 = RefreshCommand; _.$_$.z1 = ClazzLogCreatorManagerJs; _.$_$.a2 = ClazzLogCreatorManager; _.$_$.b2 = get_totalAttendeeStatusRecorded; _.$_$.c2 = capitalizeFirstLetter; _.$_$.d2 = chopOffSeconds_0; _.$_$.e2 = chopOffSeconds; _.$_$.f2 = displayName; _.$_$.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 = InviteViaLinkUiState; _.$_$.t3 = InviteViaLinkViewModel; _.$_$.u3 = JoinWithCodeUiState; _.$_$.v3 = JoinWithCodeViewModel; _.$_$.w3 = ClazzListUiState; _.$_$.x3 = ClazzListViewModel; _.$_$.y3 = CoursePermissionDetailUiState; _.$_$.z3 = CoursePermissionDetailViewModel; _.$_$.a4 = CoursePermissionEditUiState; _.$_$.b4 = CoursePermissionEditViewModel; _.$_$.c4 = CoursePermissionListUiState; _.$_$.d4 = CoursePermissionListViewModel; _.$_$.e4 = get_blockTypeStringResource; _.$_$.f4 = defaultCourseBannerImageIndex; _.$_$.g4 = AssignmentSubmitterSummaryUiState; _.$_$.h4 = ClazzAssignmentDetailSubmissionsTabUiState; _.$_$.i4 = ClazzAssignmentDetailSubmissionsTabViewModel; _.$_$.j4 = get_listItemUiState; _.$_$.k4 = ClazzAssignmentDetailUiState; _.$_$.l4 = ClazzAssignmentDetailViewModel; _.$_$.m4 = ClazzAssignmentDetailOverviewUiState; _.$_$.n4 = ClazzAssignmentDetailOverviewViewModel; _.$_$.o4 = ClazzAssignmentDetailoverviewSubmissionUiState; _.$_$.p4 = ClazzAssignmentEditUiState; _.$_$.q4 = ClazzAssignmentEditViewModel; _.$_$.r4 = PeerReviewerAllocationEditUIState; _.$_$.s4 = PeerReviewerAllocationEditViewModel; _.$_$.t4 = ClazzAssignmentSubmitterDetailUiState; _.$_$.u4 = ClazzAssignmentSubmitterDetailViewModel; _.$_$.v4 = get_entries_1; _.$_$.w4 = values_2; _.$_$.x4 = UstadCourseAssignmentMarkListItemUiState; _.$_$.y4 = avatarColorName; _.$_$.z4 = avatarName; _.$_$.a5 = get_isFromSubmitterGroup; _.$_$.b5 = ClazzMemberListUiState; _.$_$.c5 = ClazzMemberListViewModel; _.$_$.d5 = ClazzEnrolmentEditUiState; _.$_$.e5 = ClazzEnrolmentEditViewModel; _.$_$.f5 = ClazzEnrolmentListUiState; _.$_$.g5 = ClazzEnrolmentListViewModel; _.$_$.h5 = ClazzLogListAttendanceUiState; _.$_$.i5 = ClazzLogListAttendanceViewModel; _.$_$.j5 = ClazzLogEditUiState; _.$_$.k5 = ClazzLogEditViewModel; _.$_$.l5 = ClazzLogEditAttendanceUiState; _.$_$.m5 = ClazzLogEditAttendanceViewModel; _.$_$.n5 = ContentEntryDetailUiState; _.$_$.o5 = ContentEntryDetailViewModel; _.$_$.p5 = ContentEntryDetailAttemptsPersonListUiState; _.$_$.q5 = ContentEntryDetailAttemptsPersonListViewModel; _.$_$.r5 = ContentEntryDetailAttemptsSessionListUiState; _.$_$.s5 = ContentEntryDetailAttemptsSessionListViewModel; _.$_$.t5 = ContentEntryDetailAttemptsStatementListUiState; _.$_$.u5 = ContentEntryDetailAttemptsStatementListViewModel; _.$_$.v5 = get_descriptionStringRes; _.$_$.w5 = get_statementSummary; _.$_$.x5 = get_statementSummary_0; _.$_$.y5 = get_verbDisplayName; _.$_$.z5 = ContentEntryDetailOverviewUiState; _.$_$.a6 = ContentEntryDetailOverviewViewModel; _.$_$.b6 = get_progress; _.$_$.c6 = ContentEntryEditUiState; _.$_$.d6 = ContentEntryEditViewModel; _.$_$.e6 = ContentEntryGetMetadataUiState; _.$_$.f6 = ContentEntryGetMetadataViewModel; _.$_$.g6 = GetSubtitleUiState; _.$_$.h6 = GetSubtitleViewModel; _.$_$.i6 = ContentEntryImportLinkUiState; _.$_$.j6 = ContentEntryImportLinkViewModel; _.$_$.k6 = ContentEntryListItemUiState; _.$_$.l6 = ContentEntryListUiState; _.$_$.m6 = ContentEntryListViewModel; _.$_$.n6 = get_listItemUiState_0; _.$_$.o6 = SubtitleEditUiState; _.$_$.p6 = SubtitleEditViewModel; _.$_$.q6 = get_contentTypeStringResource; _.$_$.r6 = get_stringResource; _.$_$.s6 = CourseBlockEditUiState; _.$_$.t6 = CourseBlockEditViewModel; _.$_$.u6 = TextBlockDetailUiState; _.$_$.v6 = TextBlockDetailViewModel; _.$_$.w6 = CourseGroupSetDetailUiState; _.$_$.x6 = CourseGroupSetDetailViewModel; _.$_$.y6 = CourseGroupSetEditUiState; _.$_$.z6 = CourseGroupSetEditViewModel; _.$_$.a7 = appendGroupNumIfNotInList; _.$_$.b7 = CourseGroupSetListUiState; _.$_$.c7 = CourseGroupSetListViewModel; _.$_$.d7 = CourseTerminologyEditUiState; _.$_$.e7 = CourseTerminologyEditViewModel; _.$_$.f7 = CourseTerminologyListUiState; _.$_$.g7 = CourseTerminologyListViewModel; _.$_$.h7 = DeletedItemListUiState; _.$_$.i7 = DeletedItemListViewModel; _.$_$.j7 = get_delItemContentTypeStringResource; _.$_$.k7 = CourseDiscussionDetailUiState; _.$_$.l7 = CourseDiscussionDetailViewModel; _.$_$.m7 = DiscussionPostDetailUiState2; _.$_$.n7 = DiscussionPostDetailViewModel; _.$_$.o7 = DiscussionPostEditUiState; _.$_$.p7 = DiscussionPostEditViewModel; _.$_$.q7 = EpubContentUiState; _.$_$.r7 = EpubContentViewModel; _.$_$.s7 = EpubScrollCommand; _.$_$.t7 = LoginUiState; _.$_$.u7 = LoginViewModel; _.$_$.v7 = ConversationListUiState; _.$_$.w7 = ConversationListViewModel; _.$_$.x7 = MessageListUiState; _.$_$.y7 = MessageListViewModel; _.$_$.z7 = daysUntil_0; _.$_$.a8 = ParentalConsentManagementUiState; _.$_$.b8 = ParentalConsentManagementViewModel; _.$_$.c8 = PdfContentUiState; _.$_$.d8 = PdfContentViewModel; _.$_$.e8 = PersonAccountEditUiState; _.$_$.f8 = PersonAccountEditViewModel; _.$_$.g8 = PersonUsernameAndPasswordModel; _.$_$.h8 = BulkAddPersonRunImportUiState; _.$_$.i8 = BulkAddPersonRunImportViewModel; _.$_$.j8 = BulkAddPersonSelectFileUiState; _.$_$.k8 = BulkAddPersonSelectFileViewModel; _.$_$.l8 = PersonDetailUiState; _.$_$.m8 = PersonDetailViewModel; _.$_$.n8 = PersonEditUiState; _.$_$.o8 = PersonEditViewModel; _.$_$.p8 = PersonListUiState; _.$_$.q8 = PersonListViewModel; _.$_$.r8 = RegisterAgeRedirectUiState; _.$_$.s8 = RegisterAgeRedirectViewModel; _.$_$.t8 = RegisterMinorWaitForParentUiState; _.$_$.u8 = RegisterMinorWaitForParentViewModel; _.$_$.v8 = RedirectViewModel; _.$_$.w8 = ScheduleEditUiState; _.$_$.x8 = ScheduleEditViewModel; _.$_$.y8 = SettingsUiState; _.$_$.z8 = SettingsViewModel; _.$_$.a9 = SiteDetailUiState; _.$_$.b9 = SiteDetailViewModel; _.$_$.c9 = SiteEditUiState; _.$_$.d9 = SiteEditViewModel; _.$_$.e9 = SiteTermsDetailUiState; _.$_$.f9 = SiteTermsDetailViewModel; _.$_$.g9 = SiteEnterLinkUiState; _.$_$.h9 = SiteEnterLinkViewModel; _.$_$.i9 = SystemPermissionDetailUiState; _.$_$.j9 = SystemPermissionDetailViewModel; _.$_$.k9 = SystemPermissionEditUiState; _.$_$.l9 = SystemPermissionEditViewModel; _.$_$.m9 = TimeZoneListViewModel; _.$_$.n9 = TimezoneListUiState; _.$_$.o9 = VideoContentUiState; _.$_$.p9 = MediaPlayState; _.$_$.q9 = VideoContentViewModel; _.$_$.r9 = XapiContentUiState; _.$_$.s9 = XapiContentViewModel; _.$_$.t9 = ErrorReportUiState; _.$_$.u9 = HolidayCalendarDetailUIState; _.$_$.v9 = HolidayCalendarEditUiState; _.$_$.w9 = HolidayCalendarListUiState; _.$_$.x9 = LanguageDetailUiState; _.$_$.y9 = LanguageEditUiState; _.$_$.z9 = LanguageListUiState; _.$_$.aa = LeavingReasonEditUiState; _.$_$.ba = LeavingReasonEditViewModel; _.$_$.ca = ReportFilterEditUiState; _.$_$.da = ScopedGrantDetailUiState; _.$_$.ea = ScopedGrantEditUiState; _.$_$.fa = CompressionLevel_MEDIUM_getInstance; _.$_$.ga = LinkTarget_DEFAULT_getInstance; _.$_$.ha = AppBarColors_SELECTION_MODE_getInstance; _.$_$.ia = AppBarColors_STANDARD_getInstance; _.$_$.ja = FabIcon_ADD_getInstance; _.$_$.ka = FabIcon_EDIT_getInstance; _.$_$.la = State_INDETERMINATE_getInstance; _.$_$.ma = MarkingType_PEERS_getInstance; _.$_$.na = TextLimitType_LIMIT_WORDS_getInstance; _.$_$.oa = SupportedLanguagesConfig_init_$Create$; _.$_$.pa = _AssignmentSubmitterSummaryUiState___get_fileSubmissionStatusIconVisible__impl__so25h0; _.$_$.qa = _AssignmentSubmitterSummaryUiState___get_latestPrivateCommentVisible__impl__bdq0p0; _.$_$.ra = _ContentEntryListItemUiState___get_contentEntry__impl__3g9nl2; _.$_$.sa = _ContentEntryListItemUiState___get_descriptionVisible__impl__xyu083; _.$_$.ta = _ContentEntryListItemUiState___get_mimetypeVisible__impl__l8r8g7; _.$_$.ua = Companion_getInstance_17; _.$_$.va = PersonConstants_getInstance; _.$_$.wa = SubmissionConstants_getInstance; _.$_$.xa = Companion_getInstance_54; _.$_$.ya = Companion_instance_91; _.$_$.za = Companion_instance_95; _.$_$.ab = Companion_getInstance_67; _.$_$.bb = Companion_instance_123; _.$_$.cb = Companion_instance_124; _.$_$.db = ClazzEnrolmentListConstants_getInstance; _.$_$.eb = ConditionConstants_getInstance; _.$_$.fb = ContentCompletionStatusConstants_getInstance; _.$_$.gb = EnrolmentPolicyConstants_getInstance; _.$_$.hb = FieldConstants_getInstance; _.$_$.ib = LicenceConstants_getInstance; _.$_$.jb = OutcomeConstants_getInstance; _.$_$.kb = PersonParentJoinConstants_getInstance; _.$_$.lb = RoleConstants_getInstance; _.$_$.mb = ScheduleConstants_getInstance; _.$_$.nb = SubmissionPolicyConstants_getInstance; _.$_$.ob = UstadMobileConstants_getInstance; _.$_$.pb = Companion_getInstance_90; _.$_$.qb = DiTag_instance; _.$_$.rb = Companion_getInstance_96; _.$_$.sb = UMFileUtil_getInstance; _.$_$.tb = Companion_instance_128; _.$_$.ub = Companion_instance_130; _.$_$.vb = Companion_instance_131; _.$_$.wb = Companion_instance_132; _.$_$.xb = Companion_instance_134; _.$_$.yb = Companion_instance_135; _.$_$.zb = Companion_instance_136; _.$_$.ac = Companion_instance_137; _.$_$.bc = Companion_instance_150; _.$_$.cc = Companion_instance_151; _.$_$.dc = Companion_instance_152; _.$_$.ec = Companion_instance_153; _.$_$.fc = Companion_instance_155; _.$_$.gc = Companion_instance_157; _.$_$.hc = Companion_instance_158; _.$_$.ic = Companion_instance_159; _.$_$.jc = Companion_getInstance_130; _.$_$.kc = Companion_getInstance_129; _.$_$.lc = Companion_instance_162; _.$_$.mc = Companion_instance_163; _.$_$.nc = Companion_instance_164; _.$_$.oc = Companion_instance_167; _.$_$.pc = Companion_instance_166; _.$_$.qc = Companion_instance_169; _.$_$.rc = Companion_instance_170; _.$_$.sc = Companion_instance_172; _.$_$.tc = Companion_instance_173; _.$_$.uc = Companion_instance_165; _.$_$.vc = ClazzAssignmentViewModelConstants_getInstance; _.$_$.wc = Companion_instance_174; _.$_$.xc = Companion_instance_175; _.$_$.yc = Companion_instance_176; _.$_$.zc = Companion_instance_177; _.$_$.ad = Companion_instance_178; _.$_$.bd = Companion_instance_179; _.$_$.cd = Companion_getInstance_149; _.$_$.dd = Companion_instance_181; _.$_$.ed = Companion_instance_182; _.$_$.fd = Companion_instance_183; _.$_$.gd = Companion_instance_184; _.$_$.hd = Companion_instance_185; _.$_$.id = Companion_instance_186; _.$_$.jd = Companion_instance_187; _.$_$.kd = Companion_instance_188; _.$_$.ld = Companion_getInstance_158; _.$_$.md = Companion_instance_192; _.$_$.nd = Companion_getInstance_163; _.$_$.od = Companion_instance_196; _.$_$.pd = Companion_getInstance_162; _.$_$.qd = Companion_instance_197; _.$_$.rd = Companion_instance_198; _.$_$.sd = Companion_instance_199; _.$_$.td = Companion_instance_201; _.$_$.ud = Companion_instance_202; _.$_$.vd = Companion_instance_203; _.$_$.wd = Companion_instance_204; _.$_$.xd = Companion_instance_205; _.$_$.yd = Companion_instance_206; _.$_$.zd = Companion_instance_207; _.$_$.ae = Companion_instance_209; _.$_$.be = Companion_getInstance_179; _.$_$.ce = Companion_instance_211; _.$_$.de = Companion_instance_212; _.$_$.ee = Companion_instance_213; _.$_$.fe = Companion_instance_214; _.$_$.ge = Companion_instance_216; _.$_$.he = Companion_instance_218; _.$_$.ie = Companion_instance_219; _.$_$.je = Companion_getInstance_189; _.$_$.ke = Companion_getInstance_190; _.$_$.le = Companion_instance_222; _.$_$.me = Companion_instance_223; _.$_$.ne = Companion_instance_225; _.$_$.oe = Companion_instance_227; _.$_$.pe = Companion_instance_228; _.$_$.qe = Companion_instance_229; _.$_$.re = Companion_instance_230; _.$_$.se = Companion_getInstance_200; _.$_$.te = Companion_instance_232; _.$_$.ue = Companion_instance_233; _.$_$.ve = Companion_instance_234; _.$_$.we = Companion_instance_235; _.$_$.xe = Companion_instance_236; _.$_$.ye = Companion_instance_140; _.$_$.ze = Companion_instance_141; _.$_$.af = Companion_instance_142; _.$_$.bf = Companion_instance_143; _.$_$.cf = Companion_instance_144; _.$_$.df = Companion_instance_145; _.$_$.ef = Companion_instance_146; _.$_$.ff = Companion_getInstance_118; _.$_$.gf = strings_getInstance; _.$_$.hf = MR_getInstance; //endregion return _; }(module.exports, require('react'), require('react-router'), require('compressorjs'), require('libphonenumber-js'), require('xxhashjs'), 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('./door-door-runtime.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-coroutines-core.js'), require('./ktor-ktor-client-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./ktor-ktor-http.js'), require('./kotlinx-atomicfu.js'), require('./xmlutil-serialization.js'), require('./xmlutil-core.js'), require('./Napier-napier-js-ir.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('./multiplatform-paging-root-paging-common.js'), require('./precompose-precompose-viewmodel.js'), require('./MultiplatformSettings-multiplatform-settings.js'), require('./kotlin-react-core.js'), require('./kotlin-react.js'), require('./kotlin-web.js'), require('./ktor-ktor-io.js'), require('./kotlin-js.js'))); //# sourceMappingURL=UstadMobile-core.js.map